IIOCancelInformation interface (shobjidl_core.h)

Exposes methods for posting a cancel window message to the process thread from the Progress Dialog.

This interface enables the progress dialog to post a thread message through PostThreadMessage to the worker thread to cancel its operations. The worker thread must periodically check the message queue through GetMessage, PeekMessage or MsgWaitForMultipleObjectsEx.

The IIOCancelInformation::SetCancelInformation method tells the progress dialog which thread ID and what message to PostThreadMessage when the user clicks Cancel. A thread ID of "zero" disables the sending operation for the cancel message.

Inheritance

The IIOCancelInformation interface inherits from the IUnknown interface. IIOCancelInformation also has these types of members:

Methods

The IIOCancelInformation interface has these methods.

 
IIOCancelInformation::GetCancelInformation

Returns information that is posted when a user selects Cancel from the progress UI.
IIOCancelInformation::SetCancelInformation

Sets information that is posted when a user selects Cancel from the progress UI.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)