I wrote a DDE component for DocZilla, a Mozilla-based browser. I made
the DDE component an appservice (or something like that, it's been a
while) which means it will be loaded as soon as the application starts.
It recognized some DDE commands (like load etc.). This was pretty simple
to do.
If you want a service that monitors what files are being downloaded (to
look at the file suffix) I am pretty sure there would be some kind of
listener available in necko. Unfortunately I do not know what that would
be, but look at the files in include dir for listeners/observers and
perhaps use LXR.
Michael Sundermann wrote:
> Hi All,
>
> I have written a download manager for a Company's Intranet.
> Whenever a employee clicks on a URL with a special extension in
> Netscape 4.x, my program overtakes the download, installs it, download
> further files, grants accounts, etc. To summarize, my program behaves
> like the well-known program GoZilla, GetRight or RealDownload with the
> difference that it runs only within the Intranet of that company and
> makes additionally actions on the downloaded file
> My old program uses the OLE automation (external protocol
> handler)(NCAPI) from Netscape 4.x with the following protocol:
> short Initialize(LPCTSTR pProtocol, LPCTSTR pUrl);
> void Open(LPCTSTR pUrl);
>
> It seems to me that Mozilla/Netscape 6.0 does not support the above
> protocol any more.
>
> Is it possible to write a download manager with netlib ?
>
> I have read the documentation about adding a new protocol (finger) to
> mozilla, but this is not what I need.
>
> Michael Sundermann
> Germany
--
Heikki Toivonen