BOOL SetForm(hPrinter, pFormName, Level, pForm) | |||
HANDLE hPrinter; | |||
LPSTR pFormName; | |||
DWORD Level; | |||
LPBYTE pForm; |
This function sets the Form Information for the specified Form.
hPrinter
Indicates the open Printer handle that this function is to be performed upon. This Handle is obtained with the OpenPrinter API.
pFormName
Points to a NULL terminated string specifying the Name of the Form to retrieve
Level
This value must be 1
pForm
Points to a buffer that contains a FORM_INFO_1 structure.
The return value is TRUE if the function was successful, or FALSE if an error occurred. To obtain extended error information, use the GetLastError function.