| 48 | } |
| 49 | |
| 50 | STDMETHODIMP CElevationHelper::Create(IUnknown *pUnkOuter, REFIID riid, void **ppv) { |
| 51 | if (pUnkOuter != NULL) { |
| 52 | return CLASS_E_NOAGGREGATION; |
| 53 | } |
| 54 | |
| 55 | CElevationHelper *pThis = (CElevationHelper *)CoTaskMemAlloc(sizeof(CElevationHelper)); |
| 56 | if (pThis == NULL) { |
| 57 | return E_OUTOFMEMORY; |
| 58 | } |
| 59 | |
| 60 | new(pThis) CElevationHelper(); |
| 61 | InterlockedIncrement(&g_serverLocks); |
| 62 | // TODO: Only do this if we're in dllhost |
| 63 | BecomeDPIAware(); |
| 64 | HRESULT hr = pThis->QueryInterface(riid, ppv); |
| 65 | pThis->Release(); |
| 66 | return hr; |
| 67 | } |
| 68 | |
| 69 | CElevationHelper::~CElevationHelper(void) { |
| 70 | } |
nothing calls this directly
no test coverage detected