SetFocus function Null safety user32

int SetFocus(
  1. int hWnd
)

Sets the keyboard focus to the specified window. The window must be attached to the calling thread's message queue.

HWND SetFocus(
  HWND hWnd
);

Implementation

int SetFocus(int hWnd) => _SetFocus(hWnd);