![VersaLogic EPM-5 Скачать руководство пользователя страница 32](http://html.mh-extra.com/html/versalogic/epm-5/epm-5_reference-manual_1006774032.webp)
System Features
EPM-5 Reference Manual
26
SetSystemPowerState Function
The “Power Management Reference” in the MSDN Library
(
http://msdn.microsoft.com/library/default.asp
) contains complete information on the API
available for power control under Windows. The “Power Management Functions” section
provides complete information on the use of the API.
The function used to set the system power state is SetSystemPowerState. This function suspends
the system by shutting power down. Depending on the
ForceFlag
parameter, the function either
suspends operation immediately or requests permission from all applications and device drivers
before doing so.
BOOL SetSystemPowerState(
BOOL
fSuspend
,
BOOL
fForce
);
Parameters:
fSuspend
[in] If this parameter is TRUE, the system is suspended. If the parameter is FALSE, the
system hibernates. This parameter is ignored in Windows Me/98/95.
fForce
[in] If this parameter is TRUE, the function broadcasts a PBT_APMSUSPEND event to
each application and driver, then immediately suspends operation. If the parameter is
FALSE, the function broadcasts a PBT_APMQUERYSUSPEND event to each
application to request permission to suspend operation.
W
AKEUP
A pushbutton or relay can be attached to connector J2 on the CBL/CBR-5010 utility board. Pin 3
is ground, and pin 4 (or pin 40 of motherboard utility connector J8) is the pushbutton input. A
3.3V or 5V TTL signal can also drive pin 4. This circuit on the EPM-5 motherboard has a 10k
pull-up resistor.