## Printer Device Driver

[prev][next][parent][TOC]

### Exitpdd

Called when processes are terminated.

The usTermCode parameter specifies the reason the process ended. This parameter can be one of the following values:

Value Meaning
TC_EXIT Normal exit
TC_HARDERROR Hard-error abort
TC_KILLPROCESS Un-intercepted DosKillProcess
TC_TRAP Trap operation

The important reason for using this routine is that the process might have ended unexpectedly, such as by a General Protection fault. If the process is holding a semaphore, it must be released so that the termination of this process does not cause the entire system to lock up while waiting on a semaphore that will never be freed.