MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / GetClassID

Method GetClassID

PathCopyCopy/src/PathCopyCopyDataHandler.cpp:122–132  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

120// @return S_OK if successful, otherwise an error code.
121//
122[[gsl::suppress(c.128), gsl::suppress(f.6)]]
123STDMETHODIMP 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected