Export (0) Print
Expand All

IPrincipal2 interface

Provides the extended settings applied to security credentials for a principal. These security credentials define the security context for the tasks that are associated with the principal.

Members

The IPrincipal2 interface inherits from the IDispatch interface. IPrincipal2 also has these types of members:

Methods

The IPrincipal2 interface has these methods.

MethodDescription
AddRequiredPrivilege

Adds a privilege to the to the task process token.

 

Properties

The IPrincipal2 interface has these properties.

PropertyAccess typeDescription

ProcessTokenSidType

Read/write

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

RequiredPrivilege

Read-only

Gets the required privilege by index.

RequiredPrivilegeCount

Read-only

Gets the number of privileges in the required privileges array.

 

Remarks

When reading or writing XML for a task, the security credentials for a principal are specified in the Principal element of the Task Scheduler schema.

Examples

For more information and example code for this interface, see Time Trigger Example (C++) or Registration Trigger Example (C++).

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 Interfaces
ITaskDefinition
Principal Property of ITaskDefinition

 

 

Community Additions

ADD
Show:
© 2014 Microsoft