Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 a SECURITY_SUBJECT_CONTEXT structure returned by a call to SeCaptureSubjectContext.
Return value
None
Remarks
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.
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) |