lotus



previous page: 10.4: PortGetCommConfig and PortSetCommConfig
  
page up: Programming VCOMM FAQ
  
next page: 10.6: PortGetWin32Error

10.5: PortGetEventMask




Description

This article is from the Programming VCOMM FAQ, by nelson@desktop.nsc.com (Taed Nelson) with numerous contributions by others.

10.5: PortGetEventMask


The description for dwEvents is wrong (a cut-and-paste error). It should be
something like "The location where the previous port event flags should be
returned." It could be copied from _VCOMM_GetCommEventMask.

There is some question on whether the previous events should be returned in
dwEvents as-is, or if they should be masked with dwMask. Serial.vxd does not
mask them, and the _VCOMM_GetCommEventMask description implies that they
should not be masked. On the other hand, that does not seem to match the
spirit of this function. This should be spelled out in the documentation. It
is mentioned in the Knowledge Base article Q81143, "DOCERR:
Get/SetCommEventMask Functions Documented Incorrectly", but that covers the
SDK.

The VtoolsD documentation specifically states that they should be masked.
"The port object must set flags at the DWORD location pointed to by pEvents to
indicate which of the events specified by the mask have occurred".


 

Continue to:















TOP
previous page: 10.4: PortGetCommConfig and PortSetCommConfig
  
page up: Programming VCOMM FAQ
  
next page: 10.6: PortGetWin32Error