I'm currently using EnumWindows, as I need to close a particular window based on the caption.
Unfortunately this does not work when the machine is locked - the EnumWindows function does not list certain windows. The window I am searching for is a popup which appears above the Windows Locked Screen Message. It is just a "#32770 (Dialog)", nothing special.
Is there any other way to locate such a window within a locked screen? I've also tried FindWindow, etc. All Win32 APIS work fine except when the machine is in a locked/logged off mode.