DuplicateIcon

指定したアイコンの複製を作成する。

DuplicateIcon hInst, hIcon

hInst : [intptr] 型: HINSTANCE
hIcon : [intptr] 型: HICON 複製対象となるアイコンへのハンドル。

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

解説

指定したアイコンの複製を作成する。

[戻り値]
型: HICON 成功した場合、関数は新しく作成されたアイコンへのハンドルを返す。それ以外の場合は NULL を返す。

[備考]
DuplicateIcon が返したアイコンハンドルは、不要になった時点で呼び出し側が DestroyIcon
関数を呼び出して解放する責任がある。

情報

プラグイン / モジュール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