Solved

Can i access external devices?

Posted on 1998-09-10
3
129 Views
Last Modified: 2010-04-06
Can i access external devices , with a particular address OxFFFF, for example using inport and outport command like in C++?

Can i access the registry AX,BX,CX,DX ?

Can i intercept the interupt controller using Delphi?

Where can i find this sort of resources so that i can do some revision???

and Lastly, sorie for the low point b'cos i am new member to this group.

0
Comment
Question by:pixar091098
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 20 total points
ID: 1339360
You can use assembler for that......
//Read from port
function ReadPortB( wPort : Word ) : Byte;
begin
  asm
    mov dx, wPort
    in al, dx
    mov result, al
   end;
end;
//Write to port
procedure WritePortB( wPort : Word; bValue : Byte );
begin
  asm
    mov dx, wPort
    mov al, bValue
    out dx, al
  end;
end;

Regards,
Viktor Ivanov
0
 
LVL 4

Expert Comment

by:erajoj
ID: 1339361
Hi,
Viktor's solution will only work in Win95/Win311. Not in NT and I don't know about Win98.
The best way to solve all your questions is either to, write a kernel mode driver or, use a generic kernel mode driver such as WinRT.
http://www.bluewatersystems.com/frames/index.html

/// John

0
 
LVL 10

Expert Comment

by:viktornet
ID: 1339362
Yes, John is right. It won't work on NT and I'm not sure about win98....I still got win95
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question