#include <ole2.h>
Go to the source code of this file.
|
#define | _INC_COMUTIL |
|
#define | _COM_ASSERT(x) ((void)0) |
|
#define | _SECURE_COMPILER_COM 1 |
|
#define | _COM_MEMCPY_S(dest, destsize, src, count) memcpy(dest, src, count) |
|
#define | _COM_PRINTF_S_1(dest, destsize, format, arg1) wsprintf(dest, format, arg1) |
|
#define | S_OK ((HRESULT)0L) |
|
#define | INTSAFE_E_ARITHMETIC_OVERFLOW ((HRESULT)0x80070216L) |
|
#define | INTSAFE_UINT_MAX 0xffffffff |
|
#define | FAILED(hr) (((HRESULT)(hr)) < 0) |
|
#define | bstr_t _bstr_t |
|
#define | variant_t _variant_t |
|
#define _COM_ASSERT |
( |
|
x | ) |
((void)0) |
#define _COM_MEMCPY_S |
( |
|
dest, |
|
|
|
destsize, |
|
|
|
src, |
|
|
|
count |
|
) |
| memcpy(dest, src, count) |
#define _COM_PRINTF_S_1 |
( |
|
dest, |
|
|
|
destsize, |
|
|
|
format, |
|
|
|
arg1 |
|
) |
| wsprintf(dest, format, arg1) |
#define _SECURE_COMPILER_COM 1 |
#define FAILED |
( |
|
hr | ) |
(((HRESULT)(hr)) < 0) |
#define INTSAFE_E_ARITHMETIC_OVERFLOW ((HRESULT)0x80070216L) |
#define INTSAFE_UINT_MAX 0xffffffff |
#define S_OK ((HRESULT)0L) |
void __declspec |
( |
noreturn |
| ) |
|
|
inline |
Cancels the currently executing task. This function can be called from within the body of a task to abort the task's execution and cause it to enter the canceled
state. While it may be used in response to the is_task_cancellation_requested function, you may also use it by itself, to initiate cancellation of the task that is currently executing.
It is not a supported scenario to call this function if you are not within the body of a task
. Doing so will result in undefined behavior such as a crash or a hang in your application.
- See also
- task Class
205 throw task_canceled();
Definition: comutil.h:144
Definition: comutil.h:144