MI_CancellationReason enumeration (mi.h)

Value to pass to an operation cancel request to notify the system of the reason the operation is being canceled. If the service is being shutdown, it may pass one of these values to the provider as well.

Syntax

typedef enum _MI_CancellationReason {
  MI_REASON_NONE,
  MI_REASON_TIMEOUT,
  MI_REASON_SHUTDOWN,
  MI_REASON_SERVICESTOP
} MI_CancellationReason;

Constants

 
MI_REASON_NONE
No reason for cancellation.
MI_REASON_TIMEOUT
Operation timed out.
MI_REASON_SHUTDOWN
The system is being shutdown.
MI_REASON_SERVICESTOP
The service is being stopped.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header mi.h
Redistributable Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2

See also

MI_CancelCallback