SeLockSubjectContext function (ntifs.h)
The SeLockSubjectContext routine locks the primary and impersonation tokens of a captured subject context.
Syntax
void SeLockSubjectContext(
[in] PSECURITY_SUBJECT_CONTEXT SubjectContext
);
Parameters
[in] SubjectContext
Pointer to the SECURITY_SUBJECT_CONTEXT structure. This opaque structure is obtained from the operating system in a call to SeCaptureSubjectContextEx or SeCaptureSubjectContext.
Return value
None
Remarks
SeLockSubjectContext acquires read locks on the primary and impersonation tokens of a captured subject context. Each call to SeLockSubjectContext must be matched by a subsequent call to SeUnlockSubjectContext.
To capture a subject context, use SeCaptureSubjectContextEx or SeCaptureSubjectContext.
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 |
---|---|
Minimum supported client | Windows 2000 |
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) |