Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to print a bitmap file
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Reading the state of mouse buttons within DO WHILE loop
Retrieving names for the registered clipboard formats
Using the SystemParametersInfo function
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)
Disabling mouse and keyboard input for the main VFP window (with the app still running)
Setting the mouse capture to the specified window
Accessing Adobe Reader 7.0 main menu from VFP application
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
Creating a window using CreateWindowEx function
Enumerating devices installed on the local machine
Programmatically removing submenus from VFP main menu
Sending email messages with Simple MAPI
Storing content of the Clipboard to a bitmap file
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Using the IsWindowEnabled function
Disk in drive A:
Displaying icons in the system tray (VFP9)
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
Encapsulating access to the Windows Services in a class
Retrieving Network Provider information
Start an executable from VFP application by using the CreateProcess
Winsock: retrieving the standard host name and IP address for the local machine

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:
The HOSTENT structure is used by Winsock functions to store information about a given host, such as host name, IP address, and so forth.
 
  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:
  • ~
2843 bytes  
Created: 2001-12-14 21:36:52  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 82  
Listed functions:
gethostbyname
gethostname
WSACleanup
WSAStartup
Printer friendly API declarations
My comment:
Dec.3, 2005: determines more than one ip address for a host name, if present.
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:
stuartd | 2005-12-13 11:23:48
The WMI Class Win32_PingStatus is only supported in Windows XP or later.

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 (107.20.129.212)
4 sec.Example: 'The window and its ancestors'
1.62 hrs.Example: 'Testing serial ports'
5.59 hrs.Example: 'Using an Event Object. Part B: running an application responding to events'
 Function: 'MAPIAddress'
Function group: 'Simple MAPI'
 Function: 'midiOutGetDevCaps'
Function group: 'Windows Multimedia'
16.37 hrs.Example: 'Using the DrawText function'
 Function: 'CryptHashData'
Function group: 'Cryptography Reference'
16.7 hrs.Example: 'An alternative way of setting Form.Closable to False'
19.72 hrs.Example: 'Storing content of the Clipboard to a bitmap file'
 Example: 'How to extract frames from AVI files'
Google
Advertise here!