HCS_EVENT

Description

The struct provides information about an event that occurred on a compute system or process.

Syntax

typedef struct HCS_EVENT
{
    HCS_EVENT_TYPE Type;
    PCWSTR EventData;
    HCS_OPERATION Operation;
} HCS_EVENT;

Members

Type

Type of event HCS_EVENT_TYPE

EventData

Optionally provides additional data for the event as a JSON document. The following table shows expected documents for specific event types.

Event Type JSON Document
HcsEventSystemExited SystemExitStatus
HcsEventSystemCrashInitiated CrashReport
HcsEventSystemCrashReport CrashReport
HcsEventProcessExited ProcessStatus

Operation

Handle to a completed operation, if Type is HcsEventOperationCallback. This is only possible when HcsSetComputeSystemCallback has specified event option HcsEventOptionEnableOperationCallbacks.

Requirements

Parameter Description
Minimum supported client Windows 10, version 1809
Minimum supported server Windows Server 2019
Target Platform Windows
Header ComputeDefs.h