Get window handle from window class name

Posted by Einar Egilsson on Stack Overflow See other posts from Stack Overflow or by Einar Egilsson
Published on 2010-05-31T13:47:32Z Indexed on 2010/05/31 13:53 UTC
Read the original article Hit count: 437

Filed under:
|
|
|

I'm trying to get a window handle on a child window in my process and the only information I have is the window class name. Are there any win32 functions I can use for that? I'm doing this from C#.

A bit more detail: This is a Visual Studio plugin, written in C#. So my process is visual studio, which has lots of windows. One of them has a window class "VsTipWindow". I don't know the immediate parent window of that window, all I have is the class name. Is there any way for me to get the window handle from just that?

© Stack Overflow or respective owner

Related posts about c#

Related posts about win32