Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > capturing PS output in IPrintOemPS2::WritePrinter

Reply
Thread Tools Display Modes

capturing PS output in IPrintOemPS2::WritePrinter

 
 
jvilar
Guest
Posts: n/a

 
      06-29-2010
I extended the oemps sample driver implementing the IPrintOemPS2 interface.
After adding the two new methods and modifying the QueryInterface to expose
also the new interface.

The method IPrintOemPS2::WritePrinter is called initially with its arguments
set to zero in order to query whether the plug-in actually supports the
method, as commented in the documentation.

If I return E_NOTIMPL from IPrintOemPS2::WritePrinter, then the pscript
driver sends the expected ps data to the spooler bypassing the
IPrintOemPS2::WritePrinter method, as expected. If I return S_OK instead,
then the method is no longer called and nothing arrives to the spooler. This
happens regardless I set the pcbWritten output argument to zero or I leave it
unchanged.

Should I do something else in addition to this to capture the pscript's
output?

Thanks in advance
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Vista Ultimate output to multiple audio devices? Tim Sagstetter Windows Vista Hardware 31 10-13-2010 06:25 PM
Only one tool:Rip DVD and convert Video to PSP kankan ll Windows Media Player 2 10-04-2010 12:55 PM
capturing PS output in IPrintOemPS2::WritePrinter jvilar Windows Vista Drivers 1 06-16-2010 07:44 AM
Mutiple Speaker Output not working on Vista Saunjay Windows Vista Hardware 1 06-02-2007 08:52 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59