EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

DuplicateIcon function

Creates a duplicate of a specified icon.

Syntax


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

Parameters

hInst

Type: HINSTANCE

This parameter is not used; it can be NULL.

hIcon [in]

Type: HICON

A 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. If unsuccessful, it returns NULL.

Remarks

You must destroy the icon handle returned by DuplicateIcon by calling the DestroyIcon function.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shellapi.h

Library

Shell32.lib

DLL

Shell32.dll

See also

Reference
DestroyIcon
Conceptual
Icons

 

 

Community-Beiträge

HINZUFÜGEN
Anzeigen:
© 2014 Microsoft