Determines if we should use the default icon for this plugin. @return true to use default icon, false otherwise.
| 171 | // @return true to use default icon, false otherwise. |
| 172 | // |
| 173 | bool COMPlugin::UseDefaultIcon() const |
| 174 | { |
| 175 | // Check if plugin supports specifying an icon. Otherwise return false. |
| 176 | bool useDefault = false; |
| 177 | if (m_cpPluginIcon != nullptr) { |
| 178 | // Ask plugin whether to use default icon. |
| 179 | VARIANT_BOOL useDefaultVar = VARIANT_FALSE; |
| 180 | const HRESULT hRes = m_cpPluginIcon->get_UseDefaultIcon(&useDefaultVar); |
| 181 | if (SUCCEEDED(hRes)) { |
| 182 | useDefault = useDefaultVar != VARIANT_FALSE; |
| 183 | } |
| 184 | } |
| 185 | return useDefault; |
| 186 | } |
| 187 | |
| 188 | // |
| 189 | // Returns whether plugin should be enabled in the contextual menu. |
nothing calls this directly
no test coverage detected