News:

SMF - Just Installed!

Main Menu

Recent posts

#51
General support / Re: Copy Handler 1.50 feedback
Last post by Xallde - December 28, 2020, 01:38:14 PM
install over 1,46 without problem
#52
General support / Copy Handler 1.50 feedback
Last post by Ixen - December 25, 2020, 10:15:31 AM
Yesterday a first beta version of CH 1.50 was released. It drops support for older systems (Windows XP and Vista), adds robust rules to support unattended operations, changes a bit look of status dialog (big and small) and features many other changes.
It's a good time to get your feedback regarding this version - maybe something could be more intuitive, something does not work for you or you have some other comments you would like to share. Feel free to comment in this forum thread.
#53
General support / Re: "Unable to register the DL...
Last post by KryziK - December 22, 2020, 10:42:26 PM
Quote from: Ixen on December 22, 2020, 08:05:20 PM
I've sent you a PM on this forum with link. Thanks!

Responded. Overall things are looking good. Replying here because I don't see any of my replies in sent messages, and want to make sure you got them.
#54
General support / Re: "Unable to register the DL...
Last post by Ixen - December 22, 2020, 08:05:20 PM
I've sent you a PM on this forum with link. Thanks!
#55
General support / Re: "Unable to register the DL...
Last post by KryziK - December 22, 2020, 07:21:25 PM
Not a problem! Glad it helped.

If you want me to test the fix on one of my VMs, I can. Just tell me what specifics you want me to verify (other than the error going away during install, obviously).
#56
General support / Re: "Unable to register the DL...
Last post by Ixen - December 22, 2020, 07:12:43 PM
@KryziK: thanks for pinpointing the specific part of code - that sped things up.

Fix has been committed to git repo. I'll release 1.46 in a day or two after fixing one more problem with shell extension. If anyone would like to test the fix - please pm me.
#57
General support / Re: "Unable to register the DL...
Last post by Xallde - December 22, 2020, 08:22:01 AM
Error seen with Win 10 20H2 build 19042.658
#58
General support / Re: "Unable to register the DL...
Last post by KryziK - December 21, 2020, 11:32:30 PM
Sorry for double-post.

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");
}


Can confirm that throw std::runtime_error("Cannot open registry key"); is getting hit.
#59
General support / Re: "Unable to register the DL...
Last post by KryziK - December 21, 2020, 10:51:53 PM
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.

Command
C:\Windows\System32\regsvr32.exe C:\Users\Test\Desktop\ch-portable-1.45\64bit\chext64.dll

Working Directory
C:\Users\Test\Desktop\ch-portable-1.45\64bit

Module
chext64.dll

API
RegOpenKeyExW ( HKEY_CLASSES_ROOT, "Directory\Shellex\DragDropHandlers", 0, KEY_ALL_ACCESS, 0x0000000000b3e198 )

Return Value
ERROR_FILE_NOT_FOUND

Error
2 = The system cannot find the file specified.

Notes
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");
}
#60
General support / Re: "Unable to register the DL...
Last post by Ixen - 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.
SMF spam blocked by CleanTalk