[comp.os.msdos.programmer] DOS 5.0 New functions

system@toy.uucp (SYSTEM 0PERATOR) (06/20/91)

This is driving me NUTS!  I've searched & searched, but so far no luck.  
Does anyone have information on what the new DOS calls are for DOS 5.0?  
Even the best of our local book stores (University Bookstore) do not have 
ANY books on this yet.


system@toy.uucp (SYSTEM 0PERATOR)
Fred's Waffle BBS, a stealth board

veit@du9ds3.uni-duisburg.de (Holger Veit) (06/20/91)

In <3o2s411w164w@toy.uucp> system@toy.uucp (SYSTEM 0PERATOR) writes:

>This is driving me NUTS!  I've searched & searched, but so far no luck.  
>Does anyone have information on what the new DOS calls are for DOS 5.0?  
>Even the best of our local book stores (University Bookstore) do not have 
>ANY books on this yet.

How about searching in the latest Interrupt List (INTER26[AB].ZIP) which is
available from SIMTEL20 (pd:<msdos.info>INTER26*.ZIP, ~230K each). I 
remember there were some references to DOS 5, but forget whether it was
DR DOS, PC-DOS or MS-DOS 5.0. Nevertheless, look at this first.

>system@toy.uucp (SYSTEM 0PERATOR)
>Fred's Waffle BBS, a stealth board

Hope this helps

Holger

--
|  |   / Holger Veit             | INTERNET: veit@du9ds3.uni-duisburg.de
|__|  /  University of Duisburg  | BITNET: veit%du9ds3.uni-duisburg.de@UNIDO
|  | /   Fac. of Electr. Eng.    | UUCP:   ...!uunet!unido!unidui!hl351ge
|  |/    Dept. f. Dataprocessing | 

feurer@brahms.udel.edu (Gary Alan Feurer) (06/20/91)

In article <veit.677429979@du9ds3> veit@du9ds3.uni-duisburg.de (Holger Veit) writes:
=>In <3o2s411w164w@toy.uucp> system@toy.uucp (SYSTEM 0PERATOR) writes:
=>
=>>This is driving me NUTS!  I've searched & searched, but so far no luck.  
=>>Does anyone have information on what the new DOS calls are for DOS 5.0?  
=>>Even the best of our local book stores (University Bookstore) do not have 
=>>ANY books on this yet.
=>
=>How about searching in the latest Interrupt List (INTER26[AB].ZIP) which is
=>available from SIMTEL20 (pd:<msdos.info>INTER26*.ZIP, ~230K each). I 
=>
=>Hope this helps
=>
=>Holger
=>

How about looking on pages 1-3 of the "Getting Started" doc that came with
PC-DOS 5.0.  It lists new and enhanced functions and hardware support for 
versions 3.3, 4.0, and 5.0.

FYI, in case your MD-DOS documentation omitted this detail:

5.0 New functions--
autoconf, doskey, edit, fc, help, meutonini, mirror, qbasic, setver, 
undelete, and unformat.

Enhanced functions--
attrib, comp, dir, diskcopy, dosshell, find, format, graphics, restore,
and mouse.

New device drivers--
emm386, himem, smartdrv

						--gary
-- 
Gary A. Feurer		    			 Instructional Technology
303B Hall Education Building			   work:   (302) 451-2751
University of Delaware				   home:   (215) 255-5124
Newark, DE  19716			           feurer@brahms.udel.edu

feurer@brahms.udel.edu (Gary Alan Feurer) (06/20/91)

In article <22280@brahms.udel.edu> feurer@brahms.udel.edu (Gary Alan Feurer) writes:
=>
=>5.0 New functions--
=>autoconf, doskey, edit, fc, help, meutonini, mirror, qbasic, setver, 
=>undelete, and unformat.
=>
=>Enhanced functions--
=>attrib, comp, dir, diskcopy, dosshell, find, format, graphics, restore,
=>and mouse.
=>
=>New device drivers--
=>emm386, himem, smartdrv
=>
=>						--gary

Assuming, of course, you are talking about functions as commands rather
functions as interrupts.			--gary
-- 
Gary A. Feurer		    			 Instructional Technology
303B Hall Education Building			   work:   (302) 451-2751
University of Delaware				   home:   (215) 255-5124
Newark, DE  19716			           feurer@brahms.udel.edu

feustel@netcom.COM (David Feustel) (06/21/91)

What you (and I) want is a Dos 5 Tech Ref manual. It isn't available
yet.
-- 
David Feustel, 1930 Curdes Ave, Fort Wayne, IN 46805, (219) 482-9631
EMAIL: feustel@netcom.com  or feustel@cvax.ipfw.indiana.edu

