InstallIcon function (Installer DLL)
Overview
Installs the icon into the system
Declaration
BOOL __stdcall InstallIconA(
const char * IconPath,
const char * IconId,
BOOL * RebootNeeded
BOOL __stdcall InstallIconW(
const unsigned short * IconPath,
const unsigned short * IconId,
BOOL * RebootNeeded
Parameters
- IconPath - Path to .ico file, which will be used as an icon.
- IconId - Icon identifier, used for various operations with this icon.
- RebootNeeded - On return indicates if the system needs to be restarted before the icon can be used.
Return values
TRUE / true if the function succeeded or FALSE / false if the function failed.
Description
Use this function to install the icon (.ICO) file which will then be used in Explorer as a custom icon for the virtual disk. The icon is copied to the temporary file, which will be removed after deinstallation of the icon using UninstallIcon method.
See also
Got questions or comments about this topic? Tell us about them.

