SeLockSubjectContext - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-selocksubjectcontext)

SeLockSubjectContext function (ntifs.h)

Description

The SeLockSubjectContext routine locks the primary and impersonation tokens of a captured subject context.

Parameters

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.

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.

See also

SECURITY_SUBJECT_CONTEXT

SeCaptureSubjectContextEx

SeUnlockSubjectContext


Windows Driver Kit DDI reference (nf-wdm-selocksubjectcontext)

SeLockSubjectContext function (wdm.h)

Description

The SeLockSubjectContext routine locks the primary and impersonation tokens of a captured subject context.

Parameters

SubjectContext [in]

Pointer to a SECURITY_SUBJECT_CONTEXT structure returned by a call to SeCaptureSubjectContext.

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.

See also

SECURITY_SUBJECT_CONTEXT

SeCaptureSubjectContext

SeUnlockSubjectContext