SetForm
VB声明
Declare Function SetForm& Lib "spoolss.dll" Alias "SetFormA" (ByVal hPrinter As_
Long, ByVal pFormName As String, ByVal Level As Long, pForm As Byte)
说明
  为指定表单设置信息。
返回值
Long,非零表示成功,零表示失败。会设置GetLastError
参数表
参数 类型及说明
Level Long,设为1
pForm Byte,包含一个有效FORM_INFO_1结构的缓冲区。
pFormName String,欲设置表单的名字。
hPrinter Long,指定一个打开打印机的句柄(用openprinter取得)
适用平台
windows NT
注解

   请参考AddForm函数。

Top