Provided by every stand-alone DLL. After loading the DLL Microsoft Excel calls the XLL's xlAutoOpen function.
The xlAutoOpen function should:
Must return 1 (int).
int WINAPI xlAutoOpen(void);
This function has no arguments.
This function is called by Microsoft Excel whenever the XLL is opened, either by choosing Open from the File menu, or because the XLL is in the Excel startup directory. This function is registered but not called if an XLL is opened with OPEN. It is also called when a macro calls REGISTER with the name of this DLL as the only argument.
For a Windows example of this function, see the code for the xlAutoOpen function in GENERIC.C in the FRAMEWRK directory.
xlAutoClose, xlAutoRegister