28#pragma warning(disable:4355)
35#ifndef _ATL_FREE_THREADED
36#ifndef _ATL_APARTMENT_THREADED
37#ifndef _ATL_SINGLE_THREADED
38#define _ATL_FREE_THREADED
47#ifdef _ATL_DISABLE_NO_VTABLE
50#define ATL_NO_VTABLE __declspec(novtable)
104 return ::CoCreateInstance(rclsid, pOuter, ClsCtx,
riid, (
void**)&
p);
145 template <
typename Q>
215#define I_ID(Itype) Itype,&IID_##Itype
217template <
class T, const IID* pi
id>
420 return ::SysStringLen(
m_str);
425 return ::SysStringByteLen(
m_str);
465 V_BOOL(
this) =
value ? VARIANT_TRUE : VARIANT_FALSE;
581 return ::VariantClear(
this);
586 return ::VariantCopy(
this,
const_cast<VARIANT*
>(
src));
592 return ::VariantChangeType(
this, lpSrc, 0, newType);
600#ifndef _ATL_NO_AUTOMATIC_NAMESPACE
#define STDMETHODCALLTYPE
CComBSTR & operator=(const CComBSTR &other)
unsigned int Length() const
HRESULT CopyTo(BSTR *other) const
CComBSTR(int length, LPCOLESTR pSrc)
unsigned int ByteLength() const
CComBSTR(const CComBSTR &other)
bool LoadString(HMODULE module, DWORD uID)
HRESULT CoCreateInstance(REFCLSID rclsid, REFIID riid, LPUNKNOWN pOuter=NULL, DWORD ClsCtx=CLSCTX_ALL)
CComPtr(const CComPtr< T > &lp)
_NoAddRefReleaseOnCComPtr< T > * operator->() const
HRESULT CoCreateInstance(LPCOLESTR ProgID, REFIID riid, LPUNKNOWN pOuter=NULL, DWORD ClsCtx=CLSCTX_ALL)
T * operator=(IUnknown *lp)
CComQIIDPtr(_Inout_opt_ T *lp)
CComQIIDPtr(_Inout_ const CComQIIDPtr< T, piid > &lp)
CComQIIDPtr(_Inout_opt_ IUnknown *lp)
CComVariant(const LONGLONG &value)
CComVariant(const ULONGLONG &value)
CComVariant(const CY &value)
CComVariant(int value, VARENUM type=VT_I4)
CComVariant(long value, VARENUM type=VT_I4)
CComVariant(unsigned long value)
CComVariant(LPCSTR lpStr)
CComVariant(LPCOLESTR lpStr)
HRESULT ChangeType(_In_ VARTYPE newType, _In_opt_ const LPVARIANT src=NULL)
CComVariant(double value, VARENUM type=VT_R8)
CComVariant(unsigned short value)
CComVariant(const CComVariant &other)
HRESULT Copy(_In_ const VARIANT *src)
CComVariant(unsigned int value, VARENUM type=VT_UI4)
virtual ULONG STDMETHODCALLTYPE AddRef()=0
virtual ULONG STDMETHODCALLTYPE Release()=0
#define MultiByteToWideChar
HRESULT WINAPI DECLSPEC_HOTPATCH CLSIDFromProgID(LPCOLESTR progid, LPCLSID clsid)
INT WINAPI StringFromGUID2(REFGUID id, LPOLESTR str, INT cmax)
GLuint GLuint GLsizei GLenum type
GLuint GLsizei GLsizei * length
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
static const WCHAR szGuid[]
HRESULT AtlHresultFromLastError() noexcept
BSTR WINAPI SysAllocString(LPCOLESTR str)
UINT WINAPI SysStringLen(BSTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
void WINAPI VariantInit(VARIANTARG *pVarg)
DWORD WINAPI GetLastError(void)
#define HRESULT_FROM_WIN32(x)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)