// ntddk.h
NTSTATUS PsRemoveSiloContext(
[in] PESILO Silo,
[in] ULONG ContextSlot,
PVOID *RemovedSiloContext
);
View the official Windows Driver Kit DDI referenceNo description available.
This routine removes an object that was inserted in the Silo.
Silo [in]The silo from which the object is to be removed. This parameter is required and it cannot be NULL.
ContextSlot [in]A slot allocated by the PsAllocSiloContextSlot routine.
RemovedSiloContextA pointer to a caller-allocated variable that receives the address of the removed object. This parameter is optional and can be NULL.
The following NT status codes are returned.
| Return code | Description |
|---|---|
| STATUS_NOT_FOUND | The slot is empty. This is an error code. |
| STATUS_NOT_SUPPORTED | The slot is read-only and it cannot be modified. This is an error code. |
| STATUS_SUCCESS | The operation completed successfully. |
In a successful call to PsRemoveSiloContext where the RemovedSiloContext parameter is not NULL and does not point to NULL, the caller must decrement the object that the RemovedSiloContext parameter points to, by calling PsDereferenceSiloContext when it is no longer needed.