IOCTL_SERIAL_WAIT_ON_MASK
This code instructs a serial driver to wait for a communications event that matches the event specified in the event mask.
Parameters
- dwOpenData
- Handle returned from a call to the COM_Open function.
- dwCode
- Specifies this code.
- pBufIn
- Ignored.
- dwLenIn
- Ignored.
- pBufOut
- Pointer to the DWORD to place in the event mask. The returned mask shows the event that terminated the wait. If a process attempts to change the device handle’s event mask by using the IOCTL_SERIAL_SET_WAIT_MASK call, the driver should return immediately with (DWORD)0 as the returned event mask.
- dwLenOut
- Specifies the size of the pBufOut pointer.
- pdwActualOut
- Pointer to a DWORD to return the length of the returned data; should be set to sizeof(DWORD) if there is no error.
Remarks
The control code is declared in the Pegdser.h header file and defined in the Mdd.c file.
See Also
IOCTL_SERIAL_GET_WAIT_MASK, IOCTL_SERIAL_SET_WAIT_MASK, COM_IOControl, COM_Open