GetThreadDesktop function Null safety user32

int GetThreadDesktop(
  1. int dwThreadId
)

Retrieves a handle to the desktop assigned to the specified thread.

HDESK GetThreadDesktop(
  DWORD dwThreadId
);

Implementation

int GetThreadDesktop(int dwThreadId) => _GetThreadDesktop(dwThreadId);