Function Reference


_WinAPI_GetClassName

Retrieves the name of the class to which the specified window belongs

#include <WinAPI.au3>
_WinAPI_GetClassName ( $hWnd )

Parameters

$hWnd Handle of window

Return Value

Success: The window class name
Failure: Empty string, call _WinAPI_GetLastError() to get extended error information

See Also

Search GetClassName in MSDN Library.

Example

#include <MsgBoxConstants.au3>
#include <WinAPI.au3>

Example()

Func Example()
    Local $hWnd
    $hWnd = GUICreate("test")
    MsgBox($MB_SYSTEMMODAL, "Get ClassName", "ClassName of " & $hWnd & ": " & _WinAPI_GetClassName($hWnd))
EndFunc   ;==>Example