waitcommevent (kernel32)
Last changed: Adam Z-66.76.139.114

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern bool WaitCommEvent(IntPtr hFile, out uint lpEvtMask,
   IntPtr lpOverlapped);

User-Defined Types:

None.

VB Signature:

    <DllImport("kernel32.dll")> _
    Private Shared Function WaitCommEvent(ByVal handle As Integer, _
                          ByRef Mask As Integer, _
                          ByRef lpOverlap As EFileAttributes) As Int32
    End Function

VB.NET Signature (.NET 4):

    <DllImport("kernel32.dll", SetLastError:=True)> _
    Public Function WaitCommEvent(ByVal hFile As Integer, ByRef Mask As Integer, ByRef lpOverlap As Overlapped) As Int32
    End Function

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation