DestroyIcon

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function destroys an icon and frees any memory the icon occupied.


BOOL DestroyIcon(
  HICON hIcon
);

hIcon

[in] Handle to the icon to be destroyed. The icon must not be in use.

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

This function may be called on the icon handle returned from CreateIconIndirect, ExtractIconEx, LoadImage or LoadIcon. The icon handle is invalid after calling DestroyIcon.

Headerwinuser.h
LibraryIcon.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: