SeReleaseSubjectContext - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

VOID SeReleaseSubjectContext(
  [in, out] PSECURITY_SUBJECT_CONTEXT SubjectContext
);

View the official Windows Driver Kit DDI reference
// wdm.h

VOID SeReleaseSubjectContext(
  [in, out] PSECURITY_SUBJECT_CONTEXT SubjectContext
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-sereleasesubjectcontext)

SeReleaseSubjectContext function (ntifs.h)

Description

The SeReleaseSubjectContext routine releases a subject security context captured by an earlier call to SeCaptureSubjectContext.

Parameters

SubjectContext [in, out]

Pointer to the captured security context.

Remarks

File systems must call SeCaptureSubjectContext before performing access validation or generating audit messages. This is necessary to provide a consistent security context to routines such as SeQueryAuthenticationIdToken, SeQuerySubjectContextToken, and SePrivilegeCheck. After these operations have been performed, the captured context should be released as soon as possible by calling SeReleaseSubjectContext.

For more information about security and access control, see Windows security model for driver developers and the documentation on these topics in the Windows SDK.

See also

SECURITY_SUBJECT_CONTEXT

SeCaptureSubjectContext

SeCaptureSubjectContextEx

SeLockSubjectContext

SePrivilegeCheck

SeQueryAuthenticationIdToken

SeQuerySubjectContextToken

SeUnlockSubjectContext


Windows Driver Kit DDI reference (nf-wdm-sereleasesubjectcontext)

SeReleaseSubjectContext function (wdm.h)

Description

The SeReleaseSubjectContext routine releases a subject security context captured by an earlier call to SeCaptureSubjectContext.

Parameters

SubjectContext [in, out]

Pointer to the captured security context.

Remarks

File systems must call SeCaptureSubjectContext before performing access validation or generating audit messages. This is necessary to provide a consistent security context to routines such as SeQueryAuthenticationIdToken, SeQuerySubjectContextToken, and SePrivilegeCheck. After these operations have been performed, the captured context should be released as soon as possible by calling SeReleaseSubjectContext.

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

See also

SECURITY_SUBJECT_CONTEXT

SeCaptureSubjectContext

SeLockSubjectContext

SePrivilegeCheck

SeQueryAuthenticationIdToken

SeQuerySubjectContextToken

SeUnlockSubjectContext