Application.GetWndHandle

number Application.GetWndHandle (

)

Description

Returns the numeric window handle for the main installer window. To retrieve the window handle of individual screens, use Screen.GetProperties. The main window's window handle is useful when you want to perform an action on the entire application, such as minimizing, closing, etc.

Note: This action returns the window handle for the entire setup, whether a background window is visible or not.

Parameters

None.

Returns

(number) The numeric window handle for the installer. If an error occurs, -1 will be returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.

See also:  Related Actions