GetClassName function user32

int GetClassName(
  1. int hWnd,
  2. Pointer<Utf16> lpClassName,
  3. int nMaxCount
)

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

int GetClassNameW(
  [in]  HWND   hWnd,
  [out] LPWSTR lpClassName,
  [in]  int    nMaxCount
);

Implementation

int GetClassName(int hWnd, Pointer<Utf16> lpClassName, int nMaxCount) =>
    _GetClassName(hWnd, lpClassName, nMaxCount);