IShellFolder.GetAttributesOf method is failing to update the(out SFGAOF rgfInOut) parameter. RRS feed

  • Question

  • Hi,

    uint GetAttributesOf(int cidl,out IntPtr apidl,out SFGAOF rgfInOut);

    After executing the above method, the last parameter (rgfInout) is not updating & it is returning the default value always.

    The default value for rgfInout = ShellExplorerAPI.SFGAOF.SFGAO_FOLDER | ShellExplorerAPI.SFGAOF.SFGAO_HASSUBFOLDER;

    Why it is returning the default value always? 

    Please help me.

    Monday, December 2, 2019 5:49 AM

All replies

  • The most likely answer is that you've made a mistake creating the apidl, so no entries are actually being scanned.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    Monday, December 2, 2019 7:52 AM