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
FindFirstPrinterChangeNotification
..msdn    Add comment     W32 Constants      Translate this page
Creates a change notification object and returns a handle to the object. You can then use this handle in a call to one of the wait functions to monitor changes to the printer or print server.
Code examples:
Using Change Notification Objects to monitor changes to the printer or print server
Declaration:
HANDLE FindFirstPrinterChangeNotification(
    HANDLE hPrinter,  // handle to printer
    DWORD fdwFlags,   // conditions to monitor
    DWORD fdwOptions, // reserved, must be zero
    LPVOID pPrinterNotifyOptions  // fields to monitor
);
FoxPro declaration:
DECLARE INTEGER FindFirstPrinterChangeNotification;
IN winspool.drv;
    INTEGER  hPrinter,;
    LONG     fdwFlags,;
    LONG     fdwOptions,;
    STRING @ pPrinterNotifyOptions

Parameters:
hPrinter
[in] Handle to the printer or print server that you want to monitor.

fdwFlags
[in] Specify the conditions that will cause the change notification object to enter a signaled state.

fdwOptions
Reserved; must be zero.

pPrinterNotifyOptions
[in] Pointer to a PRINTER_NOTIFY_OPTIONS structure.
Return value:
If the function succeeds, the return value is a handle to a change notification object associated with the specified printer or print server.
My comment:
To monitor a printer or print server, call the FindFirstPrinterChangeNotification function, then use the returned change notification object handle in a call to one of the wait functions, like WaitForSingleObject.

See also: FindNextPrinterChangeNotification, FindClosePrinterChangeNotification, OpenPrinter.
Word Index links for the FindFirstPrinterChangeNotification :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-04-06 20:41:45
Modified: 2005-04-06 20:46:24
Visited in last 7 days: 12
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.92.141.211)
6 sec.Function: 'GetProcessPreferredUILanguages'
13 sec.Function: 'GdipGetFontCollectionFamilyCount'
19 sec.Function: 'SetThreadDesktop'
24 sec.Function: 'SetMenu'
31 sec.Function: 'GdipDrawImageI'
37 sec.Function: 'LoadIcon'
44 sec.Function: 'UuidFromString'
50 sec.Function: 'RegOpenKeyEx'
56 sec.Function: 'FindCloseChangeNotification'
Function group: 'File Management'
1.02 min.Function: 'InternetQueryDataAvailable'
Google
Advertise here!