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

Method Enabled

Testing/TestPlugins/src/PathCopyCopyPlugin2b.cpp:93–103  ·  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

91// Method that determines whether the plugin should be enabled in the contextual menu.
92// The method must return VARIANT_TRUE otherwise it will be grayed out.
93[[gsl::suppress(c.128), gsl::suppress(f.6)]]
94STDMETHODIMP CPathCopyCopyPlugin2b::Enabled(BSTR /*p_pParentPath*/,
95 BSTR /*p_pFile*/,
96 VARIANT_BOOL *p_pEnabled)
97{
98 if (p_pEnabled == nullptr) {
99 return E_INVALIDARG;
100 }
101 *p_pEnabled = VARIANT_TRUE;
102 return S_OK;
103}
104
105// Method that provides the path of a file containing the image to use
106// for the icon of the plugin in the contextual menu.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected