Windows Dev Center

IPrincipal2::ProcessTokenSidType property

Gets or sets the task process security identifier (SID) type.

This property is read/write.

Syntax


HRESULT put_ProcessTokenSidType(
  [in]          TASK_PROCESSTOKENSID_TYPE processTokenSidType
);

HRESULT get_ProcessTokenSidType(
  [out, retval] TASK_PROCESSTOKENSID_TYPE *pProcessTokenSidType
);

Property value

Sets to one of the following TASK_PROCESSTOKENSID TYPE enumeration constants.

ValueMeaning
TASK_PROCESSTOKENSID_NONE
0

No changes will be made to the process token groups list.

TASK_PROCESSTOKENSID_UNRESTRICTED
1

A task SID derived from the task name will be added to the process token groups list and the token default DACL will be modified to allow only the task SID and local system full control and the account SID read control.

TASK_PROCESSTOKENSID_DEFAULT
2

Task Scheduler will apply default settings to the process token groups list.

 

Remarks

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Taskschd.h

IDL

Taskschd.idl

Library

Taskschd.lib

DLL

Taskschd.dll

See also

Task Scheduler
IPrincipal2

 

 

Community Additions

ADD
Show:
© 2015 Microsoft