Download Manager does not fire
- From: "Steve B." <steve_beauge@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 19 Jan 2006 19:26:11 +0100
Hi,
I'm trying to build a download manager for IE 6.
I've build a COM object that implements the IDownloadManager Interface and
its Download method.
How can I tell IE to use this object ?
In the doc, it is written that I have to add a "DownloadUI" either in
HKLM\Software\Microsoft\Internet Explorer or HKCU\Software\Microsft\Internet
Explorer.
I suppose my COM object is well registered since I can found in CLSID in
registry.
When I click on a link to download a file, the standard download Manager for
IE fires, not mine.
Did I missed something ?
Thanks,
Steve
PS: I've build my download manager using VS 2005 and C#.
Here is my code :
public class Wrapper
{
[
ComImport,
GuidAttribute("988934A4-064B-11D3-BB80-00104B35E7F9"),
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown),
ComVisible(false)
]
public interface IDownloadManager
{
void Download(
IMoniker pmk,
IBindCtx pbc,
uint dwBindVerb,
int grfBINDF,
IntPtr pBindInfo,
[MarshalAs(UnmanagedType.LPWStr)]System.String pszHeaders,
[MarshalAs(UnmanagedType.LPWStr)] System.String pszRedir,
uint uiCP
);
}
}
[Guid("616C2083-C1D9-46b8-86D4-F6F9D435266B")]
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
public partial class Downloaded : Component,
SmartDownload.Wrapper.IDownloadManager
{
public Downloaded()
{
InitializeComponent();
}
public Downloaded(IContainer container)
{
container.Add(this);
InitializeComponent();
}
#region IDownloadManager Members
public void Download(
IMoniker pmk,
IBindCtx pbc,
uint dwBindVerb,
int grfBINDF,
IntPtr pBindInfo,
string pszHeaders,
string pszRedir,
uint uiCP
)
{
System.Windows.Forms.MessageBox.Show("Test");
}
#endregion
}
.
- Prev by Date: Re: VB Webbrowser and MS HTML Library. Frames? Please help
- Next by Date: Re: VB Webbrowser and MS HTML Library. Frames? Please help
- Previous by thread: VB Webbrowser and MS HTML Library. Frames? Please help
- Next by thread: Making WebBrowser Printdialog Modal ... Urgent. Please help[
- Index(es):
Relevant Pages
|
|