PsMakeSiloContextPermanent function (ntddk.h)

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.

Syntax

NTSTATUS PsMakeSiloContextPermanent(
  [in] PESILO Silo,
  [in] ULONG  ContextSlot
);

Parameters

[in] Silo

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

[in] ContextSlot

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.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1607
Minimum supported server Windows Server 2016
Target Platform Windows
Header ntddk.h