i'm trying to enclose an ACTIVEX in another ACTIVEX which is supposed to be invoked by Internet Explorer when a particular Mime-type is seen on the webpage. I have implemented something similar for NPAPI and i could see how the browser transfer the data to the NPAPI plugin by using the functions "NPP_NewStream,NPP_WriteReady,NPP_Write,NPP_DestroyStream". However for ACTIVEX i'm not able to understand how the transfer of data from the Internet Explorer browser toward the ACTIVEX happens. I have done several research, gone through Internet Explorer architecture document http://msdn.microsoft.com/en-us/library/aa741312%28v=vs.85%29.aspx but couldn't figure out.
Thanks in advance for any help, Giovanni
FireBreath has a BrowserStreams wrapper which has implementations both in ActiveX and on NPAPI; there are not direct equivilents, but with WinHTTP you can do the same things on ActiveX.
The code is under the new BSD license, so take a look and steal what you need -- alternately, FireBreath might not be a bad way to go for building your system.
Primary files to look at: