Modifier

Partager via


HCS_OPERATION_TYPE

Description

Defines the type of an operation, which is used as return value in HcsGetOperationType. The operation type is determined by the called HCS API that leverages an hcs operation for asynchronous tracking.

Syntax

typedef enum HCS_OPERATION_TYPE
{
    HcsOperationTypeNone = -1,
    HcsOperationTypeEnumerate = 0,
    HcsOperationTypeCreate = 1,
    HcsOperationTypeStart = 2,
    HcsOperationTypeShutdown = 3,
    HcsOperationTypePause = 4,
    HcsOperationTypeResume = 5,
    HcsOperationTypeSave = 6,
    HcsOperationTypeTerminate = 7,
    HcsOperationTypeModify = 8,
    HcsOperationTypeGetProperties = 9,
    HcsOperationTypeCreateProcess = 10,
    HcsOperationTypeSignalProcess = 11,
    HcsOperationTypeGetProcessInfo = 12,
    HcsOperationTypeGetProcessProperties = 13,
    HcsOperationTypeModifyProcess = 14,
    HcsOperationTypeCrash = 15
} HCS_OPERATION_TYPE;

Constants

Name Description
HcsOperationTypeNone Return if the operation has not yet been used to track a function call.
HcsOperationTypeEnumerate Return if the operation is tracking function HcsEnumerateComputeSystems.
HcsOperationTypeCreate Return if the operation is tracking function HcsCreateComputeSystem.
HcsOperationTypeStart Return if the operation is tracking function HcsStartComputeSystem.
HcsOperationTypeShutdown Return if the operation is tracking function HcsShutDownComputeSystem.
HcsOperationTypePause Return if the operation is tracking function HcsPauseComputeSystem.
HcsOperationTypeResume Return if the operation is tracking function HcsResumeComputeSystem.
HcsOperationTypeSave Return if the operation is tracking function HcsSaveComputeSystem.
HcsOperationTypeTerminate Return if the operation is tracking function HcsTerminateComputeSystem.
HcsOperationTypeModify Return if the operation is tracking function HcsModifyComputeSystem.
HcsOperationTypeGetProperties Return if the operation is tracking function HcsGetComputeSystemProperties.
HcsOperationTypeCreateProcess Return if the operation is tracking function HcsCreateProcess.
HcsOperationTypeSignalProcess Return if the operation is tracking function HcsSignalProcess.
HcsOperationTypeGetProcessInfo Return if the operation is tracking function HcsGetProcessInfo.
HcsOperationTypeGetProcessProperties Return if the operation is tracking function HcsGetProcessProperties.
HcsOperationTypeModifyProcess Return if the operation is tracking function HcsModifyProcess.
HcsOperationTypeCrash Return if the operation is tracking function HcsCrashComputeSystem.

Requirements

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