SerCxGetWaitMask method

The SerCxGetWaitMask method returns the event wait mask for the wait operation that is currently pending.

Syntax


ULONG SerCxGetWaitMask(
  [in]  WDFDEVICE Device
);

Parameters

Device [in]

A WDFDEVICE handle to the framework device object that represents the serial controller.

Return value

SerCxGetWaitMask returns a wait mask that specifies the events that a client (application or peripheral driver) selected to trigger completion of the wait operation that is currently pending. If no wait operation is pending, this method returns the null wait mask, 0x0000. For more information, see the following Remarks section.

Remarks

The serial controller driver calls SerCxGetWaitMask to obtain the wait mask to use for a pending wait operation. Typically, the controller driver calls this method from the EvtSerCxWaitmask callback function.

The wait mask indicates the types of events that can trigger completion of a wait operation. Each bit in the wait mask represents a particular type of event. A bit is set in the wait mask if the corresponding event will trigger completion of a wait operation. For more information about the meaning of the bits in the wait mask, see SERIAL_EV_XXX.

Requirements

Version

Available starting with Windows 8.

Header

1.0\Sercx.h

IRQL

<= DISPATCH_LEVEL

See also

EvtSerCxWaitmask
IOCTL_SERIAL_WAIT_ON_MASK
SERIAL_EV_XXX

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft