Hi!
I want to monitor status inputs CTS, DSR, RLSD and RING on serial port in my
PocketPC.
I declared function GetModemStatus P/Invoke like
[DllImport(dllKernel, SetLastError=true)]
public static extern Boolean GetCommModemStatus(IntPtr hFile, out uint
lpModemStat);
In my code I call it like
uint mstatus;
if (!GetCommModemStatus(hPort, out mstatus))
throw new Exception("GetCommModemStatus error");
Everything runs fine except that I always get 0 in mstatus althought
WaitCommEvent returns me notification about particular signal changes and
I'm sure status really changes.
Can abybody explain me this?
Tahanks,
Brane Brodnik