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.
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 |
---|---|
|
The slot does not contain a valid object. This is an error code. |
|
The slot has not been allocated. This is an error code. |
|
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 |