# Function Reference

IsHWnd

Checks if a variable's base type is HWND.

IsHWnd ( variable )

Parameters

variable | The variable/expression to check.

Return Value

Success: | Returns 1.
Failure: | Returns 0 if expression is not HWND type.

Remarks

Related

IsArray, IsFloat, IsInt, IsString, IsNumber

Example

Run("notepad.exe")
Local $hWnd = WinGetHandle("Untitled - Notepad")
If IsHWnd($hWnd) Then
MsgBox(4096, "", "It's a valid HWND")
Else
MsgBox(4096, "", "It's not an HWND")
EndIf