MCPcopy Create free account
hub / github.com/Kitware/CMake / CoCreateInstance

Method CoCreateInstance

Source/cmVSSetupHelper.h:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 return E_FAIL;
55 }
56 HRESULT CoCreateInstance(REFCLSID clsid, IUnknown* pUnknown,
57 REFIID interfaceId, DWORD dwClsContext = CLSCTX_ALL)
58 {
59 HRESULT hr = ::CoCreateInstance(clsid, pUnknown, dwClsContext, interfaceId,
60 (void**)&ptr);
61 return hr;
62 }
63 ~SmartCOMPtr()
64 {
65 if (ptr) {

Callers 1

InitializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected