Process and Thread Termination Issues

File systems that store state information related to specific users might need to watch for process and thread termination conditions. For example, encryption keys associated with a particular user might need to be discarded on the termination (whether planned or premature) of a specialized control application. For more information about the routines used to handle these conditions, see PsSetCreateProcessNotifyRoutine and PsSetCreateThreadNotifyRoutine.