OpenDesktop function Null safety user32

int OpenDesktop(
  1. Pointer<Utf16> lpszDesktop,
  2. int dwFlags,
  3. int fInherit,
  4. int dwDesiredAccess
)

Opens the specified desktop object.

HDESK OpenDesktopW(
  LPCWSTR     lpszDesktop,
  DWORD       dwFlags,
  BOOL        fInherit,
  ACCESS_MASK dwDesiredAccess
);

Implementation

int OpenDesktop(Pointer<Utf16> lpszDesktop, int dwFlags, int fInherit,
        int dwDesiredAccess) =>
    _OpenDesktop(lpszDesktop, dwFlags, fInherit, dwDesiredAccess);