Solved

Can i access external devices?

Posted on 1998-09-10
3
124 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
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 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