public TokenSecurity(IntPtr tokenHandle, AccessControlSections sectionsRequested)
     : base(BaseSecurity.GetReadHandle(tokenHandle), ResourceType.KernelObject, sectionsRequested, false)
 {
 }
Example #2
0
 public WaitObjectSecurity(IntPtr waitObjectHandle, AccessControlSections sectionsRequested)
     : base(BaseSecurity.GetReadHandle(waitObjectHandle), ResourceType.KernelObject, sectionsRequested, false)
 {
 }
Example #3
0
 public FileSecurity(IntPtr fileHandle, AccessControlSections sectionsRequested)
     : base(BaseSecurity.GetReadHandle(fileHandle), ResourceType.FileObject, sectionsRequested, false)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DesktopSecurity"/> class.
 /// </summary>
 /// <param name="desktopHandle">The desktop handle.</param>
 /// <param name="sectionsRequested">The sections requested.</param>
 public DesktopSecurity(IntPtr desktopHandle, AccessControlSections sectionsRequested)
     : base(BaseSecurity.GetReadHandle(desktopHandle, NativeMethods.CloseDesktop), ResourceType.WindowObject, sectionsRequested, false)
 {
 }
Example #5
0
 public DirectorySecurity(IntPtr directoryHandle, AccessControlSections sectionsRequested)
     : base(BaseSecurity.GetReadHandle(directoryHandle), ResourceType.FileObject, sectionsRequested, true)
 {
 }
Example #6
0
 public ThreadSecurity(IntPtr threadHandle, AccessControlSections sectionsRequired)
     : base(BaseSecurity.GetReadHandle(threadHandle), ResourceType.KernelObject, sectionsRequired, false)
 {
 }
 public WindowStationSecurity(IntPtr windowStationHandle, AccessControlSections sectionsRequested)
     : base(BaseSecurity.GetReadHandle(windowStationHandle, NativeMethods.CloseWindowStation), ResourceType.WindowObject, sectionsRequested, false)
 {
 }