Need FindNextPrinterChangeNotification() help...
From: Prophet (anonymous_at_discussions.microsoft.com)
Date: 03/02/04
- Next message: Wolfgang: "Re: Win 2K/NT Services"
- Previous message: Klaus H. Probst: "Re: CryptoAPI.. Any known memory leaks?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Mar 2004 00:56:05 -0800
Help!!
I am trying to use FindNextPrinterChangeNotification() in VB6 on WinXP to monitor the print jobs in a print spool. I declared it as:
Public Declare Function FindNextPrinterChangeNotification Lib "winspool.drv" (ByVal hChange As Long, pdwChange As Long, pPrinterNotifyOptions As PRINTER_NOTIFY_OPTIONS, ppPrinterNotifyInfo As Long) As Long
I am passing in a hChange value, a pPrinterNotifyOptions constant, an empty pPrinterNotifyOptions structure and an empty Long variable into ppPrinterNotifyInfo.
Apparently I am able to get a return success = 1 from the function but it returns nothing/zero for ppPrinterNotifyInfo. On a note I am able to execute FindFirstPrinterChangeNotification() and WaitForSingleObject() as documented in many articles out there but I can’t get pass the FindNextPrinterChangeNotification() functon.
Anyone can assist in explaining why this is or if there is another way to monitor and control a print queue from VB code?
- Next message: Wolfgang: "Re: Win 2K/NT Services"
- Previous message: Klaus H. Probst: "Re: CryptoAPI.. Any known memory leaks?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|