Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hibernating windows 2000
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00658049
Message ID:
00662938
Views:
24
This message has been marked as the solution to the initial question of the thread.
>Sorry for the late reply, but i was busy :)
>
>But, i don't get that function to work.
>It doesn't look like an valid API call, and also VFP doesn't have a datatype for sending BOOLs to a API function.


You can use integer type with 1 represetning True, and 0 - False.

>It also stats about a "powrprof.lib" which i can't find on my HD.
>
>Do you have an exmaple of getting this to work ?


All examples in the article are for a C/C++ language. Here's the code that works on my WIn2kSP2 PC.
DECLARE Integer SetSuspendState IN Powrprof.dll ;
  Integer Hibernate, ;
  Integer ForceCritical, ;
  Integer DisableWakeEvent
SetSuspendState(1,0,0)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform