Shell32DuplicateIcon Method
Creates a duplicate of a specified icon.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Shell32.dll", SetLastError := true>]
Public Shared Function DuplicateIcon (
hInst As IntPtr,
hicon As IntPtr
) As IntPtr
Dim hInst As IntPtr
Dim hicon As IntPtr
Dim returnValue As IntPtr
returnValue = Shell32.DuplicateIcon(hInst,
hicon)
public:
[DllImportAttribute(L"Shell32.dll", SetLastError = true)]
static IntPtr DuplicateIcon(
IntPtr hInst,
IntPtr hicon
)
[<DllImportAttribute("Shell32.dll", SetLastError = true)>]
static member DuplicateIcon :
hInst : IntPtr *
hicon : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- hInst IntPtr
-
Reserved.
- hicon IntPtr
-
Handle to the icon to be duplicated.
IntPtr
If successful, the function returns the handle to the new icon that was created;
otherwise,
Zero.