Cancel case.
Cancel case is called, and the
DoWork case ends with a call to XAsyncComplete with
the E_ABORT status. Any method can be used to signal the cancel. However,
an event is a simple way to signal the cancel that’s supported on any Microsoft Game Development Kit (GDK) platform that can be targeted.
To trigger the Cancel case, call XAsyncCancel
with the async block for the task, shown as follows.
Reference API documentation
- XAsyncProvider (API contents)
- Functions
- xasync (API contents)
- Functions
