The GetForm function initializes a FORM_INFO_1 structure with data describing the specified form for a printer.
BOOL GetForm(
HANDLE hPrinter, |
// handle of printer |
LPTSTR pFormName, |
// address of form name |
DWORD Level, |
// structure level |
LPBYTE pForm, |
// address of structure array |
DWORD cbBuf, |
// count of bytes in array |
LPDWORD pcbNeeded |
// addr. of variable with count of bytes retrieved (or required) |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The printer handle hPrinter is obtained by calling the OpenPrinter function.