Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
Pocket PC: custom RAPI class for operating with the System Registry
Retrieving long values associated with the class of the VFP window
Using GetNearestColor
Creating a directory on the FTP
Enumerating print processors and supporting data types installed on the specified server
Enumerating sessions established on a server
GDI+ fun: roach-infested desktop
How to read email messages using Simple MAPI
Obtaining a handle to the desktop associated with the calling thread
Opening access to the Microsoft Internet functions for the application
Pocket PC: custom RAPI class for operating with the Object Store Databases
Retrieving the priority class for the current process
Retrieving the state of your Internet connection
Using Shell for performing operations on files
Disconnecting USB Mass Storage Device programmatically
Displaying Windows shell folders in TreeView control with Visual FoxPro FLL
How to get Special Folders paths
How to print picture stored in enhanced-format metafile (*.emf)
Returning some basic information for the specified INF file
Accessing the list of Windows Recent Documents
Current directory of the application
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
GDI+: Drawing a Pie Chart
Enumerating ports that are available for printing on a specified server

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 code presents the PrinterPort and PrinterPorts classes. The latter is a collection of PrinterPort objects for a given server. The collection is populated using the EnumPorts call.

The PrinterPort object has properties portname, monitorname, description and porttype.

See also:
 
  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:
  • ~
3471 bytes  
Created: 2002-08-15 11:01:11  
Modified: 2009-01-03 15:26:33  
Visits in 7 days: 88  
Listed functions:
AddPort
DeletePort
EnumPorts
GetLastError
GlobalAlloc
GlobalFree
Printer friendly API declarations
My comment:
March 14, 2005. The code has been completely rewritten.

* * *
Test this class:
LOCAL oPorts, oPort
oPorts = CREATEOBJECT("PrinterPorts", "") && local computer

FOR EACH oPort IN oPorts
        ? oPort.portname, oPort.monitorname
NEXT

? oPorts.AddPort("Local Port")
? oPorts.DeletePort("FILE:")

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 (23.22.252.150)
1.96 hrs.Example: 'Using WM_COPYDATA for interprocess communication (VFP9)'
 Example: 'Drawing a rectangle using Windows regular edges and borders'
4.12 hrs.Example: 'A client for testing non-blocking Winsock server'
 
4.35 hrs.Example: 'Adding a background image to VFP report (VFP9, ReportListener)'
 Articles
4.36 hrs.Function: 'LookupPrivilegeName'
4.6 hrs.Example: 'How to make a VFP form fading out when released (GDI+ version)'
 Example: 'GDI+: reading and writing metadata in JPEG and TIFF files'
 Example: 'Enumerating servers of the specified type (e.g. SQL Server) in the primary domain'
Google
Advertise here!