IPathCopyCopyConfigHelper::PluginCount Returns the number of available plugins. @param p_pCount Will contain the number of available plugins. @return Result code.
| 50 | // @return Result code. |
| 51 | // |
| 52 | [[gsl::suppress(c.128)]] |
| 53 | STDMETHODIMP CPathCopyCopyConfigHelper::get_PluginCount(ULONG *p_pCount) |
| 54 | { |
| 55 | Initialize(); |
| 56 | HRESULT hRes = S_OK; |
| 57 | |
| 58 | if (p_pCount != nullptr) { |
| 59 | *p_pCount = gsl::narrow_cast<ULONG>(m_vspPlugins.size()); |
| 60 | } else { |
| 61 | hRes = E_INVALIDARG; |
| 62 | } |
| 63 | |
| 64 | return hRes; |
| 65 | } |
| 66 | |
| 67 | // |
| 68 | // IPathCopyCopyConfigHelper::GetPluginInfo |