24 public CComObjectRootEx<CComMultiThreadModelNoCS>,
67class CDumExe:
public CAtlExeModuleT<CDumExe>
78 CComObject<CTestObject>* pTest;
79 HRESULT hr = CComObject<CTestObject>::CreateInstance(&pTest);
81 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
90 ok(
ref == 1,
"Expected 1, got %lu\n",
ref);
93 CComPtr<IUnknown>
ppv;
95 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
100 CComPtr<IPersist> ppersist;
102 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
110 CComPtr<IStdMarshalInfo> pstd;
112 ok(
hr ==
S_OK,
"Expected S_OK, got 0x%lx\n",
hr);
118 ref = pTest->Release();
119 ok(
ref == 0,
"Expected 0, got %lu\n",
ref);
#define InterlockedIncrement
#define STDMETHODCALLTYPE
virtual HRESULT STDMETHODCALLTYPE GetClassID(CLSID *pClassID)
static HRESULT WINAPI FuncBlind(void *pv, REFIID riid, LPVOID *ppv, DWORD_PTR dw)
virtual HRESULT STDMETHODCALLTYPE GetClassForHandler(DWORD dwDestContext, void *pvDestContext, CLSID *pClsid)
REFIID LPVOID DWORD_PTR dw
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
#define COM_INTERFACE_ENTRY_IID(iid, x)
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
#define COM_INTERFACE_ENTRY_FUNC_BLIND(dw, func)
#define DECLARE_NOT_AGGREGATABLE(x)