// winddiui.h
typedef struct _DOCEVENT_CREATEDCPRE {
PWSTR pszDriver;
PWSTR pszDevice;
PDEVMODEW pdm;
BOOL bIC;
} DOCEVENT_CREATEDCPRE, *PDCEVENT_CREATEDCPRE;
View the official Windows Driver Kit DDI referenceNo description available.
The DOCEVENT_CREATEDCPRE structure contains a set of values used in certain calls to DrvDocumentEvent and IPrintOemUI2::DocumentEvent.
pszDriverReserved for system use. Set to zero.
pszDevicePointer to the first byte of a Unicode string that contains either the device name or the port name, depending on whether print spooling is enabled or disabled. If the print job is being sent directly to the printer (spooling is disabled), this member contains the printer name. If a print job is being spooled, this member contains the port name.
pdmPointer to a DEVMODEW structure passed to either CreateIC or CreateDC (both described in the Microsoft Windows SDK documentation). This member can be NULL.
bICSpecifies whether the DEVMODEW structure pointed to by the pdm member is being passed to CreateIC or CreateDC. If TRUE, CreateIC is being called. If FALSE, CreateDC is being called.
The DOCEVENT_CREATEDCPRE structure is defined for Windows XP and later.
This structure is used in conjunction with a call to DrvDocumentEvent or IPrintOemUI2::DocumentEvent, in which the iEsc parameter is set to DOCUMENTEVENT_CREATEDCPRE. Before calling either of these functions, the caller must fill in the members of this structure.