Need FindNextPrinterChangeNotification() help...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Prophet (anonymous_at_discussions.microsoft.com)
Date: 03/02/04


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?



Relevant Pages

  • Re: rc.sysinit parameters (Was: Grub boot options - updated kernelhangs)
    ... D> Are there any boot time commands for passing X Monitor ... D> syncronization settings for vertical and horisontal? ... There are kernel parameters for selecting the ...
    (Fedora)
  • Re: MET Launches MET Player on October 22
    ... Thanks so much for passing this on. ... large monitor. ... my only copy being a videotape that's pretty much shot. ...
    (rec.music.opera)
  • Re: regarding my PC
    ... Yesterday I started my PC after few minuts my mo monitor got off and CPU ... fans are running with high speed. ... Power to the monitor is passing fine. ...
    (alt.comp.hardware.pc-homebuilt)
  • regarding my PC
    ... CPU fans are running with high speed. ... Power to the monitor is passing fine. ...
    (alt.comp.hardware.pc-homebuilt)