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