STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
vccorlib.h File Reference

Go to the source code of this file.

Classes

struct  __abi_WinClassInstrumentation
 
class  __abi_MultiThreadedRefCount
 
struct  __Platform_Details_HSTRING_HEADER
 
struct  Platform::Details::EventLock
 
struct  __abi_dtor_helper
 
class  Platform::WriteOnlyArray< __TArg, __dimension >
 
class  Platform::Array< __TArg, __dimension >
 
class  Platform::Details::sealed
 
class  __abi_FTMWeakRefData
 
struct  Platform::Details::__abi_CaptureBase
 
struct  Platform::Details::__abi_CapturePtr
 
struct  Platform::Details::__abi_FunctorCapture< __TFunctor, __TReturnType, __TArgs >
 
class  Platform::ArrayReference< __TArg, __dimension >
 
struct  Platform::Details::array_helper< __TArg, bool >
 
class  Platform::WriteOnlyArray< __TArg, 1 >
 
class  Platform::sealed< __TArg >
 
struct  __abi___FactoryCache
 
struct  __abi___classObjectEntry
 
class  Platform::StringReference
 
struct  __abi_type_descriptor
 
class  Platform::Details::CustomValueType
 
class  Platform::Details::CustomEnum
 
struct  Platform::Details::BoxValueType< __isEnum >
 
struct  Platform::Details::BoxValueType< true >
 
struct  Platform::Details::RemoveConst< __TArg >
 
struct  Platform::Details::RemoveConst< const __TArg >
 
struct  Platform::Details::RemoveVolatile< __TArg >
 
struct  Platform::Details::RemoveVolatile< volatile __TArg >
 
struct  Platform::Details::RemoveCV< __TArg >
 
struct  Platform::Details::array_helper< __TArg, true >
 
struct  Platform::Details::array_helper< __TArg, false >
 
class  Platform::ArrayReference< __TArg, 1 >
 
class  Platform::EventSource
 
class  Platform::Module
 
class  Platform::WeakReference
 
struct  Platform::WeakReference::BoolStruct
 

Namespaces

 __winRT
 
 Windows
 
 Windows::Foundation
 
 Platform
 
 Platform::Details
 
 __abi_details
 
 Windows::UI
 
 Windows::UI::Xaml
 
 Windows::UI::Xaml::Media
 
 Windows::UI::Xaml::Media::Media3D
 
 Windows::UI::Xaml::Media::Animation
 

Macros

#define _VCCORLIB_THREADING_MODEL_DEFAULT   0
 
#define _VCCORLIB_THREADING_MODEL_STA   1
 
#define _VCCORLIB_THREADING_MODEL_MTA   2
 
#define _VCCORLIB_THREADING_MODEL_OVERRIDE   3
 

Typedefs

typedef HSTRING__ * __abi_HSTRING
 
typedef struct __Platform_Details_HSTRING_HEADER __Platform_Details_HSTRING_HEADER
 

Enumerations

enum  __abi_TrustLevel { __abi_BaseTrust = 0, __abi_PartialTrust = (__abi_BaseTrust + 1), __abi_FullTrust = (__abi_PartialTrust + 1) }
 

Functions

 __declspec (noreturn) void __stdcall __abi_WinRTraiseException(long)
 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...
 
 __declspec (dllimport) long __stdcall __abi_translateCurrentException(bool reserved)
 
void __abi_ThrowIfFailed (long __hrArg)
 
long __stdcall __winRT::__windowsCreateString (const __wchar_t *, int, __abi_HSTRING *)
 
long __stdcall __winRT::__getActivationFactoryByPCWSTR (void *,::Platform::Guid &, void **)
 
long __stdcall __winRT::__getIids (int, unsigned long *, const __s_GUID *,::Platform::Guid **)
 
__interface __declspec (uuid("00000000-0000-0000-C000-000000000046")) __abi_IUnknown
 
__interface __declspec (uuid("3C5C94E8-83BB-4622-B76A-B505AE96E0DF")) __abi_Module
 
__interface __declspec (uuid("00000003-0000-0000-C000-000000000046")) __abi_IMarshal
 
