Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Capturing keyboard activity of another application with the Raw Input API (VFP9)
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
Custom HttpRequest class (WinINet)
Custom FTP Class for Visual FoxPro application
How to make a VFP form fading out when released (GDI+ version)
How to make a VFP form fading out when released (GDI version)
Using FlashWindowEx to flash the taskbar button of the VFP application
Splash Screen for the VFP application
How to create non-blocking Winsock server
Peer-to-peer LAN messenger built with Mailslot API functions
Using WM_COPYDATA for interprocess communication (VFP9)
Winsock: sending email messages (SMTP, port 25)
Creating a mailslot
Class for sound recording
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Enumerating data formats currently available on the clipboard
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
How to create MD-5 and SHA-1 hash values from a string
Detecting changes in connections to removable drives (VFP9)
Displaying bitmap using the AlphaBlend function
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: 129  
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 (50.19.155.235)
1.06 hrs.Example: 'Obtaining physical parameters for a drive: sectors, clusters, cylinders...'
 Example: 'Extensible Storage Engine class library'
3.49 hrs.Example: 'Using MessageBeep'
Google
Advertise here!