Using Win32 functions in Visual FoxPro Image Gallery
Power Management
..msdn
GetPwrCapabilities
GetSystemPowerStatus
IsPwrSuspendAllowed
SetSuspendState
SetSystemPowerState
SetThreadExecutionState
Code examples:
Get the power status of your laptop computer
GetSystemPowerStatus
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the power status of the system. The status indicates whether the system is running on AC or DC power, whether the battery is currently charging, and how much battery life remains.
Code examples:
Get the power status of your laptop computer
Declaration:
BOOL GetSystemPowerStatus(
  LPSYSTEM_POWER_STATUS lpSystemPowerStatus
);
FoxPro declaration:
DECLARE INTEGER GetSystemPowerStatus IN kernel32;
    STRING @lpSystemPowerStatus

Parameters:
lpSystemPowerStatus
[out] Pointer to a SYSTEM_POWER_STATUS structure that receives status information.
Return value:
If the function succeeds, the return value is nonzero.
Word Index links for the GetSystemPowerStatus :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-03-17 17:01:28
Modified: 2006-01-13 20:25:07
Visited in last 7 days: 25
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.227.127.109)
17 sec.Function: 'ClipCursor'
35 sec.Function: 'if_nametoindex'
52 sec.Function: 'MQDeleteQueue'
1.17 min.Function: 'GetModuleBaseName'
1.47 min.Function: 'GdipGetImageWidth'
1.75 min.Function: 'StrCpy'
2.02 min.Function: 'GetSystemRegistryQuota'
2.33 min.Function: 'HttpOpenRequest'
2.65 min.Function: 'GetProcessIoCounters'
2.92 min.Function: 'GetIpAddrTable'
Google
Advertise here!