IPrintCoreUI2::QuerySimulationSupport method retrieves a spooler simulation capability structure, which indicates the kinds of simulation the spooler supports.
HRESULT QuerySimulationSupport( HANDLE hPrinter, DWORD dwLevel, PBYTE pCaps, DWORD cbSize, PDWORD pcbNeeded );
Specifies a handle to the printer.
Specifies the spooler simulation capability structure returned in the buffer pointed to by pCaps. Currently, only level 1 of spooler simulation support is provided.
|Value||Spooler Simulation Support Structure|
SIMULATE_CAPS_1 (defined in printoem.h)
Pointer to the output buffer, which contains a structure of the type indicated by the value in the dwLevel parameter.
Specifies the size, in bytes, of the output buffer, which is pointed to by pCaps.
Specifies the size, in bytes, of the memory needed to store a structure of the type indicated by dwLevel.
The method must return one of the following values.
||The method succeeded.|
The value in cbSize was smaller than the number of bytes to be written to the output buffer (the buffer pointed to by pCaps).
The method was called with pCaps set to NULL.
The method is not supported.
A structure of the type specified by dwLevel is not supported.
||The method failed|
This method is supported only for Windows XP Pscript5 plug-ins, not for Unidrv plug-ins.
IPrintCoreUI2::QuerySimulationSupport method stores a spooler simulation capability structure in the buffer pointed to by pCaps. This structure specifies the level of spooler support for "N-up" printing, reverse printing, the maximum number of pages that can be printed, collation, and others.
|Header||prcomoem.h (include Prcomoem.h)|