Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Custom GDI+ class
Converting Unicode data from the Clipboard to a character string using a given code page
Winsock: sending email messages (SMTP, port 25)
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Enumerating data formats currently available on the clipboard
Custom FTP Class for Visual FoxPro application
Detecting changes in connections to removable drives (VFP9)
How to download a file from the FTP server using FtpGetFile
Splash Screen for the VFP application
How to activate Windows Calculator
Custom HttpRequest class (WinINet)
Mapping and disconnecting network drives
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Using Font and Text functions
Establishing connection using the SQLDriverConnect
Custom HttpRequest class (WinHTTP)
How to convert a bitmap file to monochrome format (1 bpp)
Displaying bitmap using the AlphaBlend function
Using WM_COPYDATA for interprocess communication (VFP9)
How to play AVI file on the _screen
Using EnumPrinters function to enumerate locally installed printers
Vertical Label control
Using EnumPrinters function to enumerate locally installed printers

User rating: 0/10 (0 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:
See also:
Enumerating printer drivers installed
Enumerating the print processors and supporting data types installed on the specified server
Enumerating print jobs and retrieving information for default printer
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: 0/10 (0 votes)
Rate this code sample:
  • ~
3712 bytes  
Created: 2001-09-14 12:00:00  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 181  
Listed functions:
EnumPrinters
GetLastError
GlobalAlloc
GlobalFree
Printer friendly API declarations
My comment:
To obtain information about the default printer, call the GetProfileString function with the section name string set to "windows" and the key name string set to "device". The returned string contains the name of the default printer, the name of the printer DRV file, and the port to which the printer is attached.
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 (54.234.126.92)
4 sec.Function: 'MapVirtualKey'
Function group: 'Keyboard Input'
6.78 min.Example: 'Enumerating the subkeys of a user-specific key'
3.07 hrs.Example: 'Winsock: sending email messages (SMTP, port 25)'
4.68 hrs.Function: 'CeRegQueryInfoKey'
5.98 hrs.Example: 'How to view icons stored in executable files (Icon Viewer) - II'
 Example: 'How to retrieve adapter information for the local computer (including MAC address)'
9.56 hrs.Function: 'OpenPrinter'
Function group: 'Printing and Print Spooler'
 Example: 'How to find which fonts Windows uses for drawing captions, menus and message boxes'
9.68 hrs.Example: 'PocketPC: creating directories and files'
10.49 hrs.Example: 'Configuring DEVMODE structure for a printer'
Google
Advertise here!