PsMakeSiloContextPermanent - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddk.h

NTSTATUS PsMakeSiloContextPermanent(
  [in] PESILO Silo,
  [in] ULONG  ContextSlot
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddk-psmakesilocontextpermanent)

PsMakeSiloContextPermanent function

Description

This routine makes the slot in a silo instance read-only, allowing the object in the slot to be retrieved without affecting the reference count on that object.

Parameters

Silo [in]

The silo in which the slot resides. This parameter is required and it cannot be NULL.

ContextSlot [in]

The slot to make read-only. The slot must be previously allocated by the PsAllocSiloContextSlot routine.

Return value

The following NT status codes are returned.

Return code Description
STATUS_INVALID_PARAMETER The slot does not contain a valid object. This is an error code.
STATUS_NOT_FOUND The slot has not been allocated. This is an error code.
STATUS_SUCCESS The operation completed successfully.

Remarks

Before calling this routine, the slot must contain a valid object. After it completes, the PsReplaceSiloContext and PsRemoveSiloContext routines will fail with STATUS_NOT_SUPPORTED.