Expand Minimize
This topic has not yet been rated - Rate this topic

DuplicateIcon function

Creates a duplicate of a specified icon.

Syntax


HICON DuplicateIcon(
  _Reserved_  HINSTANCE hInst,
  _In_        HICON hIcon
);

Parameters

hInst [in]

Type: HINSTANCE

hIcon [in]

Type: HICON

Handle to the icon to be duplicated.

Return value

Type: HICON

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

Remarks

When it is no longer needed, the caller is responsible for freeing the icon handle returned by DuplicateIcon by calling the DestroyIcon function.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shellapi.h

DLL

Shell32.dll

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.