Shell_GetCachedImageIndex

Shell_GetCachedImageIndex は変更されるか利用できなくなる可能性がある。

Shell_GetCachedImageIndex pwszIconPath, iIconIndex, uIconFlags

pwszIconPath : [wstr] 型: PCWSTR イメージファイルへのパスを格納するバッファーへのポインター。
iIconIndex : [int] 型: int pwszIconPath で指定されたファイル内のイメージのインデックス。
uIconFlags : [int] 型: UINT 使用しない。

(プラグイン / モジュール : shell32.dll)

解説

Shell_GetCachedImageIndex は変更されるか利用できなくなる可能性がある。

[戻り値]
型: int イメージのインデックスを返す。失敗した場合は ?1 を返す。

[備考]
この関数の Shell_GetCachedImageIndexA 版および Shell_GetCachedImageIndexW 版は
Windows Vista で追加された。Unicode 文字列の場合は Shell_GetCachedImageIndexW または
Shell_GetCachedImageIndex のいずれかを呼び出す。ANSI 文字列の場合は
Shell_GetCachedImageIndexA を明示的に呼び出さなければならない。Windows Server 2003 および
Windows XP: Shell_GetCachedImageIndex
のみがサポートされる。Shell_GetCachedImageIndex は Unicode 文字列を必要とする。

情報

プラグイン / モジュールshell32.dll
バージョン1.0
作成日2026/04/16
著作者IronHSP / CsWin32 bridge
URLhttps://github.com/inovia/IronHSP
備考Win32 API の shell32.dll 関数群。CsWin32 + win32metadata から自動生成。
hsp3net 専用 (intptr / NSTRUCT / wstr を使用)。
タイプ拡張命令
グループWin32API
対応環境
  • Windows 版 HSP
hs ファイルhsphelp\win32_shell32_gen2.hs