David Hedberg : shell32: IShellItem:: GetAttributes should also work on the desktop shellfolder.