Cetin,
Glad you're moving forward!
Does CreateProcess return a different process ID as well for the second call? There is nothing in MSDN or Support about returning an invalid ID.
>Larry,
>Almost done :) Enumthreadwindows gets all top windows as you said. One thing to overcome.
>CreateProcess doesn't return a valid threadid 2nd time it's called (with an app like word). Returned dwThreadID is not locatable with Spy++ too. If I keep the first call's threadID and use it then EnumThreadWindows returns all window handles (document1, document2).
>Cetin
>
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao