views:

49

answers:

1

I want to find & enumerate explorer.exe.

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

+1  A: 

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.

Dilbert61
true! yes 'ExploreWClass' you are right! I enumerate the childbut I suppose can list the explorer 'folder windows' it cant..thnx for quick answer--make a loop :vb.net :dohwnd = FindWindowEx(IntPtr.Zero, 0, "CabinetWClass", Nothing)loop until hwnd=0lists all forlder windows!
takis