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

Method GetPath

Testing/TestPlugins/src/PathCopyCopyPlugin1a.cpp:52–62  ·  view source on GitHub ↗

Method that must return the path, with plugin-specific alteration.

Source from the content-addressed store, hash-verified

50
51// Method that must return the path, with plugin-specific alteration.
52[[gsl::suppress(c.128), gsl::suppress(f.6)]]
53STDMETHODIMP CPathCopyCopyPlugin1a::GetPath(BSTR p_pPath, BSTR *p_ppNewPath)
54{
55 if (p_pPath == nullptr || p_ppNewPath == nullptr) {
56 return E_INVALIDARG;
57 }
58 std::wstring newPath(p_pPath);
59 newPath += L"1a";
60 *p_ppNewPath = ::SysAllocString(newPath.c_str());
61 return S_OK;
62}
63
64// Method that must return the ID of the plugin group to which this plugin belongs.
65// All plugins in the same group will appear together in the contextual menu.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected