Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to enumerate, add and delete shares on the local computer (WinNT/XP)
Confining Windows calculator inside the VFP main window
How to ping a remote site using ICMP API calls
Starting an external application in VFP using WinExec
Custom FTP Class for Visual FoxPro application
How to set Creation Date/Time for a folder (WinNT)
Storing screen shot of a form to bitmap file
Initiating Inet connection using a modem
How to suspend or hibernate your system
Deleting files into the Recycle Bin
How to prevent users from accessing the Windows Desktop and from switching to other applications
How to put a vertical text scrolling on the form (a movie cast)
Testing Clipboard functions: emptying the clipboard
Tracking mouse movement to detect when to start dragging
Enumerating ODBC Data Sources available on the local computer
Creating a window using CreateWindowEx function
How to make application automatically close all documents it opened
Moving shortcut to a specified position on the Windows Desktop
Downloading files from the FTP server using InternetReadFile
Encapsulating access to the Windows Services in a class
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
How to display a user-defined icon in the MessageBox dialog
Sending email messages with Simple MAPI
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
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: 141  
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 (72.44.48.122)
4 sec.Function: 'LsaLookupSids'
Function group: 'Security'
7 sec.Function: 'WTSUnRegisterSessionNotification'
57.88 min.Function: 'DrawAnimatedRects'
Function group: 'Painting and Drawing'
57.93 min.Example: 'Displaying printer-properties Property Sheet for the specified printer'
1.7 hrs.Example: 'Tracking mouse movement to detect when to start dragging'
3.55 hrs.Function: 'RegisterHotKey'
Function group: 'Keyboard Input'
 Function: 'DrawDibOpen'
Function group: 'Windows Multimedia'
3.56 hrs.Example: 'Reading data from INI files'
4.95 hrs.Function: 'SendMessage'
 Function: 'ShellExecuteEx'
Google
Advertise here!