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); }
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); }
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; }