🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Keith Mund Thu, 04 Oct 1990 06:58
Re: (P)Dsk functions
#1550
Author: Keith Mund
Date: Thu, 04 Oct 1990 06:58
17 lines
1269 bytes
In article <> seg@beaver.Ingres.COM (scott e garfinkle) writes:
>Can anybody help me with the functions that directly access disk sectors?

Try using DosOpen. The parameter fsOpenMode needs to have the 
OPEN_FLAGS_DASD value included. Just open the drive name, like "C:" instead
of a filename. I played with it and got it to work with little problem. The
boot drive is locked in some manner, so writing could be an issue unless
you boot from floppy. The big benefit here is that normal DosRead/Write/Seek
will work. No fancy programming required. No need for GURUs anymore.

You can also use the DosDevIOCtl function to actually have to worry about
all the stuff you want to bother with. In some situations this could be
a requirement, like recovering a damaged disk, copyprotection, etc.

P97 of OS/2 Programmer's Rev. Vulume 3 talks about OPEN_FLAGS_DASD.

Keith Mund
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads