|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| No
| Win32s
| No
| Import Library
| winspool.lib
| Header File
| winspool.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
SetForm
The SetForm function sets the form information for the specified printer.
BOOL SetForm(
HANDLE hPrinter,
| // handle of printer object
| LPTSTR pFormName,
| // address of form name
| DWORD Level,
| // structure level
| LPBYTE pForm
| // address of structure array
| );
|
|
Parameters
hPrinter
Identifies the printer for which the form information is set.
pFormName
Points to a null-terminated string that specifies the form name for which the
form information is set.
Level
Specifies the version of the structure to which pForm points. This value must be 1.
pForm
Points to a FORM_INFO_1 structure.
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 hPrinter is obtained by calling the OpenPrinter function.
See Also
GetForm, OpenPrinter, FORM_INFO_1
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|