HICON CLauncherInfo::GetIcon(BOOL& need_destroy) { LPCTSTR path; int idx; if(m_IconPath) { path = m_IconPath; idx = m_IconIndex; } else { path = m_ModulePath; idx = 0; } return _GetIcon(path, idx, need_destroy); }
STDAPI CLangBarItemButton::GetIcon(HICON *phIcon) { _GetIcon(phIcon, IsWindowsVersion62OrLater()); return (*phIcon != nullptr) ? S_OK : E_FAIL; }