IPrintOemDriverUni::DrvGetGPDData method is provided by the Unidrv driver so that rendering plug-ins can obtain data defined in a printer's GPD file.
HRESULT DrvGetGPDData( PDEVOBJ pdevobj, DWORD dwType, PVOID pInputData, PVOID pBuffer, DWORD cbSize, PDWORD pcbNeeded );
Caller-supplied pointer to a DEVOBJ structure.
Caller-supplied flag indicating the type of GPD data being requested. Currently, the following flag is the only one defined:
|GPD_OEMCUSTOMDATA||The method returns the string associated with a GPD file's *OEMCustomData entry.|
Reserved. Must be zero.
Caller-supplied pointer to a buffer to receive the requested information.
Caller-supplied size, in bytes, of the buffer pointed to by pBuffer.
Receives the driver-supplied minimum buffer size, in bytes, required to contain the requested information.
The method must return one of the following values.
||The operation succeeded.|
||The operation failed.|
||The method is not implemented.|
If the buffer specified by pBuffer and cbSize is too small to receive the requested information, Unidrv supplies the required buffer size in the location pointed to by pcbNeeded, returns E_FAIL, and sets the error code to ERROR_INSUFFICIENT_BUFFER.
|Header||prcomoem.h (include Prcomoem.h)|