Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to obtain Content-Type value for a file type from the System Registry
Minimizing all running applications
Number of clipboard formats available
Pocket PC: retrieving data from the Contacts Database
Reading entries from Event logs
Retrieving window and menu help context identifiers
Determining whether or not the system is connected to the Internet
How to empty the Recycle Bin
Obtaining the bounding rectangle for the specified device context
PocketPC: custom RAPI class for executing routines on remote Windows CE device
Returning some basic information for the specified INF file
Simple MAPI: how to pick an email recipient from Outlook Express address book
Using GetNearestColor
Winsock: retrieving information from a host database for a given host name
Reading virtual key status values and key names
Retrieving list of files on the FTP directory
Converting twips to pixels and vice versa
Creating a directory on the FTP
How to initiate System shutdown
Obtaining MAC address through Address Resolution Protocol (ARP) request
Using shared memory to exchange data between two FoxPro applications
Winsock: initializing the service in the VFP application
How to display picture stored in enhanced-format metafile (*.emf)
How to view icons stored in executable files (Icon Viewer) - II
Power capabilities of the system: battery, UPS, sleep and hibernation modes, processor throttling

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
 
  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:
  • ~
4011 bytes  
Created: 2003-03-22 20:15:36  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 127  
Listed functions:
GetPwrCapabilities
Printer friendly API declarations
My comment:
With this code you can define is your system is currently running using a battery, and whether this battery is a UPS (uninterruptible power supply) short-term battery or a regular portable computer battery.

Another Power Management function that I would recommend is the GetSystemPowerStatus.
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)
1.16 hrs.Function: 'RegOpenKeyEx'
 Example: 'Obtaining the System and Windows folder names'
 Function: 'CreateProcess'
Function group: 'Process and Thread'
3.98 hrs.Example: 'How to retrieve number of objects in the Recycle Bin'
6.95 hrs.Function: 'GetTickCount'
 Function: 'GetActiveWindow'
9.02 hrs.Function: 'ReleaseDC'
9.71 hrs.Function: 'HttpSendRequest'
11.34 hrs.Function: 'RegQueryInfoKey'
 Function: 'EnumServicesStatus'
Google
Advertise here!