SMF - Just Installed!
void TRegistry::ReOpen(HKEY key, const wchar_t* pszKey, bool bReadOnly /*= true*/)
{
if (!pszKey)
throw std::invalid_argument("pszKey");
if (m_hKey)
RegCloseKey(m_hKey);
LSTATUS lStatus = RegOpenKeyEx(key, pszKey, 0, bReadOnly ? KEY_QUERY_VALUE : KEY_ALL_ACCESS, &m_hKey);
if (lStatus != ERROR_SUCCESS || m_hKey == nullptr)
throw std::runtime_error("Cannot open registry key");
}
Quote from: Ixen on December 21, 2020, 10:00:08 PM
Thanks. I can reproduce problem with fresh install of Win10 2004.
I've filed a bug for further tracking: https://dev.copyhandler.com/browse/CH-369
I'll try to take a look at it tomorrow.
void DllRegistration::RegisterDropMenuExt()
{
std::wstring strClsID = CLSID2String(CLSID_DropMenuExt);
RegisterClass(strClsID, L"DropMenuExt Class", L"Apartment");
CreateNodes(HKEY_CLASSES_ROOT, L"CLSID", strClsID + L"\\shellex\\MayChangeDefaultMenu");
CreateNodeWithDefaultValue(HKEY_CLASSES_ROOT, L"Directory\\Shellex\\DragDropHandlers", L"chext", strClsID.c_str());
CreateNodeWithDefaultValue(HKEY_CLASSES_ROOT, L"Drive\\Shellex\\DragDropHandlers", L"chext", strClsID.c_str());
CreateNodeWithDefaultValue(HKEY_CLASSES_ROOT, L"Folder\\Shellex\\DragDropHandlers", L"chext", strClsID.c_str());
CreateSingleValue(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved", strClsID.c_str(), L"chext");
}
Quote from: Ixen on December 21, 2020, 08:11:28 PM
What is the exact version of Win10 that you've used?
Looks like some dependency problem, but I'll have to try reproducing it on some clean Win10 vm.
Quote from: Xallde on December 19, 2020, 06:33:38 PM
this happens woth copy handler 1.45 (chext64.dll is the origin of failure) tried 1.44: no problem
Page created in 0.493 seconds with 15 queries.