mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-03-29 02:16:11 +08:00
Fix Directory Opus integration by allowing WM_COPYDATA from different privilege levels
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
This commit is contained in:
@@ -124,7 +124,15 @@ void DOpus::PrepareMessageWindow()
|
||||
wx.lpszClassName = MSGWINDOW_CLASS;
|
||||
|
||||
if (RegisterClassEx(&wx))
|
||||
{
|
||||
hMsgWnd = CreateWindowEx(0, MSGWINDOW_CLASS, L"", 0, 0, 0, 0, 0, HWND_MESSAGE, nullptr, nullptr, nullptr);
|
||||
|
||||
// Allow WM_COPYDATA from processes with different privilege levels
|
||||
if (hMsgWnd != nullptr)
|
||||
{
|
||||
ChangeWindowMessageFilterEx(hMsgWnd, WM_COPYDATA, MSGFLT_ALLOW, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
hGetResultEvent = CreateEvent(nullptr, FALSE, FALSE, nullptr);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,15 @@ bool MultiCommander::PrepareMessageWindow()
|
||||
wx.lpszClassName = MULTICMD_MSGWINDOW_CLASS;
|
||||
|
||||
if (RegisterClassEx(&wx))
|
||||
{
|
||||
hMsgWnd = CreateWindowEx(0, MULTICMD_MSGWINDOW_CLASS, L"", 0, 0, 0, 0, 0, HWND_MESSAGE, nullptr, nullptr, nullptr);
|
||||
|
||||
// Allow WM_COPYDATA from processes with different privilege levels
|
||||
if (nullptr != hMsgWnd)
|
||||
{
|
||||
ChangeWindowMessageFilterEx(hMsgWnd, WM_COPYDATA, MSGFLT_ALLOW, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
if (nullptr == hMsgWnd) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user