win32service.CreateDesktop

PyHDESK = CreateDesktop(Desktop, Flags , DesiredAccess , SecurityAttributes )

Creates a new desktop in calling process's current window station

Parameters

Desktop : str/unicode

Name of desktop to create

Flags : int

DF_ALLOWOTHERACCOUNTHOOK or 0

DesiredAccess : int

An ACCESS_MASK determining level of access available thru returned handle

SecurityAttributes : PySECURITY_ATTRIBUTES

Specifies inheritance and controls access to desktop