Home |
RTKernel-32 Programming Manual Function COMWaitSendBufferEmpty Function COMSetModemStatusHook |
Function COMSetModemStatusHookCOMSetModemStatusHook installs an application function to be called on every modem status line change: void COMSetModemStatusHook(int Port, void (* __cdecl Hook)(int Port, BYTE Status)); ParametersPortThe port for which to install the hook function. HookPointer to the hook function. Such a modem status hook may be used to trap the change of modem status signals, such as Data Carrier or Ring Indicator. Apart from the port number, the hook is called with the new modem status value. The hook is called in the context of an interrupt handler. COMEnableInterrupt must have been called for the hook to take effect. Function COMWaitSendBufferEmpty
|