IShellLinkW_SetIconLocation

シェルリンクオブジェクトのアイコンの位置(パスとインデックス)を設定する。(Unicode)

IShellLinkW_SetIconLocation this, pszIconPath, iIcon

this : [comobj] IShellLinkW インターフェースの COM オブジェクト変数
pszIconPath : [wstr] 型: LPCTSTR アイコンを含むファイルのパスを格納するバッファのアドレス。
iIcon : [int] 型: int アイコンのインデックス。

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

解説

シェルリンクオブジェクトのアイコンの位置(パスとインデックス)を設定する。(Unicode)

[戻り値]
型: HRESULT このメソッドが成功した場合 S_OK を返す。そうでなければ HRESULT エラーコードを返す。

情報

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