Tech Support > Microsoft Windows > Drivers > RE: DrvDocumentPropertySheets printer driver problem
RE: DrvDocumentPropertySheets printer driver problem
Posted by Ashwin [MS] on September 10th, 2003


You cannot just do nothing when the value for pPSUIInfo is not NULL. As per
the DDK docs:

If the value received for the pPSUIInfo parameter is not NULL, the NT-based
operating system print spooler is calling the function indirectly, through
CPSUI. The following rules apply:

The function should perform operations as described for the PFNPROPSHEETUI
function type.
Flags in the fMode member of the DOCUMENTPROPERTYHEADER structure indicate
which property sheet pages to display and whether the user should be
allowed to modify a document's properties. The only flags that might be set
are DM_IN_PROMPT (or DM_PROMPT), DM_ADVANCED, DM_NOPERMISSION, and
DM_OUT_BUFFER (or DM_COPY).

So as you can see, just returning success is not the right way to do it. In
any case, I don't think it is possible to completely not do anything when
called in DrvDocumentPropertySheets. Irrespective of whether it is possible
or not though, I would not recommend this approach since it leads to an
inconsistent user experience.

- Ashwin

This posting is provided "AS IS" with no warranties, and confers no rights.


Similar Posts