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

Method GetPath

Testing/TestPlugins/src/PathCopyCopyPlugin2b.cpp:54–64  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

52
53// Method that must return the path, with plugin-specific alteration.
54[[gsl::suppress(c.128), gsl::suppress(f.6)]]
55STDMETHODIMP CPathCopyCopyPlugin2b::GetPath(BSTR p_pPath, BSTR *p_ppNewPath)
56{
57 if (p_pPath == nullptr || p_ppNewPath == nullptr) {
58 return E_INVALIDARG;
59 }
60 std::wstring newPath(p_pPath);
61 newPath += L"2b";
62 *p_ppNewPath = ::SysAllocString(newPath.c_str());
63 return S_OK;
64}
65
66// Method that must return the ID of the plugin group to which this plugin belongs.
67// 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