Set port time-out values
If you are writing a port monitor for a port that has modifiable time-out values, the time-out values should be initialized from within the monitor's OpenPort function. For example the OpenPort function in Localmon.dll, the sample port monitor, calls the SetCommTimeouts function for this purpose.
Additionally, a port monitor can optionally provide a SetPortTimeOuts function, which can be called by language monitors. The function is called by Pjlmon.dll, the sample language monitor. The print spooler does not call SetPortTimeOuts.