Solved

Once again: Read hard disk sectors

Posted on 1997-03-18
4
320 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

18 Experts available now in Live!

Get 1:1 Help Now