Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
COMMPROP (Structures)
 
.
Summary
The COMMPROP structure is used by the GetCommProperties function to return information about a given communications driver.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
struct COMMPROP
{
    ushort wPacketLength;
    ushort wPacketVersion;
    uint dwServiceMask;
    uint dwReserved1;
    uint dwMaxTxQueue;
    uint dwMaxRxQueue;
    uint dwMaxBaud;
    uint dwProvSubType;
    uint dwProvCapabilities;
    uint dwSettableParams;
    uint dwSettableBaud;
    ushort wSettableData;
    ushort wSettableStopParity;
    uint dwCurrentTxQueue;
    uint dwCurrentRxQueue;
    uint dwProvSpec1;
    uint dwProvSpec2;
    ushort wcProvChar; //original type is WCHAR[1]
}

VB Definition:

    <StructLayout(LayoutKind.Sequential)>
    Structure COMMPROP
    Dim wPacketLength As Short
    Dim wPacketVersion As Short
    Dim dwServiceMask As Integer
    Dim dwReserved1 As Integer
    Dim dwMaxTxQueue As Integer
    Dim dwMaxRxQueue As Integer
    Dim dwMaxBaud As Integer
    Dim dwProvSubType As Integer
    Dim dwProvCapabilities As Integer
    Dim dwSettableParams As Integer
    Dim dwSettableBaud As Integer
    Dim wSettableData As Short
    Dim wSettableStopParity As Short
    Dim dwCurrentTxQueue As Integer
    Dim dwCurrentRxQueue As Integer
    Dim dwProvSpec1 As Integer
    Dim dwProvSpec2 As Integer
    <VBFixedArray(1)> Dim wcProvChar() As Short

    Public Sub Initialize()
        ReDim wcProvChar(1)
    End Sub
    End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation
COMMPROP on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions