请问为什么调用FindFirstPrinterChangeNotification()返回出错(-1)
Declare Function FindFirstPrinterChangeNotification Lib "winspool.drv" (ByVal hPrinter As Long, ByVal fdwFlags As Long, ByVal fdwOptions As Long, ByVal pPrinterNotifyOptions As String) As LongDim hprn As Long
Dim hChange As Long
Dim info As String
ret = OpenPrinter(Printer.DeviceName, hprn, 0)'返回 ret = 1
hChange = FindFirstPrinterChangeNotification(hprn, PRINTER_CHANGE_JOB, 0, info)'返回hChange = -1'请问我的函数调用哪里有问题呢
Declare Function FindFirstPrinterChangeNotification Lib "winspool.drv" (ByVal hPrinter As Long, ByVal fdwFlags As Long, ByVal fdwOptions As Long, ByVal pPrinterNotifyOptions As String) As LongDim hprn As Long
Dim hChange As Long
Dim info As String
ret = OpenPrinter(Printer.DeviceName, hprn, 0)'返回 ret = 1
hChange = FindFirstPrinterChangeNotification(hprn, PRINTER_CHANGE_JOB, 0, info)'返回hChange = -1'请问我的函数调用哪里有问题呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货