E
EunHui Kim
Hi!
My XPE image is minlgon.
The Scenario:
and before the system goes S3, wanna kill working APPs.
and resume from the top menu of customized shell.
So I want to differentiate S3 and S5.
If the system goes S5, OS automatically kill all working APPs.
Source :
LRESULT CAPP_SHUTDOWNDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
if (message==WM_POWERBROADCAST)
{
switch(wParam)
{
case PBT_APMQUERYSUSPEND:
// Deny Suspension
return BROADCAST_QUERY_DENY;
//else
return TRUE;
break;
}
}
return CDialog::WindowProc(message, wParam, lParam);
}
Problem States:
In normal, if the system goes S5, OS sends "WM_POWERBROADCAST" without "PBT_APMQUERYSUSPEND".
But minlogon XPE image always sends "PBT_APMQUERYSUSPEND" not concerning of S3 and S5.
Question:
What's the cause of this problem?
and How to solve this?
Thanks!
My XPE image is minlgon.
The Scenario:
and before the system goes S3, wanna kill working APPs.
and resume from the top menu of customized shell.
So I want to differentiate S3 and S5.
If the system goes S5, OS automatically kill all working APPs.
Source :
LRESULT CAPP_SHUTDOWNDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
if (message==WM_POWERBROADCAST)
{
switch(wParam)
{
case PBT_APMQUERYSUSPEND:
// Deny Suspension
return BROADCAST_QUERY_DENY;
//else
return TRUE;
break;
}
}
return CDialog::WindowProc(message, wParam, lParam);
}
Problem States:
In normal, if the system goes S5, OS sends "WM_POWERBROADCAST" without "PBT_APMQUERYSUSPEND".
But minlogon XPE image always sends "PBT_APMQUERYSUSPEND" not concerning of S3 and S5.
Question:
What's the cause of this problem?
and How to solve this?
Thanks!