From: Rob Sacks (editor_at_realization.org)
Date: 2001-05-21 06:57:45
Hi Waldemar,
Oh, if we're talking about some kind of small driver,
I agree that C is okay. I thought we were
talking about the whole PC program.
> will it use an interrupt hook , or RS232 has it "built in"?
I only know the situation with Windows. For an
application, nowadays Microsoft recommends the
use of the "ReadFile" function to read the serial
port. The OS handles all the details and maintains
a buffer.
When an appliction tries to hook an interrupt
in 32-bit Windows it actually hooks only a
software emulation of the interrupt because
Windows virtualizes (hides) the hardware event
from applications.
On the other hand, if you really want to hook the
real hardware interrupt, Windows allows you to do
it by writing the program in a special driver
format that runs at the OS privilege level.
Regards,
Rob
This archive was generated by hypermail 2.1.4 : 2002-07-27 12:28:30 BST