GetFocus function Null safety user32

int GetFocus()

Retrieves the handle to the window that has the keyboard focus, if the window is attached to the calling thread's message queue.

HWND GetFocus();

Implementation

int GetFocus() => _GetFocus();