Sorry ,,it's not about MadHook question.
There is no one that i can ask. help me..
I did hooking DoDragDrop API at the desktop(explorer.exe) and then dropped a text file on some UWP applications from desktop.
The UWP applications are 'Edge', 'Line'(messenger) and 'Mail'.
The file i dropped was attached successfully at the apps..
But the pdwEffect's value was 0 on the DoDragDropCallback function. In the Edge and Line.
Its value wasn't zero in the Mail.
zero value is DROPEFFECT_NONE(Drop target cannot accept the data.)
Do you know why??
UWP DoDragDrop
Re: UWP DoDragDrop
What is the return value in this situation? I think that's the most important thing to look at. Maybe some drop targets don't properly fill in the pdwEffect value? I don't really know.
Re: UWP DoDragDrop
Edge has heightened security and there could be a number of reasons for failure. You might also consider it's a problem based on User Interface Privilege Isolation (UIPI). I've run into this several times when doing drag 'n drop in the past if the process doing the dropping has a lower integrity level. IIRC I had to explicitly allow these messages:
WM_DROPFILES
WM_COPYDATA
WM_COPYGLOBALDATA
in a call to ChangeWindowMessageFilter()
--Iconic
WM_DROPFILES
WM_COPYDATA
WM_COPYGLOBALDATA
in a call to ChangeWindowMessageFilter()
--Iconic
-
- Posts: 8
- Joined: Thu Oct 20, 2016 2:30 am
Re: UWP DoDragDrop
When I dropped a file on the Edge, HRESULT(DoDragDrop's return value) is DRAGDROP_S_DROP and dwEffect's value is zero.
I used a spy++ program in order to look the WM(WM_DROPFILE, COPY .. )at the Edge.
But There was no any WM.
I used a spy++ program in order to look the WM(WM_DROPFILE, COPY .. )at the Edge.
But There was no any WM.
Re: UWP DoDragDrop
If "Edge" doesn't register the messages I posted in my previous post then you will NOT see those messages. It's why they need to be explicitly "added" with the filter API. Read about UIPI, it applies to what you're dealing with. If Spy++ isn't showing the messages then it's pretty safe to say this is likely the issue since they do not seem to be added i.e> don't see the messages = not added
--Iconic
--Iconic