Results 1 to 4 of 4

Thread: codesign + dragdrop/IDropTarget + UAC

  1. #1

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,513

    Question codesign + dragdrop/IDropTarget + UAC

    Hi guys,

    I've implemented the IDropTarget from here: www.vbforums.com/showthread.php?808125

    However, when running the compiled .exe as Admin, then DRAG & Drop functionality stops!
    The idea was to digitally sign the .exe, make sure it runs from program files (x86)
    and the manifest to have UIAccess =True.

    After all this, still Drag & Drop doesn't work with Admin or UAC off.


    Can someone shed any light to this please?
    Last edited by some1uk03; Jun 28th, 2020 at 05:45 PM.
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    21,031

    Re: codesign + dragdrop/IDropTarget + UAC

    Why is it so hard to write a program that requires UI Access privilege?

    The main issue is that you must be installed into System32.

    Old info, still true. But... Windows 10 has tightened things further, the main one being a separate restricted list of trusted CAs. Not just any code signing cert will do. Too many can be had for just a tiny fee without serious checking of applicant credentials or bonding. That's not unique, a lot of anti-malware products have also tightened their lists of trusted CAs.

    Things got so bad that Microsoft stopped publishing info on hardening in Windows 10. To get full disclosure you must be a Microsoft Certified Partner these days.

  3. #3

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,513

    Re: codesign + dragdrop/IDropTarget + UAC

    Based on Microsoft, it can be:

    \Program Files\ including subdirectories
    \Windows\system32\
    \Program Files (x86)\


    Even if UIAceess remains FALSE, then (still show the dialog) isn't there a way to get Drag & Drop working?
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,044

    Re: codesign + dragdrop/IDropTarget + UAC

    You can get drag/drop working between your elevated process and other non-elevated processes with subclassing.

    But that method excludes OLE drag/drop and only works if your app is the receiver. As a source for the drag, it doesn't allow you to drop onto a higher access-level window unless that window allows it.

    See this thread, jump to post #7
    http://www.vbforums.com/showthread.p...p-on-Windows10
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width