Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!munnari.oz.au!manuel!csc.canberra.edu.au!news From: act@softserver.canberra.edu.au (Andrew Turner) Newsgroups: comp.os.msdos.programmer Subject: Re: DOS 5.0 New functions Message-ID: <1991Jun21.010929.10222@csc.canberra.edu.au> Date: 21 Jun 91 01:09:29 GMT References: <3o2s411w164w@toy.uucp> Sender: news@csc.canberra.edu.au Organization: University of Canberra Lines: 63 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