Shell_GetCachedImageIndex 함수(shlobj_core.h)
[Shell_GetCachedImageIndex 요구 사항 섹션에 지정된 운영 체제에서 사용할 수 있습니다. 이후 버전에서는 변경되거나 제공되지 않을 수 있습니다. 대신 Shell_GetCachedImageIndexA 또는 Shell_GetCachedImageIndexW 사용합니다.]
캐시된 아이콘의 캐시 인덱스를 검색합니다.
구문
int Shell_GetCachedImageIndex(
[in] PCWSTR pwszIconPath,
int iIconIndex,
UINT uIconFlags
);
매개 변수
[in] pwszIconPath
형식: PCWSTR
이미지 파일의 경로를 포함하는 버퍼에 대한 포인터입니다.
iIconIndex
형식: int
pwszIconPath에서 명명된 파일 내 이미지의 인덱스입니다.
uIconFlags
형식: UINT
사용되지 않습니다.
반환 값
형식: int
이미지의 인덱스 또는 실패 시 –1을 반환합니다.
설명
이 함수의 Shell_GetCachedImageIndexA 및 Shell_GetCachedImageIndexW 버전이 Windows Vista에 추가되었습니다. 유니코드 문자열의 경우 Shell_GetCachedImageIndexW 또는 Shell_GetCachedImageIndex 호출합니다. ANSI 문자열의 경우 Shell_GetCachedImageIndexA 명시적으로 호출해야 합니다.
Windows Server 2003 및 Windows XP: Shell_GetCachedImageIndex만 지원됩니다. Shell_GetCachedImageIndex 유니코드 문자열이 필요합니다.
요구 사항
요구 사항 | 값 |
---|---|
지원되는 최소 클라이언트 | Windows XP [데스크톱 앱만 해당] |
지원되는 최소 서버 | Windows Server 2003 [데스크톱 앱만 해당] |
대상 플랫폼 | Windows |
헤더 | shlobj_core.h(Shlobj.h, Shlobj_core.h, Shlobj.h, Shlobj_core.h 포함) |
라이브러리 | Shell32.lib |
DLL | Shell32.dll(버전 5.0 이상) |
API 세트 | ext-ms-win-shell-shell32-l1-2-1(Windows 10 버전 10.0.10240에 도입됨) |