GetCommModemStatus()

  • Hello,


    is always returning 0. I'd expect CTS bit (0x10) to change if I manually toggle CTS signal on port 2.


    Function is PInvoked through:

    Code
    1. [DllImport("coredll.dll")]
    2. public static extern bool GetCommModemStatus(
    3. IntPtr handle,
    4. out uint lpModemStat
    5. );


    Is there any error in my code, or maybe something misfunctioning in the serial driver ?

  • Hello,


    the serial driver of the first kernel doesn't support this feature. There are also missing some Even-handlers. We already discovered this issue and it will be fixed in the next kernel.


    best regards
    Martin Kiepfer

    Software developer, F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.