Scroll to navigation

WaitCommEvent(3w) Wine API WaitCommEvent(3w)

NAME

WaitCommEvent (KERNEL32.@)

SYNOPSIS

BOOL WaitCommEvent
(
HANDLE hFile,
LPDWORD lpdwEvents,
LPOVERLAPPED lpOverlapped
)
 

PARAMS

hFile [In] handle of comm port to wait for.
lpdwEvents [Out] event(s) that were detected.
lpOverlapped [In/Out] for Asynchronous waiting.
 

DESCRIPTION

Wait until something interesting happens on a COMM port. Interesting things (events) are set by calling SetCommMask before this function is called.
 

RETURNS

TRUE if successful FALSE if failure.
The set of detected events will be written to *lpdwEventMask ERROR_IO_PENDING will be returned the overlapped structure was passed.
BUGS: Only supports EV_RXCHAR and EV_TXEMPTY
 

IMPLEMENTATION

Declared in "winbase.h".
Implemented in "dlls/kernel32/comm.c".
Debug channel "comm".
Oct 2012 Wine API