I have an ISAPI dll (using TWebModule) and I need to know where I can put the code for when the DLL is UNloaded from IIS.
I can find the following ok:
thread create (TwebModule.onCreate)
thread destroy (TwebModule.onDestroy)
process create (see below - run when loaded in to IIS)
myInitRoutine; // THIS IS RUN WHEN ISAPI IS LOADED IN TO IIS
CoInitFlags := COINIT_MULTITHREADED;
// can NOT run myKillRoutine here!
I am wondering where I can put the code to run when the ISAPI dll is UNloaded from IIS (e.g. restart IIS). This is different from when a thread (request or action) is finished...