Windows NT 4/sp3
I have a DLL that is used to interface to one of my device drivers.
I rely on getting the DLLentry called with PROCESS_DETACH and THREAD_DETACH to clean up resources on a per-process basis.
I have now discovered that, under certain circumstances, it appears possible for a process to exit without calling my DLLentry routine. This appears to happen if a user kills a process with the WindowsNT Task Manager. Also, so a customer tells me, it can happen if a processes is being debugged or has a fatal error.
Can anyone help me out here - I need the DLL to know if a process exits/dies so that the DLL can clean up after the process (open files, resources etc).