A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



DuplicateIcon

The DuplicateIcon function creates a duplicate of a specified icon.

VB4-32,5,6
Declare Function DuplicateIcon Lib "shell32.dll" (ByVal hInst As Long, ByVal hIcon As Long) As Long

VB.NET
System.Drawing.Icon.Clone

Operating Systems Supported
Requires Windows NT 3.5(1) or later; Requires Windows 95 or later

Library
Shell32

Parameter Information
- hInst
[in] This parameter is not used; it can be NULL.

- hIcon
[in] Handle to the icon to be duplicated.

Return Values
If successful, the function returns the handle to the new icon that was created. If unsuccessful, it returns NULL.

Last update: 07 April 2006