> I am using the Serial Port class for serial communications, It is very easy
> to use but there is one thing I want to do and can't figure out how.
[quoted text clipped - 9 lines]
>
> Bob Costello
There isn't a managed calls for this in the framework (yet - we live
in hope)
This information is available through the API function:
GetCommProperties - http://msdn2.microsoft.com/En-US/library/aa363259.aspx
For an example on pinvoking it see:
http://pinvoke.net/default.aspx/kernel32/GetCommProperties.html
or
http://www.webtropy.com/articles/art9-1.asp?f=GetCommProperties
Alternatively, have a look at http://www.codeproject.com/dotnet/DotNetComPorts.asp
where a lot of the work is done for you.
Bob Costello - 20 Jul 2007 15:42 GMT
Matt,
Thanks. I did spot the GetCommProperties after I posted my questions. In
fact, I got it from the following link, which gives the gives the C#
declarations for hundreds of win API functions:
http://www.webtropy.com/articles/Win32-API-DllImport-art9.asp?Windows+API
I will check out the CodeProject example.
Thanks
> > I am using the Serial Port class for serial communications, It is very easy
> > to use but there is one thing I want to do and can't figure out how.
[quoted text clipped - 23 lines]
> Alternatively, have a look at http://www.codeproject.com/dotnet/DotNetComPorts.asp
> where a lot of the work is done for you.