Tom's Hardware > Forum > Windows XP > Device Driver > Windows XP Printer Driver, DrvDocumentPropertySheets

Windows XP Printer Driver, DrvDocumentPropertySheets

Forum Windows XP : Device Driver - Windows XP Printer Driver, DrvDocumentPropertySheets

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.device_driver.dev,microsoft.public.ddk.win2000.printer.video (More info?)

 

Hello,

I am currently in the progress of implementing a printer driver with the
current 2003 DDK.

The DrvDocumentPropertySheets is giving me pain.

I do the following test:

- Open the application
- Go to the printer/page settings
- Open the settings provided by my driver
- Change the page orientation from portrait (the default) to landscape
- click OK
- Open the settings provided by my driver again and look if it is still
in landscape

I am having a lot of debug messages (and windgb.exe at the app to test)
to check for success.

The applications i test with:
- notepad.exe: Works fine
- mspaint.exe: Works fine
- OpenOffice 1.1.4: Does NOT remember the settings
- Adobe Reader: Does NOT remember the settings

I think I implemented DrvDocumentPropertySheets (partially?) the correct
way. But for some odd reason, i give the calling programm the MY_DEVMODE
with the right landscape setting, but the next time it gives me portrait
again.

What i noticed: I'm putting a devmode in pdmOut that has the adress X
and pdmIn is NULL. (no PSUIInfo parameter). Then the function is called
again 2 times, asking for the devmode size. And after that, it is called
with a PSUI info and a pdmIn of Y and a pdmOut of X. Why?

Also, is it the correct way when i have a static MY_DEVMODE variable (a
DEVMODEW with some private data of mine attached) that represents my
settings internally?

Well, can anyone help me with this issue?

thanks,
Markus Goetz

f'up to microsoft.public.windowsxp.device_driver.dev

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Device Driver > Windows XP Printer Driver, DrvDocumentPropertySheets
Go to:

There are 497 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them