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 |
); |
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 is obtained by calling the OpenPrinter function. DeleteForm can only delete form names that were added by using the AddForm function.