BOOLEAN PspMarkCidInvalid( IN PHANDLE_ENTRY HandleEntry, IN ULONG Parameter ); Routine Description: This function causes the currently executing thread to terminate. This function is only called from within the process structure. It is called either from mainline exit code to exit the current thread, or from PsExitSpecialApc (as a piggyback to user-mode PspExitNormalApc). Arguments: ExitStatus - Supplies the exit status associated with the current thread. Return Value: None.