Board index » delphi » Physical Address of COM1, COM2

Physical Address of COM1, COM2

Hello,

how can i get the physical address of the communication ports using
Delphi3?

thanx,
Thomas

 

Re:Physical Address of COM1, COM2


Hi, Thomas,

my answer ist: you cannot, you should not, and you need not.

Standard operations are fully supported by the Windows API.
And if you want to handle the port in a non-standard way
you either write a VxD for your purpose or downgrade to a
16-bit system where you may do all of these things.

Klaus

Quote
> how can i get the physical address of the communication ports using
> Delphi3?

Re:Physical Address of COM1, COM2


Thanx for your answer,

may be, my questions sounds silly, but what is a VxD?

Thomas

Quote
"Klaus J. Koch" wrote:

> Hi, Thomas,

> my answer ist: you cannot, you should not, and you need not.

> Standard operations are fully supported by the Windows API.
> And if you want to handle the port in a non-standard way
> you either write a VxD for your purpose or downgrade to a
> 16-bit system where you may do all of these things.

> Klaus

> > how can i get the physical address of the communication ports using
> > Delphi3?

--
Thomas Kromarek

Robert BOSCH GmbH, Abt.: K8/EIC2
Tel.: ++ 49 (0) 7121 / 35 - 1934
Fax:  ++ 49 (0) 7121 / 35 - 2880
mailto:Thomas.Kroma...@de.bosch.com

Re:Physical Address of COM1, COM2


Hi, Thomas,

key in at root level

    _dir *.vxd /s_

(or use the explorer) and you will find stuff like this:

Directory of C:\WINDOWS\SYSTEM

LPT      VXD        35.572  15.05.98  20:01 LPT.VXD
WSHTCP   VXD         9.917  15.05.98  20:01 WSHTCP.VXD
SERIAL   VXD        18.625  15.05.98  20:01 SERIAL.VXD
VJOYD    VXD        35.872  15.05.98  20:01 VJOYD.VXD
FILESEC  VXD        23.029  15.05.98  20:01 FILESEC.VXD
NDIS     VXD       157.865  15.05.98  20:01 NDIS.VXD
MSANALOG VXD        12.101  15.05.98  20:01 MSANALOG.VXD
ENABLE2  VXD        25.155  15.05.98  20:01 ENABLE2.VXD
SPLITTER VXD         2.593  15.05.98  20:01 SPLITTER.VXD
PCI      VXD        65.895  15.05.98  20:01 PCI.VXD
BIOS     VXD        30.193  15.05.98  20:01 BIOS.VXD
ISAPNP   VXD        21.281  15.05.98  20:01 ISAPNP.VXD
QUARTZ   VXD         5.672  15.05.98  20:01 QUARTZ.VXD
UNIMODEM VXD        59.027  15.05.98  20:01 UNIMODEM.VXD
DSOUND   VXD        87.487  15.05.98  20:01 DSOUND.VXD
LPTENUM  VXD        17.208  15.05.98  20:01 LPTENUM.VXD
MSGAME   VXD        18.585  15.05.98  20:01 MSGAME.VXD
MSMOUSE  VXD        16.694  19.07.99  15:02 msmouse.vxd

and so on ...
As the filenames may suggest these files handle with the
hardware components of the PC. And all of our high level
software communicates with these drivers.
If they don't do the job you are longing for you have to

a) write a device driver of your own
   (the MS Windows Software Development Kit comes with examples)

b) install it. Using Windows-NT you will need Admin rights.

AFAIK there are some programmers in this NG who know a lot
more about that.

Klaus

Quote
> Thanx for your answer,

> may be, my questions sounds silly, but what is a VxD?

Other Threads