Re: Implementing a Custom Download Manager and Integerating it with IE

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Jai,

You are going to have to do the conversion yourself. It's going to
require a great deal of COM interop. You should take a look at the section
of the MSDN documentation titled "COM Interop", located at:

http://msdn2.microsoft.com/en-us/library/6bw51z5z(VS.80).aspx

Specifically, you want to look at the section titled "Exposing .NET
Framework Components to COM", located at:

http://msdn2.microsoft.com/en-us/library/zsfww439(VS.80).aspx

Once you have the basics down, you will have to define the
IDownloadManager interface in your code, and then implement it on your class
which you are going to expose. Some of the types in the Download method of
the IDownloadManager interface are defined in the
System.Runtime.InteropServices.ComTypes namespace, so that can be of help to
you.

If you have to communicate with an external application, then you are
going to have to set up a remoting channel between your COM dll which is the
download manager, and the running app.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"JP" <prkjai@xxxxxxxxx> wrote in message
news:1194550948.338442.75370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Nicholas,

I really appreciate your quick reply.

The code sample is in C++. Could you help me out, converting it to
CSharp. I have never used COM object in .Net environment.

The CLSID can be provided in either of the following registry values:
\HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\DownloadUI
\HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\DownloadUI

<b>Note DownloadUI is a string value. The value is the CLSID of the
download manager COM object.</b>

My Download Manager is not a COM oblect, it is managed .net exe. How
to get the CLSID of it and provide it to the above registery value.

Jai Prakash


On Nov 9, 12:32 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Jai,

Admittedly, Jeffry could have been a little more descriptive.

There is a knowledge base article which has a sample of what you have
to
do to implement IDownloadManager:

http://support.microsoft.com/kb/327865

This is in C++, but you should be able to do it in .NET through the
COM
interop layer.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"JP" <prk...@xxxxxxxxx> wrote in message

news:1194549765.227440.62300@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Hi List,

I am trying to create an application which is a Download Manager. I
want this to be attached to the IE so if user clicks a link on the
page to download something and which basically opens my download
manager and not the normal IE download window. The download manager is
some what functional but I am not getting how to attach it to the
browser. I tried Googling and got something, but I am not getting how
to achieve it as I don't have much experience of using a COM object in
a .Net environment.

http://msdn2.microsoft.com/en-us/library/aa753618.aspx

I found people having difficulties following this on net but there was
no specific solution provided.

In this post also it has been said to implement the IDownloadManager,
but no hint how to do it.

http://groups.google.com/group/microsoft.public.dotnet.languages.csha...

Any help in this regard will be highly appreciated.

Regards
Jai Prakash- Hide quoted text -

- Show quoted text -




.



Relevant Pages

  • [Full-disclosure] Akamai Download Manager arbitrary file download & execution
    ... Akamai Download Manager arbitrary file download & execution ... Akamai's Download Manager allows attackers to download arbitrary ... Manager is available as an ActiveX component or Java applet. ... the user can execute the file using the ...
    (Full-Disclosure)
  • Akamai Download Manager arbitrary file download & execution
    ... Akamai Download Manager arbitrary file download & execution ... Akamai's Download Manager allows attackers to download arbitrary ... Manager is available as an ActiveX component or Java applet. ... the user can execute the file using the ...
    (Bugtraq)
  • Re: Download Manager
    ... I looked and it is indead part | of Netscape. ... |>Netscape may and Mozilla certainly does have a built-in ... That's how I know Mozilla has a download |>manager built-in. ... How do I start up the Download Manager in XP Home | Ed? ...
    (microsoft.public.windowsxp.general)
  • Re: Downloading in Mozilla
    ... With neither quill nor qualm, ... >>> download manager off so I don't get a dialog box every time. ... >> to* open a progress dialog for images as well as app, etc files, honest. ...
    (alt.html)
  • Re: text encoding, help please...
    ... when i go to open it it ask for "fiel conversion" then gives me ... If you think your documents might be corrupt, ... You can download it for free from ... * Open in OpenWriter ...
    (microsoft.public.word.docmanagement)