| 278 | } |
| 279 | |
| 280 | void TaskbarAppearanceService::InstallProxyStub() |
| 281 | { |
| 282 | if (!s_ProxyStubRegistrationCookie) |
| 283 | { |
| 284 | winrt::com_ptr<IUnknown> proxyStub; |
| 285 | winrt::check_hresult(DLLGETCLASSOBJECT_ENTRY(PROXY_CLSID_IS, winrt::guid_of<decltype(proxyStub)::type>(), proxyStub.put_void())); |
| 286 | winrt::check_hresult(CoRegisterClassObject(PROXY_CLSID_IS, proxyStub.get(), CLSCTX_INPROC_SERVER, REGCLS_MULTIPLEUSE, &s_ProxyStubRegistrationCookie)); |
| 287 | |
| 288 | winrt::check_hresult(CoRegisterPSClsid(IID_ITaskbarAppearanceService, PROXY_CLSID_IS)); |
| 289 | winrt::check_hresult(CoRegisterPSClsid(IID_IVersionedApi, PROXY_CLSID_IS)); |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | void TaskbarAppearanceService::UninstallProxyStub() |
| 294 | { |