Keeps a list of routines that run when the current process ends.
#define INCL_DOSPROCESS #include <os2.h> ULONG ordercode; /* DosExitList action and invocation order. */ PFNEXITLIST pfn; /* The address of a routine to be run. */ APIRET ulrc; /* Return Code. */ ulrc = DosExitList(ordercode, pfn);