Solved

Once again: Read hard disk sectors

Posted on 1997-03-18
4
355 Views
Last Modified: 2012-05-04
I have been told that direct access to hard disk sectors is not possible with delphi2 (32 bit)(It would be possible through VXDs). Is it possible with Delphi1 (16 bit) by using the int 13h and running the application in Windows 95?
0
Comment
Question by:tier
  • 2
4 Comments
 
LVL 3

Expert Comment

by:sperling
ID: 1334898
Still, it is possible, but you cannot write to the logical or physical disk where Windows 95 is installed. That's what you need a VxD for...

Regards,

Erik.
0
 

Accepted Solution

by:
OAM earned 50 total points
ID: 1334899
You must use CreateProcess and call the Win32.vxd(?) or something like that. Try to lookup Createprocess in your Online Help
0
 
LVL 3

Expert Comment

by:sperling
ID: 1334900
In 32-bit code, you can do *some* DOS/BIOS interrupts using CreateFile on '\\.\VWIN32' and then doing DeviceIOControl to have it execute the ints for you. Int 13h is not supported using these methods.

In 16-bit code, you can do a few more ints, most of the int 13 functionality is supported. However, here you cannot use the VWIN32 VxD. You need to use DPMI to perform the ints, and the volume locking functions to obtain a lock of the correct level for the volume you wish to read/write. In some cases, the lock must be obtained in a two-step operation, where you first gain a intermediate level lock on a volume, and using this lock gets a exclusive lock.


0
 

Expert Comment

by:slash
ID: 1334901
Interesting indeed,
Yes, as I said before you need to use INT 32h (DPMI).  The questions
is how to call Int 13h exactly using int31h or are there any procedures/documentations ???


0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Firemonkey webbrowser scrollbars ? 1 57
Dynamically Created Query 3 70
Firemonkey Listview item popup menu ? 1 33
SQL Server Express automatically execute SQL or SP 8 34
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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

749 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