| 14 | DEFINE_UUIDOF(CProgressBarControl, CLSID_ProgressBarControl); |
| 15 | |
| 16 | STDMETHODIMP 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 | |
| 34 | CProgressBarControl::~CProgressBarControl(void) { |
| 35 | DestroyControlWindow(); |
nothing calls this directly
no test coverage detected