BOOL EngGetForm(
HANDLE hPrinter, | |
LPWSTR pFormName, | |
DWORD dwLevel, | |
LPBYTE lpbForm, | |
DWORD cbBuf, | |
LPDWORD pcbNeeded | |
); |
EngGetForm gets the FORM_INFO_1 details for the specified form.
EngGetForm returns TRUE if the form structure is successfully copied into lpbForm. Otherwise, it logs an error message and returns FALSE. To get the error information, call EngGetLastError.
EngGetForm returns a FORM_INFO_1 structure containing the form data associated with pFormName. The written data and its size are returned to the caller via lpbForm and pcbNeeded, respectively. If the array pointed to by lpbForm is not large enough to hold the form data, the requisite array size is instead returned in pcbNeeded.
To get a list of all supported forms, the printer driver should call EngEnumForms.