CreateDesktop function user32
Creates a new desktop, associates it with the current window station of the calling process, and assigns it to the calling thread. The calling process must have an associated window station, either assigned by the system at process creation time or set by the SetProcessWindowStation function.
HDESK CreateDesktopW(
LPCWSTR lpszDesktop,
LPCWSTR lpszDevice,
DEVMODEW *pDevmode,
DWORD dwFlags,
ACCESS_MASK dwDesiredAccess,
LPSECURITY_ATTRIBUTES lpsa
);
Implementation
int CreateDesktop(
Pointer<Utf16> lpszDesktop,
Pointer<Utf16> lpszDevice,
Pointer<DEVMODE> pDevmode,
int dwFlags,
int dwDesiredAccess,
Pointer<SECURITY_ATTRIBUTES> lpsa) =>
_CreateDesktop(
lpszDesktop, lpszDevice, pDevmode, dwFlags, dwDesiredAccess, lpsa);