PsRegisterSiloMonitor function (ntddk.h)

This routine registers a server silo monitor that can receive notifications about server silo events.

Note  To start receiving notifications, call the PsStartSiloMonitor routine.
 

Syntax

NTSTATUS PsRegisterSiloMonitor(
  PSILO_MONITOR_REGISTRATION Registration,
  PSILO_MONITOR              *ReturnedMonitor
);

Parameters

Registration

[in] Specifies the server silo monitor to be registered, of type SILO_MONITOR_REGISTRATION.

ReturnedMonitor

[out] Receives a pointer to the monitor. This pointer is used to make further monitor-related calls.

Return value

The following NT status codes are returned.

Return code Description
STATUS_INVALID_PARAMETER
The version specified in ntddk.h does not match SILO_MONITOR_REGISTRATION_VERSION, the component name is not specified, or the terminate callback is not supplied.
STATUS_PRIVILEDGE_NOT_HELD
The routine is called in a silo.
STATUS_INSUFFICIENT_RESOURCES
There is no memory to register a silo monitor or there is no available silo slot.
STATUS_SUCCESS
The operation completed successfully.

Requirements

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