Provided by every stand-alone DLL (XLL). This function is called by the Add-In Manager when a stand-alone DLL is removed by the user.
Must return 1 (int).
int WINAPI xlAutoRemove(void);
This function has no arguments.
Use this function if your XLL needs to complete any task when it is removed by the Add-In Manager.
\SAMPLES\FRAMEWRK\GENERIC.C
int WINAPI xlAutoRemove(void)
{
/*
* Display a dialog box indicating that
* the XLL was successfully removed
*/
Excel(xlcAlert, 0, 2,
TempStr(" Thank you for removing Example.XLL!"),
TempInt(2));
return 1;
}
xlAutoAdd