Beispiel #1
0
        private static SFGAO LoadMissingAttributes(IShellItem nativeItem, SFGAO loadedAttrs, SFGAO curAttrs, SFGAO requestedAttrs)
        {
            SFGAO unloadedAttributes = requestedAttrs & (~loadedAttrs);

            if (unloadedAttributes != SFGAO.None)
            {
                SFGAO newAttributes;
                nativeItem.GetAttributes(unloadedAttributes, out newAttributes);
                curAttrs |= newAttributes;
            }
            return(curAttrs);
        }
Beispiel #2
0
        private SFGAO GetAttributes()
        {
            SFGAO attrs = 0;

            if (_shellItem?.GetAttributes(SFGAO.FILESYSTEM | SFGAO.FOLDER | SFGAO.HIDDEN | SFGAO.STREAM, out attrs) !=
                NativeMethods.S_OK)
            {
                attrs = 0;
            }

            return(attrs);
        }
Beispiel #3
0
 private static SFGAO LoadMissingAttributes(IShellItem nativeItem, SFGAO loadedAttrs, SFGAO curAttrs, SFGAO requestedAttrs)
 {
     SFGAO unloadedAttributes = requestedAttrs & (~loadedAttrs);
     if (unloadedAttributes != SFGAO.None)
     {
         SFGAO newAttributes;
         nativeItem.GetAttributes(unloadedAttributes, out newAttributes);
         curAttrs |= newAttributes;
     }
     return curAttrs;
 }