| 5 | #include "simplefactory.hpp" |
| 6 | |
| 7 | _Use_decl_annotations_ STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) try |
| 8 | { |
| 9 | if (rclsid == CLSID_TAPSite) |
| 10 | { |
| 11 | *ppv = nullptr; |
| 12 | return winrt::make<SimpleFactory<TAPSite>>().as(riid, ppv); |
| 13 | } |
| 14 | else |
| 15 | { |
| 16 | return CLASS_E_CLASSNOTAVAILABLE; |
| 17 | } |
| 18 | } |
| 19 | catch (...) |
| 20 | { |
| 21 | return winrt::to_hresult(); |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected