Ejemplo n.º 1
0
 /// <summary>
 /// Create a new desktop.
 /// </summary>
 /// <param name="object_attributes">The object attributes for opening.</param>
 /// <param name="flags">Flags for opening the desktop.</param>
 /// <param name="desired_access">Desired access.</param>
 /// <param name="device">Device name.</param>
 /// <param name="dev_mode">Device mode.</param>
 /// <param name="heap_size">Heap size.</param>
 /// <returns>An instance of NtDesktop.</returns>
 public static NtDesktop Create(ObjectAttributes object_attributes, string device,
                                DEVMODE dev_mode, CreateDesktopFlags flags, DesktopAccessRights desired_access, int heap_size)
 {
     return(Create(object_attributes, device, dev_mode, flags, desired_access, heap_size, true).Result);
 }
Ejemplo n.º 2
0
 public static extern SafeKernelObjectHandle NtUserCreateDesktopEx(
     ObjectAttributes ObjectAttributes, UnicodeString Device,
     DEVMODE DevMode, CreateDesktopFlags Flags,
     DesktopAccessRights DesiredAccess,
     int HeapSize);