SeUnlockSubjectContext function (ntifs.h)

The SeUnlockSubjectContext routine unlocks the tokens of a captured subject context that were locked by a call to SeLockSubjectContext.

Syntax

void SeUnlockSubjectContext(
  [in] PSECURITY_SUBJECT_CONTEXT SubjectContext
);

Parameters

[in] SubjectContext

Pointer to a SECURITY_SUBJECT_CONTEXT structure whose tokens are to be unlocked.

Return value

None

Remarks

SeUnlockSubjectContext releases the read locks on the tokens in the captured subject context.

Each call to SeLockSubjectContext must be matched by a subsequent call to SeUnlockSubjectContext.

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.

Requirements

Requirement Value
Target Platform Universal
Header ntifs.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

SeCaptureSubjectContextEx

SeLockSubjectContext

SePrivilegeCheck

SeQueryAuthenticationIdToken

SeQuerySubjectContextToken

SeReleaseSubjectContext