RtlRaiseCustomSystemEventTrigger - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddk.h

NTSTATUS RtlRaiseCustomSystemEventTrigger(
  [_In_] PCUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG TriggerConfig
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddk-rtlraisecustomsystemeventtrigger)

RtlRaiseCustomSystemEventTrigger function

Description

Allows NT services and kernel-mode and user-mode drivers to raise a custom trigger for a device. A custom trigger, owned by the driver developer, notifies system event broker to start an associated background task with it, which is identified by a custom trigger identifier.

Parameters

TriggerConfig [_In_]

A pointer to a _CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG structure that contains the trigger identifier. Call CUSTOM_SYSTEM_EVENT_TRIGGER_INIT to initialize the structure before calling the function.

Return value

This function returns STATUS_SUCCESS if the custom trigger was raised. Otherwise, an appropriate NTSTATUS Value is returned.

Error code Description
STATUS_UNSUCCESSFUL Another active custom trigger being raised.
STATUS_INSTANCE_NOT_AVAILABLE No subscribers are present.

Remarks

See also

_CUSTOM_SYSTEM_EVENT_TRIGGER_CONFIG CUSTOM_SYSTEM_EVENT_TRIGGER_INIT