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.
| 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)]] |
| 94 | STDMETHODIMP 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. |
nothing calls this directly
no outgoing calls
no test coverage detected