hi, i have very big (for me) problem. i want to write dll in c++ which i can use to acces to hardware in win2000.
in W95/98 i used two functions in delphi - GetPort and SetPort for writing and reading from address. But if i want run this prog in win2000, it appears "Privileg instruction".

function GetPort( P : WORD ) : Byte; assembler;

asm

MOV DX, P;

IN AL, DX;

end;

procedure SetPort( P : WORD; Value : Byte ); assembler;

asm

MOV DX, P;

MOV AL, Value;

OUT DX, AL;

end;

please, do you know how to let my program run correctly ??????

Thanks in advance. Standa