none
How to construct a default mtp device path for folder browse dialog? RRS feed

  • Question

  • I have a file browse dialog, which I use to select a path in an Android device. I need that path, because I copy a file from PC to that folder of the device. There is a special folder (which is create by my program on the device), which I would like to use as start of browsing.

    The browser gives the following return value for my path:

    ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\\?\usb#vid_04e8&pid_6860&mi_00#6&2296b879&0&0000#{6ac27878-a6fa-4155-ba85-f98f491d4f33}\SID-{10001,SECZ9519043CHOHB,12635222016}\{01B8016B-0164-00F2-E100-55012C014001}

    I can get almost all parts of this path except ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}. I also tried to use the path without that GUID, but it didn't work, while it worked with it. Do you know how can I get this GUID?

    I looked into registry and I found this GUID (only one entry):
    HKEY_USERS\S-1-5-21-2044730494-4069800027-1247311059-1000\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon
    which value is this:
    C:\Windows\System32\imageres.dll,-109
    (CLSID subfolder contains more GUID, so I can't find, which is the correct one)

    Monday, November 19, 2012 2:47 PM

Answers

  • {20D04FE0-3AEA-1069-A2D8-08002B30309D} is for the My Computer delegate. It is a constant and needs to be part of the shell parsing path for MTP devices.

    Regards,

    lisa




    • Edited by Lisa O - MSFT Monday, November 19, 2012 5:26 PM
    • Marked as answer by Doron Holan [MSFT] Monday, November 19, 2012 7:38 PM
    • Unmarked as answer by kadrian Tuesday, November 20, 2012 8:31 AM
    • Marked as answer by kadrian Tuesday, November 20, 2012 8:42 AM
    Monday, November 19, 2012 5:24 PM