📎 AI Summary:
The user reports an issue in Windows 10 (version 10.0.18362) where displaying a user-interactive message box in a Windows service prevents the Power menu options (Sleep, Shut down, Restart) from appearing when clicking the power button or account button from the Start menu, an issue not present in earlier Windows versions. They inquire whether this could be a Windows 10 bug. Subsequent comments suggest that the question might be better suited for a programming forum rather than general Windows discussion, with one user noting that the conversation was moved to a programming and scripting category for clarity. Overall, the thread revolves around troubleshooting a potential Windows or application behavior change affecting user interaction with system power options.

fewcomeye

New Member
Joined
Sep 25, 2019
Messages
2
Thread Author #1
On Windows 10, version: 10.0.18362, I have a Windows service application. In the service process, when I use the following code to display a user interactive message box:
//Start Impersonate Loggon User
MessageBox(IntPtr.Zero, message, caption, MB_DEFAULT_DESKTOP_ONLY | MB_YESNO | MB_ICONWARNING);
//Stop Impersonate Loggon User
Then I found can not show Popup menu items (Sleep, Shut down, Restart) when clicking Power button (and the account button) from the start menu. And after I close the message box, the issue does not exist.

Note: This issue does not exist on previous versions of Windows, for example RS4 and RS5.

I am wondering whether it is a Windows 10 Bug.
Could you help on this? Thanks.
 

Last edited:

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,995
You'd be better served asking this on a programming forum.
 

ussnorway

Windows Forum Team
Staff member
Joined
May 22, 2012
Messages
4,598
sorry I deleted the 2nd post ... so moved this to Programing & Scripting

p.s, if this is the Pro I would assume Sandbox... as to if its a bug or by design?
 

Last edited: