Click to Rate and Give Feedback
MSDN
MSDN Library
Windows GDI
 DeleteForm
Windows GDI
DeleteForm

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

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

Parameters

hPrinter
[in] Indicates the open printer handle that this function is to be performed upon. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.
pFormName
[in] Pointer to the form name to be removed.

Return Values

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

DeleteForm can only delete form names that were added by using the AddForm function.

Requirements

  Windows NT/2000/XP/Vista: Included in Windows NT 3.1 and later.
  Windows 95/98/Me: Unsupported.
  Header: Declared in Winspool.h; include Windows.h.
  Library: Use Winspool.lib.
  Unicode: Implemented as Unicode and ANSI versions.

See Also

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


Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content      
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker