| 4 | struct COMInitializeHelper |
| 5 | { |
| 6 | COMInitializeHelper() |
| 7 | { |
| 8 | if (!SUCCEEDED(CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE))) |
| 9 | throw std::exception{ "COM initialize failed" }; |
| 10 | } |
| 11 | |
| 12 | ~COMInitializeHelper() |
| 13 | { |
nothing calls this directly
no outgoing calls
no test coverage detected