HWND FindWindow(lpClassName,lpWindowName)
This function returns the handle of the window whose class is given by the lpClassName parameter and whose window name, or caption, is given by the lpWindowName parameter. This function does not search child windows.
Parameter | Type/Description |
lpClassName | LPSTR Points to a null-terminated character string that specifies the window's class name. If lpClassName is NULL, all class names match. | |
lpWindowName | LPSTR Points to a null-terminated character string that specifies the window name (the window's text caption). If lpWindowName is NULL, all window names match. |
The return value identifies the window that has the specified class name and window name. It is NULL if no such window is found.