A new SHGFI_ATTR_SPECIFIED flag is defined in uFlags. If this flag is set, the caller is responsible in initializing dwAttributes in psfi (SHFILEINFO) and the API uses this DWORD to call IShellFolder::GetAttributesOf (instead of 0xffffffff). This is much more efficient if you are interested in a small set of attributes.
WARNING: SHGFI_ATTR_SPECIFIED and SHGFI_ICON can no be set at the same time (due to the optimization in this API). If you set both, you may get a wrong icon.