Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!amb43790 From: amb43790@uxa.cso.uiuc.edu (Anthony M Brummett) Newsgroups: comp.os.msdos.apps Subject: Re: Thanks! Message-ID: <1991Apr19.185533.8440@ux1.cso.uiuc.edu> Date: 19 Apr 91 18:55:33 GMT References: <1991Apr18.220155.2630@midway.uchicago.edu> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 39 valley@gsbsun.uchicago.edu (Doug Dougherty) writes: >er1m+@andrew.cmu.edu (Ethan J. Rasiel) writes: >>Thanks to all the people who answered my deskview question. Special thanks to >>Doug Dougherty, who posted a program to fix the `problem'. I can rest >>easy now... >>Ethan (no longer without a clue) Rasiel >I think you mean, thanks to Ralf Brown, for the program. >But I appreciate the thought... >BTW, the program was: > MOV AX,5D01 > MOV DX,10A > INT 21 > INT 20 >right? Anyone care to explain the magic numbers in further detail? >(I know that AH=5D is some kind of network services, but am not familiar >with the rest) From the book _Undocumented DOS_ by Andrew Schulmen et al: "INT 21H Function 5D01 Commit all files Flush all disk buffers and update the directory entry for each file which has been written to since opening or the last commit. Call with: AX 5D01H DS:DX pointer to DOS parameter list..." The DOS parameter list is a record that that holds AX,BX,CX,DX,SI,DI,DS,ES and the computer ID and process ID, in that order, however, one word is listed as reserved between ES and the computer ID. The only fields which matter to function 5D01H is the computer ID(current system=0000H) and the process ID (the PSP segment on the specified computer). When the function returns, the carry flag is set and AX holds the error code if an error occurred.