Using Win32 functions in Visual FoxPro Image Gallery
Printing and Print Spooler
..msdn
AddPort
AddPrinter
ClosePrinter
ConfigurePort
ConnectToPrinterDlg
DeletePort
DeviceCapabilities
DocumentProperties
EndDoc
EndPage
EnumForms
EnumJobs
EnumPorts
EnumPrinterData
EnumPrinterDrivers
EnumPrinters
EnumPrintProcessorDatatypes
EnumPrintProcessors
Escape
FindClosePrinterChangeNotification
FindFirstPrinterChangeNotification
FindNextPrinterChangeNotification
FreePrinterNotifyInfo
GetDefaultPrinter
GetPrinter
GetPrinterData
GetPrinterDriverDirectory
GetPrintProcessorDirectory
OpenPrinter
PrinterProperties
SetDefaultPrinter
SetJob
SetPrinter
StartDoc
StartPage
Code examples:
Using Change Notification Objects to monitor changes to the printer or print server
FindNextPrinterChangeNotification
..msdn    Add comment     W32 Constants      Translate this page
Retrieves information about the most recent change notification for a change notification object associated with a printer or print server. Call this function when a wait operation on the change notification object is satisfied.
Code examples:
Using Change Notification Objects to monitor changes to the printer or print server
Declaration:
BOOL FindNextPrinterChangeNotification(
    HANDLE hChange,                // change notification
    PDWORD pdwChange,              // condition that changed
    LPVOID pPrinterNotifyOptions,  // refresh option
    LPVOID *ppPrinterNotifyInfo    // printer information
);
FoxPro declaration:
DECLARE INTEGER FindNextPrinterChangeNotification;
IN winspool.drv;
    INTEGER   hChange,;
    INTEGER @ pdwChange,;
    STRING  @ pPrinterNotifyOptions,;
    INTEGER @ ppPrinterNotifyInfo

Parameters:
hChange
[in] Handle to a change notification object associated with a printer or print server obtained by calling the FindFirstPrinterChangeNotification function.

pdwChange
[out] Pointer to a variable whose bits are set to indicate the changes that occurred to cause the most recent notification.

pPrinterNotifyOptions
[in] Pointer to a PRINTER_NOTIFY_OPTIONS structure.

ppPrinterNotifyInfo
[out] Pointer to a pointer variable that receives a pointer to a system-allocated, read-only buffer.
Return value:
If the function succeeds, the return value is a nonzero value.
My comment:
Call the FindNextPrinterChangeNotification function after a wait operation on a notification object created by FindFirstPrinterChangeNotification has been satisfied. Calling FindNextPrinterChangeNotification lets you obtain information about the change that satisfied the wait operation, and resets the notification object so it can be signaled when the next change occurs.

See also: FindClosePrinterChangeNotification, FreePrinterNotifyInfo.
Word Index links for the FindNextPrinterChangeNotification :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-04-06 20:46:42
Modified: 2005-04-06 20:49:38
Visited in last 7 days: 20
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.145.95.149)
3 sec.Function: 'FtpSetCurrentDirectory'
6 sec.Function: 'GetKeyState'
10 sec.Function: 'GetConsoleScreenBufferInfo'
13 sec.Function: 'CopyFile'
17 sec.
Function group: 'Setup API functions'
20 sec.Function: 'GetBestRoute'
24 sec.Function: 'CharUpper'
28 sec.Function: 'CloseDesktop'
31 sec.Function: 'CallWindowProc'
35 sec.Function: 'GdipGetImageEncodersSize'
Google
Advertise here!