long __cdecl _InterlockedIncrement (long volatile *)
 
long __cdecl _InterlockedDecrement (long volatile *)
 
long __cdecl _InterlockedCompareExchange (long volatile *, long, long)
 
void_InterlockedCompareExchangePointer (void *volatile *, void *, void *)
 
__interface virtual __declspec(uuid("AF86E2E0-B12D-4c6a-9C5A-D7AA65101E90")) __abi_IInspectable long __stdcall __abi_GetRuntimeClassName (__abi_HSTRING *)=0
 
virtual long __stdcall __abi_GetTrustLevel (__abi_TrustLevel *)=0
 
__interface virtual __declspec(uuid("00000001-0000-0000-C000-000000000046")) __abi_IClassFactory long __stdcall __abi_LockServer (int)=0
 
template<typename T >
EventLock * Platform::Details::GetStaticEventLock ()
 
 __declspec (non_user_code) __declspec(no_refcount) __declspec(no_release_return) inline void *__abi_winrt_ptr_ctor(const volatile
 
 if (__pUnknown!=*__ppTargetUnknown)
 
void__detach_as_voidptr (void **__ppObjArg)
 
long __stdcall __Platform_CoCreateFreeThreadedMarshaler (::Platform::Object^,::Platform::Object^*)
 
 __declspec (selectany) void *__forceInstantiate1
 
template<typename __HighLevelType , unsigned int __dimension>
::Platform::Array< __HighLevelType, __dimension > Platform::Details::__abi_array_attach (void *__src, unsigned int __size, bool __isFastPass, bool __needsInit)
 
template<typename __HighLevelType , unsigned int __dimension>
void Platform::Details::__abi_array_copy_to_and_release (::Platform::Array< __HighLevelType, __dimension >^__arr, void **__dest, unsigned int *__size)
 
template<typename __LowLevelType , typename __HighLevelType , unsigned int __dimension>
__LowLevelType * Platform::Details::__abi_array_to_raw (const ::Platform::Array< __HighLevelType, __dimension >^)
 
template<typename __TArg >
__TArg __winrt_Empty_Struct ()
 
__declspec(non_user_code) __declspec(non_user_code) long __stdcall __Platform_WindowsCreateString (const ::default::char16 *, unsigned int, __abi_HSTRING *)
 
long __stdcall __Platform_WindowsDeleteString (__abi_HSTRING)
 
long __stdcall __Platform_WindowsDuplicateString (__abi_HSTRING, __abi_HSTRING *)
 
const ::default::char16 *__stdcall __Platform_WindowsGetStringRawBuffer (__abi_HSTRING, unsigned int *)
 
unsigned int __stdcall __Platform_WindowsGetStringLen (__abi_HSTRING)
 
int __stdcall __Platform_WindowsIsStringEmpty (__abi_HSTRING)
 
long __stdcall __Platform_WindowsStringHasEmbeddedNull (__abi_HSTRING, int *)
 
long __stdcall __Platform_WindowsCompareStringOrdinal (__abi_HSTRING, __abi_HSTRING, int *)
 
long __stdcall __Platform_WindowsCreateStringReference (const ::default::char16 *, unsigned int, __Platform_Details_HSTRING_HEADER *, __abi_HSTRING *)
 
long __stdcall __Platform_WindowsConcatString (__abi_HSTRING, __abi_HSTRING, __abi_HSTRING *)
 
void *__stdcall __Platform_CoTaskMemAlloc (size_t)
 
void __stdcall __Platform_CoTaskMemFree (void *)
 
size_t __cdecl __Platform_wcslen (const ::default::char16 *)
 
void *__cdecl __Platform_memset (void *, int, size_t)
 
void Platform::Details::CreateString (const ::default::char16 *__bufferArg, unsigned int __lengthArg, __abi_HSTRING *__destArg)
 
void Platform::Details::CreateString (const ::default::char16 *__sourceStringArg, __abi_HSTRING *__destArg)
 
void Platform::Details::DuplicateString (__abi_HSTRING __sourceArg, __abi_HSTRING *__destArg)
 
void Platform::Details::CreateStringReference (const ::default::char16 *__sourceStringArg, unsigned int __lengthArg, __Platform_Details_HSTRING_HEADER *__hstringHeaderArg, __abi_HSTRING *__stringArg)
 
if__ppTargetArg (__pRaw)
 
 __abi_details::__declspec (non_user_code) __declspec(no_refcount) inline void __abi_delete_String(
 
__declspec(dllimport) Platform::String __abi_CustomToString (void *)
 
void __cdecl Platform::Details::ReportUnhandledError (::Platform::Exception^)
 
__declspec(dllexport) long __stdcall ReCreateFromException(__declspec(dllexport) Platform::Details::__declspec (dllexport) void *__stdcall GetIBoxArrayVtable(void *)
 
template<typename T >
 Platform::Details::CustomBox (T value)
 
template<>
Platform::String Platform::Details::ToStringInternal< true > ()
 
template<>
Platform::String Platform::Details::ToStringInternal< false > ()
 
 Platform::if (__boxValue==nullptr)
 
return Platform::dynamic_cast< Box^> (__boxValue)
 
 Platform::operator __TBoxValue ()
 
 Platform::operator Box< const __TBoxValue >^ ()
 
 Platform::operator Box< volatile __TBoxValue >^ ()
 
 Platform::operator Box< const volatile __TBoxValue >^ ()
 
static Platform::operator Box< __TArg >^ (::Platform::IBox< __TArg >^__boxValueArg)
 
 Platform::__declspec (selectany)
 
template<typename __TArg >
Platform::Box< typename::Platform::Details::RemoveCV< __TArg >::Type > __abi_create_box (__TArg __boxValueArg)
 
template<typename __TArg >
__TArg __abi_unbox (::Platform::Object^__objArg)
 
 if (__p==nullptr)
 
 Platform::__declspec (no_refcount) __declspec(no_release_return) inline String
 
const ::default::char16 * Platform::begin (::Platform::String^__strArg)
 
const ::default::char16 * Platform::end (::Platform::String^__strArg)
 
template<typename __TArg >
inline::Platform::Array< __TArg, 1 > __abi_winrt_CreateArray (unsigned int __sizeArg)
 
 __declspec (no_refcount) __declspec(no_release_return)
 
template<typename __HighLevelType , unsigned int __dimension>
 Platform::Details::__declspec (no_refcount)
 
template<class __TArg >
__TArg * Platform::begin (const Array< __TArg, 1 >^__arrArg)
 
template<class __TArg >
__TArg * Platform::end (const Array< __TArg, 1 >^__arrArg)
 
 Platform::Details::__declspec (dllimport) IUnknown *__stdcall GetObjectContext()
 
bool Platform::operator== (const WeakReference &__aArg, const WeakReference &__bArg) throw ()
 
bool Platform::operator== (const WeakReference &__aArg, decltype(__nullptr)) throw ()
 
bool Platform::operator== (decltype(__nullptr), const WeakReference &__bArg) throw ()
 
bool Platform::operator!= (const WeakReference &__aArg, const WeakReference &__bArg) throw ()
 
bool Platform::operator!= (const WeakReference &__aArg, decltype(__nullptr)) throw ()
 
bool Platform::operator!= (decltype(__nullptr), const WeakReference &__bArg) throw ()
 
bool Platform::operator< (const WeakReference &__aArg, const WeakReference &__bArg) throw ()
 

Variables

template<typename __TArg >
ref class __declspec(one_phase_constructed) __declspec(layout_as_external) __declspec(no_empty_identity_interface) Box override typedef::Platform::Details::RemoveCV< __TArg >::Type Platform::__TBoxValue
 
__abi_Module * __abi_module
 
__interface __declspec (uuid("00000035-0000-0000-C000-000000000046")) __abi_IActivationFactory = { nullptr, 0 }
 
const volatile::Platform::Object __objArg __abi_IUnknown * __pUnknown = reinterpret_cast<__abi_IUnknown*>(const_cast< ::Platform::Object^>(__objArg))
 
__abi_IUnknown ** __ppTargetUnknown = reinterpret_cast<__abi_IUnknown**>(__ppTargetArg)
 
const volatile T __objArg
 
const volatile::Platform::String __pSourceArg auto __pRaw = reinterpret_cast<__abi_HSTRING>((const_cast< ::Platform::String^>(__pSourceArg)))
 
return__ppTargetArg
 
virtual property T Platform::Details::Value
 
internal Platform::__pad0__
 
::Platform::Object Platform::__boxValue = Details::CreateValue(__typeCode, &__valueArg)
 
virtual property __TBoxValue Platform::Value
 
 else
 
unsigned Platform::Details::int
 

Macro Definition Documentation

#define _VCCORLIB_THREADING_MODEL_DEFAULT   0
#define _VCCORLIB_THREADING_MODEL_MTA   2
#define _VCCORLIB_THREADING_MODEL_OVERRIDE   3
#define _VCCORLIB_THREADING_MODEL_STA   1

Typedef Documentation

typedef HSTRING__* __abi_HSTRING

Enumeration Type Documentation

Enumerator
__abi_BaseTrust 
__abi_PartialTrust 
__abi_FullTrust 
195 {
196  __abi_BaseTrust = 0,
199 };
Definition: vccorlib.h:196
Definition: vccorlib.h:197
Definition: vccorlib.h:198

Function Documentation

template<typename __TArg >
Platform::Box<typename ::Platform::Details::RemoveCV<__TArg>::Type> __abi_create_box ( __TArg  __boxValueArg)
1704 {
1705  return ref new ::Platform::Box<__TArg>(__boxValueArg);
1706 }
reference_wrapper< _Ty > ref(_Ty &_Val) _NOEXCEPT
Definition: type_traits:1617
__declspec (dllimport) Platform::String __abi_CustomToString ( void )
inline
1391 {
1392  return nullptr;
1393 }
__interface virtual __declspec (uuid("AF86E2E0-B12D-4c6a-9C5A-D7AA65101E90")) __abi_IInspectable long __stdcall __abi_GetRuntimeClassName ( __abi_HSTRING )
pure virtual
virtual long __stdcall __abi_GetTrustLevel ( __abi_TrustLevel )
pure virtual
__interface virtual __declspec (uuid("00000001-0000-0000-C000-000000000046")) __abi_IClassFactory long __stdcall __abi_LockServer ( int  )
pure virtual
void __abi_ThrowIfFailed ( long  __hrArg)
inline
97 {
98  if (__hrArg < 0)
99  {
100  __abi_WinRTraiseException(__hrArg);
101  }
102 }
template<typename __TArg >
__TArg __abi_unbox ( ::Platform::Object^  __objArg)
1710 {
1711  return safe_cast< ::Platform::Box<__TArg>^>(__objArg);
1712 }
const volatile T __objArg
Definition: vccorlib.h:429
template<typename __TArg >
inline ::Platform::Array<__TArg, 1> __abi_winrt_CreateArray ( unsigned int  __sizeArg)
1973 {
1974  return ref new ::Platform::Array<__TArg, 1>(__sizeArg);
1975 }
reference_wrapper< _Ty > ref(_Ty &_Val) _NOEXCEPT
Definition: type_traits:1617
__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
1080 {
1081  switch (__hrArg)
1082  {
1083  case 0x80004001L: // E_NOTIMPL
1084  __abi_WinRTraiseNotImplementedException();
1085 
1086  case 0x80004002L: // E_NOINTERFACE
1087  __abi_WinRTraiseInvalidCastException();
1088 
1089  case 0x80004003L: // E_POINTER
1090  __abi_WinRTraiseNullReferenceException();
1091 
1092  case 0x80004004L: // E_ABORT
1093  __abi_WinRTraiseOperationCanceledException();
1094 
1095  case 0x80004005L: // E_FAIL
1096  __abi_WinRTraiseFailureException();
1097 
1098  case 0x80070005L: // E_ACCESSDENIED
1099  __abi_WinRTraiseAccessDeniedException();
1100 
1101  case 0x8007000EL: // E_OUTOFMEMORY
1102  __abi_WinRTraiseOutOfMemoryException();
1103 
1104  case 0x80070057L: // E_INVALIDARG
1105  __abi_WinRTraiseInvalidArgumentException();
1106 
1107  case 0x8000000BL: // E_BOUNDS
1108  __abi_WinRTraiseOutOfBoundsException();
1109 
1110  case 0x8000000CL: // E_CHANGED_STATE
1111  __abi_WinRTraiseChangedStateException();
1112 
1113  case 0x80040154L: // REGDB_E_CLASSNOTREG
1114  __abi_WinRTraiseClassNotRegisteredException();
1115 
1116  case 0x8001010EL: // RPC_E_WRONG_THREAD
1117  __abi_WinRTraiseWrongThreadException();
1118 
1119  case 0x80010108L: // RPC_E_DISCONNECTED
1120  __abi_WinRTraiseDisconnectedException();
1121 
1122  case 0x80000013L: // RO_E_CLOSED
1123  __abi_WinRTraiseObjectDisposedException();
1124 
1125  default:
1126  __abi_WinRTraiseCOMException(__hrArg);
1127  break;
1128  }
1129 }
__declspec ( dllimport  )
__interface __declspec ( uuid("00000000-0000-0000-C000-000000000046")  )
187 {
188 public:
189  virtual long __stdcall __abi_QueryInterface(::Platform::Guid&, void**) = 0;
190  virtual unsigned long __stdcall __abi_AddRef() = 0;
191  virtual unsigned long __stdcall __abi_Release() = 0;
192 };
__interface __declspec ( uuid("3C5C94E8-83BB-4622-B76A-B505AE96E0DF")  )
202 {
203 public:
204  virtual unsigned long __stdcall __abi_IncrementObjectCount() = 0;
205  virtual unsigned long __stdcall __abi_DecrementObjectCount() = 0;
206 };
__interface __declspec ( uuid("00000003-0000-0000-C000-000000000046")  )
__declspec ( non_user_code  ) const volatile
377 {
378  __abi_IUnknown* __pUnknown = reinterpret_cast<__abi_IUnknown*>(const_cast< ::Platform::Object^>(__objArg));
379  if (__pUnknown) {
380  __pUnknown->__abi_AddRef();
381  }
382  return __pUnknown;
383 }
const volatile T __objArg
Definition: vccorlib.h:429
const volatile::Platform::Object __objArg __abi_IUnknown * __pUnknown
Definition: vccorlib.h:397
__declspec ( selectany  )
1684 {0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
__declspec ( no_refcount  )
inline
1978 {
1979  __abi_HSTRING __hstr;
1980  ::Platform::Details::CreateStringReference(__strArg, __lenArg, __psheaderArg, &__hstr);
1981  return *reinterpret_cast< ::Platform::String^*>(&__hstr);
1982 }
void CreateStringReference(const ::default::char16 *__sourceStringArg, unsigned int __lengthArg, __Platform_Details_HSTRING_HEADER *__hstringHeaderArg, __abi_HSTRING *__stringArg)
Definition: vccorlib.h:1218
HSTRING__ * __abi_HSTRING
Definition: vccorlib.h:85
void* __detach_as_voidptr ( void **  __ppObjArg)
inline
536 {
537  void* __pObj = *__ppObjArg;
538  *__ppObjArg = nullptr;
539  return __pObj;
540 }
long __stdcall __Platform_CoCreateFreeThreadedMarshaler ( ::Platform::Object^  ,
::Platform::Object^*   
)
void* __stdcall __Platform_CoTaskMemAlloc ( size_t  )
void __stdcall __Platform_CoTaskMemFree ( void )
void* __cdecl __Platform_memset ( void ,
int  ,
size_t   
)
size_t __cdecl __Platform_wcslen ( const ::default::char16 *  )
long __stdcall __Platform_WindowsCompareStringOrdinal ( __abi_HSTRING  ,
__abi_HSTRING  ,
int *   
)
long __stdcall __Platform_WindowsConcatString ( __abi_HSTRING  ,
__abi_HSTRING  ,
__abi_HSTRING  
)
__declspec (non_user_code) __declspec (non_user_code) long __stdcall __Platform_WindowsCreateString ( const ::default::char16 *  ,
unsigned  int,
__abi_HSTRING  
)
long __stdcall __Platform_WindowsCreateStringReference ( const ::default::char16 *  ,
unsigned  int,
__Platform_Details_HSTRING_HEADER ,
__abi_HSTRING  
)
long __stdcall __Platform_WindowsDeleteString ( __abi_HSTRING  )
long __stdcall __Platform_WindowsDuplicateString ( __abi_HSTRING  ,
__abi_HSTRING  
)
unsigned int __stdcall __Platform_WindowsGetStringLen ( __abi_HSTRING  )
const ::default::char16* __stdcall __Platform_WindowsGetStringRawBuffer ( __abi_HSTRING  ,
unsigned int *   
)
int __stdcall __Platform_WindowsIsStringEmpty ( __abi_HSTRING  )
long __stdcall __Platform_WindowsStringHasEmbeddedNull ( __abi_HSTRING  ,
int *   
)
if * __ppTargetArg ( __pRaw  )
1348  {
1349  if (*__ppTargetArg)
1350  {
1351  __abi_details::__abi_delete_String(reinterpret_cast< ::Platform::String^>(*__ppTargetArg));
1352  }
1353  *__ppTargetArg = nullptr;
1354  if (__pSourceArg)
1355  {
1356  __abi_HSTRING __hstr;
1358  *__ppTargetArg = __hstr;
1359  }
1360  }
return * __ppTargetArg
Definition: vccorlib.h:1361
const volatile::Platform::String __pSourceArg auto __pRaw
Definition: vccorlib.h:1346
void DuplicateString(__abi_HSTRING __sourceArg, __abi_HSTRING *__destArg)
Definition: vccorlib.h:1207
HSTRING__ * __abi_HSTRING
Definition: vccorlib.h:85
template<typename __TArg >
__TArg __winrt_Empty_Struct ( )
inline
1048 {
1049  unsigned char __bytes[sizeof(__TArg)];
1050  __Platform_memset(__bytes, 0, sizeof(__TArg));
1051 
1052  return (__TArg&)__bytes;
1053 }
void *__cdecl __Platform_memset(void *, int, size_t)
long __cdecl _InterlockedCompareExchange ( long volatile *  ,
long  ,
long   
)
void* _InterlockedCompareExchangePointer ( void *volatile *  ,
void ,
void  
)
long __cdecl _InterlockedDecrement ( long volatile *  )
long __cdecl _InterlockedIncrement ( long volatile *  )
if ( __pUnknown!  = *__ppTargetUnknown)
400  {
401  if (__pUnknown) {
402  __pUnknown->__abi_AddRef();
403  }
404  if (*__ppTargetUnknown) {
405  (*__ppTargetUnknown)->__abi_Release();
406  }
408  }
const volatile::Platform::Object __objArg __abi_IUnknown * __pUnknown
Definition: vccorlib.h:397
__abi_IUnknown ** __ppTargetUnknown
Definition: vccorlib.h:398
if ( __p  = = nullptr)
1723  {
1724  if (__isDynamicCastArg) {
1725  return nullptr;
1726  }
1727 
1728  __abi_WinRTraiseInvalidCastException();
1729  } else {

Variable Documentation

__abi_Module* __abi_module
__declspec = { nullptr, 0 }
inline
Platform::Object __objArg
Initial value:
{
return __abi_winrt_ptr_assign(__ppTargetArg, reinterpret_cast<const volatile ::Platform::Object^>(__objArg))
return * __ppTargetArg
Definition: vccorlib.h:1361
const volatile T __objArg
Definition: vccorlib.h:429
return* __ppTargetArg
__abi_IUnknown ** __ppTargetUnknown = reinterpret_cast<__abi_IUnknown**>(__ppTargetArg)
const volatile ::Platform::String __pSourceArg auto __pRaw = reinterpret_cast<__abi_HSTRING>((const_cast< ::Platform::String^>(__pSourceArg)))
return __pUnknown = reinterpret_cast<__abi_IUnknown*>(const_cast< ::Platform::Object^>(__objArg))
else
Initial value:
{
return __p->Value