|
|
VB声明 |
Declare Function AddMonitor Lib "winspool.drv"
Alias "AddMonitorA" (ByVal pName As String, ByVal Level As Long, pMonitors As
Byte) As Long |
说明 |
为系统添加一个打印机监视器 |
返回值 |
Long,非零表示成功,零表示失败。会设置GetLastError |
参数表 |
参数 |
类型及说明 |
pName |
String,欲在其中安装监视器的一个服务器的名字。对于本地(本机)监视器,请设置成vbNullString |
Level |
Long,设为2 |
pMonitors |
Byte,指定一个结构中的第一个字节。那个结构又包含了一个MONITOR_INFO_2结构 |
|