FindWindow
InstallShield 2024 » InstallScript Language Reference
The FindWindow function provides a way for advanced developers to get a handle to a window by specifying its window class and window name. If you know the class and window name of an application, you can get its handle. You can then use that handle to send messages directly to the window.
Tip:To find the class and name of a window, run the Microsoft Spy.exe program.
Syntax
FindWindow ( szClassName, szWinName );
Parameters
Parameter |
Description |
szClassName |
Specifies the name of the class to which the window belongs. To specify “any class,” pass a null string in this parameter. |
szWinName |
Specifies the window caption (title). To return the handle of the topmost window in the specified class, pass a null string ("") in this parameter. |
Return Values
Return Value |
Description |
XXXX |
The handle of the window. |
NULL (0) |
FindWindow was unable to find a window with the specified name and class name. |
See Also