Sending Printer Data from Kernel Mode Driver

Hello,
I am writing a Bluetooth driver that acts as a printer server where a PC client can print to the host machine’s printer. My question is how should I handle the printer data that the driver receives from the client? Can I just send the data directly to the printer driver (I have the printer driver’s DeviceObject) or is there another way that I should send the data to the printer?

Thanks

Hi,

Considering that most of the Windows print subsystem now lives in
user-mode, it may be a lot easier to attack this problem from user-mode.
Perhaps something like writing your own user-mode service, passing it
the data from your driver via the “inverted call model”, and then
sending the raw data to the printer from your service. If you’re in
user-mode, you can send raw data directly to the printer with the
technique described here:

http://msdn2.microsoft.com/en-us/library/ms535786(VS.85).aspx

xxxxx@stonestreetone.com wrote:

Hello, I am writing a Bluetooth driver that acts as a printer server
where a PC client can print to the host machine’s printer. My
question is how should I handle the printer data that the driver
receives from the client? Can I just send the data directly to the
printer driver (I have the printer driver’s DeviceObject) or is there
another way that I should send the data to the printer?

Thanks

— NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer