Board index » delphi » INT 21h and DR-DOS 6.0

INT 21h and DR-DOS 6.0

Hello,

in the moment I work with MS-DOS 5.0 and TurboPascal 5.5. But now I
want to use DR-DOS 6.0 as OS. (Digital Research Inc. is now Caldera?)
My question refers to the procedure "INTR" respectively "MSDOS". All
of my books tell me that interrupt 21h calls MS-DOS functions. So I
ask myself the following questions. Maybe you can help me with an
answer.
Are the interrupt functions of DR-DOS equal to MS-DOS?
If not, where can I get a list of the DR-DOS interrupt functions?
What should I also take care of?
An other thing is how do I handle a password protected file?

Thank you for reading

Martin
--
 Martin Stahl
 e-mail: kram...@uplink.de
 http://www.user.uplink.de/krampus

 

Re:INT 21h and DR-DOS 6.0


They are fairly compatible so you shouldn't have any problems
with DR-DOS.

Password protected file?  What application created it?  If you
know the app that created it then do a search on the Net for a
password cracker for that app.

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!

Re:INT 21h and DR-DOS 6.0


Quote
db wrote:
> Password protected file?  What application created it?  If you
> know the app that created it then do a search on the Net for a
> password cracker for that app.

DR-DOS has a internal command named "PASSWORD". With this you can
assign a password to a file (or directory) you want to or you can
protect the whole file system with a password (do not mix up with a
BIOS password). The password attribute has 3 steps.
1.) protect against delete, rename or changing attributes (/D)
2.) protect against 1.) and writing to file (/W)
3.) protect against all actions you can do with a file or directory
inclusively reading (/R)
If you have to input the password depents on what you want to do with
the file. You can also set a global password, so that you do not have
to input the password every time. It is effective until you remove it
or turn off the computer.
This password protection is not bad and if you like the message
"access denied", simply forget the global password. ;-)

regards

Martin
--
 Martin Stahl
 e-mail: kram...@uplink.de
 http://www.user.uplink.de/krampus

Re:INT 21h and DR-DOS 6.0


Quote
Martin Stahl wrote:
> An other thing is how do I handle a password protected file?

I think "handle" was the wrong word. I guess "treat" or "deal with" is
the better term. Oh, I must have been sleeping in english lesson!
Sorry for that.

--
 Martin Stahl
 e-mail: kram...@uplink.de
 http://www.user.uplink.de/krampus

Re:INT 21h and DR-DOS 6.0


On Sat, 08 Apr 2000 08:12:37 +0200, Martin Stahl <kra...@uplink.de>
wrote:

Quote
>Hello,

>in the moment I work with MS-DOS 5.0 and TurboPascal 5.5. But now I
>want to use DR-DOS 6.0 as OS. (Digital Research Inc. is now Caldera?)

Digital Research, formerly "Intergalactic Digital Research," is no
more, alas.  Caldera/Lineo have inherited the rights to some of
DRI's products, including DR DOS.

Quote
>My question refers to the procedure "INTR" respectively "MSDOS". All
>of my books tell me that interrupt 21h calls MS-DOS functions. So I
>ask myself the following questions. Maybe you can help me with an
>answer.
>Are the interrupt functions of DR-DOS equal to MS-DOS?
>If not, where can I get a list of the DR-DOS interrupt functions?

Very similar, which is what makes it a (mostly) MS-DOS-compatible
operating system.  See Ralf Brown's Interrupt List for some minor
differences with MS-DOS's behavior.  Probably the most important
one is the DR DOS version check, which you can use to determine
whether your program is running under DR DOS as opposed to MS-DOS
or PC DOS.  The DR DOS version check is INT 21h .AX=4352h.

Quote
>What should I also take care of?
>An other thing is how do I handle a password protected file?

Just like at the command line:  append a semicolon and the
password to the ASCIZ filename you pass to INT 21h.  So instead
of...

   C:\PATH\MYFILE.EXT<0>

you might pass...

   C:\PATH\MYFILE.EXT;SECRET<0>

to open a file named MYFILE.EXT with a password of SECRET.
(The <0> represents the null character.)

ras...@highfiber.com

Re:INT 21h and DR-DOS 6.0


Quote
Martin Stahl wrote:
> ...
> Are the interrupt functions of DR-DOS equal to MS-DOS?
> If not, where can I get a list of the DR-DOS interrupt functions?
> What should I also take care of?

Almost all MSDOS system calls are implemented the same way in
DRDOS. DRDOS has some additional system calls, regarding the
password protection of files and multitasking.

Quote
> An other thing is how do I handle a password protected file?

You should try to obtain the API list of DRDOS / NWDOS7. Some
info can be found in Ralph Brown's interrupt list too.

Regards,
--
Franz Glaser, Glasau 3, A-4191 Vorderweissenbach Austria +43-7219-7035-0
Muehlviertler Elektronik Glaser.  Industrial control and instrumentation
http://members.eunet.at/meg-glaser/    http://members.xoom.com/f_glaser/
http://www.geocities.com/~franzglaser/            http://start.at/bedarf

Re:INT 21h and DR-DOS 6.0


Im Artikel <38EECDD4.20F3C...@uplink.de>, Martin Stahl <kra...@uplink.de>
schreibt:

Quote
>An other thing is how do I handle a password protected file?

Boot an MS-DOS system from a diskette, and password protection is futile.

DoDi

Re:INT 21h and DR-DOS 6.0


Thank you all for your help.
The attempt to do something with a password protected file gives back
a runtime error 86. So it is easy to write a password checking.
Thank you for the hint with Ralf Browns interrupt list.

A note for "db" and "VBDis":
I do not want to crack the password. I want to use the benefits of
password protected files. It was only a bad description in my
sentence. My english language is not as good as it should be.

--
 Martin Stahl
 e-mail: kram...@uplink.de
 http://www.user.uplink.de/krampus

Other Threads