STLdoc
STLdocumentation
Main Page
Namespaces
Classes
Files
Namespace List
Namespace Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
msclr
_detail
Classes
|
Functions
msclr::_detail Namespace Reference
Classes
struct
_auto_gcroot_ref
struct
callback_cdecl_struct0
struct
callback_cdecl_struct1
struct
callback_cdecl_struct10
struct
callback_cdecl_struct11
struct
callback_cdecl_struct12
struct
callback_cdecl_struct13
struct
callback_cdecl_struct14
struct
callback_cdecl_struct15
struct
callback_cdecl_struct2
struct
callback_cdecl_struct3
struct
callback_cdecl_struct4
struct
callback_cdecl_struct5
struct
callback_cdecl_struct6
struct
callback_cdecl_struct7
struct
callback_cdecl_struct8
struct
callback_cdecl_struct9
struct
callback_cdecl_void_struct0
struct
callback_cdecl_void_struct1
struct
callback_cdecl_void_struct10
struct
callback_cdecl_void_struct11
struct
callback_cdecl_void_struct12
struct
callback_cdecl_void_struct13
struct
callback_cdecl_void_struct14
struct
callback_cdecl_void_struct15
struct
callback_cdecl_void_struct2
struct
callback_cdecl_void_struct3
struct
callback_cdecl_void_struct4
struct
callback_cdecl_void_struct5
struct
callback_cdecl_void_struct6
struct
callback_cdecl_void_struct7
struct
callback_cdecl_void_struct8
struct
callback_cdecl_void_struct9
class
smart_com_ptr
Functions
void
validate
(HRESULT hr)
System::Guid
FromGUID
(GUID const &guid)
ICLRRuntimeHost *
get_clr_runtime_host
(
void
)
Function Documentation
System::Guid msclr::_detail::FromGUID
(
GUID const &
guid
)
inline
56
{
57
return
System::Guid( guid.Data1, guid.Data2, guid.Data3,
58
guid.Data4[ 0 ], guid.Data4[ 1 ],
59
guid.Data4[ 2 ], guid.Data4[ 3 ],
60
guid.Data4[ 4 ], guid.Data4[ 5 ],
61
guid.Data4[ 6 ], guid.Data4[ 7 ] );
62
}
ICLRRuntimeHost* msclr::_detail::get_clr_runtime_host
(
void
)
inline
66
{
67
using
System::Runtime::InteropServices::RuntimeEnvironment;
68
69
// Throws HR exception on failure.
70
ICLRRuntimeHost *pClrHost =
NULL
;
71
pClrHost =
reinterpret_cast<
ICLRRuntimeHost*
>
(
72
RuntimeEnvironment::GetRuntimeInterfaceAsIntPtr(
73
FromGUID
(CLSID_CLRRuntimeHost),
FromGUID
(IID_ICLRRuntimeHost)).ToPointer());
74
75
return
pClrHost;
76
}
msclr::_detail::FromGUID
System::Guid FromGUID(GUID const &guid)
Definition:
appdomain.h:55
NULL
#define NULL
Definition:
crtdbg.h:30
void
msclr::_detail::validate
(
HRESULT
hr
)
inline
46
{
47
_ASSERT
(SUCCEEDED(hr));
48
if
(
FAILED
(hr))
49
{
50
System::Runtime::InteropServices::Marshal::ThrowExceptionForHR(hr);
51
}
52
}
FAILED
#define FAILED(hr)
Definition:
comutil.h:71
_ASSERT
#define _ASSERT(expr)
Definition:
crtdbg.h:212
Generated on Sun Jul 23 2017 10:11:20 for STLdoc by
1.8.8