FindWindow question


I have the following problems:


I want to find all windows which have the following class: "class1" but i dont want to enumerate through ALL windows and select the ones that have the right class . Is this possible? ( i dont want to use callbacks)

For instance when i do:

int hwnd = FindWindow("class1",null)

It will find 1 window of the correct class. but when i call it again
it will just find the same window again. Another thing i tried

hwnd = User32.GetWindow(hwnd, GW_HWNDNEXT);

But this just gives me the next window, which is not the right class.

2) is it possible to only find visible windows? FindWindow also
finds non visible windows, but i am not interested in them.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!