PsGetPermanentSiloContext function (ntddk.h)
This routine retrieves an object that was inserted in the Silo without incrementing the reference count.
NTSTATUS PsGetPermanentSiloContext( PESILO Silo, ULONG ContextSlot, PVOID *ReturnedSiloContext );
[in] The silo in which the object was inserted. This parameter is required and it cannot be NULL.
A pointer to a caller-allocated variable that receives the address of the existing object. This parameter is required and it cannot be NULL.
The following NT status codes are returned.
||The slot is empty. This is an error code.|
||The slot is not read-only and it cannot safely retrieve the object. This is an error code.|
||The operation completed successfully.|
A successful call to PsGetPermanentSiloContext does not increment the reference count on the object that the ReturnedSiloContext parameter points to. The returned object pointer is valid as long as there is a valid reference on the silo object.
|Minimum supported client||Windows 10, version 1607|
|Minimum supported server||Windows Server 2016|