CreateWindowStation function user32

int CreateWindowStation(
  1. Pointer<Utf16> lpwinsta,
  2. int dwFlags,
  3. int dwDesiredAccess,
  4. Pointer<SECURITY_ATTRIBUTES> lpsa,
)

Creates a window station object, associates it with the calling process, and assigns it to the current session.

HWINSTA CreateWindowStationW(
  LPCWSTR               lpwinsta,
  DWORD                 dwFlags,
  ACCESS_MASK           dwDesiredAccess,
  LPSECURITY_ATTRIBUTES lpsa
);

Implementation

int CreateWindowStation(Pointer<Utf16> lpwinsta, int dwFlags,
        int dwDesiredAccess, Pointer<SECURITY_ATTRIBUTES> lpsa) =>
    _CreateWindowStation(lpwinsta, dwFlags, dwDesiredAccess, lpsa);