PsAllocSiloContextSlot function (ntddk.h)

This routine allocates a slot that can be used to insert, retrieve, and delete an object in all silos.

Syntax

NTSTATUS PsAllocSiloContextSlot(
  [in]  ULONG_PTR Reserved,
  [out] ULONG     *ReturnedContextSlot
);

Parameters

[in] Reserved

This parameter is reserved for future use and must be set to zero.

[out] ReturnedContextSlot

A pointer to a caller-allocated variable that receives the newly allocated slot index. This parameter is required and it cannot be NULL.

Return value

The following NT status codes are returned.

Return code Description
STATUS_INSUFFICIENT_RESOURCES There are no more slots available in the system. This is an error code.
STATUS_SUCCESS The operation completed successfully.

Remarks

Use of this API is uncommon because all silo monitors are assigned a storage slot when calling the PsRegisterSiloMonitor routine. That slot can be retrieved with the PsGetSiloMonitorContextSlot routine and used by a driver for its context operations.

Requirements

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

See also

PsFreeSiloContextSlot