[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

EnumWindows doesn't find window when screen/desktop is locked

Asked by GMahler in Visual Basic Programming, Windows 2000 Operating System

Tags: EnumWindows, VB, Visual Basic, API, locked computer

Hi there,

I'm using the API function "EnumWindows" in a VB 6 application to find a particular message box window based on its title.

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 (modal) popup (a class "#32770 (Dialog)") and I need to "click" a button by code to close it. This works when the machine is not locked, but due to remote administration software NetOp the lock kicks in automatically each time the user disconnects the remote session. The application runs in a Windows 2000 environment.

Is there any other way to locate such a window within a locked screen? The API seems to work fine and finds every other window (I logged it to a file), except this one.

I'm aware that the same question was posted 5 years ago, but the hints in the solution, that were enough for the poster of the question to solve his problem, don't do it for me.

Thanks in advance,
Georg
[+][-]11/06/09 10:27 AM, ID: 25761655Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625