Shell namespace extension registry on windows 10 IOT enterprise(DllGetClassObject never being called) RRS feed

  • Question

  • I am creating a virtual folder with shell namespace extension on windows 10 IOT enterprise. The code I am using come from windows 7 SDK samplesm which is provided by microsoft. Here is the whole project: https://github.com/pauldotknopf/WindowsSDK7-Samples/tree/master/winui/shell/shellextensibility/explorerdataprovider

    This project runs perfectly on windows 7 and windows 10, but after run "regsvr32 explorerdataprovider.dll" on windows 10 iot enterprise, the virtual folder icon does show up under "my computer", but after I double click the icon, nothing happens. enter image description here

    so I debug into that and found out the function DllGetClassObject is never being called. My guess is that the windows 10 iot enterprise registry for shell namespace extension is different with windows 10, so I searched online to try to add enough registry key, so far the registry I am using is:

     REGSTRUCT rgRegEntries[] =
            HKEY_CURRENT_USER,   L"Software\\Classes\\CLSID\\%s",                  szFolderViewImplClassID, NULL,                   (LPBYTE)g_szExtTitle,       REG_SZ,
            HKEY_CURRENT_USER,   L"Software\\Classes\\CLSID\\%s\\InprocServer32",  szFolderViewImplClassID, NULL,                   (LPBYTE)L"%s",              REG_SZ,
            HKEY_CURRENT_USER,   L"Software\\Classes\\CLSID\\%s\\InprocServer32",  szFolderViewImplClassID, L"ThreadingModel",      (LPBYTE)L"Apartment",       REG_SZ,
            HKEY_CURRENT_USER,   L"Software\\Classes\\CLSID\\%s\\DefaultIcon",     szFolderViewImplClassID, NULL,                   (LPBYTE)L"shell32.dll,-42", REG_SZ,
            HKEY_CURRENT_USER,   L"Software\\Classes\\CLSID\\%s\\ShellFolder",     szFolderViewImplClassID, L"Attributes",          (LPBYTE)&dwData,            REG_DWORD,

    HKEY_CLASSES_ROOT, L"CLSID\\%s", szFolderViewImplClassID, NULL, (LPBYTE)g_szExtTitle, REG_SZ,
    HKEY_CLASSES_ROOT, L"CLSID\\%s\\InprocServer32", szFolderViewImplClassID, NULL, (LPBYTE)L"%s", REG_SZ,
    HKEY_CLASSES_ROOT, L"CLSID\\%s\\InprocServer32", szFolderViewImplClassID, L"ThreadingModel", (LPBYTE)L"Apartment", REG_SZ,
    HKEY_CLASSES_ROOT, L"CLSID\\%s\\DefaultIcon", szFolderViewImplClassID, NULL, (LPBYTE)L"%s,0", REG_SZ,
    HKEY_CLASSES_ROOT, L"CLSID\\%s\\ShellFolder", szFolderViewImplClassID, L"Attributes", (LPBYTE)&dwData, REG_DWORD,

    HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\%s",szFolderViewImplClassID, NULL,                   (LPBYTE)g_szExtTitle,       REG_SZ,
    HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\DelegateFolders\\%s",szFolderViewImplClassID, NULL,                   (LPBYTE)g_szExtTitle,       REG_SZ,

    HKEY_CURRENT_USER, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\%s",szFolderViewImplClassID, NULL,                   (LPBYTE)g_szExtTitle,       REG_SZ,

    //HKEY_LOCAL_MACHINE, L"\\%s",szFolderViewImplClassID, NULL,                   (LPBYTE)g_szExtTitle,       REG_SZ,

    HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved",szFolderViewImplClassID, NULL,                   (LPBYTE)g_szExtTitle,       REG_SZ,


    But it doesn't work also.

    So anything missing for that ? 

    • Edited by beasone Thursday, December 5, 2019 7:02 PM
    Thursday, December 5, 2019 7:01 PM

All replies

  • Hi,

    Thanks for posting here.

    Is UWF enabled in your windows 10 IOT enterprise environment?

    The UWF feature will protect some registry.

    Best Regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, December 6, 2019 3:24 AM