act@softserver.canberra.edu.au (Andrew Turner) (06/21/91)

In article <3o2s411w164w@toy.uucp> system@toy.uucp (SYSTEM 0PERATOR) writes:
>This is driving me NUTS!  I've searched & searched, but so far no luck.  
>Does anyone have information on what the new DOS calls are for DOS 5.0?  
>Even the best of our local book stores (University Bookstore) do not have 
>ANY books on this yet.
>
>
>system@toy.uucp (SYSTEM 0PERATOR)
>Fred's Waffle BBS, a stealth board

This is a bit long, but here goes:

From my scratchy notes these are some/most of the function changes in DOS5.0
If I misread my scratches please excuse. Test them and see if I got it right.
Also there should be a Technical reference available/imminent from MSoft.

Directory functions should give: Total Bytes, Total addition of bytes in
directory and byte usage in directory - don't have the structures.

fn 4Eh Find First File gives free disk total space used.

fn 56h Rename files will now permit renaming directories. It shuffles the 
dir name space on the disk to fit longer/shorter names in.

new fn 32h Get DPB - Establish whether Removable CDROM/WORM - gets info out of
CMOS. Has something to do with autosensing of type of disk in drive in 
relation to formatting ie, can detect 720k/1.44 in 3-1/2" drive and permits
you just to say format a: rather than format a: /n80 /s8

new fn 1Fh Get Default DPB. see new fn 32h. CX == no, 1-25 = A-Z, 0 is default.

fcb fn's. DOS 5.0 supports link to FAT file pointer. Much faster file access -
just watch XTGold rip through the disk when it starts.

IOCTL fn 44 beefed up - new sub fn's 
	4410h Query IOCTL handle
	4411h Query IOCTL Device   Have someting to do with error codes
ie, printer out of paper. Return in CX.

fn 4B01h Load Program - new function - Load program and pass control to task
switcher.

new fn 4B05h Set Execution State - specify task fragment/background - set
execution to be suspended or terminated.

new fn 51h - Get PSP Address - something do do with lo/hi?????

fns 5700 and 5701 - Get/set date/time now co-operate!! Can keep date/time
stamp of a file the same. Yukky boon for virus writers!!

fn 30h Get dos version. Now that we have the setver command it will return the
setver dos version, so to get the REAL version number use AL = 06h ie 3006h.

END - Please excuse the incompleteness but the above should least wet your
appetites. Maybe someone has more complete and guaranteed accurate stuff.

DISCLAIMER : The above is not necessarily accurate and is advisory only.
	     Use at your own risk. See Microsoft for the gospel stuff.

-- 
 Andrew Turner  act@csc.canberra.edu.au
	Die, v:	To stop sinning suddenly.
			-- Elbert Hubbard

shephard@newsserver.sfu.ca (Gordon Shephard) (06/22/91)

In <1991Jun21.010929.10222@csc.canberra.edu.au> act@softserver.canberra.edu.au (Andrew Turner) writes:

>fn 56h Rename files will now permit renaming directories. It shuffles the 
>dir name space on the disk to fit longer/shorter names in.

Sigh.  And on Page 120 of the MS-Dos 4.0 User's Guide and Reference:
 
 "The rename command, which you use to rename file, cannot be used to
 rename directories.  Instead, you use a combination of the xcopy, del,
 and rd commands to rename a directory."

An example of one comitte not talking to another?

-- 
| Gordon Harry Shephard         | Distributed Computing Support Group  |
| Academic Computing Services   | Phone: (604)291-3930   (604)464-4991 | 
| Simon Fraser University       | USERGHS@SFU.BITNET                   |
| Burnaby, BC, Canada. V5A 1S6  | Shephard@Whistler.sfu.ca             | 

shephard@newsserver.sfu.ca (Gordon Shephard) (06/22/91)

In <1991Jun22.051347.19165@newsserver.sfu.ca> shephard@newsserver.sfu.ca (Gordon Shephard) writes:

>Sigh.  And on Page 120 of the MS-Dos 4.0 User's Guide and Reference:
>                                    ^--- Make that 5.0.
-- 
| Gordon Harry Shephard         | Distributed Computing Support Group  |
| Academic Computing Services   | Phone: (604)291-3930   (604)464-4991 | 
| Simon Fraser University       | USERGHS@SFU.BITNET                   |
| Burnaby, BC, Canada. V5A 1S6  | Shephard@Whistler.sfu.ca             | 

feustel@netcom.COM (David Feustel) (06/22/91)

Renaming directories, deletion of subdirectory trees and full
wildcarding are all available in the MKS Toolkit for dos.
-- 
David Feustel, 1930 Curdes Ave, Fort Wayne, IN 46805, (219) 482-9631
EMAIL: feustel@netcom.com  or feustel@cvax.ipfw.indiana.edu

