takis
takis

Reputation: 1

find explorer.exe hwnd

I want to find & enumerate explorer.exe.

Found 'EnumChildWindows' API call but how to 'get' explorer.exe hwnd ???

Upvotes: 0

Views: 1058

Answers (1)

Dilbert61
Dilbert61

Reputation: 51

In your enum callback procedure, you can call GetClassName and look for top level hWNDs with the approprate classname for Explorer (ExploreWClass I think - can find with Spy++).

I think you want EnumWindows to enum the top level windows, not EnumChildWindows.

Upvotes: 1

Related Questions