COM DLL Object in Driver Source!!!

Hi,

I need to create instance of a COM DLL class from my printer driver. How can
I achieve this? I don’t have any header files associated with the DLL. I
just have the DLL file which is registered using regsvr32, and I need to
create and use instances of some class in this DLL. How do I do this in my
driver code (cpp/oemuni) ?

Thanks,

Sam

I would suggest you look at the msdn docs for invoking COM infrastruture,
then
using IUNKNOWN and other interface(s)to create object(s) of COM. Initially
it would
take you by surprise, if you happen to be hanging your hat around kernel
mode dev, but
it is really very easy, once you see the structure(s). When the COM dll is
registered
using regsvr32, it created a CLSID, and associated name, that is what you
need if I
recall !. Finally all of these, works in usr space, as far as I know.

-prokash

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Sam
Sent: Tuesday, April 06, 2004 7:47 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] COM DLL Object in Driver Source!!!

Hi,

I need to create instance of a COM DLL class from my printer driver. How can
I achieve this? I don’t have any header files associated with the DLL. I
just have the DLL file which is registered using regsvr32, and I need to
create and use instances of some class in this DLL. How do I do this in my
driver code (cpp/oemuni) ?

Thanks,

Sam


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@garlic.com
To unsubscribe send a blank email to xxxxx@lists.osr.com