AddForm

  BOOL AddForm(hPrinter, Level, pForm)    
  HANDLE hPrinter;    
  DWORD Level;    
  LPBYTE pForm;    

This function adds a Form that can be used on the specified Printer.

Parameters

hPrinter

Indicates the open Printer handle that this function is to be performed upon. This Handle is obtained with the OpenPrinter function.

Level

This value must be 1.

pForm

Points to a FORM_INFO_1 structure.

Return Value

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.