Print driver

Hello,
I need to write a printer driver which will “print”
out the documents in the form of a bitmap and send
that over TCP/IP to a remote site. Since I am new to
printer drivers, I was thinking of writing a simple
printer driver which will convert the RAW data into a
bitmap, and then using a port monitor send that to
whereever it needs to be sent.
Would this be a correct way to proceed, or am I
missing something? Also, where, if any can I get
sample code for a printer driver? The “msplot” sample
looks a bit too complex for my needs. Can I just use
the MDW tool to create one from one of the templates?
Thanks.


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail

The simplest way of doing is to use a “GDI Managed Surface” and punt the
calls back to GDI (use Engine… Calls). This is the basis for
generating ratser data…

Regards,
Santhosh

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Siddharth Karnik
Sent: Saturday, July 24, 2004 9:37 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Print driver

Hello,
I need to write a printer driver which will “print”
out the documents in the form of a bitmap and send
that over TCP/IP to a remote site. Since I am new to
printer drivers, I was thinking of writing a simple
printer driver which will convert the RAW data into a
bitmap, and then using a port monitor send that to
whereever it needs to be sent.
Would this be a correct way to proceed, or am I
missing something? Also, where, if any can I get
sample code for a printer driver? The “msplot” sample
looks a bit too complex for my needs. Can I just use
the MDW tool to create one from one of the templates?
Thanks.


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail


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

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

Correct.

Use any raster printer sample as a template.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Siddharth Karnik”
To: “Windows System Software Devs Interest List”
Sent: Saturday, July 24, 2004 8:07 AM
Subject: [ntdev] Print driver

> Hello,
> I need to write a printer driver which will “print”
> out the documents in the form of a bitmap and send
> that over TCP/IP to a remote site. Since I am new to
> printer drivers, I was thinking of writing a simple
> printer driver which will convert the RAW data into a
> bitmap, and then using a port monitor send that to
> whereever it needs to be sent.
> Would this be a correct way to proceed, or am I
> missing something? Also, where, if any can I get
> sample code for a printer driver? The “msplot” sample
> looks a bit too complex for my needs. Can I just use
> the MDW tool to create one from one of the templates?
> Thanks.
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

UNIDRV already does this for you. Using UNIDRV for such a task is a good
idea.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Saturday, July 24, 2004 9:24 AM
Subject: RE: [ntdev] Print driver

> The simplest way of doing is to use a “GDI Managed Surface” and punt the
> calls back to GDI (use Engine… Calls). This is the basis for
> generating ratser data…
>
> Regards,
> Santhosh
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Siddharth Karnik
> Sent: Saturday, July 24, 2004 9:37 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Print driver
>
>
> Hello,
> I need to write a printer driver which will “print”
> out the documents in the form of a bitmap and send
> that over TCP/IP to a remote site. Since I am new to
> printer drivers, I was thinking of writing a simple
> printer driver which will convert the RAW data into a
> bitmap, and then using a port monitor send that to
> whereever it needs to be sent.
> Would this be a correct way to proceed, or am I
> missing something? Also, where, if any can I get
> sample code for a printer driver? The “msplot” sample
> looks a bit too complex for my needs. Can I just use
> the MDW tool to create one from one of the templates?
> Thanks.
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@wipro.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>