Shell32DuplicateIcon Method

Creates a duplicate of a specified icon.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", SetLastError = true)]
public static IntPtr DuplicateIcon(
	IntPtr hInst,
	IntPtr hicon
)

Parameters

hInst  IntPtr
Reserved.
hicon  IntPtr
Handle to the icon to be duplicated.

Return Value

IntPtr
If successful, the function returns the handle to the new icon that was created; otherwise, Zero.

Remarks

See Also