Accessing Hardware Ports

By: Mat Duafala

Abstract: How do I access the COM ports in windows.

Question

How do I communicate with a COM port in Windows?

Answer

While it was possible in Windows95 to use inline assembly to communicate directly with the COM port, this is generally a very bad idea. The recommended way is to use the CreateFile function from windows.


Server Response from: ETNASC04