
Originally Posted by
LeandroA
Excellent, I was almost sure that the only way would be through oleexp, but I had no idea how.
I tell you using the CoAllowSetForegroundWindow vb6 api it crashes, and without calling that api it works fine.
I have a query for you, I should open a new thread but I think it will be a quick answer, I am currently making use of your work with SHDoDragDrop, what I do is automate DragDrop on web.whatsapp.com that is on a web browser (in my case chrome) this works fine both in the ide and compiled, now within WhatsAppDesktop it does not allow me to drop from the ide and this is because I have vb6.exe with administrator privileges, just to clear my doubt, it is possible that there may be some way that work between applications with different privileges?
Yes. You must install it to Program Files (x86) and have uiAccess=True in the manifest.
Code:
<asmv2:trustInfo>
<asmv2:security>
<asmv2:requestedPrivileges>
<asmv2:requestedExecutionLevel level="requireAdministrator" uiAccess="true"/>
</asmv2:requestedPrivileges>
</asmv2:security>
</asmv2:trustInfo>
For that API, I refuse to let Windows Store on my computer so couldn't test the declare; try ByVal pUnk As Any or ByVal pUnk As oleexp.IUnknown.