Lines Matching defs:attrib

52 typedef DWORD_PTR (WINAPI * Func_SHGetFileInfoW)(LPCWSTR pszPath, DWORD attrib, SHFILEINFOW *psfi, UINT cbFileInfo, UINT uFlags);

66 static DWORD_PTR My_SHGetFileInfoW(LPCWSTR pszPath, DWORD attrib, SHFILEINFOW *psfi, UINT cbFileInfo, UINT uFlags)
75 (pszPath, attrib, psfi, cbFileInfo, uFlags);
78 DWORD_PTR GetRealIconIndex(CFSTR path, DWORD attrib, int &iconIndex)
84 const DWORD_PTR res = ::SHGetFileInfo(fs2fas(path), FILE_ATTRIBUTE_NORMAL | attrib, &shellInfo,
93 const DWORD_PTR res = ::My_SHGetFileInfoW(fs2us(path), FILE_ATTRIBUTE_NORMAL | attrib, &shellInfo,
101 DWORD_PTR GetRealIconIndex(const UString &fileName, DWORD attrib, int &iconIndex, UString *typeName)
108 DWORD_PTR res = ::SHGetFileInfoA(GetSystemString(fileName), FILE_ATTRIBUTE_NORMAL | attrib, &shellInfo,
120 DWORD_PTR res = ::My_SHGetFileInfoW(fileName, FILE_ATTRIBUTE_NORMAL | attrib, &shellInfo,
130 static int FindInSorted_Attrib(const CRecordVector<CAttribIconPair> &vect, DWORD attrib, unsigned &insertPos)
137 if (attrib == midAttrib)
139 if (attrib < midAttrib)
166 int CExtToIconMap::GetIconIndex(DWORD attrib, const wchar_t *fileName /*, UString *typeName */)
183 sprintf(s, "SPEC i = %3d, attr = %7x", _attribMap.Size(), attrib);
189 if ((attrib & FILE_ATTRIBUTE_DIRECTORY) != 0 || dotPos < 0)
192 const int index = FindInSorted_Attrib(_attribMap, attrib, insertPos);
204 , attrib, pair.IconIndex
210 sprintf(s, "i = %3d, attr = %7x", _attribMap.Size(), attrib);
214 pair.Attrib = attrib;
255 GetRealIconIndex(us2fs(fileName + dotPos), attrib, pair.IconIndex);
262 int CExtToIconMap::GetIconIndex(DWORD attrib, const UString &fileName)
264 return GetIconIndex(attrib, fileName, NULL);