Using Win32 functions in Visual FoxPro
Image Gallery
functions
•
examples
•
solutions
•
updates
•
about
•
links
•
articles
•
login
•
Code examples:
Extended MessageBox Class
Using the DrawText function
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Displaying icons in the system tray (VFP9)
How to detect if additional monitor is connected and active
Creating a mailslot
Enumerating ports that are available for printing on a specified server
Reading the state of mouse buttons within DO WHILE loop
Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)
Printing text on the main VFP window
How to ping a remote site using IP Helper API calls
Start an executable from VFP application by using the CreateProcess
Using the ChooseColor function
Converting image file to .ICO file
Displaying the main Dial-Up Networking dialog box
Accessing Adobe Reader 7.0 main menu from VFP application
Displaying the associated icons and descriptions for files and folders
Obtaining Shell32.dll version
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Enumerating ODBC Data Sources available on the local computer
How to suspend or hibernate your system
Obtaining names of local and global groups for current user (WinNT/XP/2K)
Printing text with the Escape function
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Other pages with examples:
<<
>>
1
2
3
4
[5]
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer
User rating: 0/10 (0 votes)
Rate this code sample:
~
More code examples
Listed functions
Add comment
W32 Constants
Translate this page
Before you begin:
Job ID, status, and document name are on the list, retrieved with the
EnumJobs
function (JOB_INFO_1 structure is used).
* * *
See also:
Using Change Notification Objects to monitor changes to the printer or print server
.
How to delete all print jobs for a printer
Retrieving default spooling directory name
How to retrieve the number of print jobs queued for the printer
Members area. Log in to view this example.
User name:
Password:
Forgot your password?
Sign up for
the Membership
User rating: 0/10 (0 votes)
Rate this code sample:
~
6713 bytes
Created: 2003-01-20 16:57:47
Modified: 2011-12-10 09:20:22
Visits in 7 days: 163
Listed functions:
ClosePrinter
EnumJobs
GetLastError
GetProfileString
GetVersion
GlobalAlloc
GlobalFree
OpenPrinter
SetJob
Word Index links for this example:
print job
notification
print jobs
number of print jobs
print server
change notification
printer queue
notification object
JOB_INFO_1 structure
spooling
spooling directory
Frames not supported by your user agent
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.
Log in to post a comment
functions
•
examples
•
solutions
•
updates
•
about
•
links
•
articles
•
login
•
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
(184.72.91.94)
4 sec.
Function: 'SQLCreateDataSource'
3.4 hrs.
Function: 'GetRawInputDeviceList'
Example: 'Sending email messages with Simple MAPI'
5.45 hrs.
Function: 'AddPrinter'
Function: 'htonl'
Function group: 'Windows Sockets 2 (Winsock)'
10.95 hrs.
Example: 'Retrieving IP statistics for the computer'
15.38 hrs.
Function: 'GetAce'
Function group: 'Security'
16.36 hrs.
Example: 'Custom HttpRequest class (WinHTTP)'
Function: 'ConfigurePort'
19.49 hrs.
Article: 'Programming File Transfer Protocol in Visual FoxPro '
More last topics visited ...
Advertise here!