Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Confining Windows calculator inside the VFP main window
How to print FoxPro form
Round FoxPro form
Semi-transparent Form
How to change the name and the size of the font in the MessageBox dialog
Reading list of folders and files on FTP server
Converting image file to .ICO file
How to make a VFP form fading out when released (GDI+ version)
Minimizing all running applications
Extended MessageBox Class
Placing On-screen Alert on top of all windows
How to remove a directory that is not empty
Using WM_COPYDATA for interprocess communication (VFP9)
Attaching menu to a top-level form
Bitmap Class for Visual FoxPro application
Building a tree of subdirectories for a given path using FindFile functions
Compressing and decompressing files with Windows API Runtime Library routines
Creating a mailslot
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Retrieving the interface–to–IP address mapping table
Windows Shell Icons displayed and exported to ICO files (Vista)
How to detect if additional monitor is connected and active
Using the ChooseColor function
How to play AVI file on the _screen
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: 99  
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 (107.21.156.140)
22.22 min.Function: 'MAPIResolveName'
Function group: 'Simple MAPI'
22.27 min.Example: 'How to create transparent areas inside a form -- punching holes in the form'
28.35 min.Example: 'Using vendor-neutral SQL constructs'
28.42 min.Example: 'Bitmap Class for Visual FoxPro application'
2.71 hrs.Example: 'How to display the Properties dialog box for a file (ShellExecuteEx)'
 Function: 'GetClipboardOwner'
Function group: 'Clipboard'
5.17 hrs.Example: 'Building a tree of subdirectories for a given path using FindFile functions'
 Function: 'RegEnumKey'
Function group: 'Registry'
5.92 hrs.Function: 'WTSQuerySessionInformation'
Function group: 'Terminal Services'
 Function: 'PathSearchAndQualify'
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
Google
Advertise here!