STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Namespaces | Macros | Functions | Variables
comutil.h File Reference
#include <ole2.h>

Go to the source code of this file.

Classes

class  _bstr_t
 
class  _bstr_t::Data_t
 
class  _variant_t
 

Namespaces

 _com_util
 

Macros

#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
 

Functions

void __declspec (noreturn) __stdcall _com_issue_error(HRESULT)
 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 a cancellation request through a cancellation_token, you may also use it by itself, to initiate cancellation of the task that is currently executing. More...
 
void _com_util::CheckError (HRESULT hr)
 
static HRESULT _com_util::UIntAdd (UINT uAugend, UINT uAddend, UINT *puResult)
 
static HRESULT _com_util::UIntMult (UINT uMultiplicand, UINT uMultiplier, UINT *puResult)
 
BSTR __stdcall _com_util::ConvertStringToBSTR (const char *pSrc)
 
char *__stdcall _com_util::ConvertBSTRToString (BSTR pSrc)
 
_bstr_t operator+ (const char *s1, const _bstr_t &s2)
 
_bstr_t operator+ (const wchar_t *s1, const _bstr_t &s2)
 

Variables

_variant_t vtMissing
 

Macro Definition Documentation

#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 _INC_COMUTIL
#define _SECURE_COMPILER_COM   1
#define bstr_t   _bstr_t
#define FAILED (   hr)    (((HRESULT)(hr)) < 0)
#define INTSAFE_E_ARITHMETIC_OVERFLOW   ((HRESULT)0x80070216L)
#define INTSAFE_UINT_MAX   0xffffffff
#define S_OK   ((HRESULT)0L)
#define variant_t   _variant_t

Function Documentation

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 a cancellation request through a cancellation_token, 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
132 {
133  _THROW_NCEE(task_canceled, _EMPTY_ARGUMENT);
134 }
#define _THROW_NCEE(x, y)
Definition: xstddef:78
#define _EMPTY_ARGUMENT
Definition: xstddef:82
_bstr_t operator+ ( const char *  s1,
const _bstr_t s2 
)
inline
445 {
446  _bstr_t b = s1;
447  b += s2;
448 
449  return b;
450 }
Definition: comutil.h:144
_bstr_t operator+ ( const wchar_t s1,
const _bstr_t s2 
)
inline
455 {
456  _bstr_t b = s1;
457  b += s2;
458 
459  return b;
460 }
Definition: comutil.h:144

Variable Documentation

_variant_t vtMissing