Add session access rights
This commit is contained in:
parent
d83d7003c8
commit
328e059152
|
@ -130,6 +130,11 @@ PSI_ACCESS propGetAccessTable(
|
|||
AccessTable = (PSI_ACCESS)&JobAccessValues;
|
||||
break;
|
||||
|
||||
case ObjectTypeSession:
|
||||
This->dwAccessMax = MAX_KNOWN_SESSION_ACCESS_VALUE;
|
||||
AccessTable = (PSI_ACCESS)&SessionAccessValues;
|
||||
break;
|
||||
|
||||
case ObjectTypeIoCompletion:
|
||||
This->dwAccessMax = MAX_KNOWN_IOCOMPLETION_ACCESS_VALUE;
|
||||
AccessTable = (PSI_ACCESS)&IoCompletionAccessValues;
|
||||
|
|
|
@ -191,6 +191,15 @@ static SI_ACCESS PortAccessValues[MAX_KNOWN_PORT_ACCESS_VALUE] = {
|
|||
{ &GUID_NULL, PORT_CONNECT, L"Connect", SI_ACCESS_GENERAL | SI_ACCESS_SPECIFIC }
|
||||
};
|
||||
|
||||
//
|
||||
//Session Access Values
|
||||
//
|
||||
#define MAX_KNOWN_SESSION_ACCESS_VALUE 2
|
||||
static SI_ACCESS SessionAccessValues[MAX_KNOWN_SESSION_ACCESS_VALUE] = {
|
||||
{ &GUID_NULL, SESSION_QUERY_ACCESS, L"Query", SI_ACCESS_GENERAL | SI_ACCESS_SPECIFIC },
|
||||
{ &GUID_NULL, SESSION_MODIFY_ACCESS, L"Modify", SI_ACCESS_GENERAL | SI_ACCESS_SPECIFIC }
|
||||
};
|
||||
|
||||
//
|
||||
//IoCompletion Access Values
|
||||
//
|
||||
|
|
|
@ -119,6 +119,11 @@ VOID propSetTypeDecodeValue(
|
|||
Count = MAX_KNOWN_JOB_ATTRIBUTES;
|
||||
break;
|
||||
|
||||
case ObjectTypeSession:
|
||||
Desc = a_SessionProp;
|
||||
Count = MAX_KNOWN_SESSION_ATTRIBUTES;
|
||||
break;
|
||||
|
||||
case ObjectTypeDesktop:
|
||||
Desc = a_DesktopObjectProp;
|
||||
Count = MAX_KNOWN_DESKTOP_ATTRIBUTES;
|
||||
|
|
|
@ -240,6 +240,13 @@ static VALUE_DESC a_JobProp[MAX_KNOWN_JOB_ATTRIBUTES] = {
|
|||
{ L"JOB_OBJECT_SET_SECURITY_ATTRIBUTES", JOB_OBJECT_SET_SECURITY_ATTRIBUTES }
|
||||
};
|
||||
|
||||
//Known Session Access Rights
|
||||
#define MAX_KNOWN_SESSION_ATTRIBUTES 2
|
||||
static VALUE_DESC a_SessionProp[MAX_KNOWN_SESSION_ATTRIBUTES] = {
|
||||
{ L"SESSION_QUERY_ACCESS", SESSION_QUERY_ACCESS },
|
||||
{ L"SESSION_MODIFY_ACCESS", SESSION_MODIFY_ACCESS }
|
||||
};
|
||||
|
||||
//Known KeyedEvent Access Rights
|
||||
#define MAX_KNOWN_KEYEDEVENT_ATTRIBUTES 2
|
||||
static VALUE_DESC a_KeyedEventProp[MAX_KNOWN_KEYEDEVENT_ATTRIBUTES] = {
|
||||
|
|
Loading…
Reference in New Issue