Using Win32 functions in Visual FoxPro Image Gallery
Registry
..msdn
GetPrivateProfileSectionNames
GetPrivateProfileString
GetProfileString
RegCloseKey
RegCreateKeyEx
RegDeleteKey
RegDeleteValue
RegEnumKey
RegEnumKeyEx
RegEnumValue
RegOpenKeyEx
RegQueryInfoKey
RegQueryValueEx
RegSaveKey
RegSetValueEx
SHEnumKeyEx
SHRegCloseUSKey
SHRegEnumUSKey
SHRegOpenUSKey
WritePrivateProfileSection
WritePrivateProfileString
Code examples:
Configuring DEVMODE structure for a printer
Displaying printer-properties Property Sheet for the specified printer
Enumerating forms supported by a specified printer
Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)
How to delete all print jobs for a printer
How to retrieve configuration data for a specified printer stored in the registry (PrinterDriverData key)
How to retrieve the number of print jobs queued for the printer
Printing text with the Escape function
Reading keys in the specified section of the Win.ini file
Retrieving default spooling directory name
Retrieving list of supported paper names (for example, Letter or Legal) for a given printer
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer
Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)

User rating: 9/10 (1 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
Before you begin:
This code enumerates print jobs for default printer (if both the jobs and the printer exist :). The JOB_INFO_1 structure is used, which includes such members as printer name, machine name, user name, document etc.

Check another examples:
Enumerating locally installed printers
Enumerating printer drivers installed
Enumerating the print processors and supporting data types installed on the specified server
How to retrieve number of print jobs that have been queued for the printer
Enumerating the ports that are available for printing on a specified server
 
  Members area. Log in to view this example.
 
  User name:
  Password:
 
 
  Forgot your password?
 
  Sign up for
the Membership
 
 


User rating: 9/10 (1 votes)
Rate this code sample:
  • ~
5186 bytes  
Created: 2003-01-16 13:45:24  
Modified: 2006-05-03 19:21:16  
Visits in 7 days: 78  
Listed functions:
ClosePrinter
EnumJobs
GetDefaultPrinter
GetLastError
GetProfileString
GlobalAlloc
GlobalFree
OpenPrinter
Printer friendly API declarations
My comment:
Technically it is easy to make this code working with JOB_INFO_2 and JOB_INFO_3 structures.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (50.16.36.153)
1.12 hrs.Function: 'mmioWrite'
Function group: 'Windows Multimedia'
 Example: 'Printing text on the client area of the main VFP window'
 Example: 'How to retrieve the number of print jobs queued for the printer'
Language: 'C++'
2.45 hrs.Example: 'Placing an arbitrary rectangular area of main VFP window on the Clipboard'
 Example: 'Converting strings between ANSI and OEM'
2.46 hrs.Function: 'RegQueryInfoKey'
Function group: 'Registry'
2.89 hrs.Function: 'SHBrowseForFolder'
Function group: 'Shell Functions'
 Example: 'Setting the last-error code for the FoxPro'
 Example: 'Using LoadLibrary'
3.31 hrs.Example: 'Setting the last-error code for the FoxPro'
Google
Advertise here!