// ntifs.h
VOID SeLockSubjectContext(
[in] PSECURITY_SUBJECT_CONTEXT SubjectContext
);
View the official Windows Driver Kit DDI reference
// wdm.h
VOID SeLockSubjectContext(
[in] PSECURITY_SUBJECT_CONTEXT SubjectContext
);
View the official Windows Driver Kit DDI reference
No description available.
The SeLockSubjectContext routine locks the primary and impersonation tokens of a captured subject context.
SubjectContext
[in]Pointer to the SECURITY_SUBJECT_CONTEXT structure. This opaque structure is obtained from the operating system in a call to SeCaptureSubjectContextEx or SeCaptureSubjectContext.
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.
The SeLockSubjectContext routine locks the primary and impersonation tokens of a captured subject context.
SubjectContext
[in]Pointer to a SECURITY_SUBJECT_CONTEXT structure returned by a call to SeCaptureSubjectContext.
SeLockSubjectContext acquires read locks on the primary and impersonation tokens of a captured subject context.
To capture a subject context, use SeCaptureSubjectContext.
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.