GetWindowTextLength function user32

Win32Result<int> GetWindowTextLength(
  1. HWND hWnd
)

Retrieves the length, in characters, of the specified window's title bar text (if the window has a title bar).

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getwindowtextlengthw.

Implementation

Win32Result<int> GetWindowTextLength(HWND hWnd) {
  final result_ = GetWindowTextLengthW_Wrapper(hWnd);
  return Win32Result(value: result_.value.i32, error: result_.error);
}