CreateDesktopEx function user32
Creates a new desktop with the specified heap, 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 CreateDesktopExW(
LPCWSTR lpszDesktop,
LPCWSTR lpszDevice,
DEVMODEW *pDevmode,
DWORD dwFlags,
ACCESS_MASK dwDesiredAccess,
LPSECURITY_ATTRIBUTES lpsa,
ULONG ulHeapSize,
PVOID pvoid
);
Implementation
int CreateDesktopEx(
Pointer<Utf16> lpszDesktop,
Pointer<Utf16> lpszDevice,
Pointer<DEVMODE> pDevmode,
int dwFlags,
int dwDesiredAccess,
Pointer<SECURITY_ATTRIBUTES> lpsa,
int ulHeapSize,
Pointer pvoid) =>
_CreateDesktopEx(lpszDesktop, lpszDevice, pDevmode, dwFlags,
dwDesiredAccess, lpsa, ulHeapSize, pvoid);