minlogon XPE image when going to S5

  • Thread starter Thread starter EunHui Kim
  • Start date Start date
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!
 
Dear Slobodan~

Actually I applied all QFE until now.
Maybe you mean power related QFE 833642.
If you want to know whether I install this QFE or not, I installed it.

Thanks.

Hi,

First question:
What minlogon QFE do you use?

Best regards,
Slobodan

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!
 
Could you give me an idea to uninstall QFE?
I coundn't see thoese hotfixes in the "Add/Remove Porgrams".

Try uninstalling it.

Then remove minlogon component from project, and add it again, then rebuild.
I'm interested in behavior without this QFE update since there were changes involving how there messages are generated.

Best regards,
Slobodan


Dear Slobodan~

Actually I applied all QFE until now.
Maybe you mean power related QFE 833642.
If you want to know whether I install this QFE or not, I installed it.

Thanks.

Hi,

First question:
What minlogon QFE do you use?

Best regards,
Slobodan

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!
 
Dear Slobadan:

After I uninstall that QFE and rebuild the image(minlogon,cmd shell),
I saw more strange states.
The power-off button doesn't work on the XPE bare image.
The default power meter option was "Always On".
When I run the test program (which is for the power message),
and I press the power button,
It also send the "WM_POWERBROADCAST" and "PBT_APMQUERYSUSPEND" together.

I think MS should renew SP2 which clear this issue.
1. Open "Component Database Manager"
2. Open "Packages" page.
3. Check appropriate QFE.
4. Delete Package option.
5. QFE is no more.

Best regards,
Slobodan


Could you give me an idea to uninstall QFE?
I coundn't see thoese hotfixes in the "Add/Remove Porgrams".

Try uninstalling it.

Then remove minlogon component from project, and add it again, then rebuild.
I'm interested in behavior without this QFE update since there were changes involving how there messages are generated.

Best regards,
Slobodan


Dear Slobodan~

Actually I applied all QFE until now.
Maybe you mean power related QFE 833642.
If you want to know whether I install this QFE or not, I installed it.

Thanks.

Hi,

First question:
What minlogon QFE do you use?

Best regards,
Slobodan

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!
 
Back
Top