Which Win API that diffrentiate S3 and S5 Power Mode?

E

EunHui Kim

"About Power-Meter setting control, It's setted that when press power button, system shutdown."

But When press power button, it goes S3 not S5.


About S3 operation,

my Shell works in this procedure,
If they get the WM_POWERBROADCAST message,

then if PBT_APMQUERYSUSPEND,

then my shell wait until other programs are gone in normal,

after others are gone,

my shell goes S3 mode.



But As the result we query power states while going S3 and S5,

both power modes send the same message,

(this operation is different from XP Pro.

I guess maybe this problem is also from minlogon.)



So, I want to know the SYSTEM_POWER_STATE correctly.

Please give me some information about this?





(office) +82-2-2191-4948
(anycall) +82-16-396-9783
(email) (e-mail address removed)
±è Àº Èñ(Kim, Eunhui)
¼±ÀÓ ¿¬±¸¿ø

Software Engineer
Device Solution Group
Solution Development Team
Digital Solution Center
SAMSUNG ELECTRONICS CO.,LTD
 
J

JC

Kim,

Take a look here:
http://msdn.microsoft.com/library/d...l/xerefPowerManagementControlAPIReference.asp

This explains the PM API useage for XPE...

Also, look here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/power/base/system_power_state.asp

This explains the API for the System_Power_State.



Also, The power button control is usually governed by the system BIOS, and then you have to have all ACPI components in your image... the system drivers all have to be functioning correctly as well, in order for this to work properly.

if the system is going S3 instead of S5, check the system BIOS, to make sure that APM is set to go S5 when power button is pressed... seems pretty basic, but I have overlooked this many times in the past! :)

HTH,
JC

--
JC- BSquare Corp.
If you wish to reply directly to me, remove the <nospam_ > from the address.



"About Power-Meter setting control, It's setted that when press power button, system shutdown."

But When press power button, it goes S3 not S5.


About S3 operation,

my Shell works in this procedure,
If they get the WM_POWERBROADCAST message,

then if PBT_APMQUERYSUSPEND,

then my shell wait until other programs are gone in normal,

after others are gone,

my shell goes S3 mode.



But As the result we query power states while going S3 and S5,

both power modes send the same message,

(this operation is different from XP Pro.

I guess maybe this problem is also from minlogon.)



So, I want to know the SYSTEM_POWER_STATE correctly.

Please give me some information about this?





(office) +82-2-2191-4948
(anycall) +82-16-396-9783
(email) (e-mail address removed)
±è Àº Èñ(Kim, Eunhui)
¼±ÀÓ ¿¬±¸¿ø

Software Engineer
Device Solution Group
Solution Development Team
Digital Solution Center
SAMSUNG ELECTRONICS CO.,LTD
 
E

EunHui Kim

Thank U JC.
*Have a greate day*
Kim,

Take a look here:
http://msdn.microsoft.com/library/d...l/xerefPowerManagementControlAPIReference.asp

This explains the PM API useage for XPE...

Also, look here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/power/base/system_power_state.asp

This explains the API for the System_Power_State.



Also, The power button control is usually governed by the system BIOS, and then you have to have all ACPI components in your image... the system drivers all have to be functioning correctly as well, in order for this to work properly.

if the system is going S3 instead of S5, check the system BIOS, to make sure that APM is set to go S5 when power button is pressed... seems pretty basic, but I have overlooked this many times in the past! :)

HTH,
JC

--
JC- BSquare Corp.
If you wish to reply directly to me, remove the <nospam_ > from the address.



"About Power-Meter setting control, It's setted that when press power button, system shutdown."

But When press power button, it goes S3 not S5.


About S3 operation,

my Shell works in this procedure,
If they get the WM_POWERBROADCAST message,

then if PBT_APMQUERYSUSPEND,

then my shell wait until other programs are gone in normal,

after others are gone,

my shell goes S3 mode.



But As the result we query power states while going S3 and S5,

both power modes send the same message,

(this operation is different from XP Pro.

I guess maybe this problem is also from minlogon.)



So, I want to know the SYSTEM_POWER_STATE correctly.

Please give me some information about this?





(office) +82-2-2191-4948
(anycall) +82-16-396-9783
(email) (e-mail address removed)
±è Àº Èñ(Kim, Eunhui)
¼±ÀÓ ¿¬±¸¿ø

Software Engineer
Device Solution Group
Solution Development Team
Digital Solution Center
SAMSUNG ELECTRONICS CO.,LTD
 
Top