Solved

Can i access external devices?

Posted on 1998-09-10
3
122 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
Comment Utility
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
Comment Utility
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
Comment Utility
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 Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now