Bewerken

Delen via


SeReleaseSubjectContext function (wdm.h)

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

Syntax

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

Parameters

[in, out] SubjectContext

Pointer to the captured security context.

Return value

None

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.

Requirements

Requirement Value
Target Platform Universal
Header wdm.h (include Ntifs.h, Wdm.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport)

See also

SECURITY_SUBJECT_CONTEXT

SeCaptureSubjectContext

SeLockSubjectContext

SePrivilegeCheck

SeQueryAuthenticationIdToken

SeQuerySubjectContextToken

SeUnlockSubjectContext