Export (0) Print
Expand All

SeQuerySubjectContextToken function

The SeQuerySubjectContextToken macro retrieves the access token for a security subject context.

Syntax


PACCESS_TOKEN SeQuerySubjectContextToken(
  _In_  PSECURITY_SUBJECT_CONTEXT SubjectContext
);

Parameters

SubjectContext [in]

Pointer to the subject context to query.

Return value

SeQuerySubjectContextToken returns a pointer to the access token for the subject context. This is either the client token, if present, or the process token.

Remarks

The access token pointer returned by SeQuerySubjectContextToken can be passed to SeQueryInformationToken.

SeQuerySubjectContextToken does not affect the lock status or access token of the subject context.

For more information about security and access control, see the documentation on these topics in the Microsoft Windows SDK.

Requirements

Version

This routine is available on Microsoft Windows 2000 and later.

Header

Ntifs.h (include Ntifs.h)

IRQL

PASSIVE_LEVEL

See also

PsDereferenceImpersonationToken
PsDereferencePrimaryToken
SECURITY_SUBJECT_CONTEXT
SeQueryAuthenticationIdToken
SeQueryInformationToken
SeTokenIsAdmin
SeTokenIsRestricted

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft