Create a form (I'm using .NET 2.0) with a button click event:
{ Thread.Sleep(3000); ExitWindowsEx(0,0); // shutdown }
Hit the button, press Left-WindowsKey + L to lock the desktop. The shutdown fails.
ExitWindowsEx returns 1 (Success).
I would like to know why this API fails and what else might fail when the desktop is locked?