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

Method Enabled

Testing/TestPlugins/src/PathCopyCopyPlugin1b.cpp:91–101  ·  view source on GitHub ↗

Method that determines whether the plugin should be enabled in the contextual menu. The method must return VARIANT_TRUE otherwise it will be grayed out.

Source from the content-addressed store, hash-verified

89// Method that determines whether the plugin should be enabled in the contextual menu.
90// The method must return VARIANT_TRUE otherwise it will be grayed out.
91[[gsl::suppress(c.128), gsl::suppress(f.6)]]
92STDMETHODIMP CPathCopyCopyPlugin1b::Enabled(BSTR /*p_pParentPath*/,
93 BSTR /*p_pFile*/,
94 VARIANT_BOOL *p_pEnabled)
95{
96 if (p_pEnabled == nullptr) {
97 return E_INVALIDARG;
98 }
99 *p_pEnabled = VARIANT_TRUE;
100 return S_OK;
101}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected