in Docs-ContextMenuSample/ExplorerCommandVerb/RegisterExtension.cpp [829:839]
void CRegisterExtension::_UpdateAssocChanged(HRESULT hr, PCWSTR pszKeyFormatString) const
{
static const WCHAR c_szProgIDPrefix[] = L"Software\\Classes\\%s";
if (SUCCEEDED(hr) && !_fAssocChanged &&
(StrCmpNIC(pszKeyFormatString, c_szProgIDPrefix, ARRAYSIZE(c_szProgIDPrefix) - 1) == 0 ||
StrStrI(pszKeyFormatString, L"PropertyHandlers") ||
StrStrI(pszKeyFormatString, L"KindMap")))
{
const_cast<CRegisterExtension*>(this)->_fAssocChanged = true;
}
}