?
Solved

Once again: Read hard disk sectors

Posted on 1997-03-18
4
Medium Priority
?
370 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
[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
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 100 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

765 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