Lines Matching refs:attrib
40 typedef int (WINAPI * SHGetFileInfoWP)(LPCWSTR pszPath, DWORD attrib, SHFILEINFOW *psfi, UINT cbFileInfo, UINT uFlags);
53 static DWORD_PTR MySHGetFileInfoW(LPCWSTR pszPath, DWORD attrib, SHFILEINFOW *psfi, UINT cbFileInfo, UINT uFlags)
62 (pszPath, attrib, psfi, cbFileInfo, uFlags);
65 DWORD_PTR GetRealIconIndex(CFSTR path, DWORD attrib, int &iconIndex)
71 DWORD_PTR res = ::SHGetFileInfo(fs2fas(path), FILE_ATTRIBUTE_NORMAL | attrib, &shellInfo,
80 DWORD_PTR res = ::MySHGetFileInfoW(fs2us(path), FILE_ATTRIBUTE_NORMAL | attrib, &shellInfo,
88 DWORD_PTR GetRealIconIndex(const UString &fileName, DWORD attrib, int &iconIndex, UString *typeName)
95 DWORD_PTR res = ::SHGetFileInfoA(GetSystemString(fileName), FILE_ATTRIBUTE_NORMAL | attrib, &shellInfo,
107 DWORD_PTR res = ::MySHGetFileInfoW(fileName, FILE_ATTRIBUTE_NORMAL | attrib, &shellInfo,
117 static int FindInSorted_Attrib(const CRecordVector<CAttribIconPair> &vect, DWORD attrib, int &insertPos)
123 DWORD midAttrib = vect[mid].Attrib;
124 if (attrib == midAttrib)
126 if (attrib < midAttrib)
153 int CExtToIconMap::GetIconIndex(DWORD attrib, const wchar_t *fileName /*, UString *typeName */)
170 sprintf(s, "SPEC i = %3d, attr = %7x", _attribMap.Size(), attrib);
176 if ((attrib & FILE_ATTRIBUTE_DIRECTORY) != 0 || dotPos < 0)
179 int index = FindInSorted_Attrib(_attribMap, attrib, insertPos);
191 , attrib, pair.IconIndex
197 sprintf(s, "i = %3d, attr = %7x", _attribMap.Size(), attrib);
201 pair.Attrib = attrib;
242 GetRealIconIndex(us2fs(fileName + dotPos), attrib, pair.IconIndex);
249 int CExtToIconMap::GetIconIndex(DWORD attrib, const UString &fileName)
251 return GetIconIndex(attrib, fileName, NULL);