The CopyIcon function copies an icon handle. This enables an application or DLL to get its own handle for an icon owned by another module. Then, if the other module is freed, the application that copied the icon will still be able to use the icon.
The CopyImage function creates a new icon based on the specified source icon. The new icon can be larger or smaller than the source icon.
For information about adding, removing, or replacing icon resources in executable (.EXE) files, see Resources.