a device driver, but how could I make this?
I know that, for example, in Windows 3.1 I can use this code:
#define port_address 0x3f8
#define REG_RX port_address
#define REG_TX port_address
#define REG_STATUSMODEM port_address+6
//.....
// Then in the program I can make this
unsigned int eline;
eline=_inp(REG_RX);
// And with AND-bitwise operation see if there is any bit with 1 or with
0.
I think that in NT4.0 with VC++5.0 I cannot use _inp, how could I
develope this work?
Is any information on Internet about this?
Any people has told me that I need to have DDK for Windows NT4.0.
What is this and how it works?
In my program now I can send and receive characters from one computer to
another using modem-null-cable.
Now I need to show on my program information about the UART registers.
I think that due to security reason in Windows NT4.0I cannot access
privilegiated instructions such _inp
Tnx for the information
--
73 de Valentin 30IR976 (116 DXCC)
web 30IR976: http://www.geocities.com/titoradio
web personal: http://get.to/zamora
You can find the help file on DDK about you wanted. When you install it, you
can find it. And the DDK has example driver about the UART. When you install
the DDK you can find the example file at /ddk/src/comm/serial. So if you
install the DDK, you can get every thing that you want.
Victor Yu 11-29-1999 Taiwan
Max
Valentin 30IR976 <radi...@yahoo.com> wrote in message
news:384197E5...@yahoo.com...
> I want to control UART on NT 4.0 using VC++5.0 I think that I must write
>
> a device driver, but how could I make this?
> I know that, for example, in Windows 3.1 I can use this code:
>
> #define port_address 0x3f8
>
> #define REG_RX port_address
> #define REG_TX port_address
> #define REG_STATUSMODEM port_address+6
>
>
> //.....
>
> // Then in the program I can make this
>
> unsigned int eline;
>
> eline=_inp(REG_RX);
>
> // And with AND-bitwise operation see if there is any bit with 1 or with
>
> 0.
>
> I think that in NT4.0 with VC++5.0 I cannot use _inp, how could I
> develope this work?
> Is any information on Internet about this?
>
>
>
> Any people has told me that I need to have DDK for Windows NT4.0.
> What is this and how it works?
>