15 #ifndef _ATL_NO_PRAGMA_WARNINGS 16 #pragma warning(disable: 4355) // 'this' : used in base member initializer list 19 #define NOT_IMP_ASSERTE _ASSERTE(false && L"Called a function that is not implemented in MSI COM") 71 ((
PLONG) &rguid1)[0] == 0 &&
72 ((
PLONG) &rguid1)[1] == 0 &&
74 #
if defined(sun) || defined(_AIX) || defined(__hpux)
75 ((
PLONG) &rguid1)[2] == 0xC0000000 &&
76 ((
PLONG) &rguid1)[3] == 0x00000046);
77 #elif defined(WIN32) || defined(linux) // big-endian 78 ((
PLONG) &rguid1)[2] == 0x000000C0 &&
79 ((
PLONG) &rguid1)[3] == 0x46000000);
81 ((
PLONG) &rguid1)[2] == 0xC0000000 &&
82 ((
PLONG) &rguid1)[3] == 0x00000046);
101 #define _ATL_SIMPLEMAPENTRY ((_ATL_CREATORARGFUNC*)1) 158 void Exception_unsafe_Lock__which_should_NOT_be_used_because_of_imminent_deadlocks__Use_SmartLock_instead();
161 void Exception_unsafe_Unlock__which_should_NOT_be_used_because_of_imminent_deadlocks__Use_SmartLock_instead();
171 void Delete()
throw();
376 STDMETHOD_(
ULONG, AddRef)()=0;
377 STDMETHOD_(
ULONG, Release)()=0;
391 if ((
p = lp) !=
NULL)
467 return punk1 == punk2;
543 template <
class T, const IID* pi
id>
554 if ((
p = lp) !=
NULL)
639 return punk1 == punk2;
720 #endif // __ATLBASE_H__ _ATL_CREATORARGFUNC * pFunc
Definition: Msi_atlbase.h:97
T * p
Definition: Msi_atlbase.h:711
LONG InterlockedDecrement(MSynch::AtomicLong *p)
Definition: Msi_atlbase.h:47
signed char BOOL
Definition: PDCwtypes.h:101
#define REFGUID
Definition: PDCwtypes.h:318
void Exception_unsafe_Unlock__which_should_NOT_be_used_because_of_imminent_deadlocks__Use_SmartLock_instead()
Definition: Msi_atlbase.h:219
CComMultiThreadModel CComGlobalsThreadModel
Definition: Msi_atlbase.h:285
T _PtrClass
Definition: Msi_atlbase.h:547
HRESULT SetSite(IUnknown *punkParent)
Definition: Msi_atlbase.h:491
CComQIPtr(const CComQIPtr< T, piid > &lp)
Definition: Msi_atlbase.h:557
bool IsEqualObject(IUnknown *pOther)
Definition: Msi_atlbase.h:455
ATLAPI AtlInternalQueryInterface(void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
IUnknown __RPC_FAR * LPUNKNOWN
Definition: Msi_oaidl.h:53
bool IsEqualGUID(const ::GUID &irGUID1, const ::GUID &irGUID2)
Definition: Base/Base/GUID.h:64
HRESULT CoCreateInstance(LPCOLESTR szProgID, LPUNKNOWN pUnkOuter=NULL, DWORD dwClsContext=CLSCTX_ALL)
Definition: Msi_atlbase.h:514
T * operator=(const CComPtr< T > &lp)
Definition: Msi_atlbase.h:438
T _PtrClass
Definition: Msi_atlbase.h:384
T ** operator &()
Definition: Msi_atlbase.h:592
#define E_POINTER
Definition: PDCwinerror.h:141
bool operator!() const
Definition: Msi_atlbase.h:442
T & operator*() const
Definition: Msi_atlbase.h:586
void Release()
Definition: Msi_atlbase.h:573
void Unlock()
Definition: Msi_atlbase.h:133
T & operator*() const
Definition: Msi_atlbase.h:417
CComCriticalSection CriticalSection
Definition: Msi_atlbase.h:261
T * operator=(IUnknown *lp)
Definition: Msi_atlbase.h:610
#define REFCLSID
Definition: PDCwtypes.h:328
Definition: Msi_atlbase.h:93
LONG * PLONG
Definition: PDCwtypes.h:135
typedef HRESULT(WINAPI _ATL_CREATORARGFUNC)(void *pv
BOOL InlineIsGUIDNULL(REFGUID rguid1)
Definition: Msi_atlbase.h:58
_NoAddRefReleaseOnCComPtr< T > * operator->() const
Definition: Msi_atlbase.h:429
static ULONG WINAPI Increment(MSynch::AtomicLong *p)
Definition: Msi_atlbase.h:268
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject)=0
long HRESULT
Definition: FragmentedString.h:20
#define ATLASSERT(expr)
Definition: Msi_atldef.h:18
_ATL_CREATORFUNC * pfnGetClassObject
Definition: Msi_atlbase.h:296
void Lock()
Definition: Msi_atlbase.h:198
bool operator<(T *pT) const
Definition: Msi_atlbase.h:446
#define WINAPI
Definition: PDCwindows.h:52
ATLAPI AtlModuleGetClassObject(_ATL_MODULE *pM, REFCLSID rclsid, REFIID riid, LPVOID *ppv)
CComPtr(T *lp)
Definition: Msi_atlbase.h:389
unsigned long DWORD_PTR
Definition: Msi_atlbase.h:34
EXTERN_C DLL_MSICOM_EXIM IUnknown * AtlComPtrAssign(IUnknown **pp, IUnknown *lp)
Definition: Msi_atlbase.h:357
void Release()
Definition: Msi_atlbase.h:404
ATLAPI AtlModuleInit(_ATL_MODULE *pM, _ATL_OBJMAP_ENTRY *p, HINSTANCE h)
static ULONG WINAPI Decrement(MSynch::AtomicLong *p)
Definition: Msi_atlbase.h:273
int CompareGUID(const ::GUID &irGUID1, const ::GUID &irGUID2)
Definition: Base/Base/GUID.h:80
HRESULT Advise(IUnknown *pUnk, const IID &iid, LPDWORD pdw)
Definition: Msi_atlbase.h:670
#define CLSCTX_ALL
Definition: Msi_atlbase.h:37
_ATL_OBJMAP_ENTRY * m_pObjMap
Definition: Msi_atlbase.h:306
void * LPVOID
Definition: PDCwtypes.h:136
#define ATLAPI
Definition: Msi_atldef.h:26
unsigned int UINT
Definition: PDCwtypes.h:110
#define S_OK
Definition: PDCwinerror.h:31
#define NOT_IMP_ASSERTE
_ATL_NO_PRAGMA_WARNINGS
Definition: Msi_atlbase.h:19
bool operator!() const
Definition: Msi_atlbase.h:614
LONG InterlockedIncrement(MSynch::AtomicLong *p)
Definition: Msi_atlbase.h:46
static ULONG WINAPI Increment(MSynch::AtomicLong *p)
Definition: Msi_atlbase.h:228
bool operator==(T *pT) const
Definition: Msi_atlbase.h:450
void Exception_unsafe_Lock__which_should_NOT_be_used_because_of_imminent_deadlocks__Use_SmartLock_instead()
Definition: Msi_atlbase.h:214
HRESULT CopyTo(T **ppT)
Definition: Msi_atlbase.h:653
REFIID LPVOID * ppv
Definition: Msi_atlbase.h:90
static ULONG WINAPI Increment(MSynch::AtomicLong *p)
Definition: Msi_atlbase.h:250
BOOL InlineIsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: Msi_atlbase.h:53
bool operator==(T *pT) const
Definition: Msi_atlbase.h:622
ATLAPI AtlAdvise(IUnknown *pUnkCP, IUnknown *pUnk, const IID &iid, LPDWORD pdw)
HRESULT CoCreateInstance(LPCOLESTR szProgID, LPUNKNOWN pUnkOuter=NULL, DWORD dwClsContext=CLSCTX_ALL)
Definition: Msi_atlbase.h:686
void Init()
Definition: Msi_atlbase.h:137
CComFakeCriticalSection CriticalSection
Definition: Msi_atlbase.h:279
CComSingleThreadModel ThreadModelNoCS
Definition: Msi_atlbase.h:280
IUnknown * pCF
Definition: Msi_atlbase.h:298
CComQIPtr()
Definition: Msi_atlbase.h:548
CComFakeCriticalSection AutoCriticalSection
Definition: Msi_atlbase.h:238
bool IsGUIDNULL(const ::GUID &irGUID)
Definition: Base/Base/GUID.h:52
CComFakeCriticalSection AutoCriticalSection
Definition: Msi_atlbase.h:278
Definition: Msi_atlbase.h:121
HRESULT CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter=NULL, DWORD dwClsContext=CLSCTX_ALL)
Definition: Msi_atlbase.h:503
Definition: Msi_atlbase.h:302
REFIID LPVOID DWORD_PTR dw
Definition: Msi_atlbase.h:90
void Init()
Definition: Msi_atlbase.h:206
T * operator=(T *lp)
Definition: Msi_atlbase.h:602
void Attach(T *p2)
Definition: Msi_atlbase.h:469
static ULONG WINAPI Decrement(MSynch::AtomicLong *p)
Definition: Msi_atlbase.h:255
long InlineCompareGUID(const GUID &irGUID1, const GUID &irGUID2)
Definition: Msi_atlbase.h:63
Definition: Msi_atlbase.h:544
long LONG
Definition: PDCwtypes.h:119
void Unlock()
Definition: Msi_atlbase.h:202
CComMultiThreadModel CComObjectThreadModel
Definition: Msi_atlbase.h:284
UINT cbSize
Definition: Msi_atlbase.h:305
Definition: StrongPtr.h:50
Definition: Msi_atlbase.h:184
T * p
Definition: Msi_atlbase.h:539
~CComQIPtr()
Definition: Msi_atlbase.h:568
BOOL InlineIsEqualUnknown(REFGUID rguid1)
Definition: Msi_atlbase.h:68
CComFakeCriticalSection CriticalSection
Definition: Msi_atlbase.h:239
REFIID riid
Definition: Msi_atlbase.h:90
Definition: Msi_oaidl.h:41
Definition: Msi_atlbase.h:265
HRESULT QueryInterface(Q **pp) const
Definition: Msi_atlbase.h:529
CComPtr(const CComPtr< T > &lp)
Definition: Msi_atlbase.h:394
#define TRUE
Definition: PDCwtypes.h:58
bool operator<(T *pT) const
Definition: Msi_atlbase.h:618
Definition: Msi_atlbase.h:293
#define DLL_MSICOM_EXIM
Definition: MsiCOM.h:19
HRESULT SetSite(IUnknown *punkParent)
Definition: Msi_atlbase.h:663
Definition: Msi_atlbase.h:381
const CLSID * pclsid
Definition: Msi_atlbase.h:295
_ATL_CREATORFUNC * pfnCreateInstance
Definition: Msi_atlbase.h:297
_NoAddRefReleaseOnCComPtr< T > * operator->() const
Definition: Msi_atlbase.h:597
HRESULT QueryInterface(Q **pp)
Definition: Msi_atlbase.h:701
EXTERN_C const IID IID_IUnknown
Definition: Msi_oaidl.h:40
DWORD __RPC_FAR * LPDWORD
Definition: PDCwtypes.h:125
Definition: AtomicLong.h:71
CComCriticalSection(MSynch::EnumDSSLockStackCategory)
Definition: Msi_atlbase.h:125
HRESULT Advise(IUnknown *pUnk, const IID &iid, LPDWORD pdw)
Definition: Msi_atlbase.h:498
Definition: Msi_atlbase.h:225
#define FALSE
Definition: PDCwtypes.h:54
DWORD_PTR dw
Definition: Msi_atlbase.h:96
bool IsEqualObject(IUnknown *pOther)
Definition: Msi_atlbase.h:627
CComModule()
Definition: Msi_atlbase.h:333
CComMultiThreadModelNoCS ThreadModelNoCS
Definition: Msi_atlbase.h:240
~CComPtr()
Definition: Msi_atlbase.h:399
T * Detach()
Definition: Msi_atlbase.h:647
void Attach(T *p2)
Definition: Msi_atlbase.h:641
HRESULT CopyTo(T **ppT)
Definition: Msi_atlbase.h:481
#define EXTERN_C
Definition: PDCwtypes.h:62
virtual ULONG STDMETHODCALLTYPE Release(void)=0
CComQIPtr(IUnknown *lp)
Definition: Msi_atlbase.h:562
virtual ULONG STDMETHODCALLTYPE AddRef(void)=0
void Term()
Definition: Msi_atlbase.h:141
Definition: Msi_atlbase.h:247
HRESULT CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter=NULL, DWORD dwClsContext=CLSCTX_ALL)
Definition: Msi_atlbase.h:675
CComQIPtr(T *lp)
Definition: Msi_atlbase.h:552
static ULONG WINAPI Decrement(MSynch::AtomicLong *p)
Definition: Msi_atlbase.h:233
Definition: Msi_atlbase.h:373
T * Detach()
Definition: Msi_atlbase.h:475
CComAutoCriticalSection AutoCriticalSection
Definition: Msi_atlbase.h:260
void Lock()
Definition: Msi_atlbase.h:129
const OLECHAR __RPC_FAR * LPCOLESTR
Definition: PDCwtypes.h:394
ATLAPI AtlModuleTerm(_ATL_MODULE *pM)
T * operator=(T *lp)
Definition: Msi_atlbase.h:434
_ATL_OBJMAP_ENTRY * _NextObjectMapEntry(_ATL_MODULE *, _ATL_OBJMAP_ENTRY *pEntry)
Definition: Msi_atlbase.h:309
Definition: Msi_atlbase.h:149
T ** operator &()
Definition: Msi_atlbase.h:424
DWORD ULONG
Definition: PDCwtypes.h:127
CComPtr()
Definition: Msi_atlbase.h:385
unsigned long DWORD
Definition: PDCwtypes.h:121
#define NULL
Definition: Null.h:10
CComMultiThreadModelNoCS ThreadModelNoCS
Definition: Msi_atlbase.h:262
EXTERN_C DLL_MSICOM_EXIM IUnknown * AtlComQIPtrAssign(IUnknown **pp, IUnknown *lp, REFIID riid)
const IID * piid
Definition: Msi_atlbase.h:95
Definition: Msi_atlbase.h:42
#define E_NOTIMPL
Definition: PDCwinerror.h:105
EnumDSSLockStackCategory
Definition: LockCategories.h:32
void Term()
Definition: Msi_atlbase.h:210
Definition: Msi_atlbase.h:330
#define REFIID
Definition: PDCwtypes.h:321
Definition: Base/Base/GUID.h:32
ATLAPI AtlUnadvise(IUnknown *pUnkCP, const IID &iid, DWORD dw)
T * operator=(const CComQIPtr< T, piid > &lp)
Definition: Msi_atlbase.h:606
CComFakeCriticalSection(MSynch::EnumDSSLockStackCategory)
Definition: Msi_atlbase.h:188