SeUnlockSubjectContext function

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

Syntax

void SeUnlockSubjectContext(
  PSECURITY_SUBJECT_CONTEXT SubjectContext
);

Parameters

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 the documentation on these topics in the Microsoft Windows SDK.

Requirements

   
Target Platform Universal
Header ntifs.h (include Ntifs.h, Wdm.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

See also

SECURITY_SUBJECT_CONTEXT

SeCaptureSubjectContext

SeLockSubjectContext

SePrivilegeCheck

SeQueryAuthenticationIdToken

SeQuerySubjectContextToken

SeReleaseSubjectContext