I voted for Bush once.  As it's turning out, once was once too often.

Ralf.Brown@B.GP.CS.CMU.EDU (06/22/91)

In article <1991Jun21.010929.10222@csc.canberra.edu.au>, act@softserver.canberra.edu.au (Andrew Turner) wrote:
}From my scratchy notes these are some/most of the function changes in DOS5.0
}If I misread my scratches please excuse. Test them and see if I got it right.

}fn 4Eh Find First File gives free disk total space used.

It doesn't.  No changes from previous versions--that addition would
probably break existing code, because it would have to increase the size
of the returned data.  Besides, you can already get that info from other
calls.

}fn 56h Rename files will now permit renaming directories. It shuffles the 
}dir name space on the disk to fit longer/shorter names in.

That function has been able to rename directories since v3.0, though not
moving them to another directory.  I checked, and DOS 5.0 doesn't allow
moving directories, either.

}new fn 32h Get DPB - Establish whether Removable CDROM/WORM - gets info out of
}CMOS. Has something to do with autosensing of type of disk in drive in 
}relation to formatting ie, can detect 720k/1.44 in 3-1/2" drive and permits
}you just to say format a: rather than format a: /n80 /s8
}
}new fn 1Fh Get Default DPB. see new fn 32h. CX == no, 1-25 = A-Z, 0 is default.

Both 1Fh and 32h have been around a long time (1Fh since 1.0, 32h since
2.0), but may now be documented.  Neither function however does any type
of autosensing--they just return what DOS currently thinks the drive
parameters are.

}IOCTL fn 44 beefed up - new sub fn's 
}        4410h Query IOCTL handle
}        4411h Query IOCTL Device   Have someting to do with error codes
}ie, printer out of paper. Return in CX.

No, they ask the device driver whether a particular generic IOCTL call
(INT 21/AX=440Ch or 440Dh) is supported.

}fn 4B01h Load Program - new function - Load program and pass control to task
}switcher.

That's also been around since DOS 2.0.

}new fn 4B05h Set Execution State - specify task fragment/background - set
}execution to be suspended or terminated.

This is indeed a new function.

}new fn 51h - Get PSP Address - something do do with lo/hi?????

Also present since 2.0.

}fns 5700 and 5701 - Get/set date/time now co-operate!! Can keep date/time
}stamp of a file the same. Yukky boon for virus writers!!

Huh?  You've been able to use those two in concert to preserve the timestamp
of a file since they were introduced in DOS 2.0.

}fn 30h Get dos version. Now that we have the setver command it will return the
}setver dos version, so to get the REAL version number use AL = 06h ie 3006h.

No, you need fn 3306h to get the true DOS version.  Function 30h now takes
AL = 00h or 01h to determine what gets returned in BH, the OEM number or
the DOS location flags (DOS in ROM, DOS in HMA).

-- 
{backbone}!cs.cmu.edu!ralf  ARPA: RALF@CS.CMU.EDU   FIDO: Ralf Brown 1:129/53
BITnet: RALF%CS.CMU.EDU@CARNEGIE   AT&Tnet: (412)268-3053 (school)   FAX: ask
DISCLAIMER?  Did  | It isn't what we don't know that gives us trouble, it's
I claim something?| what we know that ain't so.  --Will Rogers

feustel@netcom.COM (David Feustel) (06/23/91)

This is why I want to get the Official MS Tech Ref for Dos 5.0.
-- 
David Feustel, 1930 Curdes Ave, Fort Wayne, IN 46805, (219) 482-9631
EMAIL: feustel@netcom.com  or feustel@cvax.ipfw.indiana.edu

I voted for Bush once.  As it's turning out, once was once too often.

act@softserver.canberra.edu.au (Andrew Turner) (06/24/91)

In article <1991Jun22.051347.19165@newsserver.sfu.ca> shephard@newsserver.sfu.ca (Gordon Shephard) writes:
>>fn 56h Rename files will now permit renaming directories. It shuffles the 
>>dir name space on the disk to fit longer/shorter names in.
>
>Sigh.  And on Page 120 of the MS-Dos 4.0 User's Guide and Reference:
> 
> "The rename command, which you use to rename file, cannot be used to
> rename directories.  Instead, you use a combination of the xcopy, del,
> and rd commands to rename a directory."
>
Firstly it's MS-Dos 5.0 (NOT 4.0).
Secondly we're not talking about the Rename command BUT the Rename function!!
ie int 21h.

-- 
 Andrew Turner  act@csc.canberra.edu.au
	Die, v:	To stop sinning suddenly.
			-- Elbert Hubbard