IPersist::GetClassID Must return the CLSID of the class capable of handling the data. We will return our own CLSID. @param pClassID Where to store our CLSID. @return S_OK if successful, otherwise an error code.
| 120 | // @return S_OK if successful, otherwise an error code. |
| 121 | // |
| 122 | [[gsl::suppress(c.128), gsl::suppress(f.6)]] |
| 123 | STDMETHODIMP CPathCopyCopyDataHandler::GetClassID( |
| 124 | CLSID *pClassID) |
| 125 | { |
| 126 | HRESULT hRes = E_INVALIDARG; |
| 127 | if (pClassID != nullptr) { |
| 128 | *pClassID = __uuidof(PathCopyCopyDataHandler); |
| 129 | hRes = S_OK; |
| 130 | } |
| 131 | return hRes; |
| 132 | } |
| 133 | |
| 134 | // |
| 135 | // IDataObject::GetData |
nothing calls this directly
no outgoing calls
no test coverage detected