Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Converting a decimal string to an integer
Displaying the main Dial-Up Networking dialog box
Obtaining information about all user accounts on a server (WinNT only)
Quering waveform-audio output devices
Accessing Windows Control Panel from VFP Application
An alternative way of setting Form.Closable to False
Enumerating MIDI output devices
Retrieving configuration information for the specified server (Win2000/XP)
Enumerating ODBC drivers available on the local computer
GDI+: Color Transparency
How to upload a local file to FTP server using FtpPutFile
Retrieving Window Class information for the VFP window
Using GetNearestColor
How to drag a Form not using its Titlebar or Caption
How to write and read Window Properties for the specified window
Obtaining Shell32.dll version
Reading VFP settings from the Windows Registry
Using the GetLogicalDriveStrings
Yet another modal dialog: now HTML-based
How to download a file from HTTP server using URL Monikers functions
How to intercept window messages sent to VFP form
How to view system icons for the classes installed on the local machine
Retrieving configuration information for the specified workstation (Win2000/XP)
Returning some basic information for the specified INF file
How to browse and connect to printers on a network (WinNT)

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
Before you begin:
The ConnectToPrinterDlg function -- on which this example is based -- displays a dialog box that lets users browse and connect to printers on a network.


If the user selects a printer, the function attempts to create a connection to it; if a suitable driver is not installed on the server, the user is given the option of creating a printer locally.
 
  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:
  • ~
1952 bytes  
Created: 2003-01-26 17:05:50  
Modified: 2009-01-03 15:26:33  
Visits in 7 days: 115  
Listed functions:
ClosePrinter
ConnectToPrinterDlg
GetActiveWindow
GetPrinter
GlobalAlloc
GlobalFree
Printer friendly API declarations
My comment:
A calling application can determine whether the function has created a printer locally by calling GetPrinter with a PRINTER_INFO_2 structure, then examining that structure"s Attributes member.

An application should call DeletePrinter to delete a local printer. An application should call DeletePrinterConnection to delete a connection to a printer.
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.180.187)
7 sec.Example: 'Creating the Save dialog box to specify the drive, directory, and name of a file to save'
24.52 min.
56.78 min.Example: 'Converting path to original case'
56.85 min.Example: 'Splash Screen for the VFP application'
1.13 hrs.Example: 'How to print picture stored in enhanced-format metafile (*.emf)'
 Example: 'GDI+: reading and writing metadata in JPEG and TIFF files'
3.51 hrs.Function: 'WTSEnumerateServers'
Function group: 'Terminal Services'
 Function: 'waveInGetDevCaps'
Function group: 'Windows Multimedia'
7.91 hrs.Example: 'GDI+: Creating thumbnails to preview images in a directory'
8.06 hrs.Example: 'The original LoadPicture() function in VFP returns valid handles to bitmaps, icons, cursors, and metafiles'
Google
Advertise here!