15#define DESKTOP_READ (STANDARD_RIGHTS_READ | \
19#define DESKTOP_WRITE (STANDARD_RIGHTS_WRITE | \
20 DESKTOP_CREATEMENU | \
21 DESKTOP_CREATEWINDOW | \
22 DESKTOP_HOOKCONTROL | \
23 DESKTOP_JOURNALPLAYBACK | \
24 DESKTOP_JOURNALRECORD | \
27#define DESKTOP_EXECUTE (STANDARD_RIGHTS_EXECUTE | \
28 DESKTOP_SWITCHDESKTOP)
30#define DESKTOP_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
31 DESKTOP_CREATEMENU | \
32 DESKTOP_CREATEWINDOW | \
34 DESKTOP_HOOKCONTROL | \
35 DESKTOP_JOURNALPLAYBACK | \
36 DESKTOP_JOURNALRECORD | \
37 DESKTOP_READOBJECTS | \
38 DESKTOP_SWITCHDESKTOP | \
42#define WINSTA_READ (STANDARD_RIGHTS_READ | \
43 WINSTA_ENUMDESKTOPS | \
45 WINSTA_READATTRIBUTES | \
48#define WINSTA_WRITE (STANDARD_RIGHTS_WRITE | \
49 WINSTA_ACCESSCLIPBOARD | \
50 WINSTA_CREATEDESKTOP | \
51 WINSTA_WRITEATTRIBUTES)
53#define WINSTA_EXECUTE (STANDARD_RIGHTS_EXECUTE | \
54 WINSTA_ACCESSGLOBALATOMS | \
57#define WINSTA_ACCESS_ALL (STANDARD_RIGHTS_REQUIRED | \
58 WINSTA_ACCESSCLIPBOARD | \
59 WINSTA_ACCESSGLOBALATOMS | \
60 WINSTA_CREATEDESKTOP | \
61 WINSTA_ENUMDESKTOPS | \
63 WINSTA_EXITWINDOWS | \
64 WINSTA_READATTRIBUTES | \
66 WINSTA_WRITEATTRIBUTES)
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSTATUS NTAPI IntAssignDesktopSecurityOnParse(_In_ PWINSTATION_OBJECT WinSta, _In_ PDESKTOP Desktop, _In_ PACCESS_STATE AccessState)
Assigns a security descriptor to the desktop object during a desktop object parse procedure.
NTSTATUS IntQueryUserSecurityIdentification(_Out_ PTOKEN_USER *User)
Queries the authenticated user security identifier (SID) that is associated with the security context...
HANDLE IntCaptureCurrentAccessToken(VOID)
PVOID IntAllocateSecurityBuffer(_In_ SIZE_T Length)
Allocates a buffer within UM (user mode) address space area. Such buffer is reserved for security pur...
NTSTATUS NTAPI IntCreateServiceSecurity(_Out_ PSECURITY_DESCRIPTOR *ServiceSd)
Creates a security descriptor for the service.
VOID IntFreeSecurityBuffer(_In_ PVOID Buffer)
Frees an allocated security buffer from UM memory that is been previously allocated by IntAllocateSec...
_In_opt_ PVOID _In_opt_ PUNICODE_STRING _In_ PSECURITY_DESCRIPTOR _In_ PACCESS_STATE AccessState