MI_Context_Canceled function (mi.h)

Determines whether the operation has been canceled. This function is reserved; instead, use the MI_Context_RegisterCancel function.

Syntax

MI_INLINE MI_Result MI_INLINE_CALL MI_Context_Canceled(
  [in]  const MI_Context *context,
  [out] MI_Boolean       *flag
);

Parameters

[in] context

A pointer to the request context that was passed to the provider method.

[out] flag

A pointer to a flag that holds the deletion result. Upon return, this flag will be MI_TRUE if the operation has been successfully canceled; otherwise, it will be MI_FALSE.

Return value

This function returns MI_INLINE MI_Result MI_INLINE_CALL.

Remarks

A canceled operation on the client does not always signal to the server that the operation should be canceled. It depends on both the type of operation and the support from the underlying protocol handler.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
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