DeleteForm

The DeleteForm function removes a form name from the list of supported forms.

BOOL DeleteForm(
  HANDLE hPrinter,  // handle to printer object
  LPTSTR pFormName  // pointer to form name
);
 

Parameters

hPrinter
Indicates the open printer handle that this function is to be performed upon.
pFormName
Pointer to the form name to be removed.

Return Values

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.

Remarks

The printer handle is obtained by calling the OpenPrinter function. DeleteForm can only delete form names that were added by using the AddForm function.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in winspool.h.
  Import Library: Use winspool.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also

Printing and Print Spooler Overview, Printing and Print Spooler Functions, AddForm, OpenPrinter