- 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.
//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.
- Joined
- Jul 4, 2015
- Messages
- 8,999
- Thread Author
- #3
Okay, thanks for your suggestion.You'd be better served asking this on a programming forum.
- Joined
- May 22, 2012
- Messages
- 4,443
Similar threads
- Solved
- Replies
- 7
- Views
- 11K