MCPcopy Create free account
hub / github.com/LegacyUpdate/LegacyUpdate / Create

Method Create

LegacyUpdate/ProgressBarControl.cpp:16–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14DEFINE_UUIDOF(CProgressBarControl, CLSID_ProgressBarControl);
15
16STDMETHODIMP CProgressBarControl::Create(IUnknown *pUnkOuter, REFIID riid, void **ppv) {
17 if (pUnkOuter != NULL) {
18 return CLASS_E_NOAGGREGATION;
19 }
20
21 CProgressBarControl *pThis = (CProgressBarControl *)CoTaskMemAlloc(sizeof(CProgressBarControl));
22 if (pThis == NULL) {
23 return E_OUTOFMEMORY;
24 }
25
26 new(pThis) CProgressBarControl();
27 InterlockedIncrement(&g_serverLocks);
28 HRESULT hr = pThis->QueryInterface(riid, ppv);
29 pThis->Release();
30
31 return hr;
32}
33
34CProgressBarControl::~CProgressBarControl(void) {
35 DestroyControlWindow();

Callers

nothing calls this directly

Calls 2

QueryInterfaceMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected