SeReleaseSubjectContext function (ntifs.h)
The SeReleaseSubjectContext routine releases a subject security context captured by an earlier call to SeCaptureSubjectContext.
void SeReleaseSubjectContext( [in, out] PSECURITY_SUBJECT_CONTEXT SubjectContext );
[in, out] SubjectContext
Pointer to the captured security context.
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.
|Header||ntifs.h (include Ntifs.h, Wdm.h)|
|DDI compliance rules||HwStorPortProhibitedDDIs(storport)|
Submit and view feedback for