RtlLockCurrentThread

Go to Home Page

Locks the current threads' TEB and stack into the process' working set

Syntax

NTSTATUS NTAPI RtlLockCurrentThread ( )

Return Value

STATUS_SUCCESS on success, other NTSTATUS on failure

Remarks

Use RtlUnlockCurrentThread to remove allow the locked pages to leave the working set