home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 7 / POWERCD7.ISO / prgmming / inter43 / interrup.e < prev    next >
Text File  |  1994-11-06  |  284KB  |  7,392 lines

  1. Interrupt List, part 5 of 12
  2. This compilation is Copyright (c) 1989,1990,1991,1992,1993,1994 Ralf Brown
  3. --------D-2145-------------------------------
  4. INT 21 - DOS 2+ - "DUP" - DUPLICATE FILE HANDLE
  5.     AH = 45h
  6.     BX = file handle
  7. Return: CF clear if successful
  8.         AX = new handle
  9.     CF set on error
  10.         AX = error code (04h,06h) (see #0811 at AH=59h)
  11. Notes:    moving file pointer for either handle will also move it for the other,
  12.       because both will refer to the same system file table
  13.     for DOS versions prior to 3.3, file writes may be forced to disk by
  14.       duplicating the file handle and closing the duplicate
  15. SeeAlso: AH=3Dh,AH=46h
  16. --------D-2146-------------------------------
  17. INT 21 - DOS 2+ - "DUP2", "FORCEDUP" - FORCE DUPLICATE FILE HANDLE
  18.     AH = 46h
  19.     BX = file handle
  20.     CX = file handle to become duplicate of first handle
  21. Return: CF clear if successful
  22.     CF set on error
  23.         AX = error code (04h,06h) (see #0811 at AH=59h)
  24. Notes:    closes file with handle CX if it is still open
  25.     DOS 3.30 hangs if BX=CX on entry
  26.     moving file pointer for either handle will also move it for the other,
  27.       because both will refer to the same system file table
  28. SeeAlso: AH=3Dh,AH=45h
  29. --------D-2147-------------------------------
  30. INT 21 - DOS 2+ - "CWD" - GET CURRENT DIRECTORY
  31.     AH = 47h
  32.     DL = drive number (00h = default, 01h = A:, etc)
  33.     DS:SI -> 64-byte buffer for ASCIZ pathname
  34. Return: CF clear if successful
  35.         AX = 0100h (undocumented)
  36.     CF set on error
  37.         AX = error code (0Fh) (see #0811 at AH=59h)
  38. Notes:    the returned path does not include a drive or the initial backslash
  39.     many Microsoft products for Windows rely on AX being 0100h on success
  40.     under the FlashTek X-32 DOS extender, the buffer pointer is in DS:ESI
  41. SeeAlso: AH=19h,AH=3Bh,AH=71h,INT 15/AX=DE25h
  42. --------D-2148-------------------------------
  43. INT 21 - DOS 2+ - ALLOCATE MEMORY
  44.     AH = 48h
  45.     BX = number of paragraphs to allocate
  46. Return: CF clear if successful
  47.         AX = segment of allocated block
  48.     CF set on error
  49.         AX = error code (07h,08h) (see #0811 at AH=59h)
  50.         BX = size of largest available block
  51. Notes:    DOS 2.1-6.0 coalesces free blocks while scanning for a block to
  52.       allocate
  53.     .COM programs are initially allocated the largest available memory
  54.       block, and should free some memory with AH=49h before attempting any
  55.       allocations
  56.     under the FlashTek X-32 DOS extender, EBX contains a protected-mode
  57.       near pointer to the allocated block on a successful return
  58. SeeAlso: AH=49h,AH=4Ah,AH=58h,AH=83h
  59. --------D-2149-------------------------------
  60. INT 21 - DOS 2+ - FREE MEMORY
  61.     AH = 49h
  62.     ES = segment of block to free
  63. Return: CF clear if successful
  64.     CF set on error
  65.         AX = error code (07h,09h) (see #0811 at AH=59h)
  66. Notes:    apparently never returns an error 07h, despite official docs; DOS 2.1+
  67.       code contains only an error 09h exit
  68.     DOS 2.1-6.0 does not coalesce adjacent free blocks when a block is
  69.       freed, only when a block is allocated or resized
  70.     the code for this function is identical in DOS 2.1-6.0 except for
  71.       calls to start/end a critical section in DOS 3+
  72. SeeAlso: AH=48h,AH=4Ah
  73. --------D-214A-------------------------------
  74. INT 21 - DOS 2+ - RESIZE MEMORY BLOCK
  75.     AH = 4Ah
  76.     BX = new size in paragraphs
  77.     ES = segment of block to resize
  78. Return: CF clear if successful
  79.     CF set on error
  80.         AX = error code (07h,08h,09h) (see #0811 at AH=59h)
  81.         BX = maximum paragraphs available for specified memory block
  82. Notes:    under DOS 2.1-6.0, if there is insufficient memory to expand the block
  83.       as much as requested, the block will be made as large as possible
  84.     DOS 2.1-6.0 coalesces any free blocks immediately following the block
  85.       to be resized
  86. SeeAlso: AH=48h,AH=49h,AH=83h
  87. --------v-214A--BX00B6-----------------------
  88. INT 21 - VIRUS???
  89.     AH = 4Ah
  90.     BX = 00B6h
  91.     ES = CX
  92. Return: ???
  93. Note:    this call is intercepted by the Search&Destroy SDRes v27.03 bundled
  94.       with Novell DOS 7, and is presumably some virus's installation check
  95. SeeAlso: AH=0Eh/DL=ADh,AH=4Ah/BX=FFFFh,AH=D2h"VIRUS"
  96. --------v-214A--BXFFFF-----------------------
  97. INT 21 - VIRUS???
  98.     AH = 4Ah
  99.     BX = FFFFh
  100.     CX = 0568h
  101.     SI = 0129h
  102.     DI = 0000h
  103.     ES = BP
  104. Return: ???
  105. Note:    this call is intercepted by the Search&Destroy SDRes v27.03 bundled
  106.       with Novell DOS 7, and is presumably some virus's installation check
  107. SeeAlso: AH=0Eh/DL=ADh,AH=4Ah/BX=00B6h
  108. --------D-214B-------------------------------
  109. INT 21 - DOS 2+ - "EXEC" - LOAD AND/OR EXECUTE PROGRAM
  110.     AH = 4Bh
  111.     AL = type of load
  112.         00h load and execute
  113.         01h load but do not execute
  114.         03h load overlay
  115.         04h load and execute in background (European MS-DOS 4.0 only)
  116.         "Exec & Go" (see also AH=80h)
  117.     DS:DX -> ASCIZ program name (must include extension)
  118.     ES:BX -> parameter block (see #0728)
  119.     CX = mode (subfunction 04h only)
  120.         0000h child placed in zombie mode after termination
  121.         0001h child's return code discarded on termination
  122. Return: CF clear if successful
  123.         BX,DX destroyed
  124.         if subfunction 01h, process ID set to new program's PSP; get with
  125.         INT 21/AH=62h
  126.     CF set on error
  127.         AX = error code (01h,02h,05h,08h,0Ah,0Bh) (see #0811 at AH=59h)
  128. Notes:    DOS 2.x destroys all registers, including SS:SP
  129.     under ROM-based DOS, if no disk path characters (colons or slashes)
  130.       are included in the program name, the name is searched for in the
  131.       ROM module headers (see #0733) before searching on disk
  132.     for functions 00h and 01h, the calling process must ensure that there
  133.       is enough unallocated memory available; if necessary, by releasing
  134.       memory with AH=49h or AH=4Ah
  135.     for function 01h, the AX value to be passed to the child program is put
  136.       on top of the child's stack
  137.     for function 03h, DOS assumes that the overlay is being loaded into
  138.       memory allocated by the caller
  139.     function 01h was undocumented prior to the release of DOS 5.0
  140.     some versions (such as DR-DOS 6.0) check the parameters and parameter
  141.       block and return an error if an invalid value (such as an offset of
  142.       FFFFh) is found
  143.     background programs under European MS-DOS 4.0 must use the new
  144.       executable format
  145.     .COM-format executables begin running with the following register
  146.       values:
  147.         AL = 00h if first FCB has valid drive letter, FFh if not
  148.         AH = 00h if second FCB has valid drive letter, FFh if not
  149.         CS,DS,ES,SS = PSP segment
  150.         SP = offset of last word available in first 64K segment
  151.         (note: AX is always 0000h under DESQview)
  152.     old-format executables begin running with the following register
  153.       values:
  154.         AL = 00h if first FCB has valid drive letter, FFh if not
  155.         AH = 00h if second FCB has valid drive letter, FFh if not
  156.         DS,ES = PSP segment
  157.         SS:SP as defined in .EXE header
  158.         (note: AX is always 0000h under DESQview)
  159.     new executables begin running with the following register values
  160.         AX = environment segment
  161.         BX = offset of command tail in environment segment
  162.         CX = size of automatic data segment (0000h = 64K)
  163.         ES,BP = 0000h
  164.         DS = automatic data segment
  165.         SS:SP = initial stack
  166.       the command tail corresponds to an old executable's PSP:0081h and
  167.       following, except that the 0Dh is turned into a NUL (00h); new
  168.       format executables have no PSP
  169.     under the FlashTek X-32 DOS extender, only function 00h is supported
  170.       and the pointers are passed in DS:EDX and ES:EBX
  171.     DR-DOS 6 always loads .EXE-format programs with no fixups and 
  172.       .COM-format programs starting with 9Ch 55h (PUSHF/PUSH BP) above the
  173.       64K mark to avoid the EXEPACK bug, by extending the memory block
  174.       containing the program's environment; this code is disabled if the
  175.       name of the parent program as stored in the MCB is 'WIN'.
  176. BUGS:    DOS 2.00 assumes that DS points at the current program's PSP
  177.     Load Overlay (subfunction 03h) loads up to 512 bytes too many if the
  178.       file contains additional data after the actual overlay
  179. SeeAlso: AX=4B05h,AH=4Ch,AH=4Dh,AH=64h"OS/2",AH=8Ah,INT 2E,INT 60/DI=0604h
  180.  
  181. Format of EXEC parameter block for AL=00h,01h,04h:
  182. Offset    Size    Description    (Table 0728)
  183.  00h    WORD    segment of environment to copy for child process (copy caller's
  184.           environment if 0000h)
  185.  02h    DWORD    pointer to command tail to be copied into child's PSP
  186.  06h    DWORD    pointer to first FCB to be copied into child's PSP
  187.  0Ah    DWORD    pointer to second FCB to be copied into child's PSP
  188.  0Eh    DWORD    (AL=01h) will hold subprogram's initial SS:SP on return
  189.  12h    DWORD    (AL=01h) will hold entry point (CS:IP) on return
  190.  
  191. Format of EXEC parameter block for AL=03h:
  192. Offset    Size    Description    (Table 0729)
  193.  00h    WORD    segment at which to load overlay
  194.  02h    WORD    relocation factor to apply to overlay if in .EXE format
  195.  
  196. Format of EXEC parameter block for FlashTek X-32:
  197. Offset    Size    Description    (Table 0730)
  198.  00h    PWORD    48-bit far pointer to environment string
  199.  06h    PWORD    48-bit far pointer to command tail string
  200.  
  201. (Table 0731)
  202. Values for the executable types understood by various environments:
  203.  MZ    old-style DOS executable
  204.  NE    Windows or OS/2 1.x segmented ("new") executable
  205.  LE    Windows virtual device driver (VxD) linear executable
  206.  LX    variant of LE used in OS/2 2.x
  207.  W3    Windows WIN386.EXE file; a collection of LE files
  208.  PE    Win32 (Windows NT and Win32s) portable executable based on Unix COFF
  209.  
  210. Format of .EXE file header:
  211. Offset    Size    Description    (Table 0732)
  212.  00h  2 BYTEs    .EXE signature, either "MZ" or "ZM" (5A4Dh or 4D5Ah)
  213.  02h    WORD    number of bytes in last 512-byte page of executable
  214.  04h    WORD    total number of 512-byte pages in executable (includes any
  215.         partial last page)
  216.  06h    WORD    number of relocation entries
  217.  08h    WORD    header size in paragraphs
  218.  0Ah    WORD    minimum paragraphs of memory to allocation in addition to
  219.         executable's size
  220.  0Ch    WORD    maximum paragraphs to allocate in addition to executable's size
  221.  0Eh    WORD    initial SS relative to start of executable
  222.  10h    WORD    initial SP
  223.  12h    WORD    checksum (one's complement of sum of all words in executable)
  224.  14h    DWORD    initial CS:IP relative to start of executable
  225.  18h    WORD    offset within header of relocation table
  226.         40h or greater for new-format (NE,LE,LX,W3,PE,etc.) executable
  227.  1Ah    WORD    overlay number (normally 0000h = main program)
  228. ---new executable---
  229.  1Ch  4 BYTEs    ???
  230.  20h    WORD    behavior bits
  231.  22h 26 BYTEs    reserved for additional behavior info
  232.  3Ch    DWORD    offset of new executable (NE,LE,etc) header within disk file,
  233.         or 00000000h if plain MZ executable
  234. ---Borland TLINK---
  235.  1Ch  2 BYTEs    ??? (apparently always 01h 00h)
  236.  1Eh    BYTE    signature FBh
  237.  1Fh    BYTE    TLINK version (major in high nybble, minor in low nybble)
  238.  20h  2 BYTEs    ??? (v2.0 apparently always 72h 6Ah, v3.0+ seems always 6Ah 72h)
  239. ---ARJ self-extracting archive---
  240.  1Ch  4 BYTEs    signature "RJSX" (older versions, new signature is "aRJsfX" in
  241.         the first 1000 bytes of the file)
  242. ---LZEXE 0.90 compressed executable---
  243.  1Ch  4 BYTEs    signature "LZ09"
  244. ---LZEXE 0.91 compressed executable---
  245.  1Ch  4 BYTEs    signature "LZ91"
  246. ---PKLITE compressed executable---
  247.  1Ch    BYTE    minor version number
  248.  1Dh    BYTE    bits 0-3: major version
  249.         bit 4: extra compression
  250.         bit 5: huge (multi-segment) file
  251.  1Eh  6 BYTEs    signature "PKLITE" (followed by copyright message)
  252. ---LHarc 1.x self-extracting archive---
  253.  1Ch  4 BYTEs    unused???
  254.  20h  3 BYTEs    jump to start of extraction code
  255.  23h  2 BYTEs    ???
  256.  25h 12 BYTEs    signature "LHarc's SFX "
  257. ---LHA 2.x self-extracting archive---
  258.  1Ch  8 BYTEs    ???
  259.  24h 10 BYTEs    signature "LHa's SFX " (v2.10) or "LHA's SFX " (v2.13)
  260. ---TopSpeed C 3.0 CRUNCH compressed file---
  261.  1Ch    DWORD    018A0001h
  262.  20h    WORD    1565h
  263. ---PKARCK 3.5 self-extracting archive---
  264.  1Ch    DWORD    00020001h
  265.  20h    WORD    0700h
  266. ---BSA (Soviet archiver) self-extracting archive---
  267.  1Ch    WORD    000Fh
  268.  1Eh    BYTE    A7h
  269. ---LARC self-extracting archive---
  270.  1Ch  4 BYTEs    ???
  271.  20h 11 BYTEs    "SFX by LARC "
  272. ---LH self-extracting archive---
  273.  1Ch  8 BYTEs    ???
  274.  24h  8 BYTEs    "LH's SFX "
  275. ---other linkers---
  276.  1Ch    var    optional information
  277. ---
  278.   N   N DWORDs    relocation items
  279. Notes:    if word at offset 02h is 4, it should be treated as 00h, since pre-1.10
  280.       versions of the MS linker set it that way
  281.     if both minimum and maximum allocation (offset 0Ah/0Ch) are zero, the
  282.       program is loaded as high in memory as possible
  283.     the maximum allocation is set to FFFFh by default
  284.  
  285. Format of ROM Module Header:
  286. Offset    Size    Description    (Table 0733)
  287.  00h  2 BYTEs    ROM signature 55h, AAh
  288.  02h    BYTE    size of ROM in 512-byte blocks
  289.  03h  3 BYTEs    POST initialization entry point (near JMP instruction)
  290.  06h    ROM Program Name List [array]
  291.     Offset    Size    Description
  292.      00h    BYTE    length of ROM program's name (00h if end of name list)
  293.      01h  N BYTEs    program name
  294.      N+1  3 BYTEs    program entry point (near JMP instruction)
  295.  
  296. Format of new executable header:
  297. Offset    Size    Description    (Table 0734)
  298.  00h  2 BYTEs    "NE" (4Eh 45h) signature
  299.  02h  2 BYTEs    linker version (major, then minor)
  300.  04h    WORD    offset from start of this header to entry table (see #0741)
  301.  06h    WORD    length of entry table in bytes
  302.  08h    DWORD    file load CRC (0 in Borland's TPW)
  303.  0Ch    BYTE    program flags (see #0735)
  304.  0Dh    BYTE    application flags (see #0736)
  305.  0Eh    WORD    auto data segment index
  306.  10h    WORD    initial local heap size
  307.  12h    WORD    initial stack size (added to data seg, 0000h if SS <> DS)
  308.  14h    DWORD    program entry point (CS:IP), "CS" is index into segment table
  309.  18h    DWORD    initial stack pointer (SS:SP), "SS" is segment index
  310.         if SS=automatic data segment and SP=0000h, the stack pointer is
  311.           set to the top of the automatic data segment, just below the
  312.           local heap
  313.  1Ch    WORD    segment count
  314.  1Eh    WORD    module reference count
  315.  20h    WORD    length of nonresident names table in bytes
  316.  22h    WORD    offset from start of this header to segment table (see #0739)
  317.  24h    WORD    offset from start of this header to resource table
  318.  26h    WORD    offset from start of this header to resident names table
  319.  28h    WORD    offset from start of this header to module reference table
  320.  2Ah    WORD    offset from start of this header to imported names table
  321.         (array of counted strings, terminated with a string of length
  322.           00h)
  323.  2Ch    DWORD    offset from start of file to nonresident names table
  324.  30h    WORD    count of moveable entry point listed in entry table
  325.  32h    WORD    file alignment size shift count
  326.         0 is equivalent to 9 (default 512-byte pages)
  327.  34h    WORD    number of resource table entries
  328.  36h    BYTE    target operating system
  329.         00h unknown
  330.         01h OS/2
  331.         02h Windows
  332.         03h European MS-DOS 4.x
  333.         04h Windows 386
  334.         05h BOSS (Borland Operating System Services)
  335.  37h    BYTE    other EXE flags (see #0737)
  336.  38h    WORD    offset to return thunks or start of gangload area
  337.  3Ah    WORD    offset to segment reference thunks or length of gangload area
  338.  3Ch    WORD    minimum code swap area size
  339.  3Eh  2 BYTEs    expected Windows version (minor version first)
  340. Note:    this header is documented in detail in the Windows 3.1 SDK Programmer's
  341.       Reference, Vol 4.
  342.  
  343. Bitfields for new executable program flags:
  344. Bit(s)    Description    (Table 0735)
  345.  0-1    DGROUP type
  346.       0 = none
  347.       1 = single shared
  348.       2 = multiple (unshared)
  349.       3 = (null)
  350.  2    global initialization
  351.  3    protected mode only
  352.  4    8086 instructions
  353.  5    80286 instructions
  354.  6    80386 instructions
  355.  7    80x87 instructions
  356.  
  357. Bitfields for new executable application flags:
  358. Bit(s)    Description    (Table 0736)
  359.  0-2    application type
  360.     001 full screen (not aware of Windows/P.M. API)
  361.     010 compatible with Windows/P.M. API
  362.     011 uses Windows/P.M. API
  363.  3    is a Family Application (OS/2)
  364.  5    0=executable, 1=errors in image
  365.  6    non-conforming program (valid stack is not maintained)
  366.  7    DLL or driver rather than application
  367.     (SS:SP info invalid, CS:IP points at FAR init routine called with
  368.       AX=module handle which returns AX=0000h on failure, AX nonzero on
  369.       successful initialization)
  370.  
  371. Bitfields for other new .EXE flags:
  372. Bit(s)    Description    (Table 0737)
  373.  0    supports long filenames
  374.  1    2.X protected mode
  375.  2    2.X proportional font
  376.  3    gangload area
  377.  
  378. Format of Codeview trailer (at end of executable):
  379. Offset    Size    Description    (Table 0738)
  380.  00h    WORD    signature 4E42h ('NB')
  381.  02h    WORD    Microsoft debug info version number
  382.  04h    DWORD    Codeview header offset
  383.  
  384. Format of new executable segment table record:
  385. Offset    Size    Description    (Table 0739)
  386.  00h    WORD    offset in file (shift left by alignment shift to get byte offs)
  387.  02h    WORD    length of image in file (0000h = 64K)
  388.  04h    WORD    segment attributes (see #0740)
  389.  06h    WORD    number of bytes to allocate for segment (0000h = 64K)
  390. Note:    the first segment table entry is entry number 1
  391.  
  392. Bitfields for segment attributes:
  393. Bit(s)    Description    (Table 0740)
  394.  0    data segment rather than code segment
  395.  1    unused???
  396.  2    real mode
  397.  3    iterated
  398.  4    movable
  399.  5    sharable
  400.  6    preloaded rather than demand-loaded
  401.  7    execute-only (code) or read-only (data)
  402.  8    relocations (directly following code for this segment)
  403.  9    debug info present
  404.  10,11    80286 DPL bits
  405.  12    discardable
  406.  13-15    discard priority
  407.  
  408. Format of new executable entry table item (list):
  409. Offset    Size    Description    (Table 0741)
  410.  00h    BYTE    number of entry points (00h if end of entry table list)
  411.  01h    BYTE    segment number (00h if end of entry table list)
  412.  02h 3N BYTEs    entry records
  413.         Offset    Size    Description
  414.          00h    BYTE    flags
  415.                 bit 0: exported
  416.                 bit 1: single data
  417.                 bits 2-7: unused???
  418.          01h    WORD    offset within segment
  419.  
  420. Format of new executable relocation data (immediately follows segment image):
  421. Offset    Size    Description    (Table 0742)
  422.  00h    WORD    number of relocation items
  423.  02h 8N BYTEs    relocation items
  424.         Offset    Size    Description
  425.          00h    BYTE    relocation type
  426.                 00h LOBYTE
  427.                 02h BASE
  428.                 03h PTR
  429.                 05h OFFS
  430.                 0Bh PTR48
  431.                 0Dh OFFS32
  432.          01h    BYTE    flags
  433.                 bit 2: additive
  434.          02h    WORD    offset within segment
  435.          04h    WORD    target address segment
  436.          06h    WORD    target address offset
  437.  
  438. Format of new executable resource data:
  439. Offset    Size    Description    (Table 0743)
  440.  00h    WORD    alignment shift count for resource data
  441.  02h  N RECORDs resources
  442.     Format of resource record:
  443.     Offset    Size    Description
  444.      00h    WORD    type ID
  445.             0000h if end of resource records
  446.             >= 8000h if integer type
  447.             else offset from start of resource table to type string
  448.      02h    WORD    number of resources of this type
  449.      04h    DWORD    reserved for runtime use
  450.      08h  N Resources (see #0744)
  451. Note:    resource type and name strings are stored immediately following the
  452.       resource table, and are not null-terminated
  453.  
  454. Format of new executable resource entry:
  455. Offset    Size    Description    (Table 0744)
  456.  00h    WORD    offset in alignment units from start of file to contents of
  457.         the resource data
  458.  02h    WORD    length of resource image in bytes
  459.  04h    WORD    flags
  460.         bit 4: moveable
  461.         bit 5: shareable
  462.         bit 6: preloaded
  463.  06h    WORD    resource ID
  464.         >= 8000h if integer resource
  465.         else offset from start of resource table to resource string
  466.  08h    DWORD    reserved for runtime use
  467. Notes:    resource type and name strings are stored immediately following the
  468.       resource table, and are not null-terminated
  469.     strings are counted strings, with a string of length 0 indicating the
  470.       end of the resource table
  471.  
  472. Format of new executable module reference table [one bundle of entries]:
  473. Offset    Size    Description    (Table 0745)
  474.  00h    BYTE    number of records in this bundle (00h if end of table)
  475.  01h    BYTE    segment indicator
  476.         00h unused
  477.         FFh movable segment, segment number is in entry
  478.         else segment number of fixed segment
  479.  02h  N RECORDs
  480.     Format of segment record
  481.     Offset    Size    Description
  482.      00h    BYTE    flags
  483.             bit 0: entry is exported
  484.             bit 1: entry uses global (shared) data
  485.             bits 7-3: number of parameter words
  486.     ---fixed segment---
  487.      01h    WORD    offset
  488.     ---moveable segment---
  489.      01h  2 BYTEs    INT 3F instruction (CDh 3Fh)
  490.      03h    BYTE    segment number
  491.      05h    WORD    offset
  492. Note:    table entries are numbered starting from 1
  493.  
  494. Format of new executable resident/nonresident name table entry:
  495. Offset    Size    Description    (Table 0746)
  496.  00h    BYTE    length of string (00h if end of table)
  497.  01h  N BYTEs    ASCII text of string
  498.  N+1    WORD    ordinal number (index into entry table)
  499. Notes:    the first string in the resident name table is the module name; the
  500.       first entry in the nonresident name table is the module description
  501.     the strings are case-sensitive; if the executable was linked with
  502.       /IGNORECASE, all strings are in uppercase
  503.  
  504. Format of Linear Executable (enhanced mode executable) header:
  505. Offset    Size    Description    (Table 0747)
  506.  00h  2 BYTEs    "LE" (4Ch 45h) signature (Windows)
  507.         "LX" (4Ch 58h) signature (OS/2)
  508.  02h    BYTE    byte order (00h = little-endian, nonzero = big-endian)
  509.  03h    BYTE    word order (00h = little-endian, nonzero = big-endian)
  510.  04h    DWORD    executable format level
  511.  08h    WORD    CPU type (see also INT 15/AH=C9h)
  512.         01h Intel 80286 or upwardly compatible
  513.         02h Intel 80386 or upwardly compatible
  514.         03h Intel 80486 or upwardly compatible
  515.         04h Intel Pentium (80586) or upwardly compatible
  516.         20h Intel i860 (N10) or compatible
  517.         21h Intel "N11" or compatible
  518.         40h MIPS Mark I (R2000, R3000) or compatible
  519.         41h MIPS Mark II (R6000) or compatible
  520.         42h MIPS Mark III (R4000) or compatible
  521.  0Ah    WORD    target operating system
  522.         01h OS/2
  523.         02h Windows
  524.         03h European DOS 4.0
  525.         04h Windows 386
  526.  0Ch    DWORD    module version
  527.  10h    DWORD    module type (see #0748)
  528.  14h    DWORD    number of memory pages
  529.  18h    Initial CS:EIP
  530.     DWORD    object number
  531.     DWORD    offset
  532.  20h    Initial SS:ESP
  533.     DWORD    object number
  534.     DWORD    offset
  535.  28h    DWORD    memory page size
  536.  2Ch    DWORD    (Windows LE) bytes on last page
  537.         (OS/2 LX) page offset shift count
  538.  30h    DWORD    fixup section size
  539.  34h    DWORD    fixup section checksum
  540.  38h    DWORD    loader section size
  541.  3Ch    DWORD    loader section checksum
  542.  40h    DWORD    offset of object table (see #0749)
  543.  44h    DWORD    object table entries
  544.  48h    DWORD    object page map table offset
  545.  4Ch    DWORD    object iterate data map offset
  546.  50h    DWORD    resource table offset
  547.  54h    DWORD    resource table entries
  548.  58h    DWORD    resident names table offset
  549.  5Ch    DWORD    entry table offset
  550.  60h    DWORD    module directives table offset
  551.  64h    DWORD    Module Directives entries
  552.  68h    DWORD    Fixup page table offset
  553.  6Ch    DWORD    Fixup record table offset
  554.  70h    DWORD    imported modules name table offset
  555.  74h    DWORD    imported modules count
  556.  78h    DWORD    imported procedures name table offset
  557.  7Ch    DWORD    per-page checksum table offset
  558.  80h    DWORD    data pages offset
  559.  84h    DWORD    preload page count
  560.  88h    DWORD    non-resident names table offset
  561.  8Ch    DWORD    non-resident names table length
  562.  90h    DWORD    non-resident names checksum
  563.  94h    DWORD    automatic data object
  564.  98h    DWORD    debug information offset
  565.  9Ch    DWORD    debug information length
  566.  A0h    DWORD    preload instance pages number
  567.  A4h    DWORD    demand instance pages number
  568.  A8h    DWORD    extra heap allocation
  569.  ACh 20 BYTEs    reserved
  570.  C0h    WORD    device ID (MS-Windows VxD only)
  571.  C2h    WORD    DDK version (MS-Windows VxD only)
  572. Note:    used by EMM386.EXE, QEMM, and Windows 3.0 Enhanced Mode drivers
  573.  
  574. Bitfields for Linear Executable module type:
  575. Bit(s)    Description    (Table 0748)
  576.  2    initialization (only for DLLs) 0 = global, 1 = per-process
  577.  4    no internal fixups in executable image
  578.  5    no external fixups in executable image
  579.  8-10    API compatibility
  580.     0 = unknown
  581.     1 = incompatible with PM windowing \
  582.     2 = compatible with PM windowing    > (only for
  583.     3 = uses PM windowing API       /    programs)
  584.  13    module not loadable (only for programs)
  585.  15-17    module type
  586.     000 program
  587.     001 library (DLL)
  588.     011 protected memory library module
  589.     100 physical device driver
  590.     110 virtual device driver
  591.  30    per-process library termination
  592.     (requires valid CS:EIP, can't be set for .EXE)
  593.  
  594. Format of object table entry:
  595. Offset    Size    Description    (Table 0749)
  596.  00h    DWORD    virtual size in bytes
  597.  04h    DWORD    relocation base address
  598.  08h    DWORD    object flags (see #0750)
  599.  0Ch    DWORD    page map index
  600.  10h    DWORD    page map entries
  601.  14h  4 BYTEs    reserved??? (apparently always zeros)
  602.  
  603. Bitfields for object flags:
  604. Bit(s)    Description    (Table 0750)
  605.  0    readable
  606.  1    writable
  607.  2    executable
  608.  3    resource
  609.  4    discardable
  610.  5    shared
  611.  6    preloaded
  612.  7    invalid
  613.  8-9    type
  614.     00 normal
  615.     01 zero-filled
  616.     10 resident
  617.     11 resident and contiguous
  618.  10    resident and long-lockable
  619.  11    reserved
  620.  12    16:16 alias required
  621.  13    "BIG" (Huge: 32-bit)
  622.  14    conforming
  623.  15    "OBJECT_I/O_PRIVILEGE_LEVEL"
  624.  16-31    reserved
  625.  
  626. Format of object page map table entry:
  627. Offset    Size    Description    (Table 0751)
  628.  00h    BYTE    ??? (usually 00h)
  629.  01h    WORD    (big-endian) index to fixup table
  630.         0000h if no relocation info
  631.  03h    BYTE    type (00h hard copy in file, 03h some relocation needed)
  632.  
  633. Format of resident names table entry:
  634. Offset    Size    Description    (Table 0752)
  635.  00h    BYTE    length of name
  636.  01h  N BYTEs    name
  637.  N+1  3 BYTEs    ???
  638.  
  639. Format of LE linear executable entry table:
  640. Offset    Size    Description    (Table 0753)
  641.  00h    BYTE    number of entries in table
  642.  01h 10 BYTEs per entry
  643.         Offset    Size    Description
  644.          00h    BYTE    bit flags
  645.                 bit 0: non-empty bundle
  646.                 bit 1: 32-bit entry
  647.          01h    WORD    object number
  648.          03h    BYTE    entry type flags
  649.                 bit 0: exported
  650.                 bit 1: uses single data rather than instance
  651.                 bit 2: reserved
  652.                 bits 3-7: number of stack parameters
  653.          04h    DWORD    offset of entry point
  654.          08h  2 BYTEs    ???
  655. Note:    empty bundles (bit flags at 00h = 00h) are used to skip unused indices,
  656.       and do not contain the remaining nine bytes
  657.  
  658. Format of LX linear executable entry table [array]:
  659. Offset    Size    Description    (Table 0754)
  660.  00h    BYTE    number of bundles following (00h = end of entry table)
  661.  01h    BYTE    bundle type
  662.         00h empty
  663.         01h 16-bit entry
  664.         02h 286 callgate entry
  665.         03h 32-bit entry
  666.         04h forwarder entry
  667.         bit 7 set if additional parameter typing information is present
  668. ---bundle type 00h---
  669.  no additional fields
  670. ---bundle type 01h---
  671.  02h    WORD    object number
  672.  04h    BYTE    entry flags
  673.         bit 0: exported
  674.         bits 7-3: number of stack parameters
  675.  05h    WORD    offset of entry point in object (shifted by page size shift)
  676. ---bundle type 02h---
  677.  02h    WORD    object number
  678.  04h    BYTE    entry flags
  679.         bit 0: exported
  680.         bits 7-3: number of stack parameters
  681.  05h    WORD    offset of entry point in object
  682.  07h    WORD    reserved for callgate selector (used by loader)
  683. ---bundle type 03h---
  684.  02h    WORD    object number
  685.  04h    BYTE    entry flags
  686.         bit 0: exported
  687.         bits 7-3: number of stack parameters
  688.  05h    DWORD    offset of entry point in object
  689. ---bundle type 04h---
  690.  02h    WORD    reserved
  691.  04h    BYTE    forwarder flags
  692.         bit 0: import by ordinal
  693.         bits 7-1 reserved
  694.  05h    WORD    module ordinal
  695.         (forwarder's index into Import Module Name table)
  696.  07h    DWORD    procedure name offset or import ordinal number
  697. Note:    all fields after the first two bytes are repeated N times
  698.  
  699. Bitfields for linear executable fixup type:
  700. Bit(s)    Description    (Table 0755)
  701.  7    ordinal is BYTE rather than WORD
  702.  6    16-rather than 8-object number/module ordinal
  703.  5    addition with DWORD rather than WORD
  704.  4    relocation info has size with new two bytes at end
  705.  3    reserved (0)
  706.  2    set if add to destination, clear to replace destination
  707.  1-0    type
  708.     00 internal fixup
  709.     01 external fixup, imported by ordinal
  710.     10 external fixup, imported by name
  711.     11 internal fixup via entry table
  712.  
  713. Format of linear executable fixup record:
  714. Offset    Size    Description    (Table 0756)
  715.  00h    BYTE    type
  716.         bits 7-4: modifier (0001 single, 0011 multiple)
  717.         bits 3-0: type
  718.             0000 byte offset
  719.             0010 word segment
  720.             0011 16-bit far pointer (DWORD)
  721.             0101 16-bit offset
  722.             0110 32-bit far pointer (PWORD)
  723.             0111 32-bit offset
  724.             1000 near call or jump, WORD/DWORD based on seg attrib
  725.  01h    BYTE    linear executable fixup type (see #0755)
  726. ---if single type---
  727.  02h    WORD    offset within page
  728.  04h    relocation information
  729.     ---internal fixup---
  730.     BYTE    object number
  731.     ---external,ordinal---
  732.     BYTE    one-based module number in Import Module table
  733.     BYTE/WORD ordinal number
  734.     WORD/DWORD value to add (only present if modifier bit 4 set)
  735.     ---external,name---
  736.     BYTE    one-based module number in Import Module table
  737.     WORD    offset in Import Procedure names
  738.     WORD/DWORD value to add (only present if modifier bit 4 set)
  739. ---if multiple type---
  740.  02h    BYTE    number of items
  741.  03h    var    relocation info as for "single" type (see above)
  742.       N WORDs    offsets of items to relocate
  743.  
  744. Format of old Phar Lap .EXP file header:
  745. Offset    Size    Description    (Table 0757)
  746.  00h  2 BYTEs    "MP" (4Dh 50h) signature
  747.  02h    WORD    remainder of image size / page size (page size = 512h)
  748.  04h    WORD    size of image in pages
  749.  06h    WORD    number of relocation items
  750.  08h    WORD    header size in paragraphs
  751.  0Ah    WORD    minimum number of extra 4K pages to be allocated at the end
  752.           of program, when it is loaded
  753.  0Ch    WORD    maximum number of extra 4K pages to be allocated at the end
  754.           of program, when it is loaded
  755.  0Eh    DWORD    initial ESP
  756.  12h    WORD    word checksum of file
  757.  14h    DWORD    initial EIP
  758.  18h    WORD    offset of first relocation item
  759.  1Ah    WORD    overlay number
  760.  1Ch    WORD    ??? (wants to be 1)
  761.  
  762. Format of new Phar Lap .EXP file header:
  763. Offset    Size    Description    (Table 0758)
  764.  00h  2 BYTEs    signature ("P2" for 286 .EXP executable, "P3" for 386 .EXP)
  765.  02h    WORD    level (01h flat-model file, 02h multisegmented file)
  766.  04h    WORD    header size
  767.  06h    DWORD    file size in bytes
  768.  0Ah    WORD    checksum
  769.  0Ch    DWORD    offset of run-time parameters within file
  770.  10h    DWORD    size of run-time parameters in bytes
  771.  14h    DWORD    offset of relocation table within file
  772.  18h    DWORD    size of relocation table in bytes
  773.  1Ch    DWORD    offset of segment information table within file
  774.  20h    DWORD    size of segment information table in bytes
  775.  24h    WORD    size of segment information table entry in bytes
  776.  26h    DWORD    offset of load image within file
  777.  2Ah    DWORD    size of load image on disk
  778.  2Eh    DWORD    offset of symbol table within file
  779.  32h    DWORD    size of symbol table in bytes
  780.  36h    DWORD    offset of GDT within load image
  781.  3Ah    DWORD    size of GDT in bytes
  782.  3Eh    DWORD    offset of LDT within load image
  783.  42h    DWORD    size of LDT in bytes
  784.  46h    DWORD    offset of IDT within load image
  785.  4Ah    DWORD    size of IDT in bytes
  786.  4Eh    DWORD    offset of TSS within load image
  787.  52h    DWORD    size of TSS in bytes
  788.  56h    DWORD    minimum number of extra bytes to be allocated at end of program
  789.         (level 1 executables only)
  790.  5Ah    DWORD    maximum number of extra bytes to be allocated at end of program
  791.         (level 1 executables only)
  792.  5Eh    DWORD    base load offset (level 1 executables only)
  793.  62h    DWORD    initial ESP
  794.  66h    WORD    initial SS
  795.  68h    DWORD    initial EIP
  796.  6Ch    WORD    initial CS
  797.  6Eh    WORD    initial LDT
  798.  70h    WORD    initial TSS
  799.  72h    WORD    flags
  800.         bit 0: load image is packed
  801.         bit 1: 32-bit checksum is present
  802.         bits 4-2: type of relocation table
  803.  74h    DWORD    memory requirements for load image
  804.  78h    DWORD    32-bit checksum (optional)
  805.  7Ch    DWORD    size of stack segment in bytes
  806.  80h 256 BYTEs    reserved (0)
  807.  
  808. Format of Phar Lap segment information table entry:
  809. Offset    Size    Description    (Table 0759)
  810.  00h    WORD    selector number
  811.  02h    WORD    flags
  812.  04h    DWORD    base offset of selector
  813.  08h    DWORD    minimum number of extra bytes to be allocated to the segment
  814.  
  815. Format of 386|DOS-Extender run-time parameters:
  816. Offset    Size    Description    (Table 0760)
  817.  00h  2 BYTEs    signature "DX" (44h 58h)
  818.  02h    WORD    minimum number of real-mode params to leave free at run time
  819.  04h    WORD    maximum number of real-mode params to leave free at run time
  820.  06h    WORD    minimum interrupt buffer size in KB
  821.  08h    WORD    maximum interrupt buffer size in KB
  822.  0Ah    WORD    number of interrupt stacks
  823.  0Ch    WORD    size in KB of each interrupt stack
  824.  0Eh    DWORD    offset of byte past end of real-mode code and data
  825.  12h    WORD    size in KB of call buffers
  826.  14h    WORD    flags
  827.         bit 0: file is virtual memory manager
  828.         bit 1: file is a debugger
  829.  16h    WORD    unprivileged flag (if nonzero, executes at ring 1, 2, or 3)
  830.  18h 104 BYTEs    reserved (0)
  831.  
  832. Format of Phar Lap repeat block header:
  833. Offset    Size    Description    (Table 0761)
  834.  00h    WORD    byte count
  835.  02h    BYTE    repeat string length
  836.  
  837. Format of Borland debugging information header (following load image):
  838. Offset    Size    Description    (Table 0762)
  839.  00h    WORD    signature 52FBh
  840.  02h    WORD    version ID
  841.  04h    DWORD    size of name pool in bytes
  842.  08h    WORD    number of names in namem pool
  843.  0Ah    WORD    number of type entries
  844.  0Ch    WORD    number of structure members
  845.  0Eh    WORD    number of symbols
  846.  10h    WORD    number of global symbols
  847.  12h    WORD    number of modules
  848.  14h    WORD    number of locals (optional)
  849.  16h    WORD    number of scopes in table
  850.  18h    WORD    number of line-number entries
  851.  1Ah    WORD    number of include files
  852.  1Ch    WORD    number of segment records
  853.  1Eh    WORD    number of segment/file correlations
  854.  20h    DWORD    size of load image after removing uninitialized data and debug
  855.           information
  856.  24h    DWORD    debugger hook; pointer into debugged program whose meaning
  857.           depends on program flags
  858.  28h    BYTE    program flags
  859.         bit 0: case-sensitive link
  860.         bit 1: pascal overlay program
  861.  29h    WORD    no longer used
  862.  2Bh    WORD    size of data pool in bytes
  863.  2Dh    BYTE    padding
  864.  2Eh    WORD    size of following header extension (currently 00h, 10h, or 20h)
  865.  30h    WORD    number of classes
  866.  32h    WORD    number of parents
  867.  34h    WORD    number of global classes (currently unused)
  868.  36h    WORD    number of overloads (currently unused)
  869.  38h    WORD    number of scope classes
  870.  3Ah    WORD    number of module classes
  871.  3Ch    WORD    number of coverage offsets
  872.  3Eh    DWORD    offset relative to symbol base of name pool
  873.  42h    WORD    number of browser information records
  874.  44h    WORD    number of optimized symbol records
  875.  46h    WORD    debugging flags
  876.  48h  8 BYTEs    padding
  877. Note:    additional information on the Borland debugging info may be found in
  878.       Borland's Open Architecture Handbook
  879. --------U-214B-------------------------------
  880. INT 21 - ELRES v1.0 only - INSTALLATION CHECK
  881.     AH = 4Bh
  882.     DS:DX = 0000h:0000h
  883. Return: ES:BX -> ELRES history structure (see #0538 at AH=2Bh/CX=454Ch)
  884.     DX = DABEh (signature, DAve BEnnett)
  885. Program: ELRES is an MS-DOS return code (errorlevel) recorder by David H.
  886.       Bennett
  887. SeeAlso: AH=2Bh/CX=454Ch
  888. --------v-214B04-----------------------------
  889. INT 21 - VIRUS - "MG", "699"/"Thirteen Minutes" - INSTALLATION CHECK
  890.     AX = 4B04h
  891. Return: CF clear if "MG" resident
  892.     AX = 044Bh if "699"/"Thirteen Minutes" resident
  893. SeeAlso: AX=4243h,AH=4Ah/BX=FFFFh,AX=4B21h
  894. --------D-214B05-----------------------------
  895. INT 21 - DOS 5+ - SET EXECUTION STATE
  896.     AX = 4B05h
  897.     DS:DX -> execution state structure (see #0763)
  898. Return: CF clear if successful
  899.         AX = 0000h
  900.     CF set on error
  901.         AX = error code (see #0811 at AH=59h)
  902. Note:    used by programs which intercept AX=4B00h to prepare new programs for
  903.       execution (including setting the DOS version number).     No DOS, BIOS
  904.       or other software interrupt may be called after return from this call
  905.       before commencement of the child process.  If DOS is running in the
  906.       HMA, A20 is turned off on return from this call.
  907. SeeAlso: AH=4Bh
  908.  
  909. Format of execution state structure:
  910. Offset    Size    Description    (Table 0763)
  911.  00h    WORD    reserved (00h)
  912.  02h    WORD    type flags
  913.         bit 0: program is an .EXE
  914.         bit 1: program is an overlay
  915.  04h    DWORD    pointer to ASCIZ name of program file
  916.  08h    WORD    PSP segment of new program
  917.  0Ah    DWORD    starting CS:IP of new program
  918.  0Eh    DWORD    program size including PSP
  919. --------v-214B20-----------------------------
  920. INT 21 - VIRUS - "Holocaust"/"Telefonica" - ???
  921.     AX = 4B20h
  922. SeeAlso: AX=4B04h,AX=4B21h
  923. --------v-214B21-----------------------------
  924. INT 21 C - VIRUS - "Holocaust"/"Telefonica" - ???
  925.     AX = 4B21h
  926. Note:    called at completion of virus installation
  927. SeeAlso: AX=4B04h,AX=4B20h,AX=4B25h
  928. --------v-214B25-----------------------------
  929. INT 21 - VIRUS - "1063"/"Mono" - INSTALLATION CHECK
  930.     AX = 4B25h
  931. Return: DI = 1234h if resident
  932. SeeAlso: AX=4B21h,AX=4B40h
  933. --------v-214B40-----------------------------
  934. INT 21 - VIRUS - "Plastique"/"AntiCad" - INSTALLATION CHECK
  935.     AX = 4B40h
  936. Return: AX = 5678h if resident
  937. SeeAlso: AX=4B25h,AX=4B41h,AX=4B4Ah
  938. --------v-214B41-----------------------------
  939. INT 21 - VIRUS - "Plastique"/"AntiCad" - ???
  940.     AX = 4B41h
  941.     ???
  942. Return: ???
  943. SeeAlso: AX=4B40h
  944. --------v-214B4A-----------------------------
  945. INT 21 - VIRUS - "Jabberwocky" - INSTALLATION CHECK
  946.     AX = 4B4Ah
  947. Return: AL = 57h if resident
  948. SeeAlso: AX=4B40h,AX=4B4Bh
  949. --------v-214B4B-----------------------------
  950. INT 21 - VIRUS - "Horse-2" - INSTALLATION CHECK
  951.     AX = 4B4Bh
  952. Return: CF clear if resident
  953. SeeAlso: AX=4B4Ah,AX=4B4Dh
  954. --------v-214B4D-----------------------------
  955. INT 21 - VIRUS - "Murphy-2", "Patricia"/"Smack" - INSTALLATION CHECK
  956.     AX = 4B4Dh
  957. Return: CF clear if resident
  958. SeeAlso: AX=4B4Ah,AX=4B50h
  959. --------v-214B50-----------------------------
  960. INT 21 - VIRUS - "Plastique-2576"/"AntiCad-2576" - INSTALLATION CHECK
  961.     AX = 4B50h
  962. Return: AX = 1234h if resident
  963. SeeAlso: AX=4B4Dh,AX=4B53h,AX=4B60h
  964. --------v-214B53-----------------------------
  965. INT 21 - VIRUS - "Horse" - INSTALLATION CHECK
  966.     AX = 4B53h
  967. Return: CF clear if resident
  968. SeeAlso: AX=4B50h,AX=4B55h
  969. --------v-214B55-----------------------------
  970. INT 21 - VIRUS - "Sparse" - INSTALLATION CHECK
  971.     AX = 4B55h
  972. Return: AX = 1231h if resident
  973. SeeAlso: AX=4B53h,AX=4B59h
  974. --------v-214B59-----------------------------
  975. INT 21 - VIRUS - "Murphy-1", "Murphy-4" - INSTALLATION CHECK
  976.     AX = 4B59h
  977. Return: CF clear if resident
  978. SeeAlso: AX=4B50h,AX=4B5Eh
  979. --------v-214B5E-----------------------------
  980. INT 21 - VIRUS - "Brothers" - INSTALLATION CHECK
  981.     AX = 4B5Eh
  982. Return: CF clear if resident
  983. SeeAlso: AX=4B59h,AX=4B87h
  984. --------v-214B60-----------------------------
  985. INT 21 - VIRUS - "Plastique-2576"/"AntiCad-2576" - ???
  986.     AX = 4B60h
  987.     ???
  988. Return: ???
  989. SeeAlso: AX=4B50h
  990. --------v-214B87-----------------------------
  991. INT 21 - VIRUS - "Shirley" - INSTALLATION CHECK
  992.     AX = 4B87h
  993. Return: AX = 6663h if resident
  994. SeeAlso: AX=4B5Eh,AX=4B95h
  995. --------v-214B95-----------------------------
  996. INT 21 - VIRUS - "Zherkov-1882" - INSTALLATION CHECK
  997.     AX = 4B95h
  998. Return: AX = 1973h if resident
  999. SeeAlso: AX=4B87h,AX=4BA7h
  1000. --------v-214BA7-----------------------------
  1001. INT 21 - VIRUS - "1876"/"Dash-em" - INSTALLATION CHECK
  1002.     AX = 4BA7h
  1003. Return: AX = B459h if resident
  1004. SeeAlso: AX=4B95h,AX=4BAAh
  1005. --------v-214BAA-----------------------------
  1006. INT 21 - VIRUS - "Nomenklatura" - INSTALLATION CHECK
  1007.     AX = 4BAAh
  1008. Return: CF clear if resident
  1009. SeeAlso: AX=4BA7h,AX=4BAFh
  1010. --------v-214BAF-----------------------------
  1011. INT 21 - VIRUS - "948"/"Screenplus1", "Magnitogorsk" - INSTALLATION CHECK
  1012.     AX = 4BAFh
  1013. Return: AL = AFh if "Magnitogorsk" resident
  1014.     AL = FAh if "948"/"Screenplus1" resident
  1015. SeeAlso: AX=4BAAh,AX=4BDDh
  1016. --------v-214BDD-----------------------------
  1017. INT 21 - VIRUS - "Lozinsky"/"Zherkov" - INSTALLATION CHECK
  1018.     AX = 4BDDh
  1019. Return: AX = 1234h
  1020. SeeAlso: AX=4BAFh,AX=4BFEh
  1021. --------v-214BEE-----------------------------
  1022. INT 21 - F-DRIVER.SYS v1.14+ - GRAB INT 21
  1023.     AX = 4BEEh
  1024. Return: AX = status
  1025.         1234h grab was successful
  1026.         2345h failed (INT 21 grabbed previously)
  1027. Program: F-DRIVER.SYS is part of the shareware F-PROT virus/trojan protection
  1028.       package by Fridrik Skulason
  1029. Note:    when called the first time, this function moves the INT 21 monitoring
  1030.       code from its original location in the INT 21 chain to be the first
  1031.       thing called by INT 21.  This is the mechanism used by F-NET.
  1032. SeeAlso: INT 2F/AX=4653h
  1033. --------k-214BF0-----------------------------
  1034. INT 21 - DIET v1.10+ (Overlay Mode) - INSTALLATION CHECK
  1035.     AX = 4BF0h
  1036. Return: CF clear if installed
  1037.         AX = 899Dh
  1038. Program: DIET is an executable-compression program by Teddy Matsumoto
  1039. SeeAlso: AX=37D0h,AX=4BF1h
  1040. --------k-214BF1-----------------------------
  1041. INT 21 - DIET v1.10+ (Overlay Mode) - EXPAND PROGRAM???
  1042.     AX = 4BF1h
  1043. Return: ???
  1044. SeeAlso: AX=37D0h,AX=4BF0h
  1045. --------v-214BFE-----------------------------
  1046. INT 21 - VIRUS - "Hitchcock", "Dark Avenger-1028", "1193" - INSTALLATION CHECK
  1047.     AX = 4BFEh
  1048. Return: AX = 1234h if "Hitchcock" resident
  1049.     AX = ABCDh if "1193"/"Copyright" resident
  1050.     DI = 55BBh if "Dark Avenger-1028" resident
  1051. SeeAlso: AX=4BDDh,AX=4BFFh"Justice"
  1052. --------v-214BFF-----------------------------
  1053. INT 21 - VIRUS - "USSR-707", "Justice", "Europe 92" - INSTALLATION CHECK
  1054.     AX = 4BFFh
  1055. Return: BL = FFh if "USSR-707" resident
  1056.     DI = 55AAh if "Justice" resident
  1057.     CF clear if "Europe 92" resident
  1058. SeeAlso: AX=4BFEh,AX=4BFFh"Cascade",AX=5252h
  1059. --------v-214BFFSI0000-----------------------
  1060. INT 21 - VIRUS - "Cascade" - INSTALLATION CHECK
  1061.     AX = 4BFFh
  1062.     SI = 0000h
  1063.     DI = 0000h
  1064. Return: DI = 55AAh if installed
  1065. SeeAlso: AX=4BFFh"Justice",AX=5252h
  1066. --------D-214C-------------------------------
  1067. INT 21 - DOS 2+ - "EXIT" - TERMINATE WITH RETURN CODE
  1068.     AH = 4Ch
  1069.     AL = return code
  1070. Return: never returns
  1071. Notes:    unless the process is its own parent (see #0535 at AH=26h, offset 16h
  1072.       in PSP), all open files are closed and all memory belonging to the
  1073.       process is freed
  1074.     all network file locks should be removed before calling this function
  1075. SeeAlso: AH=00h,AH=26h,AH=4Bh,AH=4Dh,INT 15/AH=12h/BH=02h,INT 20,INT 22
  1076. SeeAlso: INT 60/DI=0601h
  1077. ----------214C57-----------------------------
  1078. INT 21 - Headroom - ???
  1079.     AX = 4C57h
  1080.     DS:DX -> target address
  1081. Note:    jumps to target address instead of terminating program
  1082. SeeAlso: AX=5758h
  1083. --------D-214D-------------------------------
  1084. INT 21 - DOS 2+ - GET RETURN CODE (ERRORLEVEL)
  1085.     AH = 4Dh
  1086. Return: AH = termination type
  1087.         00h normal (INT 20,INT 21/AH=00h, or INT 21/AH=4Ch)
  1088.         01h control-C abort
  1089.         02h critical error abort
  1090.         03h terminate and stay resident (INT 21/AH=31h or INT 27)
  1091.     AL = return code
  1092. Notes:    the word in which DOS stores the return code is cleared after being
  1093.       read by this function, so the return code can only be retrieved once
  1094.     COMMAND.COM stores the return code of the last external command it
  1095.       executed as ERRORLEVEL
  1096.     this call should not be used if the child was started with AX=4B04h;
  1097.       use AH=8Ah instead
  1098.     the following sequence will close a Virtual DOS Machine under OS/2 2.0:
  1099.       MOV    AH,4Dh
  1100.       INT    21h
  1101.       HLT
  1102.       DB    02h,0FDh
  1103.       This sequence is the only way to close a specific VDM which was
  1104.       booted from floppy or a disk image.
  1105. SeeAlso: AH=4Bh,AH=4Ch,AH=8Ah
  1106. --------D-214E-------------------------------
  1107. INT 21 - DOS 2+ - "FINDFIRST" - FIND FIRST MATCHING FILE
  1108.     AH = 4Eh
  1109.     AL = special flag for use by APPEND (see note below)
  1110.     CX = file attribute mask (see #0574 at AX=4301h) (bits 0 and 5 ignored)
  1111.         0088h (Novell DOS 7) find first deleted file
  1112.     DS:DX -> ASCIZ file specification (may include path and wildcards)
  1113. Return: CF clear if successful
  1114.         [DTA] = FindFirst data block (see #0764)
  1115.     CF set on error
  1116.         AX = error code (02h,03h,12h) (see #0811 at AH=59h)
  1117. Notes:    for search attributes other than 08h, all files with at MOST the
  1118.       specified combination of hidden, system, and directory attributes
  1119.       will be returned.  Under DOS 2.x, searching for attribute 08h
  1120.       (volume label) will also return normal files, while under DOS 3+
  1121.       only the volume label (if any) will be returned.
  1122.     this call also returns successfully if given the name of a character
  1123.       device without wildcards.  DOS 2.x returns attribute 00h, size 0,
  1124.       and the current date and time.  DOS 3+ returns attribute 40h and the
  1125.       current date and time.
  1126.     immediately after an INT 2F/AX=B711h (APPEND return found name), the
  1127.       name at DS:DX will be overwritten; if AL=00h on entry, the actual
  1128.       found pathname will be stored, otherwise, the actual found path
  1129.       will be prepended to the original filespec without a path.
  1130.     under LANtastic, this call may be used to obtain a list of a server's
  1131.       shared resources by searching for "\\SERVER\*.*"; a list of printer
  1132.       resources may be obtained by searching for "\\SERVER\@*.*"
  1133.     under the FlashTek X-32 DOS extender, the filespec pointer is in DS:EDX
  1134. BUGS:    under DOS 3.x and 4.x, the second and subsequent calls to this function
  1135.       with a character device name (no wildcards) and search attributes
  1136.       which include the volume-label bit (08h) will fail unless there is
  1137.       an intervening DOS call which implicitly or explicity performs a
  1138.       directory search without the volume-label bit.  Such implicit
  1139.       searches are performed by CREATE (AH=3Ch), OPEN (AH=3Dh), UNLINK
  1140.       (AH=41h), and RENAME (AH=56h)
  1141.     DR-DOS 3.41 and 5.0 return the Directory attribute for the volume label
  1142. SeeAlso: AH=11h,AH=4Fh,AX=4301h,AH=71h,INT 2F/AX=111Bh,INT 2F/AX=B711h
  1143.  
  1144. Format of FindFirst data block:
  1145. Offset    Size    Description    (Table 0764)
  1146. ---PC-DOS 3.10, PC-DOS 4.01, MS-DOS 3.2/3.3/5.0---
  1147.  00h    BYTE    drive letter (bits 0-6), remote if bit 7 set
  1148.  01h 11 BYTEs    search template
  1149.  0Ch    BYTE    search attributes
  1150. ---DOS 2.x (and some DOS 3.x???)---
  1151.  00h    BYTE    search attributes
  1152.  01h    BYTE    drive letter
  1153.  02h 11 BYTEs    search template
  1154. ---WILDUNIX.COM---
  1155.  00h 12 BYTEs    15-character wildcard search pattern and drive letter (packed)
  1156.  0Ch    BYTE    search attributes
  1157. ---DOS 2.x and most 3.x---
  1158.  0Dh    WORD    entry count within directory
  1159.  0Fh    DWORD    pointer to DTA???
  1160.  13h    WORD    cluster number of start of parent directory
  1161. ---PC-DOS 4.01, MS-DOS 3.2/3.3/5.0---
  1162.  0Dh    WORD    entry count within directory
  1163.  0Fh    WORD    cluster number of start of parent directory
  1164.  11h  4 BYTEs    reserved
  1165. ---all versions, documented fields---
  1166.  15h    BYTE    attribute of file found
  1167.  16h    WORD    file time (see #0802 at AX=5700h)
  1168.  18h    WORD    file date (see #0803 at AX=5700h)
  1169.  1Ah    DWORD    file size
  1170.  1Eh 13 BYTEs    ASCIZ filename+extension
  1171. --------f-214E-------------------------------
  1172. INT 21 - WILDUNIX.COM internal - INSTALLATION CHECK
  1173.     AH = 4Eh
  1174.     DS:DX = 0000h:0000h
  1175. Return: AH = 99h if installed
  1176. Program: WILDUNIX.COM is a resident Unix-style wildcard expander by Steve
  1177.       Hosgood and Terry Barnaby
  1178. --------D-214F-------------------------------
  1179. INT 21 - DOS 2+ - "FINDNEXT" - FIND NEXT MATCHING FILE
  1180.     AH = 4Fh
  1181.     [DTA] = data block from previous FindFirst or FindNext call
  1182. Return: CF clear if successful
  1183.     CF set on error
  1184.         AX = error code (12h) (see #0811 at AH=59h)
  1185. Note:    under Novell DOS 7, if the FindFirst call (AH=4Eh) had CX=0088h, then
  1186.       the next matching deleted file will be returned
  1187. BUG:    DR-DOS 3.41 and 5.0 return the Directory attribute for the volume label
  1188. SeeAlso: AH=12h,AH=4Eh,AH=71h,AH=72h
  1189. --------D-2150-------------------------------
  1190. INT 21 - DOS 2+ internal - SET CURRENT PROCESS ID (SET PSP ADDRESS)
  1191.     AH = 50h
  1192.     BX = segment of PSP for new process
  1193. Notes:    DOS uses the current PSP address to determine which processes own files
  1194.       and memory; it corresponds to process identifiers used by other OSs
  1195.     under DOS 2.x, this function cannot be invoked inside an INT 28h
  1196.       handler without setting the Critical Error flag
  1197.     under MS-DOS 3+ and DR-DOS 3.41+, this function does not use any of
  1198.       the DOS-internal stacks and may thus be called at any time, even
  1199.       during another INT 21h call
  1200.     some Microsoft applications such as Quick C 2.51 use segments of 0000h
  1201.       and FFFFh and direct access to the SDA (see #0818 at AX=5D06h) to
  1202.       test whether they are running under MS-DOS rather than a compatible
  1203.       OS; although one should only call this function with valid PSP
  1204.       addresses, any program hooking it should be prepared to handle
  1205.       invalid addresses
  1206.     this function is supported by the OS/2 compatibility box
  1207.     this call was undocumented prior to the release of DOS 5.0
  1208. SeeAlso: AH=26h,AH=51h,AH=62h
  1209. --------D-2151-------------------------------
  1210. INT 21 - DOS 2+ internal - GET CURRENT PROCESS ID (GET PSP ADDRESS)
  1211.     AH = 51h
  1212. Return: BX = segment of PSP for current process
  1213. Notes:    DOS uses the current PSP address to determine which processes own files
  1214.       and memory; it corresponds to process identifiers used by other OSs
  1215.     under DOS 2.x, this function cannot be invoked inside an INT 28h
  1216.       handler without setting the Critical Error flag
  1217.     under DOS 3+, this function does not use any of the DOS-internal stacks
  1218.       and may thus be called at any time, even during another INT 21h call
  1219.     supported by OS/2 compatibility box
  1220.     identical to the documented AH=62h
  1221.     this call was undocumented prior to the release of DOS 5.0
  1222. SeeAlso: AH=26h,AH=50h,AH=62h
  1223. --------D-2152-------------------------------
  1224. INT 21 U - DOS 2+ internal - "SYSVARS" - GET LIST OF LISTS
  1225.     AH = 52h
  1226. Return: ES:BX -> DOS list of lists (see #0765)
  1227. Notes:    partially supported by OS/2 v1.1 compatibility box (however, most
  1228.       pointers are FFFFh:FFFFh, LASTDRIVE is FFh, and the NUL header "next"
  1229.       pointer is FFFFh:FFFFh).
  1230.     partially supported by the Windows NT DOS box; contains only a
  1231.       rudimentary Current Directory Structure (see #0782)
  1232.     on return, ES points at the DOS data segment (see also INT 2F/AX=1203h)
  1233.     Quarterdeck's suggested check for the use of its DOSDATA.SYS or
  1234.       DOS-UP.SYS is to test whether the list-of-lists segment is greater
  1235.       than the segment of the first memory block; a better check for
  1236.       DOS-UP.SYS is INT 21/AX=2B01h/CX=444Dh
  1237. SeeAlso: INT 2F/AX=1203h
  1238.  
  1239. Format of List of Lists:
  1240. Offset    Size    Description    (Table 0765)
  1241.  -24    WORD    (DOS 3.1+) contents of CX from INT 21/AX=5E01h
  1242.  -22    WORD    (DOS ???+) LRU counter for FCB caching
  1243.  -20    WORD    (DOS ???+) LRU counter for FCB opens
  1244.  -18    DWORD    (DOS ???+) address of OEM function handler (see INT 21/AH=F8h)
  1245.             FFFFh:FFFFh if not installed or not available
  1246.  -14    WORD    (DOS ???+) offset in DOS CS of code to return from INT 21 call
  1247.  -12    WORD    (DOS 3.1+) sharing retry count (see AX=440Bh)
  1248.  -10    WORD    (DOS 3.1+) sharing retry delay (see AX=440Bh)
  1249.  -8    DWORD    (DOS 3+) pointer to current disk buffer
  1250.  -4    WORD    (DOS 3+) pointer in DOS data segment of unread CON input
  1251.         when CON is read via a handle, DOS reads an entire line,
  1252.           and returns the requested portion, buffering the rest
  1253.           for the next read.  0000h indicates no unread input
  1254.  -2    WORD    segment of first memory control block
  1255.  00h    DWORD    pointer to first Drive Parameter Block (see #0551 at AH=32h)
  1256.  04h    DWORD    -> first System File Table (see #0776,#0777,#0778,#0779)
  1257.  08h    DWORD    pointer to active CLOCK$ device's header (most recently loaded
  1258.           driver with CLOCK bit set)
  1259.  0Ch    DWORD    pointer to active CON device's header (most recently loaded
  1260.           driver with STDIN bit set)
  1261. ---DOS 2.x---
  1262.  10h    BYTE    number of logical drives in system
  1263.  11h    WORD    maximum bytes/block of any block device
  1264.  13h    DWORD    pointer to first disk buffer (see #0787,#0788)
  1265.  17h 18 BYTEs    actual NUL device driver header (not a pointer!)
  1266.         NUL is always the first device on DOS's linked list of device
  1267.           drivers. (see #0785)
  1268. ---DOS 3.0---
  1269.  10h    BYTE    number of block devices
  1270.  11h    WORD    maximum bytes/block of any block device
  1271.  13h    DWORD    pointer to first disk buffer (see #0788,#0790)
  1272.  17h    DWORD    pointer to array of current directory structures (see #0780)
  1273.  1Bh    BYTE    value of LASTDRIVE command in CONFIG.SYS (default 5)
  1274.  1Ch    DWORD    pointer to STRING= workspace area
  1275.  20h    WORD    size of STRING area (the x in STRING=x from CONFIG.SYS)
  1276.  22h    DWORD    pointer to FCB table
  1277.  26h    WORD    the y in FCBS=x,y from CONFIG.SYS
  1278.  28h 18 BYTEs    actual NUL device driver header (not a pointer!)
  1279.         NUL is always the first device on DOS's linked list of device
  1280.           drivers. (see #0785)
  1281. ---DOS 3.1-3.3---
  1282.  10h    WORD    maximum bytes per sector of any block device
  1283.  12h    DWORD    pointer to first disk buffer in buffer chain (see #0788)
  1284.  16h    DWORD    pointer to array of current directory structures (see #0780)
  1285.  1Ah    DWORD    pointer to system FCB tables (see #0777,#0778,#0779)
  1286.  1Eh    WORD    number of protected FCBs (the y in the CONFIG.SYS FCBS=x,y)
  1287.  20h    BYTE    number of block devices installed
  1288.  21h    BYTE    number of available drive letters (largest of 5, installed
  1289.           block devices, and CONFIG.SYS LASTDRIVE=).  Also size of
  1290.           current directory structure array.
  1291.  22h 18 BYTEs    actual NUL device driver header (not a pointer!)
  1292.         NUL is always the first device on DOS's linked list of device
  1293.           drivers. (see #0785)
  1294.  34h    BYTE    number of JOIN'ed drives
  1295. ---DOS 4.x---
  1296.  10h    WORD    maximum bytes per sector of any block device
  1297.  12h    DWORD    pointer to disk buffer info record (see #0790,#0791)
  1298.         Note: although the initialization code in IO.SYS uses this
  1299.           pointer, MSDOS.SYS does not, instead using the hardcoded     
  1300.           address of the info record
  1301.  16h    DWORD    pointer to array of current directory structures
  1302.         (see #0780,#0781)
  1303.  1Ah    DWORD    pointer to system FCB tables (see #0777,#0778,#0779)
  1304.  1Eh    WORD    number of protected FCBs (the y in the CONFIG.SYS FCBS=x,y)
  1305.         (always 00h for DOS 5.0)
  1306.  20h    BYTE    number of block devices installed
  1307.  21h    BYTE    number of available drive letters (largest of 5, installed
  1308.           block devices, and CONFIG.SYS LASTDRIVE=).  Also size of
  1309.           current directory structure array.
  1310.  22h 18 BYTEs    actual NUL device driver header (not a pointer!)
  1311.         NUL is always the first device on DOS's linked list of device
  1312.           drivers. (see #0785)
  1313.  34h    BYTE    number of JOIN'ed drives
  1314.  35h    WORD    pointer within IBMDOS code segment to list of special program
  1315.           names (see #0800)
  1316.         (always 0000h for DOS 5.0)
  1317.  37h    DWORD    pointer to FAR routine for resident IFS utility functions
  1318.         (see #0797)
  1319.         may be called by any IFS driver which does not wish to
  1320.           service functions 20h or 24h-28h itself
  1321.  3Bh    DWORD    pointer to chain of IFS (installable file system) drivers
  1322.  3Fh    WORD    the x in BUFFERS x,y (rounded up to multiple of 30 if in EMS)
  1323.  41h    WORD    number of lookahead buffers (the y in BUFFERS x,y)
  1324.  43h    BYTE    boot drive (1=A:)
  1325.  44h    BYTE    flag: 01h to use DWORD moves (80386+), 00h otherwise
  1326.  45h    WORD    extended memory size in KB
  1327. ---DOS 5.0-6.0---
  1328.  10h 39 BYTEs    as for DOS 4.x (see above)
  1329.  37h    DWORD    pointer to SETVER program list or 0000h:0000h
  1330.  3Bh    WORD    (DOS=HIGH) offset in DOS CS of function to fix A20 control
  1331.           when executing special .COM format
  1332.  3Dh    WORD    PSP of most-recently EXECed program if DOS in HMA, 0000h if low
  1333.         used for maintaining count of INT 21 calls which disable A20
  1334.           on return
  1335.  3Fh  8 BYTEs    as for DOS 4.x (see above)
  1336. ---Windows NT DOS Box---
  1337.  10h  6 BYTEs    ???
  1338.  16h    DWORD    pointer to array of current directory structures (see #0782)
  1339.  1Ah  6 BYTEs    ???
  1340.  20h    BYTE    number of block devices installed
  1341.  21h    BYTE    number of local drive letters (= installed block devices)
  1342.         Also size of current directory structure array.
  1343.  22h 18 BYTEs    actual NUL device driver header (not a pointer!)
  1344.         NUL is always the first device on DOS's linked list of device
  1345.           drivers. (see #0785)
  1346.  
  1347. (Table 0766)
  1348. Values for special flag PSP segments:
  1349.  0000h    free
  1350.  0006h    DR-DOS XMS UMB
  1351.  0007h    DR-DOS excluded upper memory ("hole")
  1352.  0008h    belongs to DOS
  1353.  FFFAh    386MAX UMB control block (see #0628 at AX=4402h"386MAX")
  1354.  FFFDh    386MAX locked-out memory
  1355.  FFFEh    386MAX UMB (immediately follows its control block)
  1356.  FFFFh    386MAX 6.01 device driver
  1357.  
  1358. Format of DOS memory control block (see also below):
  1359. Offset    Size    Description    (Table 0767)
  1360.  00h    BYTE    block type: 5Ah if last block in chain, otherwise 4Dh
  1361.  01h    WORD    PSP segment of owner or special flag value (see #0766)
  1362.  03h    WORD    size of memory block in paragraphs
  1363.  05h  3 BYTEs    unused by MS-DOS
  1364.         (386MAX) if locked-out block, region start/prev region end
  1365. ---DOS 2.x,3.x---
  1366.  08h  8 BYTEs    unused
  1367. ---DOS 4+ ---
  1368.  08h  8 BYTEs    ASCII program name if PSP memory block or DR-DOS UMB,
  1369.           else garbage
  1370.         null-terminated if less than 8 characters
  1371. Notes:    the next MCB is at segment (current + size + 1)
  1372.     under DOS 3.1+, the first memory block is the DOS data segment,
  1373.       containing installable drivers, buffers, etc.     Under DOS 4+ it is
  1374.       divided into subsegments, each with its own memory control block
  1375.       (see #0770), the first of which is at offset 0000h.
  1376.     for DOS 5+, blocks owned by DOS may have either "SC" or "SD" in bytes
  1377.       08h and 09h.    "SC" is system code or locked-out inter-UMB memory,
  1378.       "SD" is system data, device drivers, etc.
  1379.     Some versions of DR-DOS use only seven characters of the program name,
  1380.       placing a NUL in the eighth byte.
  1381. SeeAlso: #0768,#0769,#0770
  1382.  
  1383. Format of MS-DOS 5+ UMB control block:
  1384. Offset    Size    Description    (Table 0768)
  1385.  00h    BYTE    type: 5Ah if last block in chain, 4Dh otherwise
  1386.  01h    WORD    first available paragraph in UMB if control block at start
  1387.           of UMB, 000Ah if control block at end of UMB
  1388.  03h    WORD    length in paragraphs of following UMB or locked-out region
  1389.  05h  3 BYTEs    unused
  1390.  08h  8 BYTEs    block type name: "UMB" if start block, "SM" if end block in UMB
  1391.  
  1392. Format of STARLITE (General Software's Embedded DOS) memory control block:
  1393. Offset    Size    Description    (Table 0769)
  1394.  00h    BYTE    block type: 5Ah if last block in chain, otherwise 4Dh
  1395.  01h    WORD    PSP segment of owner, 0000h if free, 0008h if belongs to DOS
  1396.  03h    WORD    size of memory block in paragraphs
  1397.  05h    BYTE    unused
  1398.  06h    WORD    segment address of next memory control block (0000h if last)
  1399.  08h    WORD    segment address of previous memory control block or 0000h
  1400.  0Ah  6 BYTEs    reserved
  1401.  
  1402. Format of DOS 4+ data segment subsegment control blocks:
  1403. Offset    Size    Description    (Table 0770)
  1404.  00h    BYTE    subsegment type (blocks typically appear in this order)
  1405.         "D"  device driver
  1406.         "E"  device driver appendage
  1407.         "I"  IFS (Installable File System) driver
  1408.         "F"  FILES=  control block storage area (for FILES>5)
  1409.         "X"  FCBS=   control block storage area, if present
  1410.         "C"  BUFFERS EMS workspace area (if BUFFERS /X option used)
  1411.         "B"  BUFFERS=  storage area
  1412.         "L"  LASTDRIVE=     current directory structure array storage area
  1413.         "S"  STACKS=  code and data area, if present (see #0771,#0772)
  1414.         "T"  INSTALL= transient code
  1415.  01h    WORD    paragraph of subsegment start (usually the next paragraph)
  1416.  03h    WORD    size of subsegment in paragraphs
  1417.  05h  3 BYTEs    unused
  1418.  08h  8 BYTEs    for types "D" and "I", base name of file from which the driver
  1419.           was loaded (unused for other types)
  1420.  
  1421. Format of data at start of STACKS code segment (if present):
  1422. Offset    Size    Description    (Table 0771)
  1423.  00h    WORD    ???
  1424.  02h    WORD    number of stacks (the x in STACKS=x,y)
  1425.  04h    WORD    size of stack control block array (should be 8*x)
  1426.  06h    WORD    size of each stack (the y in STACKS=x,y)
  1427.  08h    DWORD    pointer to STACKS data segment
  1428.  0Ch    WORD    offset in STACKS data segment of stack control block array
  1429.  0Eh    WORD    offset in STACKS data segment of last element of that array
  1430.  10h    WORD    offset in STACKS data segment of the entry in that array for
  1431.           the next stack to be allocated (initially same as value in
  1432.           0Eh and works its way down in steps of 8 to the value in
  1433.           0Ch as hardware interrupts pre-empt each other)
  1434. Note:    the STACKS code segment data may, if present, be located as follows:
  1435.     DOS 3.2:    The code segment data is at a paragraph boundary fairly early
  1436.           in the IBMBIO segment (seen at 0070:0190h)
  1437.     DOS 3.3:    The code segment is at a paragraph boundary in the DOS data
  1438.           segment, which may be determined by inspecting the segment
  1439.           pointers of the vectors for those of interrupts 02h, 08h-0Eh,
  1440.           70h, 72-77h which have not been redirected by device drivers
  1441.           or TSRs.
  1442.     DOS 4+    Identified by sub-segment control block type "S" within the DOS
  1443.           data segment.
  1444. SeeAlso: INT B4"STACKMAN"
  1445.  
  1446. Format of array elements in STACKS data segment:
  1447. Offset    Size    Description    (Table 0772)
  1448.  00h    BYTE    status: 00h=free, 01h=in use, 03h=corrupted by overflow of
  1449.           higher stack.
  1450.  01h    BYTE    not used
  1451.  02h    WORD    previous SP
  1452.  04h    WORD    previous SS
  1453.  06h    WORD    ptr to word at top of stack (new value for SP). The word at the
  1454.           top of the stack is preset to point back to this control
  1455.           block.
  1456.  
  1457. Format of SHARE.EXE hooks (DOS 3.1-6.00):
  1458. Offset    Size    Description    (Table 0773)
  1459. (offsets from first system file table--pointed at by ListOfLists+04h)
  1460. -3Ch    DWORD    pointer to FAR routine for ???
  1461.         Note: not called by MS-DOS 3.3, set to 0000h:0000h by
  1462.             SHARE 3.3+
  1463. -38h    DWORD    pointer to FAR routine called on opening file
  1464.         on call, internal DOS location points at filename
  1465.           (see #0818 at AX=5D06h)
  1466.         Return: CF clear if successful
  1467.             CF set on error
  1468.                 AX = DOS error code (24h) (see #0811 at AH=59h)
  1469.         Note: SHARE directly accesses DOS-internal data to get name of
  1470.             file just opened
  1471. -34h    DWORD    pointer to FAR routine called on closing file
  1472.         ES:DI -> system file table
  1473.         Note: does something to every Record Lock Record for file
  1474. -30h    DWORD    pointer to FAR routine to close all files for given computer
  1475.         (called by AX=5D03h)
  1476. -2Ch    DWORD    pointer to FAR routine to close all files for given process
  1477.         (called by AX=5D04h)
  1478. -28h    DWORD    pointer to FAR routine to close file by name
  1479.         (called by AX=5D02h)
  1480.         DS:SI -> DOS parameter list (see #0817 at AX=5D00h)
  1481.            DPL's DS:DX -> name of file to close
  1482.         Return: CF clear if successful
  1483.             CF set on error
  1484.                 AX = DOS error code (03h) (see #0811 at AH=59h)
  1485. -24h    DWORD    pointer to FAR routine to lock region of file
  1486.         call with BX = file handle
  1487.               ---DOS 3.x---
  1488.               CX:DX = starting offset
  1489.               SI:AX = size
  1490.               ---DOS 4+---
  1491.               DS:DX -> lock range
  1492.                     DWORD start offset
  1493.                     DWORD size in bytes
  1494.         Return: CF set on error
  1495.                 AL = DOS error code (21h) (see #0811 at AH=59h)
  1496.         Note: not called if file is marked as remote
  1497. -20h    DWORD    pointer to FAR routine to unlock region of file
  1498.         call with BX = file handle
  1499.               ---DOS 3.x---
  1500.               CX:DX = starting offset
  1501.               SI:AX = size
  1502.               ---DOS 4+---
  1503.               DS:DX -> lock range
  1504.                     DWORD start offset
  1505.                     DWORD size in bytes
  1506.         Return: CF set on error
  1507.                 AL = DOS error code (21h) (see #0811 at AH=59h)
  1508.         Note: not called if file is marked as remote
  1509. -1Ch    DWORD    pointer to FAR routine to check if file region is locked
  1510.         call with ES:DI -> system file table entry for file
  1511.             CX = length of region from current position in file
  1512.         Return: CF set if any portion of region locked
  1513.                 AX = 0021h
  1514. -18h    DWORD    pointer to FAR routine to get open file list entry
  1515.         (called by AX=5D05h)
  1516.         call with DS:SI -> DOS parameter list (see #0817 at AX=5D00h)
  1517.             DPL's BX = index of sharing record
  1518.             DPL's CX = index of SFT in SFT chain of sharing rec
  1519.         Return: CF set on error or not loaded
  1520.                 AX = DOS error code (12h) (see #0811 at AH=59h)
  1521.             CF clear if successful
  1522.                 ES:DI -> filename
  1523.                 CX = number of locks owned by specified SFT
  1524.                 BX = network machine number
  1525.                 DX destroyed
  1526. -14h    DWORD    pointer to FAR routine for updating FCB from SFT???
  1527.         call with DS:SI -> unopened FCB
  1528.               ES:DI -> system file table entry
  1529.         Return: BL = C0h???
  1530.         Note: copies following fields from SFT to FCB:
  1531.            starting cluster of file      0Bh     1Ah
  1532.            sharing record offset      33h     1Ch
  1533.            file attribute          04h     1Eh
  1534. -10h    DWORD    pointer to FAR routine to get first cluster of FCB file ???
  1535.         call with ES:DI -> system file table entry
  1536.               DS:SI -> FCB
  1537.         Return: CF set if SFT closed or sharing record offsets
  1538.                 mismatched
  1539.             CF clear if successful
  1540.                 BX = starting cluster number from FCB
  1541. -0Ch    DWORD    pointer to FAR routine to close file if duplicate for process
  1542.         DS:SI -> system file table
  1543.         Return: AX = number of handle in JFT which already uses SFT
  1544.         Note: called during open/create of a file
  1545.         Note: if SFT was opened with inheritance enabled and sharing
  1546.             mode 111, does something to all other SFTs owned by
  1547.             same process which have the same file open mode and
  1548.             sharing record
  1549. -08h    DWORD    pointer to FAR routine for closing file
  1550.         Note: closes various handles referring to file most-recently
  1551.             opened
  1552. -04h    DWORD    pointer to FAR routine to update directory info in related SFT
  1553.           entries
  1554.         call with ES:DI -> system file table entry for file (see #0778)
  1555.               AX = subfunction (apply to each related SFT)
  1556.                 00h: update time stamp (offset 0Dh) and date
  1557.                      stamp (offset 0Fh)
  1558.                 01h: update file size (offset 11h) and starting
  1559.                      cluster (offset 0Bh).  Sets last-accessed
  1560.                      cluster fields to start of file if file
  1561.                      never accessed
  1562.                 02h: as function 01h, but last-accessed fields
  1563.                      always changed
  1564.                 03h: do both functions 00h and 02h
  1565.         Note: follows ptr at offset 2Bh in system file table entries
  1566.         Note: NOP if opened with no-inherit or via FCB
  1567. Notes:    most of the above hooks (except -04h, -14h, -18h, and -3Ch) assume
  1568.       either that SS=DOS DS or SS=DS=DOS DS and directly access
  1569.       DOS-internal data
  1570.     sharing hooks are not supported by DR-DOS 5-6; they appear to be
  1571.       supported by Novell DOS 7, with a segment of 0000h indicating the
  1572.       DOS data segment
  1573. SeeAlso: #0774,#0775
  1574.  
  1575. Format of sharing record:
  1576. Offset    Size    Description    (Table 0774)
  1577.  00h    BYTE    flag
  1578.         00h free block
  1579.         01h allocated block
  1580.         FFh end marker
  1581.  01h    WORD    size of block
  1582.  03h    BYTE    checksum of pathname (including NUL)
  1583.         if sum of ASCII values is N, checksum is (N/256 + N%256)
  1584.  04h    WORD    offset in SHARE's DS of first Record Lock Record (see #0775)
  1585.  06h    DWORD    pointer to start of system file table chain for file
  1586.  0Ah    WORD    unique sequence number
  1587.  0Ch    var    ASCIZ full pathname
  1588. Note:    not supported by DR-DOS SHARE 1.1 and 2.0; will reportedly be
  1589.       supported by Novell DOS 7
  1590. SeeAlso: #0773,#0775
  1591.  
  1592. Format of SHARE.EXE Record Lock Record:
  1593. Offset    Size    Description    (Table 0775)
  1594.  00h    WORD    offset in SHARE's DS of next lock table in list or 0000h
  1595.  02h    DWORD    offset in file of start of locked region
  1596.  06h    DWORD    offset in file of end of locked region
  1597.  0Ah    DWORD    pointer to System File Table entry for this file
  1598.  0Eh    WORD    PSP segment of lock's owner
  1599. ---DOS 5+ ---
  1600.  10h    WORD    lock type: (00h lock all, 01h lock writes only)
  1601. SeeAlso: #0773,#0774,#0776,#0779
  1602.  
  1603. Format of DOS 2.x system file tables:
  1604. Offset    Size    Description    (Table 0776)
  1605.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  1606.  04h    WORD    number of files in this table
  1607.  06h  28h bytes per file
  1608.     Offset    Size    Description
  1609.      00h    BYTE    number of file handles referring to this file
  1610.      01h    BYTE    file open mode (see #0558 at AH=3Dh)
  1611.      02h    BYTE    file attribute
  1612.      03h    BYTE    drive (0 = character device, 1 = A, 2 = B, etc)
  1613.      04h 11 BYTEs    filename in FCB format (no path,no period,blank-padded)
  1614.      0Fh    WORD    ???
  1615.      11h    WORD    ???
  1616.      13h    DWORD    file size???
  1617.      17h    WORD    file date in packed format (see #0803 at AX=5700h)
  1618.      19h    WORD    file time in packed format (see #0802 at AX=5700h)
  1619.      1Bh    BYTE    device attribute (see #0577 at AX=4400h)
  1620.     ---character device---
  1621.      1Ch    DWORD    pointer to device driver
  1622.     ---block device---
  1623.      1Ch    WORD    starting cluster of file
  1624.      1Eh    WORD    relative cluster in file of last cluster accessed
  1625.     ------
  1626.      20h    WORD    absolute cluster number of current cluster
  1627.      22h    WORD    ???
  1628.      24h    DWORD    current file position???
  1629. SeeAlso: #0777,#0778,#0779
  1630.  
  1631. Format of DOS 3.0 system file tables and FCB tables:
  1632. Offset    Size    Description    (Table 0777)
  1633.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  1634.  04h    WORD    number of files in this table
  1635.  06h  38h bytes per file
  1636.     Offset    Size    Description
  1637.      00h-1Eh as for DOS 3.1+ (see #0778)
  1638.      1Fh    WORD    byte offset of directory entry within sector
  1639.      21h 11 BYTEs    filename in FCB format (no path/period, blank-padded)
  1640.      2Ch    DWORD    (SHARE.EXE) pointer to previous SFT sharing same file
  1641.      30h    WORD    (SHARE.EXE) network machine number which opened file
  1642.             (Windows Enhanced mode DOSMGR uses the virtual machine
  1643.               ID as the machine number; see INT 2F/AX=1683h)
  1644.      32h    WORD    PSP segment of file's owner (first three entries for
  1645.               AUX/CON/PRN contain segment of IO.SYS startup code)
  1646.      34h    WORD    (SHARE.EXE) offset in SHARE code seg of share record
  1647.      36h    WORD    ??? apparently always 0000h
  1648. SeeAlso: #0776,#0778,#0779
  1649.  
  1650. Format of DOS 3.1-3.3x, DR-DOS 5.0-6.0 system file tables and FCB tables:
  1651. Offset    Size    Description    (Table 0778)
  1652.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  1653.  04h    WORD    number of files in this table
  1654.  06h  35h bytes per file
  1655.     Offset    Size    Description
  1656.      00h    WORD    number of file handles referring to this file
  1657.      02h    WORD    file open mode (see #0558 at AH=3Dh)
  1658.             bit 15 set if this file opened via FCB
  1659.      04h    BYTE    file attribute (see #0574 at AX=4301h)
  1660.      05h    WORD    device info word (see #0577 at AX=4400h)
  1661.             bit 15 set if remote file
  1662.             bit 14 set means do not set file date/time on closing
  1663.             bit 12 set means don't inherit on EXEC
  1664.             bits 5-0 drive number for disk files
  1665.      07h    DWORD    pointer to device driver header if character device
  1666.             else pointer to DOS Drive Parameter Block
  1667.               (see #0551 at AH=32h)
  1668.      0Bh    WORD    starting cluster of file
  1669.      0Dh    WORD    file time in packed format (see #0802 at AX=5700h)
  1670.             not used for character devices in DR-DOS
  1671.      0Fh    WORD    file date in packed format (see #0803 at AX=5700h)
  1672.             not used for character devices in DR-DOS
  1673.      11h    DWORD    file size
  1674.     ---system file table---
  1675.      15h    DWORD    current offset in file (may be larger than size of
  1676.               file; INT 21/AH=42h does not check new position)
  1677.     ---FCB table---
  1678.      15h    WORD    counter for last I/O to FCB
  1679.      17h    WORD    counter for last open of FCB
  1680.             (these are separate to determine the times of the
  1681.               latest I/O and open)
  1682.     ---
  1683.      19h    WORD    relative cluster within file of last cluster accessed
  1684.      1Bh    WORD    absolute cluster number of last cluster accessed
  1685.             0000h if file never read or written???
  1686.      1Dh    WORD    number of sector containing directory entry
  1687.      1Fh    BYTE    number of dir entry within sector (byte offset/32)
  1688.      20h 11 BYTEs    filename in FCB format (no path/period, blank-padded)
  1689.      2Bh    DWORD    (SHARE.EXE) pointer to previous SFT sharing same file
  1690.      2Fh    WORD    (SHARE.EXE) network machine number which opened file
  1691.             (Windows Enhanced mode DOSMGR uses the virtual machine
  1692.               ID as the machine number; see INT 2F/AX=1683h)
  1693.      31h    WORD    PSP segment of file's owner (see #0535 at AH=26h)
  1694.               (first three entries for AUX/CON/PRN contain segment
  1695.               of IO.SYS startup code)
  1696.      33h    WORD    offset within SHARE.EXE code segment of
  1697.               sharing record (see #0774)  0000h = none
  1698. SeeAlso: #0776,#0777,#0779
  1699.  
  1700. Format of DOS 4.0-6.0 system file tables and FCB tables:
  1701. Offset    Size    Description    (Table 0779)
  1702.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  1703.  04h    WORD    number of files in this table
  1704.  06h  3Bh bytes per file
  1705.     Offset    Size    Description
  1706.      00h    WORD    number of file handles referring to this file
  1707.             FFFFh if in use but not referenced
  1708.      02h    WORD    file open mode (see #0558 at AH=3Dh)
  1709.             bit 15 set if this file opened via FCB
  1710.      04h    BYTE    file attribute (see #0574 at AX=4301h)
  1711.      05h    WORD    device info word (see also #0577 at AX=4400h)
  1712.             bit 15 set if remote file
  1713.             bit 14 set means do not set file date/time on closing
  1714.             bit 13 set if named pipe
  1715.             bit 12 set if no inherit
  1716.             bit 11 set if network spooler
  1717.             bit 7  set if device, clear if file (only if local)
  1718.             bits 6-0 as for AX=4400h
  1719.      07h    DWORD    pointer to device driver header if character device
  1720.             else pointer to DOS Drive Parameter Block
  1721.               (see #0551 at AH=32h) or REDIR data
  1722.      0Bh    WORD    starting cluster of file (local files only)
  1723.      0Dh    WORD    file time in packed format (see #0802)
  1724.      0Fh    WORD    file date in packed format (see #0803)
  1725.      11h    DWORD    file size
  1726.      15h    DWORD    current offset in file (SFT)
  1727.             LRU counters (FCB table, two WORDs)
  1728.     ---local file---
  1729.      19h    WORD    relative cluster within file of last cluster accessed
  1730.      1Bh    DWORD    number of sector containing directory entry
  1731.      1Fh    BYTE    number of dir entry within sector (byte offset/32)
  1732.     ---network redirector---
  1733.      19h    DWORD    pointer to REDIRIFS record
  1734.      1Dh  3 BYTEs    ???
  1735.     ------
  1736.      20h 11 BYTEs    filename in FCB format (no path/period, blank-padded)
  1737.      2Bh    DWORD    (SHARE.EXE) pointer to previous SFT sharing same file
  1738.      2Fh    WORD    (SHARE.EXE) network machine number which opened file
  1739.             (Windows Enhanced mode DOSMGR uses the virtual machine
  1740.               ID as the machine number; see INT 2F/AX=1683h)
  1741.      31h    WORD    PSP segment of file's owner (see #0535 at AH=26h)
  1742.               (first three entries for AUX/CON/PRN contain segment
  1743.               of IO.SYS startup code)
  1744.      33h    WORD    offset within SHARE.EXE code segment of
  1745.             sharing record (see #0733)  0000h = none
  1746.      35h    WORD    (local) absolute cluster number of last clustr accessed
  1747.             (redirector) ???
  1748.      37h    DWORD    pointer to IFS driver for file, 0000000h if native DOS
  1749. Note:    the OS/2 2.0 DOS Boot Session does not properly fill in the filename
  1750.       field due to incomplete support for SFTs; the OS/2 2.0 DOS Window
  1751.       does not appear to support SFTs at all
  1752. SeeAlso: #0776,#0777,#0778
  1753.  
  1754. Format of current directory structure (CDS) (array, LASTDRIVE entries):
  1755. Offset    Size    Description    (Table 0780)
  1756.  00h 67 BYTEs    ASCIZ path in form X:\PATH (local) or UNC form
  1757.           \\MACH\PATH (network, see notes below)
  1758.  43h    WORD    drive attributes (see also note below and AX=5F07h)
  1759.         bit 15: uses network redirector     \ invalid if 00, installable
  1760.         bit 14: physical drive         / file system if 11
  1761.         bit 13: JOIN'ed      \ path above is true path that would be
  1762.         bit 12: SUBST'ed  / needed if not under SUBST or JOIN
  1763.         bit  7: remote drive hidden from redirector's assign-list and
  1764.               exempt from network connection make/break commands;
  1765.               set for CD-ROM drives
  1766.  45h    DWORD    pointer to Drive Parameter Block for drive
  1767.           (see #0551 at AH=32h)
  1768. ---local drives---
  1769.  49h    WORD    starting cluster of current directory
  1770.         0000h = root, FFFFh = never accessed
  1771.  4Bh    WORD    ??? seems to be FFFFh always
  1772.  4Dh    WORD    ??? seems to be FFFFh always
  1773. ---network drives---
  1774.  49h    DWORD    pointer to redirector or REDIRIFS record, or FFFFh:FFFFh
  1775.         (DOS 4 only) available for use by IFS driver
  1776.  4Dh    WORD    stored user data from INT 21/AX=5F03h
  1777. ------
  1778.  4Fh    WORD    offset in current directory path of backslash corresponding to
  1779.           root directory for drive
  1780.         this value specifies how many characters to hide from the
  1781.           "CHDIR" and "GETDIR" calls; normally set to 2 to hide the
  1782.           drive letter and colon, SUBST, JOIN, and networks change it
  1783.           so that only the appropriate portion of the true path is
  1784.           visible to the user
  1785. ---DOS 4+ ---
  1786.  51h    BYTE    (DOS 4 only, remote drives) device type
  1787.         04h network drive
  1788.  52h    DWORD    pointer to IFS driver (DOS 4) or redirector block (DOS 5+) for
  1789.           this drive, 00000000h if native DOS
  1790.  56h    WORD    available for use by IFS driver
  1791. Notes:    the path for invalid drives is normally set to X:\, but may be empty
  1792.       after JOIN x: /D in DR-DOS 5.0 or NET USE x: /D in older LAN versions
  1793.     normally, only one of bits 13&12 may be set together with bit 14, but
  1794.       DR-DOS 5.0 uses other combinations for bits 15-12: 0111 JOIN,
  1795.       0001 SUBST, 0101 ASSIGN (see #0781)
  1796.     Windows for Workgroups 3.11 network sets the path to the local
  1797.       drive and directory even for network drives; in that case the
  1798.       UNC form \\SERVER\SHARE can be obtained with INT 21/AX=5F02h
  1799.       or INT 21/AX=5F46h
  1800. SeeAlso: #0781
  1801.  
  1802. Format of DR-DOS 5.0-6.0 current directory structure entry (array):
  1803. Offset    Size    Description    (Table 0781)
  1804.  00h 67 BYTEs    ASCIZ pathname of actual root directory for this logical drive
  1805.  43h    WORD    drive attributes
  1806.         1000h SUBSTed drive
  1807.         3000h??? JOINed drive
  1808.         4000h physical drive
  1809.         5000h ASSIGNed drive
  1810.         7000h JOINed drive
  1811.         8000h network drive
  1812.  45h    BYTE    physical drive number (0=A:) if this logical drive is valid
  1813.  46h    BYTE    ??? apparently flags for JOIN and ASSIGN
  1814.  47h    WORD    cluster number of start of parent directory (0000h = root)
  1815.  49h    WORD    entry number of current directory in parent directory
  1816.  4Bh    WORD    cluster number of start of current directory
  1817.  4Dh    WORD    used for media change detection (details not available)
  1818.  4Fh    WORD    cluster number of SUBST/JOIN "root" directory
  1819.         0000h if physical root directory
  1820. SeeAlso: #0780
  1821.  
  1822. Format of Windows NT Current Directory Structure (CDS) (array):
  1823. Offset    Size    Description    (Table 0782)
  1824.  00h 67 BYTEs    ASCIZ path in form X:\ (does not show either current directory
  1825.           or network path)
  1826.  43h  4 BYTEs    ???
  1827. Note:    the WinNT CDS contains only as many entries as there are local drives,
  1828.       not LASTDRIVE entries.
  1829.  
  1830. Bitfields for device attributes (character device):
  1831. Bit(s)    Description    (Table 0783)
  1832.  15    set (indicates character device)
  1833.  14    IOCTL supported (see AH=44h)
  1834.  13    (DOS 3+) output until busy supported
  1835.  12    reserved
  1836.  11    (DOS 3+) OPEN/CLOSE/RemMedia calls supported
  1837.  10-8    reserved
  1838.  7    (DOS 5+) Generic IOCTL check call supported (driver command 19h)
  1839.     (see AX=4410h,AX=4411h)
  1840.  6    (DOS 3.2+) Generic IOCTL call supported (driver command 13h)
  1841.     (see AX=440Ch,AX=440Dh)
  1842.  5    reserved
  1843.  4    device is special (use INT 29 "fast console output")
  1844.  3    device is CLOCK$ (all reads/writes use transfer record described
  1845.       below)
  1846.  2    device is NUL
  1847.  1    device is standard output
  1848.  0    device is standard input
  1849. Note:    for European MS-DOS 4.0, bit 11 also indicates that bits 8-6 contain a
  1850.       version code (000 = DOS 3.0,3.1; 001 = DOS 3.2;
  1851.       010 = European DOS 4.0)
  1852. SeeAlso: #0784,#0785
  1853.  
  1854. Bitfields for device attributes (block device):
  1855. Bit(s)    Description    (Table 0784)
  1856.  15    clear (indicates block device)
  1857.  14    IOCTL supported
  1858.  13    non-IBM format
  1859.  12    network device (device is remote)
  1860.  11    (DOS 3+) OPEN/CLOSE/RemMedia calls supported
  1861.  10    reserved
  1862.  9    direct I/O not allowed??? (set by DOS 3.3 DRIVER.SYS for "new" drives)
  1863.  8    ??? set by DOS 3.3 DRIVER.SYS for "new" drives
  1864.  7    (DOS 5+) Generic IOCTL check call supported (driver command 19h)
  1865.     (see AX=4410h,AX=4411h)
  1866.  6    (DOS 3.2+) Generic IOCTL call supported (driver command 13h)
  1867.     implies support for commands 17h and 18h
  1868.       (see AX=440Ch,AX=440Dh,AX=440Eh,AX=440Fh)
  1869.  5-2    reserved
  1870.  1    driver supports 32-bit sector addressing (DOS 3.31+)
  1871.  0     reserved
  1872. Note:    for European MS-DOS 4.0, bit 11 also indicates that bits 8-6 contain a
  1873.       version code (000 = DOS 3.0,3.1; 001 = DOS 3.2;
  1874.       010 = European DOS 4.0)
  1875. SeeAlso: #0783,#0785
  1876.  
  1877. Format of DOS device driver header:
  1878. Offset    Size    Description    (Table 0785)
  1879.  00h    DWORD    pointer to next driver, offset=FFFFh if last driver
  1880.  04h    WORD    device attributes (see #0783,#0784)
  1881.  06h    WORD    device strategy entry point
  1882.         call with ES:BX -> request header (see INT 2F/AX=0802h)
  1883.  08h    WORD    device interrupt entry point
  1884. ---character device---
  1885.  0Ah  8 BYTEs    blank-padded character device name
  1886. ---block device---
  1887.  0Ah    BYTE    number of subunits (drives) supported by driver
  1888.  0Bh  7 BYTEs    unused
  1889. ---
  1890.  12h    WORD    (CD-ROM driver) reserved, must be 0000h
  1891.         appears to be another device chain
  1892.  14h    BYTE    (CD-ROM driver) drive letter (must initially be 00h)
  1893.  15h    BYTE    (CD-ROM driver) number of units
  1894.  16h  6 BYTEs    (CD-ROM driver) signature 'MSCDnn' where 'nn' is version
  1895.             (currently '00')
  1896.  
  1897. Format of CLOCK$ transfer record:
  1898. Offset    Size    Description    (Table 0786)
  1899.  00h    WORD    number of days since 1-Jan-1980
  1900.  02h    BYTE    minutes
  1901.  03h    BYTE    hours
  1902.  04h    BYTE    hundredths of second
  1903.  05h    BYTE    seconds
  1904.  
  1905. Format of DOS 2.x disk buffer:
  1906. Offset    Size    Description    (Table 0787)
  1907.  00h    DWORD    pointer to next disk buffer, offset = FFFFh if last
  1908.         least-recently used buffer is first in chain
  1909.  04h    BYTE    drive (0=A, 1=B, etc), FFh if not in use
  1910.  05h  3 BYTEs    unused??? (seems always to be 00h 00h 01h)
  1911.  08h    WORD    logical sector number
  1912.  0Ah    BYTE    number of copies to write (1 for non-FAT sectors)
  1913.  0Bh    BYTE    sector offset between copies if multiple copies to be written
  1914.  0Ch    DWORD    pointer to DOS Drive Parameter Block (see #0551 at AH=32h)
  1915.  10h        buffered data
  1916. SeeAlso: #0788,#0790,#0791,#0793
  1917.  
  1918. Format of DOS 3.x disk buffer:
  1919. Offset    Size    Description    (Table 0788)
  1920.  00h    DWORD    pointer to next disk buffer, offset = FFFFh if last
  1921.         least-recently used buffer is first in chain
  1922.  04h    BYTE    drive (0=A,1=B, etc), FFh if not in use
  1923.  05h    BYTE    buffer flags (see #0789)
  1924.  06h    WORD    logical sector number
  1925.  08h    BYTE    number of copies to write (1 for non-FAT sectors)
  1926.  09h    BYTE    sector offset between copies if multiple copies to be written
  1927.  0Ah    DWORD    pointer to DOS Drive Parameter Block (see #0551 at AH=32h)
  1928.  0Eh    WORD    unused??? (almost always 0)
  1929.  10h        buffered data
  1930. SeeAlso: #0787,#0790,#0791,#0793
  1931.  
  1932. Bitfields for DOS 3.x disk buffer flags:
  1933. Bit(s)    Description    (Table 0789)
  1934.  7    ???
  1935.  6    buffer dirty
  1936.  5    buffer has been referenced
  1937.  4    ???
  1938.  3    sector in data area
  1939.  2    sector in a directory, either root or subdirectory
  1940.  1    sector in FAT
  1941.  0    boot sector??? (guess)
  1942. SeeAlso: #0794
  1943.  
  1944. Format of DOS 4.00 (pre UR 25066) disk buffer info:
  1945. Offset    Size    Description    (Table 0790)
  1946.  00h    DWORD    pointer to array of disk buffer hash chain heads (see #0792)
  1947.  04h    WORD    number of disk buffer hash chains (referred to as NDBCH below)
  1948.  06h    DWORD    pointer to lookahead buffer, zero if not present
  1949.  0Ah    WORD    number of lookahead sectors, else zero (the y in BUFFERS=x,y)
  1950.  0Ch    BYTE    00h if buffers in EMS (/X), FFh if not
  1951.  0Dh    WORD    EMS handle for buffers, zero if not in EMS
  1952.  0Fh    WORD    EMS physical page number used for buffers (usually 255)
  1953.  11h    WORD    ??? seems always to be 0001h
  1954.  13h    WORD    segment of EMS physical page frame
  1955.  15h    WORD    ??? seems always to be zero
  1956.  17h  4 WORDs    EMS partial page mapping information???
  1957. SeeAlso: #0787,#0788,#0791,#0795
  1958.  
  1959. Format of DOS 4.01 (from UR 25066 Corrctive Services Disk on) disk buffer info:
  1960. Offset    Size    Description    (Table 0791)
  1961.  00h    DWORD    pointer to array of disk buffer hash chain heads (see #0792)
  1962.  04h    WORD    number of disk buffer hash chains (referred to as NDBCH below)
  1963.  06h    DWORD    pointer to lookahead buffer, zero if not present
  1964.  0Ah    WORD    number of lookahead sectors, else zero (the y in BUFFERS=x,y)
  1965.  0Ch    BYTE    01h, possibly to distinguish from pre-UR 25066 format
  1966.  0Dh    WORD    ??? EMS segment for BUFFERS (only with /XD)
  1967.  0Fh    WORD    ??? EMS physical page number of EMS seg above (only with /XD)
  1968.  11h    WORD    ??? EMS segment for ??? (only with /XD)
  1969.  13h    WORD    ??? EMS physical page number of above (only with /XD)
  1970.  15h    BYTE    ??? number of EMS page frames present (only with /XD)
  1971.  16h    WORD    segment of one-sector workspace buffer allocated in main memory
  1972.           if BUFFERS/XS or /XD options in effect, possibly to avoid DMA
  1973.           into EMS
  1974.  18h    WORD    EMS handle for buffers, zero if not in EMS
  1975.  1Ah    WORD    EMS physical page number used for buffers (usually 255)
  1976.  1Ch    WORD    ??? appears always to be 0001h
  1977.  1Eh    WORD    segment of EMS physical page frame
  1978.  20h    WORD    ??? appears always to be zero
  1979.  22h    BYTE    00h if /XS, 01h if /XD, FFh if BUFFERS not in EMS
  1980. SeeAlso: #0787,#0788,#0790,#0795
  1981.  
  1982. Format of DOS 4.x disk buffer hash chain head (array, one entry per chain):
  1983. Offset    Size    Description    (Table 0792)
  1984.  00h    WORD    EMS logical page number in which chain is resident, -1 if not
  1985.           in EMS
  1986.  02h    DWORD    pointer to least recently used buffer header.  All buffers on
  1987.           this chain are in the same segment.
  1988.  06h    BYTE    number of dirty buffers on this chain
  1989.  07h    BYTE    reserved (00h)
  1990. Notes:    buffered disk sectors are assigned to chain N where N is the sector's
  1991.       address modulo NDBCH,     0 <= N <= NDBCH-1
  1992.     each chain resides completely within one EMS page
  1993.     this structure is in main memory even if buffers are in EMS
  1994.  
  1995. Format of DOS 4.0-6.0 disk buffer:
  1996. Offset    Size    Description    (Table 0793)
  1997.  00h    WORD    forward ptr, offset only, to next least recently used buffer
  1998.  02h    WORD    backward pointer, offset only
  1999.  04h    BYTE    drive (0=A,1=B, etc) if bit 7 clear
  2000.         SFT index if bit 7 set
  2001.         FFh if not in use
  2002.  05h    BYTE    buffer flags (see #0794)
  2003.  06h    DWORD    logical sector number (local buffers only)
  2004.  0Ah    BYTE    number of copies to write
  2005.         for FAT sectors, same as number of FATs
  2006.         for data and directory sectors, usually 1
  2007.  0Bh    WORD    offset in sectors between copies to write for FAT sectors
  2008.  0Dh    DWORD    pointer to DOS Drive Parameter Block (see #0551 at AH=32h)
  2009.  11h    WORD    size of data in buffer if remote buffer (see flags above)
  2010.  13h    BYTE    reserved (padding)
  2011.  14h        buffered data
  2012. Note:    for DOS 4.x, all buffered sectors which have the same hash value
  2013.       (computed as the sum of high and low words of the logical sector
  2014.       number divided by the number of disk buffer chains) are on the same
  2015.       doubly-linked circular chain; for DOS 5+, only a single circular
  2016.       chain exists.
  2017.     the links consist of offset addresses only, the segment being the same
  2018.       for all buffers in the chain.
  2019. SeeAlso: #0787,#0788,#0790
  2020.  
  2021. Bitfields for DOS 4.0-6.0 disk buffer flags:
  2022. Bit(s)    Description    (Table 0794)
  2023.  7    remote buffer
  2024.  6    buffer dirty
  2025.  5    buffer has been referenced (reserved in DOS 5+)
  2026.  4    search data buffer (only valid if remote buffer)
  2027.  3    sector in data area
  2028.  2    sector in a directory, either root or subdirectory
  2029.  1    sector in FAT
  2030.  0    reserved
  2031. SeeAlso: #0789
  2032.  
  2033. Format of DOS 5.0-6.0 disk buffer info:
  2034. Offset    Size    Description    (Table 0795)
  2035.  00h    DWORD    pointer to least-recently-used buffer header (may be in HMA)
  2036.         (see #0793)
  2037.  04h    WORD    number of dirty disk buffers
  2038.  06h    DWORD    pointer to lookahead buffer, zero if not present
  2039.  0Ah    WORD    number of lookahead sectors, else zero (the y in BUFFERS=x,y)
  2040.  0Ch    BYTE    buffer location
  2041.         00h base memory, no workspace buffer
  2042.         01h HMA, workspace buffer in base memory
  2043.  0Dh    DWORD    pointer to one-segment workspace buffer in base memory
  2044.  11h  3 BYTEs    unused
  2045.  14h    WORD    ???
  2046.  16h    BYTE    flag: INT 24 fail while making an I/O status call
  2047.  17h    BYTE    temp storage for user memory allocation strategy during EXEC
  2048.  18h    BYTE    counter: number of INT 21 calls for which A20 is off
  2049.  19h    BYTE    bit flags
  2050.         bit 0: ???
  2051.         bit 1: SWITCHES=/W specified in CONFIG.SYS (don't load
  2052.             WINA20.SYS when MS Windows 3.0 starts)
  2053.         bit 2: in EXEC state (INT 21/AX=4B05h)
  2054.  1Ah    WORD    offset of unpack code start (used only during INT 21/AX=4B05h)
  2055.  1Ch    BYTE    bit 0 set iff UMB MCB chain linked to normal MCB chain
  2056.  1Dh    WORD    minimum paragraphs of memory required by program being EXECed
  2057.  1Fh    WORD    segment of first MCB in upper memory blocks or FFFFh if DOS
  2058.           memory chain in base 640K only (first UMB MCB usually at
  2059.           9FFFh, locking out video memory with a DOS-owned memory
  2060.           block)
  2061.  21h    WORD    paragraph from which to start scanning during memory allocation
  2062. SeeAlso: #0790,#0791
  2063.  
  2064. Format of IFS driver list:
  2065. Offset    Size    Description    (Table 0796)
  2066.  00h    DWORD    pointer to next driver header
  2067.  04h  8 BYTEs    IFS driver name (blank padded), as used by FILESYS command
  2068.  0Ch  4 BYTEs    ???
  2069.  10h    DWORD    pointer to IFS utility function entry point (see #0797)
  2070.         call with ES:BX -> IFS request (see #0798)
  2071.  14h    WORD    offset in header's segment of driver entry point
  2072.     ???
  2073. SeeAlso: #0797,#0798
  2074.  
  2075. (Table 0797)
  2076. Call IFS utility function entry point with:
  2077.     AH = 20h miscellaneous functions
  2078.         AL = 00h get date
  2079.         Return: CX = year
  2080.             DH = month
  2081.             DL = day
  2082.         AL = 01h get process ID and computer ID
  2083.         Return: BX = current PSP segment
  2084.             DX = active network machine number
  2085.         AL = 05h get file system info
  2086.         ES:DI -> 16-byte info buffer
  2087.         Return: buffer filled
  2088.             Offset    Size    Description
  2089.              00h  2 BYTEs    unused
  2090.              02h    WORD    number of SFTs (actually counts only
  2091.                     the first two file table arrays)
  2092.              04h    WORD    number of FCB table entries
  2093.              06h    WORD    number of proctected FCBs
  2094.              08h  6 BYTEs    unused
  2095.              0Eh    WORD    largest sector size supported
  2096.         AL = 06h get machine name
  2097.         ES:DI -> 18-byte buffer for name
  2098.         Return: buffer filled with name starting at offset 02h
  2099.         AL = 08h get sharing retry count
  2100.         Return: BX = sharing retry count
  2101.         AL = other
  2102.         Return: CF set
  2103.     AH = 21h get redirection state
  2104.         BH = type (03h disk, 04h printer)
  2105.         Return: BH = state (00h off, 01h on)
  2106.     AH = 22h ??? some sort of time calculation
  2107.         AL = 00h ???
  2108.             nonzero ???
  2109.     AH = 23h ??? some sort of time calculation
  2110.     AH = 24h compare filenames
  2111.         DS:SI -> first ASCIZ filename
  2112.         ES:DI -> second ASCIZ filename
  2113.         Return: ZF set if files are same ignoring case and / vs \
  2114.     AH = 25h normalize filename
  2115.         DS:SI -> ASCIZ filename
  2116.         ES:DI -> buffer for result
  2117.         Return: filename uppercased, forward slashes changed to backslashes
  2118.     AH = 26h get DOS stack
  2119.         Return: DS:SI -> top of stack
  2120.             CX = size of stack in bytes
  2121.     AH = 27h increment InDOS flag
  2122.     AH = 28h decrement InDOS flag
  2123. Note:    IFS drivers which do not wish to implement functions 20h or 24h-28h may
  2124.       pass them on to the default handler pointed at by [LoL+37h]
  2125. SeeAlso: #0796,#0798
  2126.  
  2127. Format of IFS request block:
  2128. Offset    Size    Description    (Table 0798)
  2129.  00h    WORD    total size in bytes of request
  2130.  02h    BYTE    class of request
  2131.         02h ???
  2132.         03h redirection
  2133.         04h ???
  2134.         05h file access
  2135.         06h convert error code to string
  2136.         07h ???
  2137.  03h    WORD    returned DOS error code
  2138.  05h    BYTE    IFS driver exit status
  2139.         00h success
  2140.         01h ???
  2141.         02h ???
  2142.         03h ???
  2143.         04h ???
  2144.         FFh internal failure
  2145.  06h 16 BYTEs    ???
  2146. ---request class 02h---
  2147.  16h    BYTE    function code
  2148.         04h ???
  2149.  17h    BYTE    unused???
  2150.  18h    DWORD    pointer to ???
  2151.  1Ch    DWORD    pointer to ???
  2152.  20h  2 BYTEs    ???
  2153. ---request class 03h---
  2154.  16h    BYTE    function code
  2155.  17h    BYTE    ???
  2156.  18h    DWORD    pointer to ???
  2157.  1Ch    DWORD    pointer to ???
  2158.  22h    WORD    returned ???
  2159.  24h    WORD    returned ???
  2160.  26h    WORD    returned ???
  2161.  28h    BYTE    returned ???
  2162.  29h    BYTE    unused???
  2163. ---request class 04h---
  2164.  16h    DWORD    pointer to ???
  2165.  1Ah    DWORD    pointer to ???
  2166. ---request class 05h---
  2167.  16h    BYTE    function code
  2168.         01h flush disk buffers
  2169.         02h get disk space
  2170.         03h MKDIR
  2171.         04h RMDIR
  2172.         05h CHDIR
  2173.         06h delete file
  2174.         07h rename file
  2175.         08h search directory
  2176.         09h file open/create
  2177.         0Ah LSEEK
  2178.         0Bh read from file
  2179.         0Ch write to file
  2180.         0Dh lock region of file
  2181.         0Eh commit/close file
  2182.         0Fh get/set file attributes
  2183.         10h printer control
  2184.         11h ???
  2185.         12h process termination
  2186.         13h ???
  2187.     ---class 05h function 01h---
  2188.      17h  7 BYTEs    ???
  2189.      1Eh    DWORD    pointer to ???
  2190.      22h  4 BYTEs    ???
  2191.      26h    BYTE    ???
  2192.      27h    BYTE    ???
  2193.     ---class 05h function 02h---
  2194.      17h  7 BYTEs    ???
  2195.      1Eh    DWORD    pointer to ???
  2196.      22h  4 BYTEs    ???
  2197.      26h    WORD    returned total clusters
  2198.      28h    WORD    returned sectors per cluster
  2199.      2Ah    WORD    returned bytes per sector
  2200.      2Ch    WORD    returned available clusters
  2201.      2Eh    BYTE    returned ???
  2202.      2Fh    BYTE    ???
  2203.     ---class 05h functions 03h,04h,05h---
  2204.      17h  7 BYTEs    ???
  2205.      1Eh    DWORD    pointer to ???
  2206.      22h  4 BYTEs    ???
  2207.      26h    DWORD    pointer to directory name
  2208.     ---class 05h function 06h---
  2209.      17h  7 BYTEs    ???
  2210.      1Eh    DWORD    pointer to ???
  2211.      22h  4 BYTEs    ???
  2212.      26h    WORD    attribute mask
  2213.      28h    DWORD    pointer to filename
  2214.     ---class 05h function 07h---
  2215.      17h  7 BYTEs    ???
  2216.      1Eh    DWORD    pointer to ???
  2217.      22h  4 BYTEs    ???
  2218.      26h    WORD    attribute mask
  2219.      28h    DWORD    pointer to source filespec
  2220.      2Ch    DWORD    pointer to destination filespec
  2221.     ---class 05h function 08h---
  2222.      17h  7 BYTEs    ???
  2223.      1Eh    DWORD    pointer to ???
  2224.      22h  4 BYTEs    ???
  2225.      26h    BYTE    00h FINDFIRST
  2226.             01h FINDNEXT
  2227.      28h    DWORD    pointer to FindFirst search data + 01h if FINDNEXT
  2228.      2Ch    WORD    search attribute if FINDFIRST
  2229.      2Eh    DWORD    pointer to filespec if FINDFIRST
  2230.     ---class 05h function 09h---
  2231.      17h  7 BYTEs    ???
  2232.      1Eh    DWORD    pointer to ???
  2233.      22h    DWORD    pointer to IFS open file structure (see #0799)
  2234.      26h    WORD    ???  \ together, specify open vs. create, whether or
  2235.      28h    WORD    ???  / not to truncate
  2236.      2Ah  4 BYTEs    ???
  2237.      2Eh    DWORD    pointer to filename
  2238.      32h  4 BYTEs    ???
  2239.      36h    WORD    file attributes on call
  2240.             returned ???
  2241.      38h    WORD    returned ???
  2242.     ---class 05h function 0Ah---
  2243.      17h  7 BYTEs    ???
  2244.      1Eh    DWORD    pointer to ???
  2245.      22h    DWORD    pointer to IFS open file structure (see #0799)
  2246.      26h    BYTE    seek type (02h = from end)
  2247.      28h    DWORD    offset on call
  2248.             returned new absolute position
  2249.     ---class 05h functions 0Bh,0Ch---
  2250.      17h  7 BYTEs    ???
  2251.      1Eh    DWORD    pointer to ???
  2252.      22h    DWORD    pointer to IFS open file structure (see #0799)
  2253.      28h    WORD    number of bytes to transfer
  2254.             returned bytes actually transferred
  2255.      2Ah    DWORD    transfer address
  2256.     ---class 05h function 0Dh---
  2257.      17h  7 BYTEs    ???
  2258.      1Eh    DWORD    pointer to ???
  2259.      22h    DWORD    pointer to IFS open file structure (see #0799)
  2260.      26h    BYTE    file handle???
  2261.      27h    BYTE    unused???
  2262.      28h    WORD    ???
  2263.      2Ah    WORD    ???
  2264.      2Ch    WORD    ???
  2265.      2Eh    WORD    ???
  2266.     ---class 05h function 0Eh---
  2267.      17h  7 BYTEs    ???
  2268.      1Eh    DWORD    pointer to ???
  2269.      22h    DWORD    pointer to IFS open file structure (see #0799)
  2270.      26h    BYTE    00h commit file
  2271.             01h close file
  2272.      27h    BYTE    unused???
  2273.     ---class 05h function 0Fh---
  2274.      17h  7 BYTEs    ???
  2275.      1Eh    DWORD    pointer to ???
  2276.      22h  4 BYTEs    ???
  2277.      26h    BYTE    02h GET attributes
  2278.             03h PUT attributes
  2279.      27h    BYTE    unused???
  2280.      28h 12 BYTEs    ???
  2281.      34h    WORD    search attributes???
  2282.      36h    DWORD    pointer to filename
  2283.      3Ah    WORD    (GET) returned ???
  2284.      3Ch    WORD    (GET) returned ???
  2285.      3Eh    WORD    (GET) returned ???
  2286.      40h    WORD    (GET) returned ???
  2287.      42h    WORD    (PUT) new attributes
  2288.             (GET) returned attributes
  2289.     ---class 05h function 10h---
  2290.      17h  7 BYTEs    ???
  2291.      1Eh    DWORD    pointer to ???
  2292.      22h    DWORD    pointer to IFS open file structure (see #0799)
  2293.      26h    WORD    ???
  2294.      28h    DWORD    pointer to ???
  2295.      2Ch    WORD    ???
  2296.      2Eh    BYTE    ???
  2297.      2Fh    BYTE    subfunction
  2298.             01h get printer setup
  2299.             03h ???
  2300.             04h ???
  2301.             05h ???
  2302.             06h ???
  2303.             07h ???
  2304.             21h set printer setup
  2305.     ---class 05h function 11h---
  2306.      17h  7 BYTEs    ???
  2307.      1Eh    DWORD    pointer to ???
  2308.      22h    DWORD    pointer to IFS open file structure (see #0799)
  2309.      26h    BYTE    subfunction
  2310.      27h    BYTE    unused???
  2311.      28h    WORD    ???
  2312.      2Ah    WORD    ???
  2313.      2Ch    WORD    ???
  2314.      2Eh    BYTE    ???
  2315.      2Fh    BYTE    ???
  2316.     ---class 05h function 12h---
  2317.      17h 15 BYTEs    unused???
  2318.      26h    WORD    PSP segment
  2319.      28h    BYTE    type of process termination
  2320.      29h    BYTE    unused???
  2321.     ---class 05h function 13h---
  2322.      17h 15 BYTEs    unused???
  2323.      26h    WORD    PSP segment
  2324. ---request class 06h---
  2325.  16h    DWORD    returned pointer to string corresponding to error code at 03h
  2326.  1Ah    BYTE    returned ???
  2327.  1Bh    BYTE    unused
  2328. ---request class 07h---
  2329.  16h    DWORD    pointer to IFS open file structure (see #0799)
  2330.  1Ah    BYTE    ???
  2331.  1Bh    BYTE    unused???
  2332. SeeAlso: #0796,#0797,#0799
  2333.  
  2334. Format of IFS open file structure:
  2335. Offset    Size    Description    (Table 0799)
  2336.  00h    WORD    ???
  2337.  02h    WORD    device info word
  2338.  04h    WORD    file open mode
  2339.  06h    WORD    ???
  2340.  08h    WORD    file attributes
  2341.  0Ah    WORD    owner's network machine number
  2342.  0Ch    WORD    owner's PSP segment
  2343.  0Eh    DWORD    file size
  2344.  12h    DWORD    current offset in file
  2345.  16h    WORD    file time
  2346.  18h    WORD    file date
  2347.  1Ah 11 BYTEs    filename in FCB format
  2348.  25h    WORD    ???
  2349.  27h    WORD    hash value of SFT address
  2350.         (low word of linear address + segment&F000h)
  2351.  29h  3 WORDs    network info from SFT
  2352.  2Fh    WORD    ???
  2353.  
  2354. Format of one item in DOS 4+ list of special program names:
  2355. Offset    Size    Description    (Table 0800)
  2356.  00h    BYTE    length of name (00h = end of list)
  2357.  01h  N BYTEs    name in format name.ext
  2358.  N    2 BYTEs    DOS version to return for program (major,minor)
  2359.         (see AH=30h,INT 2F/AX=122Fh)
  2360. ---DOS 4 only---
  2361.  N+2    BYTE    number of times to return fake version number (FFh = always)
  2362. Note:    if the name of the executable for the program making the DOS "get
  2363.       version" call matches one of the names in this list, DOS returns the
  2364.       specified version rather than the true version number
  2365. --------v-215252-----------------------------
  2366. INT 21 - VIRUS - "516"/"Leapfrog" - INSTALLATION CHECK
  2367.     AX = 5252h
  2368. Return: BX = FFEEh if resident
  2369. SeeAlso: AX=4BFFh"Cascade",AX=58CCh
  2370. --------D-2153-------------------------------
  2371. INT 21 - DOS 2+ internal - TRANSLATE BIOS PARAMETER BLOCK TO DRIVE PARAM BLOCK
  2372.     AH = 53h
  2373.     DS:SI -> BIOS Parameter Block (see #0801)
  2374.     ES:BP -> buffer for Drive Parameter Block (see #0551 at AH=32h)
  2375. Return: ES:BP buffer filled
  2376. Note:    for DOS 3+, the cluster at which to start searching is set to 0000h
  2377.       and the number of free clusters is set to FFFFh (unknown)
  2378.  
  2379. Format of BIOS Parameter Block:
  2380. Offset    Size    Description    (Table 0801)
  2381.  00h    WORD    number of bytes per sector
  2382.  02h    BYTE    number of sectors per cluster
  2383.  03h    WORD    number of reserved sectors at start of disk
  2384.  05h    BYTE    number of FATs
  2385.  06h    WORD    number of entries in root directory
  2386.  08h    WORD    total number of sectors
  2387.         for DOS 4+, set to zero if partition >32M, then set DWORD at
  2388.           15h to actual number of sectors
  2389.  0Ah    BYTE    media ID byte
  2390.  0Bh    WORD    number of sectors per FAT
  2391. ---DOS 3+---
  2392.  0Dh    WORD    number of sectors per track
  2393.  0Fh    WORD    number of heads
  2394.  11h    DWORD    number of hidden sectors
  2395.  15h 11 BYTEs    reserved
  2396. ---DOS 4+ ---
  2397.  15h    DWORD    total number of sectors if word at 08h contains zero
  2398.  19h  6 BYTEs    ???
  2399.  1Fh    WORD    number of cylinders
  2400.  21h    BYTE    device type
  2401.  22h    WORD    device attributes (removable or not, etc)
  2402. ---DR-DOS 5+ ---
  2403.  15h    DWORD    total number of sectors if word at 08h contains zero
  2404.  19h  6 BYTEs    reserved
  2405. ---European MS-DOS 4.00---
  2406.  15h    DWORD    total number of sectors if word at 08h contains zero
  2407.         (however, this DOS does not actually implement >32M partitions)
  2408. SeeAlso: #0551
  2409. --------D-2154-------------------------------
  2410. INT 21 - DOS 2+ - GET VERIFY FLAG
  2411.     AH = 54h
  2412. Return: AL = verify flag
  2413.         00h off
  2414.         01h on (all disk writes verified after writing)
  2415. SeeAlso: AH=2Eh
  2416. --------D-2155-------------------------------
  2417. INT 21 - DOS 2+ internal - CREATE CHILD PSP
  2418.     AH = 55h
  2419.     DX = segment at which to create new PSP
  2420.     SI = (DOS 3+) value to place in memory size field at DX:[0002h]
  2421. Return: CF clear if successful
  2422. Notes:    creates a "child" PSP rather than making an exact copy of the current
  2423.       PSP; the new PSP's parent pointer is set to the current PSP and the
  2424.       reference count for each inherited file is incremented
  2425.     (DOS 2+) sets current PSP to DX
  2426.     (DOS 3+) marks "no inherit" file handles as closed in child PSP
  2427. SeeAlso: AH=26h,AH=50h
  2428. --------D-2156-------------------------------
  2429. INT 21 - DOS 2+ - "RENAME" - RENAME FILE
  2430.     AH = 56h
  2431.     DS:DX -> ASCIZ filename of existing file (no wildcards, but see below)
  2432.     ES:DI -> ASCIZ new filename (no wildcards)
  2433.     CL = attribute mask (server call only, see below)
  2434. Return: CF clear if successful
  2435.     CF set on error
  2436.         AX = error code (02h,03h,05h,11h) (see #0811)
  2437. Notes:    allows move between directories on same logical volume
  2438.     this function does not set the archive attribute
  2439.       (see #0574 at AX=4301h), which results in incremental backups not
  2440.       backing up the file under its new name
  2441.     open files should not be renamed
  2442.     (DOS 3+) allows renaming of directories
  2443.     (DOS 3.1+) wildcards are allowed if invoked via AX=5D00h, in which case
  2444.       error 12h (no more files) is returned on success, and both source and
  2445.       destination specs must be canonical (as returned by AH=60h).
  2446.       Wildcards in the destination are replaced by the corresponding char
  2447.       of each source file being renamed.  Under DOS 3.x, the call will fail
  2448.       if the destination wildcard is *.* or equivalent; under DR-DOS 5.0,
  2449.       the call will fail if any wildcards are used.     When invoked via
  2450.       AX=5D00h, only those files matching the attribute mask in CL are
  2451.       renamed.
  2452.     under the FlashTek X-32 DOS extender, the old-name pointer is in DS:EDX
  2453.       and the new-name pointer is in ES:EDI (DS must equal ES)
  2454. BUG:    under DR-DOS 3.41, this function will generate a new directory entry
  2455.       with the new name (including any wildcards) which can only be removed
  2456.       with a sector editor when invoked via AX=5D00h
  2457. SeeAlso: AH=17h,AX=4301h,AX=5D00h,AH=60h,AH=71h
  2458. --------D-215700-----------------------------
  2459. INT 21 - DOS 2+ - GET FILE'S DATE AND TIME
  2460.     AX = 5700h
  2461.     BX = file handle
  2462. Return: CF clear if successful
  2463.         CX = file's time (see #0802)
  2464.         DX = file's date (see #0803)
  2465.     CF set on error
  2466.         AX = error code (01h,06h) (see #0811)
  2467. Note:    under DR-DOS 3.41 and 5.0, this function returns 0 (no date/time) for
  2468.       character devices; MS-DOS returns date and time of opening
  2469. SeeAlso: AX=5701h
  2470.  
  2471. Bitfields for file time:
  2472. Bit(s)    Description    (Table 0802)
  2473.  15-11    hours (0-23)
  2474.  10-5    minutes
  2475.  4-0    seconds/2
  2476.  
  2477. Bitfields for file date:
  2478. Bit(s)    Description    (Table 0803)
  2479.  15-9    year - 1980
  2480.  8-5    month
  2481.  4-0    day
  2482. --------D-215701-----------------------------
  2483. INT 21 - DOS 2+ - SET FILE'S DATE AND TIME
  2484.     AX = 5701h
  2485.     BX = file handle
  2486.     CX = new time (see #0802)
  2487.     DX = new date (see #0803)
  2488. Return: CF clear if successful
  2489.     CF set on error
  2490.         AX = error code (01h,06h) (see #0811)
  2491. SeeAlso: AX=5700h
  2492. --------D-215702-----------------------------
  2493. INT 21 - DOS 4.x only - GET EXTENDED ATTRIBUTES FOR FILE
  2494.     AX = 5702h
  2495.     BX = file handle
  2496.     CX = size of result buffer or 0000h
  2497.     DS:SI -> EAP list (see #0804)
  2498.     ES:DI -> buffer for returned EAV list (see #0807)
  2499. Return: CF clear if successful
  2500.         CX = size of returned data
  2501.     CF set on error
  2502.         AX = error code (see #0811)
  2503. Desc:    get the current value of one or more extended attributes
  2504. Notes:    if CX=0000h on entry, ES:DI is ignored and no data is actually
  2505.       returned, only the amount of data which is available
  2506.     the default DOS 4 behavior is to return a single word of 0000h (no
  2507.       structures) in the result buffer if CX>=0002h on entry
  2508. SeeAlso: AX=5703h,AX=5704h,AH=6Eh,INT 2F/AX=112Dh
  2509.  
  2510. Format of EAP (extended attribute properties) list:
  2511. Offset    Size    Description    (Table 0804)
  2512.  00h    WORD    number of EAP structures following
  2513.  02h    var    array of EAP structures (see #0805)
  2514. SeeAlso: #0807
  2515.  
  2516. Format of EAP (extended attribute property) structure:
  2517. Offset    Size    Description    (Table 0805)
  2518.  00h    BYTE    attribute type
  2519.         01h boolean (either 00h or 01h)
  2520.         02h number (BYTE, WORD, or DWORD)
  2521.         03h string
  2522.         04h date stamp
  2523.         05h time stamp
  2524.  01h    WORD    EAP flags (see #0806)
  2525.  03h    BYTE    size of reference string (name)
  2526.  04h  N BYTEs    reference string
  2527.  
  2528. Bitfields for EAP flags:
  2529. Bit(s)    Description    (Table 0806)
  2530.  12    unchangeable
  2531.  13    ignore
  2532.  14    unchangeable
  2533.  15    used by COMMAND.COM for code page, but not understood by ATTRIB
  2534.  
  2535. Format of EAV (extended attribute value) list:
  2536. Offset    Size    Description    (Table 0807)
  2537.  00h    WORD    number of EAV structures following
  2538.  02h    var    array of Extended Attribute Value structures (see #0808)
  2539. SeeAlso: #0804
  2540.  
  2541. Format of Extended Attribute Value structures:
  2542. Offset    Size    Description    (Table 0808)
  2543.  00h  4 BYTEs    ???
  2544.  04h    BYTE    size of reference string
  2545.  05h    WORD    size of value
  2546.  07h    var    reference string
  2547.     var    value
  2548. --------O-215702-----------------------------
  2549. INT 21 - OS/2 v1.1+ Family API - DosQFileInfo
  2550.     AX = 5702h
  2551.     BX = file handle
  2552.     CX = size of buffer for information
  2553.     DX = level of information
  2554.     ES:DI -> buffer for information
  2555. Return: CF clear if successful
  2556.     CF set on error
  2557.         AX = error code
  2558. SeeAlso: AX=5702h/BX=FFFFh,AX=5703h"OS/2"
  2559. --------O-215702BXFFFF-----------------------
  2560. INT 21 - OS/2 v1.1+ Compatibility Box Family API - DosQPathInfo
  2561.     AX = 5702h
  2562.     BX = FFFFh
  2563.     CX = size of buffer for information
  2564.     DX = level of information (0002h)
  2565.     DS:SI -> filename
  2566.     ES:DI -> buffer for FAPI path information (see #0809)
  2567. Return: CF clear if successful
  2568.         AL = 00h
  2569.     CF set on error
  2570.         AX = error code
  2571. SeeAlso: AX=5702h"OS/2",AX=5703h/BX=FFFFh
  2572.  
  2573. Format of FAPI path information:
  2574. Offset    Size    Description    (Table 0809)
  2575.  00h 22 BYTEs    ???
  2576.  16h    DWORD    extended attribute size (none present if less than 5)
  2577. --------D-215703-----------------------------
  2578. INT 21 - DOS 4.x only - GET EXTENDED ATTRIBUTE PROPERTIES
  2579.     AX = 5703h
  2580.     BX = file handle
  2581.     CX = size of result buffer or 0000h
  2582.     ES:DI -> result buffer
  2583. Return: CF clear if successful
  2584.         CX = size of returned data
  2585.     CF set on error
  2586.         AX = error code (see #0811)
  2587.     ES:DI -> zero word (DOS 4.0) if CX >= 2 on entry
  2588. Desc:    get a list of the extended attributes which are defined for the
  2589.       specified file
  2590. Notes:    if CX=0000h on entry, ES:DI is ignored and no data is actually
  2591.       returned, only the amount of data which is available
  2592.     the default DOS 4 behavior is to return a trivial EAP list consisting
  2593.       of the single word 0000h (no EAP structures) if CX>=0002h on entry
  2594. SeeAlso: AX=5702h,AX=5704h,AH=6Eh,INT 2F/AX=112Dh
  2595. --------O-215703-----------------------------
  2596. INT 21 - OS/2 v1.1+ Family API - DosSetFileInfo
  2597.     AX = 5703h
  2598.     BX = file handle
  2599.     CX = size of information buffer
  2600.     DX = level of information
  2601.     ES:DI -> information buffer
  2602. Return: CF clear if successful
  2603.     CF set on error
  2604.         AX = error code
  2605. SeeAlso: AX=5702h"OS/2",AX=5703h/BX=FFFFh
  2606. --------O-215703BXFFFF-----------------------
  2607. INT 21 - OS/2 v1.1+ Family API - DosSetPathInfo
  2608.     AX = 5703h
  2609.     BX = FFFFh
  2610.     CX = size of information buffer
  2611.     DX = level of information
  2612.     DS:SI -> filename
  2613.     ES:DI -> information buffer
  2614. Return: CF clear if successful
  2615.     CF set on error
  2616.         AX = error code
  2617. SeeAlso: AX=5702h/BX=FFFFh,AX=5703h"OS/2"
  2618. --------D-215704-----------------------------
  2619. INT 21 - DOS 4.x only - SET EXTENDED ATTRIBUTES
  2620.     AX = 5704h
  2621.     BX = file handle
  2622.     ES:DI -> EAV list (see #0807)
  2623. Return: CF clear if successful
  2624.     CF set on error
  2625.         AX = error code (see #0811)
  2626. Note:    the default DOS 4 behavior is to do nothing and return successfully
  2627. SeeAlso: AX=5702h,AX=5703h,INT 2F/AX=112Dh
  2628. ----------215757BX5757-----------------------
  2629. INT 21 U - IBM Genie - Resident Manager - INSTALLATION CHECK
  2630.     AX = 5757h
  2631.     BX = 5757h
  2632. Return: AX = 0000h if installed
  2633.         BX = ???
  2634.         DX = ???
  2635.         DS:SI -> list of 27 DWORD entry point addresses
  2636. Program: IBM Genie is a set of utility TSRs by Helix Software
  2637. Note:    other functions possible if BX <> 5757h, but details not yet available
  2638. ----------215758-----------------------------
  2639. INT 21 U - Headroom - API
  2640.     AX = 5758h
  2641.     BL = function
  2642.         00h ???
  2643.         01h get Headroom location
  2644.         Return: CF clear if installed
  2645.                 AX = PSP segment of Headroom TSR
  2646.                 BX = paragraphs of memory used by Headroom
  2647.             CF set if not (normal DOS return)
  2648.         Note:    this function is also used as an installation check
  2649.         02h get INT 21 handler
  2650.         Return: CF clear
  2651.             ES:BX -> Headroom's INT 21 handler
  2652.         Note: also sets unknown flag
  2653.         03h launch application???
  2654.         DS:SI -> 233-byte application record
  2655.         Return: ???
  2656.         04h ???
  2657.         ???
  2658.         Return: CF clear
  2659.         05h get swap directory
  2660.         Return: CF clear
  2661.             DX:AX -> ASCIZ swap directory name
  2662.         06h ???
  2663.         DX = ???
  2664.         Return: CF clear
  2665.         07h ???
  2666.         08h ???
  2667.         09h get current application
  2668.         Return: BX = application number
  2669.         0Ah ???
  2670.         DX = application number
  2671.         DS:SI = ???
  2672.         Return: ???
  2673.         0Bh ???
  2674.         0Ch ???
  2675.         DX = application number
  2676.         ???
  2677.         Return: ???
  2678.         0Dh ???
  2679.         DX = application number
  2680.         ???
  2681.         Return: ???
  2682.         0Eh get ???
  2683.         Return: CF clear
  2684.             AX = ???
  2685.         0Fh set ??? flag
  2686.         10h clear ??? flag
  2687.         11h find application by name
  2688.         DS:SI -> ASCIZ application name
  2689.         Return: CF clear
  2690.             AX = application number or FFFFh if not loaded
  2691.         12h ???
  2692.         DX = application number
  2693.         Return: CF clear
  2694.             ???
  2695.         13h ???
  2696.         Return: CF clear
  2697.         14h ???
  2698.         same as function 13h
  2699.         15h set ???
  2700.         DX = ???
  2701.         16h get ???
  2702.         Return: AX = ??? set by function 15h
  2703.         17h get ???
  2704.         Return: BX = ???
  2705.             CX = ??? (may be pointer in BX:CX)
  2706.         18h BUG: branches incorrectly due to fencepost error
  2707. Program: Headroom is a TSR/task switcher by Helix Software
  2708. SeeAlso: AX=4C57h,AX=5757h,INT 2F/AX=5758h
  2709. --------D-2158-------------------------------
  2710. INT 21 - DOS 3+ - GET OR SET MEMORY ALLOCATION STRATEGY
  2711.     AH = 58h
  2712.     AL = subfunction
  2713.         00h get allocation strategy
  2714.         Return: AX = current strategy (see #0810)
  2715.         01h set allocation strategy
  2716.         BL = new allocation strategy (see #0810)
  2717.         BH = 00h (DOS 5+)
  2718. Return: CF clear if successful
  2719.     CF set on error
  2720.         AX = error code (01h) (see #0811)
  2721. Notes:    the Set subfunction accepts any value in BL for DOS 3.x and 4.x;
  2722.       2 or greater means last fit
  2723.     the Get subfunction returns the last value set
  2724.     setting an allocation strategy involving high memory does not
  2725.       automatically link in the UMB memory chain; this must be done
  2726.       explicitly with AX=5803h in order to actually allocate high memory
  2727.     a program which changes the allocation strategy should restore it
  2728.       before terminating
  2729.     Toshiba MS-DOS 2.11 supports subfunctions 00h and 01h
  2730.     DR-DOS 3.41 reportedly reverses subfunctions 00h and 01h
  2731. SeeAlso: AH=48h,AH=49h,AH=4Ah,INT 2F/AX=4310h,INT 67/AH=3Fh
  2732.  
  2733. (Table 0810)
  2734. Values for DOS memory allocation strategy:
  2735.  00h low memory first fit
  2736.  01h low memory best fit
  2737.  02h low memory last fit
  2738. ---DOS 5+ ---
  2739.  40h high memory first fit
  2740.  41h high memory best fit
  2741.  42h high memory last fit
  2742.  80h first fit, try high then low memory
  2743.  81h best fit, try high then low memory
  2744.  82h last fit, try high then low memory
  2745. --------D-2158-------------------------------
  2746. INT 21 - DOS 5+ - GET OR SET UMB LINK STATE
  2747.     AH = 58h
  2748.     AL = subfunction
  2749.         02h get UMB link state
  2750.         Return: AL = current link state
  2751.                 00h UMBs not part of DOS memory chain
  2752.                 01h UMBs in DOS memory chain
  2753.         03h set UMB link state
  2754.         BX = new link state
  2755.             0000h remove UMBs from DOS memory chain
  2756.             0001h add UMBs to DOS memory chain
  2757. Return: CF clear if successful
  2758.     CF set on error
  2759.         AX = error code (01h) (see #0811)
  2760. Note:    a program which changes the UMB link state should restore it before
  2761.       terminating
  2762. --------v-2158CC-----------------------------
  2763. INT 21 - VIRUS - "1067"/"Headcrash" - INSTALLATION CHECK
  2764.     AX = 58CCh
  2765. Return: CF clear if resident
  2766. SeeAlso: AX=5252h,AX=58DDh,AX=6969h
  2767. --------v-2158DD-----------------------------
  2768. INT 21 - VIRUS - "1067"/"Headcrash" - GET ORIGINAL INT 21h VECTOR
  2769.     AX = 58DDh
  2770. Return: CX = code segment of virus
  2771.     ES:BX = old INT 21h vector
  2772. SeeAlso: AX=5252h,AX=58CCh,AX=6969h
  2773. --------D-2159--BX0000-----------------------
  2774. INT 21 - DOS 3+ - GET EXTENDED ERROR INFORMATION
  2775.     AH = 59h
  2776.     BX = 0000h
  2777. Return: AX = extended error code (see #0811)
  2778.     BH = error class (see #0813)
  2779.     BL = recommended action (see #0814)
  2780.     CH = error locus (see #0815)
  2781.     ES:DI may be pointer (see #0812, error code list below)
  2782.     CL, DX, SI, BP, and DS destroyed
  2783. Notes:    functions available under DOS 2.x map the true DOS 3+ error code into
  2784.       one supported under DOS 2.x
  2785.     you should call this function to retrieve the true error code when an
  2786.       FCB or DOS 2.x call returns an error
  2787.     under DR-DOS 5.0, this function does not use any of the DOS-internal
  2788.       stacks and may thus be called at any time
  2789. SeeAlso: AH=59h/BX=0001h,AX=5D0Ah,INT 2F/AX=122Dh
  2790.  
  2791. (Table 0811)
  2792. Values for DOS extended error code:
  2793.  00h (0)   no error
  2794.  01h (1)   function number invalid
  2795.  02h (2)   file not found
  2796.  03h (3)   path not found
  2797.  04h (4)   too many open files (no handles available)
  2798.  05h (5)   access denied
  2799.  06h (6)   invalid handle
  2800.  07h (7)   memory control block destroyed
  2801.  08h (8)   insufficient memory
  2802.  09h (9)   memory block address invalid
  2803.  0Ah (10)  environment invalid (usually >32K in length)
  2804.  0Bh (11)  format invalid
  2805.  0Ch (12)  access code invalid
  2806.  0Dh (13)  data invalid
  2807.  0Eh (14)  reserved
  2808.  0Fh (15)  invalid drive
  2809.  10h (16)  attempted to remove current directory
  2810.  11h (17)  not same device
  2811.  12h (18)  no more files
  2812. ---DOS 3+---
  2813.  13h (19)  disk write-protected
  2814.  14h (20)  unknown unit
  2815.  15h (21)  drive not ready
  2816.  16h (22)  unknown command
  2817.  17h (23)  data error (CRC)
  2818.  18h (24)  bad request structure length
  2819.  19h (25)  seek error
  2820.  1Ah (26)  unknown media type (non-DOS disk)
  2821.  1Bh (27)  sector not found
  2822.  1Ch (28)  printer out of paper
  2823.  1Dh (29)  write fault
  2824.  1Eh (30)  read fault
  2825.  1Fh (31)  general failure
  2826.  20h (32)  sharing violation
  2827.  21h (33)  lock violation
  2828.  22h (34)  disk change invalid (ES:DI -> media ID structure)(see #0812)
  2829.  23h (35)  FCB unavailable
  2830.  24h (36)  sharing buffer overflow
  2831.  25h (37)  (DOS 4+) code page mismatch
  2832.  26h (38)  (DOS 4+) cannot complete file operation (out of input)
  2833.  27h (39)  (DOS 4+) insufficient disk space
  2834.  28h-31h   reserved
  2835.  32h (50)  network request not supported
  2836.  33h (51)  remote computer not listening
  2837.  34h (52)  duplicate name on network
  2838.  35h (53)  network name not found
  2839.  36h (54)  network busy
  2840.  37h (55)  network device no longer exists
  2841.  38h (56)  network BIOS command limit exceeded
  2842.  39h (57)  network adapter hardware error
  2843.  3Ah (58)  incorrect response from network
  2844.  3Bh (59)  unexpected network error
  2845.  3Ch (60)  incompatible remote adapter
  2846.  3Dh (61)  print queue full
  2847.  3Eh (62)  queue not full
  2848.  3Fh (63)  not enough space to print file
  2849.  40h (64)  network name was deleted
  2850.  41h (65)  network: Access denied
  2851.  42h (66)  network device type incorrect
  2852.  43h (67)  network name not found
  2853.  44h (68)  network name limit exceeded
  2854.  45h (69)  network BIOS session limit exceeded
  2855.  46h (70)  temporarily paused
  2856.  47h (71)  network request not accepted
  2857.  48h (72)  network print/disk redirection paused
  2858.  49h (73)  network software not installed
  2859.         (LANtastic) invalid network version
  2860.  4Ah (74)  unexpected adapter close
  2861.         (LANtastic) account expired
  2862.  4Bh (75)  (LANtastic) password expired
  2863.  4Ch (76)  (LANtastic) login attempt invalid at this time
  2864.  4Dh (77)  (LANtastic v3+) disk limit exceeded on network node
  2865.  4Eh (78)  (LANtastic v3+) not logged in to network node
  2866.  4Fh (79)  reserved
  2867.  50h (80)  file exists
  2868.  51h (81)  reserved
  2869.  52h (82)  cannot make directory
  2870.  53h (83)  fail on INT 24h
  2871.  54h (84)  (DOS 3.3+) too many redirections
  2872.  55h (85)  (DOS 3.3+) duplicate redirection
  2873.  56h (86)  (DOS 3.3+) invalid password
  2874.  57h (87)  (DOS 3.3+) invalid parameter
  2875.  58h (88)  (DOS 3.3+) network write fault
  2876.  59h (89)  (DOS 4+) function not supported on network
  2877.  5Ah (90)  (DOS 4+) required system component not installed
  2878.  64h (100) (MSCDEX) unknown error
  2879.  65h (101) (MSCDEX) not ready
  2880.  66h (102) (MSCDEX) EMS memory no longer valid
  2881.  67h (103) (MSCDEX) not High Sierra or ISO-9660 format
  2882.  68h (104) (MSCDEX) door open
  2883.  
  2884. Format of media ID structure:
  2885. Offset    Size    Description    (Table 0812)
  2886.  00h 12 BYTEs    ASCIZ volume label of required disk
  2887.  0Ch    DWORD    serial number (DOS 4+)
  2888.  
  2889. (Table 0813)
  2890. Values for DOS Error Class:
  2891.  01h    out of resource (storage space or I/O channels)
  2892.  02h    temporary situation (file or record lock)
  2893.  03h    authorization (denied access)
  2894.  04h    internal (system software bug)
  2895.  05h    hardware failure
  2896.  06h    system failure (configuration file missing or incorrect)
  2897.  07h    application program error
  2898.  08h    not found
  2899.  09h    bad format
  2900.  0Ah    locked
  2901.  0Bh    media error
  2902.  0Ch    already exists
  2903.  0Dh    unknown
  2904.  
  2905. (Table 0814)
  2906. Values for DOS Suggested Action:
  2907.  01h    retry
  2908.  02h    delayed retry
  2909.  03h    prompt user to reenter input
  2910.  04h    abort after cleanup
  2911.  05h    immediate abort
  2912.  06h    ignore
  2913.  07h    retry after user intervention
  2914.  
  2915. (Table 0815)
  2916. Values for DOS Error Locus:
  2917.  01h    unknown or not appropriate
  2918.  02h    block device (disk error)
  2919.  03h    network related
  2920.  04h    serial device (timeout)
  2921.  05h    memory related
  2922. --------D-2159--BX0001-----------------------
  2923. INT 21 - European MS-DOS 4.0 - GET HARD ERROR INFORMATION
  2924.     AH = 59h
  2925.     BX = 0001h
  2926. Return: ES:DI -> hard error information packet (see #0816) for most recent
  2927.         hard (critical) error
  2928. SeeAlso: AH=59h/BX=0000h,AH=95h,INT 24
  2929.  
  2930. Format of European MS-DOS 4.0 hard error information packet:
  2931. Offset    Size    Description    (Table 0816)
  2932.  00h    WORD    contents of AX at system entry
  2933.  02h    WORD    Process ID which encountered error
  2934.  04h    WORD    contents of AX at time of error
  2935.  06h    BYTE    error type
  2936.         00h physical I/O error
  2937.         01h disk change request
  2938.         02h file sharing violation
  2939.         03h FCB problem
  2940.         04h file locking violation
  2941.         05h bad FAT
  2942.         06h network detected error
  2943.  07h    BYTE    INT 24 error code
  2944.  08h    WORD    extended error code (see #0811)
  2945.  0Ah    DWORD    pointer to associated device
  2946. --------D-215A-------------------------------
  2947. INT 21 - DOS 3+ - CREATE TEMPORARY FILE
  2948.     AH = 5Ah
  2949.     CX = file attribute (see #0574 at AX=4301h)
  2950.     DS:DX -> ASCIZ path ending with a '\' + 13 zero bytes to receive the
  2951.         generated filename
  2952. Return: CF clear if successful
  2953.         AX = file handle opened for read/write in compatibility mode
  2954.         DS:DX pathname extended with generated name for temporary file
  2955.     CF set on error
  2956.         AX = error code (03h,04h,05h) (see #0811)
  2957. Desc:    creates a file with a unique name which must be explicitly deleted
  2958. BUGS:    COMPAQ DOS 3.31 hangs if the pathname is at XXXXh:0000h; it apparently
  2959.       wraps around to the end of the segment
  2960.     MS-DOS 5.00 revisions A and B and PC-DOS 5.00 revision A reportedly
  2961.       hang the system if the specified path is the root directory and the
  2962.       root directory is full (no free directory entries)
  2963. Note:    under the FlashTek X-32 DOS extender, the path pointer is in DS:EDX
  2964. SeeAlso: AH=3Ch,AH=5Bh
  2965. --------D-215B-------------------------------
  2966. INT 21 - DOS 3+ - CREATE NEW FILE
  2967.     AH = 5Bh
  2968.     CX = file attribute (see #0574 at AX=4301h)
  2969.     DS:DX -> ASCIZ filename
  2970. Return: CF clear if successful
  2971.         AX = file handle opened for read/write in compatibility mode
  2972.     CF set on error
  2973.         AX = error code (03h,04h,05h,50h) (see #0811)
  2974. Notes:    unlike AH=3Ch, this function will fail if the specified file exists
  2975.       rather than truncating it; this permits its use in creating semaphore
  2976.       files because it is an atomic "test and set" operation
  2977.     under the FlashTek X-32 DOS extender, the filename pointer is in DS:EDX
  2978. SeeAlso: AH=3Ch,AH=5Ah
  2979. --------D-215C-------------------------------
  2980. INT 21 - DOS 3+ - "FLOCK" - RECORD LOCKING
  2981.     AH = 5Ch
  2982.     AL = subfunction
  2983.         00h lock region of file
  2984.         01h unlock region of file
  2985.     BX = file handle
  2986.     CX:DX = start offset of region within file
  2987.     SI:DI = length of region in bytes
  2988. Return: CF clear if successful
  2989.     CF set on error
  2990.         AX = error code (01h,06h,21h,24h) (see #0811)
  2991. Notes:    error returned unless SHARE or network installed
  2992.     an unlock call must specify the same region as some prior lock call
  2993.     locked regions become entirely inaccessible to other processes
  2994.     duplicate handles created with AH=45h or AH=46h inherit locks, but
  2995.       handles inherited by child processes (see AH=4Bh) do not
  2996.     under DR-DOS 3.41 and 5.0, if a process opens a file without the no-
  2997.       inherit flag and then starts a child, any locks set by the parent
  2998.       are ignored, and the child will only get an error if it tries to
  2999.       lock an area previously locked by the parent process
  3000. SeeAlso: AX=440Bh,AH=BCh,AH=BEh,INT 2F/AX=110Ah,INT 2F/AX=110Bh
  3001. --------D-215D00-----------------------------
  3002. INT 21 U - DOS 3.1+ internal - SERVER FUNCTION CALL
  3003.     AX = 5D00h
  3004.     DS:DX -> DOS parameter list (see #0817)
  3005.     DPL contains all register values for a call to INT 21h
  3006. Return: as appropriate for function being called
  3007. Notes:    does not check AH.  Out of range values will crash the system
  3008.     executes using specified computer ID and process ID
  3009.     sharing delay loops skipped
  3010.     a special sharing mode is enabled to handle FCBs opened across network
  3011.     wildcards are enabled for DELETE (AH=41h) and RENAME (AH=56h) under
  3012.       MS-DOS; under DR-DOS 3.41, wildcards corrupt the filesystem; and
  3013.       under DR-DOS 5.0-6.0, the call returns error code 03h due to improper
  3014.       support for the server function call (see below)
  3015.     an extra file attribute parameter is enabled for OPEN (AH=3Dh),
  3016.       DELETE (AH=41h), and RENAME (AH=56h)
  3017.     functions which take filenames require canonical names (as returned
  3018.       by AH=60h); this is apparently to prevent multi-hop file forwarding
  3019. BUGS:    the OS/2 2.0 DOS Boot Session incorrectly maps DOS drive letters,
  3020.       seemingly ignoring HPFS drives
  3021.     DR-DOS 5.0-6.0 merely recursively call INT 21 after loading the
  3022.       registers from the DPL, leading to problems for peer-to-peer
  3023.       networks
  3024. SeeAlso: AH=3Dh,AH=41h,AH=56h,AH=60h
  3025.  
  3026. Format of DOS parameter list:
  3027. Offset    Size    Description    (Table 0817)
  3028.  00h    WORD    AX
  3029.  02h    WORD    BX
  3030.  04h    WORD    CX
  3031.  06h    WORD    DX
  3032.  08h    WORD    SI
  3033.  0Ah    WORD    DI
  3034.  0Ch    WORD    DS
  3035.  0Eh    WORD    ES
  3036.  10h    WORD    reserved (0)
  3037.  12h    WORD    computer ID (0 = current system)
  3038.  14h    WORD    process ID (PSP segment on specified computer)
  3039. Note:    under Windows Enhanced mode, the computer ID is normally the virtual
  3040.       machine ID (see INT 2F/AX=1683h), though this can reportedly be
  3041.       changed by setting UniqueDOSPSP= in SYSTEM.INI
  3042. --------D-215D01-----------------------------
  3043. INT 21 U - DOS 3.1+ internal - COMMIT ALL FILES FOR SPECIFIED COMPUTER/PROCESS
  3044.     AX = 5D01h
  3045.     DS:DX -> DOS parameter list (see #0817), only computer ID and
  3046.           process ID fields used
  3047. Return: CF set on error
  3048.         AX = error code (see #0811)
  3049.     CF clear if successful
  3050. Notes:    flushes buffers and updates directory entries for each file which has
  3051.       been written to; if remote file, calls INT 2F/AX=1107h
  3052.     the computer ID and process ID are stored but ignored under DOS 3.3
  3053.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  3054. SeeAlso: AH=0Dh,AH=68h,INT 2F/AX=1107h
  3055. --------D-215D02-----------------------------
  3056. INT 21 U - DOS 3.1+ internal - SHARE.EXE - CLOSE FILE BY NAME
  3057.     AX = 5D02h
  3058.     DS:DX -> DOS parameter list (see #0817), only fields DX, DS,
  3059.           computer ID, and process ID used
  3060.     DPL's DS:DX -> ASCIZ name of file to close
  3061. Return: CF set on error
  3062.         AX = error code (see #0811)
  3063.     CF clear if successful
  3064. Notes:    error unless SHARE is loaded (calls [SysFileTable-28h])
  3065.       (see #0773 at AH=52h)
  3066.     name must be canonical fully-qualified, such as returned by AH=60h
  3067.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  3068. SeeAlso: AX=5D03h,AX=5D04h,AH=3Eh,AH=60h
  3069. --------D-215D03-----------------------------
  3070. INT 21 U - DOS 3.1+ internal - SHARE.EXE - CLOSE ALL FILES FOR GIVEN COMPUTER
  3071.     AX = 5D03h
  3072.     DS:DX -> DOS parameter list (see #0817), only computer ID used
  3073. Return: CF set on error
  3074.         AX = error code (see #0811)
  3075.     CF clear if successful
  3076. Notes:    error unless SHARE is loaded (calls [SysFileTable-30h])
  3077.       (see #0773 at AH=52h)
  3078.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  3079. SeeAlso: AX=5D02h,AX=5D04h
  3080. --------D-215D04-----------------------------
  3081. INT 21 U - DOS 3.1+ internal - SHARE.EXE - CLOSE ALL FILES FOR GIVEN PROCESS
  3082.     AX = 5D04h
  3083.     DS:DX -> DOS parameter list (see #0817), only computer ID and
  3084.           process ID fields used
  3085. Return: CF set on error
  3086.         AX = error code (see #0811)
  3087.     CF clear if successful
  3088. Notes:    error unless SHARE is loaded (calls [SysFileTable-2Ch])
  3089.        (see #0773 at AH=52h)
  3090.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  3091. SeeAlso: AX=5D02h,AX=5D03h,INT 2F/AX=111Dh
  3092. --------D-215D05-----------------------------
  3093. INT 21 U - DOS 3.1+ internal - SHARE.EXE - GET OPEN FILE LIST ENTRY
  3094.     AX = 5D05h
  3095.     DS:DX -> DOS parameter list (see #0817)
  3096.     DPL's BX = index of sharing record (see #0774 at AH=52h)
  3097.     DPL's CX = index of SFT in sharing record's SFT list
  3098. Return: CF clear if successful
  3099.         ES:DI -> ASCIZ filename
  3100.         BX = network machine number of SFT's owner
  3101.         CX = number of locks held by SFT's owner
  3102.     CF set if either index out of range
  3103.         AX = 0012h (no more files)
  3104. Notes:    error unless SHARE is loaded (calls [SysFileTable-18h])
  3105.       (see #0773 at AH=52h)
  3106.     names are always canonical fully-qualified, such as returned by AH=60h
  3107.     not supported by DR-DOS 3.41 and 5.0, but does not return an error
  3108. SeeAlso: AH=5Ch,AH=60h
  3109. --------D-215D06-----------------------------
  3110. INT 21 U - DOS 3.0+ internal - GET ADDRESS OF DOS SWAPPABLE DATA AREA
  3111.     AX = 5D06h
  3112. Return: CF set on error
  3113.        AX = error code (see #0811)
  3114.     CF clear if successful
  3115.         DS:SI -> nonreentrant data area (includes all three DOS stacks)
  3116.         (critical error flag is first byte) (see #0818)
  3117.         CX = size in bytes of area which must be swapped while in DOS
  3118.         DX = size in bytes of area which must always be swapped
  3119. Notes:    the Critical Error flag is used in conjunction with the InDOS flag
  3120.       (see AH=34h) to determine when it is safe to enter DOS from a TSR
  3121.     setting CritErr flag allows use of functions 50h/51h from INT 28h under
  3122.       DOS 2.x by forcing use of correct stack
  3123.     swapping the data area allows reentering DOS unless DOS is in a
  3124.       critical section delimited by INT 2A/AH=80h and INT 2A/AH=81h,82h
  3125.     under DOS 4.0, AX=5D0Bh should be used instead of this function
  3126.     SHARE and other DOS utilities consult the byte at offset 04h in the
  3127.       DOS data segment (see INT 2F/AX=1203h) to determine the SDA format
  3128.       in use: 00h = DOS 3.x, 01h = DOS 4.0-6.0, other = error.
  3129.     DR-DOS 3.41+ supports this function, but the SDA format beyond the
  3130.       first 18h bytes is completely different from MS-DOS
  3131. SeeAlso: AX=5D0Bh,INT 2A/AH=80h,INT 2A/AH=81h,INT 2A/AH=82h
  3132.  
  3133. Format of DOS 3.10-3.30 Swappable Data Area:
  3134. Offset    Size    Description    (Table 0818)
  3135.  -34    BYTE    (DOS 3.10+) printer echo flag (00h off, FFh active)
  3136.  -31    BYTE    (DOS 3.30) current switch character
  3137.  -28    BYTE    (DOS 3.30) incremented on each INT 21/AX=5E01h call
  3138.  -27 16 BYTEs    (DOS 3.30) machine name set by INT 21/AX=5E01h
  3139.  -11  5 WORDs    zero-terminated list of offsets which need to be patched to
  3140.           enable critical-section calls (see INT 2A/AH=80h)
  3141.  -1    BYTE    unused padding
  3142. ---start of actual SDA---
  3143.  00h    BYTE    critical error flag ("ErrorMode")
  3144.  01h    BYTE    InDOS flag (count of active INT 21 calls)
  3145.  02h    BYTE    drive on which current critical error occurred, or FFh
  3146.         (DR-DOS sets to drive number during INT 24, 00h otherwise)
  3147.  03h    BYTE    locus of last error
  3148.  04h    WORD    extended error code of last error
  3149.  06h    BYTE    suggested action for last error
  3150.  07h    BYTE    class of last error
  3151.  08h    DWORD    ES:DI pointer for last error
  3152.  0Ch    DWORD    current DTA (Disk Transfer Address)
  3153.         note: may point into SDA during the DOS EXEC function
  3154.           (see AH=4Bh), so programs which swap the SDA must be
  3155.           prepared to move the DTA to a private buffer if they
  3156.           might be invoked during an EXEC
  3157.  10h    WORD    current PSP
  3158.  12h    WORD    stores SP across an INT 23
  3159.  14h    WORD    return code from last process termination (zerod after reading
  3160.           with AH=4Dh)
  3161.  16h    BYTE    current drive
  3162.  17h    BYTE    extended break flag
  3163. ---remainder need only be swapped if in DOS---
  3164.  18h    WORD    value of AX on call to INT 21
  3165.  1Ah    WORD    PSP segment for sharing/network
  3166.  1Ch    WORD    network machine number for sharing/network (0000h = us)
  3167.  1Eh    WORD    first usable memory block found when allocating memory
  3168.  20h    WORD    best usable memory block found when allocating memory
  3169.  22h    WORD    last usable memory block found when allocating memory
  3170.  24h    WORD    memory size in paragraphs (used only during initialization)
  3171.  26h    WORD    last entry checked during directory search
  3172.  28h    BYTE    flag: INT 24 returned Fail
  3173.  29h    BYTE    flags: allowable INT 24 actions (passed to INT 24 in AH)
  3174.  2Ah    BYTE    directory flag (00h directory, 01h file)
  3175.  2Bh    BYTE    flag: FFh if Ctrl-Break termination, 00h otherwise
  3176.  2Ch    BYTE    flag: allow embedded blanks in FCB
  3177.  2Dh    BYTE    padding (unused)
  3178.  2Eh    BYTE    day of month
  3179.  2Fh    BYTE    month
  3180.  30h    WORD    year - 1980
  3181.  32h    WORD    number of days since 1-1-1980
  3182.  34h    BYTE    day of week (0 = Sunday)
  3183.  35h    BYTE    flag: console swapped during read from device
  3184.  36h    BYTE    flag: safe to call INT 28 if nonzero
  3185.  37h    BYTE    flag: if nonzero, INT 24 Abort turned into INT 24 Fail
  3186.         (set only during process termination)
  3187.  38h 26 BYTEs    device driver request header (see INT 2F/AX=0802h)
  3188.  52h    DWORD    pointer to device driver entry point (used in calling driver)
  3189.  56h 22 BYTEs    device driver request header for I/O calls
  3190.  6Ch 14 BYTEs    device driver request header for disk status check
  3191.  7Ah    DWORD    pointer to device I/O buffer???
  3192.  7Eh    WORD    ???
  3193.  80h    WORD    ???
  3194.  82h    BYTE    type of PSP copy (00h=simple for INT 21/AH=26h, FFh=make child)
  3195.  83h    BYTE    padding (unused)
  3196.  84h  3 BYTEs    24-bit user number (see AH=30h)
  3197.  87h    BYTE    OEM number (see #0550 at AH=30h)
  3198.  88h    WORD    offset to error code conversion table for INT 25/INT 26
  3199.  8Ah  6 BYTEs    CLOCK$ transfer record (see #0786 at AH=52h)
  3200.  90h    BYTE    device I/O buffer for single-byte I/O functions
  3201.  91h    BYTE    padding??? (unused)
  3202.  92h 128 BYTEs    buffer for filename
  3203. 112h 128 BYTEs    buffer for filename
  3204. 192h 21 BYTEs    findfirst/findnext search data block (see #0764 at AH=4Eh)
  3205. 1A7h 32 BYTEs    directory entry for found file (see #0512 at AH=11h)
  3206. 1C7h 81 BYTEs    copy of current directory structure for drive being accessed
  3207. 218h 11 BYTEs    FCB-format filename for device name comparison
  3208. 223h    BYTE    terminating NUL for above filename
  3209. 224h 11 BYTEs    wildcard destination specification for rename (FCB format)
  3210. 22Fh    BYTE    terminating NUL for above spec
  3211. 230h    BYTE    ???
  3212. 231h    WORD    destination file/directory starting sector
  3213. 233h  5 BYTEs    ???
  3214. 238h    BYTE    extended FCB file attribute
  3215. 239h    BYTE    type of FCB (00h regular, FFh extended)
  3216. 23Ah    BYTE    directory search attributes
  3217. 23Bh    BYTE    file open/access mode
  3218. 23Ch    BYTE    file found/delete flag
  3219.         bit 0: file found
  3220.         bit 4: file deleted
  3221. 23Dh    BYTE    flag: device name found on rename, or file not found
  3222. 23Eh    BYTE    splice flag (file name and directory name together)
  3223. 23Fh    BYTE    flag indicating how DOS function was invoked
  3224.         (00h = direct INT 20/INT 21, FFh = server call AX=5D00h)
  3225. 240h    BYTE    sector position within cluster
  3226. 241h    BYTE    flag: translate sector/cluster (00h no, 01h yes)
  3227. 242h    BYTE    flag: 00h if read, 01h if write
  3228. 243h    BYTE    current working drive number
  3229. 244h    BYTE    cluster factor
  3230. 245h    BYTE    flag: cluster split mode
  3231. 246h    BYTE    line edit (AH=0Ah) insert mode flag (nonzero = on)
  3232. 247h    BYTE    canonicalized filename referred to existing file/dir if FFh
  3233. 248h    BYTE    volume ID flag
  3234. 249h    BYTE    type of process termination (00h-03h) (see AH=4Dh)
  3235. 24Ah    BYTE    file create flag (00h = no, search only)
  3236. 24Bh    BYTE    value with which to replace first byte of deleted file's name
  3237.           (normally E5h, but 00h as described under INT 21/AH=13h)
  3238. 24Ch    DWORD    pointer to Drive Parameter Block for critical error invocation
  3239.         temp: used during process termination
  3240. 250h    DWORD    pointer to stack frame containing user registers on INT 21
  3241. 254h    WORD    stores SP across INT 24
  3242. 256h    DWORD    pointer to DOS Drive Parameter Block for ???
  3243. 25Ah    WORD    saving partial cluster number
  3244. 25Ch    WORD    temp: sector of work current cluster
  3245. 25Eh    WORD    high part of cluster number (only low byte referenced)
  3246. 260h    WORD    ??? temp
  3247. 262h    BYTE    Media ID byte returned by AH=1Bh,1Ch
  3248. 263h    BYTE    padding (unused)
  3249. 264h    DWORD    pointer to device header when filename is character device
  3250. 268h    DWORD    pointer to current SFT
  3251. 26Ch    DWORD    pointer to current directory structure for drive being accessed
  3252. 270h    DWORD    pointer to caller's FCB
  3253. 274h    WORD    number of SFT to which file being opened will refer
  3254. 276h    WORD    temporary storage for file handle
  3255. 278h    DWORD    pointer to a JFT entry in process handle table
  3256.           (see #0535 at AH=26h)
  3257. 27Ch    WORD    offset in DOS DS of first filename argument
  3258. 27Eh    WORD    offset in DOS DS of second filename argument
  3259. 280h    WORD    offset of last component in pathname or FFFFh
  3260. 282h    WORD    offset of transfer address to add
  3261. 284h    WORD    last relative cluster within file being accessed
  3262. 286h    WORD    temp: absolute cluster number being accessed
  3263. 288h    WORD    directory sector number
  3264. 28Ah    WORD    ??? current cluster number
  3265. 28Ch    WORD    current relative sector number within file
  3266. 28Eh    WORD    current sector number
  3267. 290h    WORD    current byte offset within sector
  3268. 292h    DWORD    current offset in file
  3269. 296h    DWORD    temp: file byte count
  3270. 29Ah    WORD    temp: file byte count
  3271. 29Ch    WORD    free file cluster entry
  3272. 29Eh    WORD    last file cluster entry
  3273. 2A0h    WORD    next file cluster number
  3274. 2A2h    DWORD    number of bytes appended to file
  3275. 2A6h    DWORD    pointer to current work disk buffer
  3276. 2AAh    DWORD    pointer to working SFT
  3277. 2AEh    WORD    used by INT 21 dispatcher to store caller's BX
  3278. 2B0h    WORD    used by INT 21 dispatcher to store caller's DS
  3279. 2B2h    WORD    temporary storage while saving/restoring caller's registers
  3280. 2B4h    DWORD    pointer to prev call frame (offset 250h) if INT 21 reentered
  3281.         also switched to for duration of INT 24
  3282. 2B8h 21 BYTEs    FindFirst search data for source file(s) of a rename operation
  3283.         (see #0764 at AH=4Eh)
  3284. 2CDh 32 BYTEs    directory entry for file being renamed (see #0512 at AH=11h)
  3285. 2EDh 331 BYTEs    critical error stack
  3286.    403h     35 BYTEs scratch SFT
  3287. 438h 384 BYTEs    disk stack (functions greater than 0Ch, INT 25,INT 26)
  3288. 5B8h 384 BYTEs    character I/O stack (functions 01h through 0Ch)
  3289. ---DOS 3.2,3.3x only---
  3290. 738h    BYTE    device driver lookahead flag (usually printer) (see AH=64h)
  3291. 739h    BYTE    volume change flag
  3292. 73Ah    BYTE    flag: virtual open
  3293. 73Bh    BYTE    ???
  3294. SeeAlso: #0820
  3295. --------D-215D07-----------------------------
  3296. INT 21 U - DOS 3.1+ network - GET REDIRECTED PRINTER MODE
  3297.     AX = 5D07h
  3298. Return: DL = mode
  3299.         00h redirected output is combined
  3300.         01h redirected output in separate print jobs
  3301. SeeAlso: AX=5D08h,AX=5D09h,INT 2F/AX=1125h
  3302. --------D-215D08-----------------------------
  3303. INT 21 U - DOS 3.1+ network - SET REDIRECTED PRINTER MODE
  3304.     AX = 5D08h
  3305.     DL = mode
  3306.         00h redirected output is combined
  3307.         01h redirected output placed in separate jobs, start new print job
  3308.         now
  3309. SeeAlso: AX=5D07h,AX=5D09h,INT 2F/AX=1125h
  3310. --------D-215D09-----------------------------
  3311. INT 21 U - DOS 3.1+ network - FLUSH REDIRECTED PRINTER OUTPUT
  3312.     AX = 5D09h
  3313. Notes:    forces redirected printer output to be printed, and starts a new print
  3314.       job
  3315.     this function is also supported by 10Net, which calls it Terminate All
  3316.       Spool Jobs, and does not flush if in "combine" mode
  3317. SeeAlso: AX=5D07h,AX=5D08h,INT 2F/AX=1125h
  3318. --------D-215D0A-----------------------------
  3319. INT 21 - DOS 3.1+ - SET EXTENDED ERROR INFORMATION
  3320.     AX = 5D0Ah
  3321.     DS:DX -> 11-word DOS parameter list (see #0817)
  3322. Return: nothing.  next call to AH=59h will return values from fields AX,BX,CX,
  3323.       DX,DI, and ES in corresponding registers
  3324. Notes:    documented for DOS 5+, but undocumented in earlier versions
  3325.     the MS-DOS Programmer's Reference incorrectly states that this call was
  3326.       introduced in DOS 4, and fails to mention that the ERROR structure
  3327.       passed to this function is a DOS parameter list.
  3328. BUG:    DR-DOS 3.41 and 5.0 read the value for ES from the DS field of the DPL;
  3329.       fortunately, MS-DOS ignores the DS field, allowing a generic routine
  3330.       which sets both DS and ES fields to the same value
  3331. SeeAlso: AH=59h/BX=0000h
  3332. --------D-215D0B-----------------------------
  3333. INT 21 OU - DOS 4.x only internal - GET DOS SWAPPABLE DATA AREAS
  3334.     AX = 5D0Bh
  3335. Return: CF set on error
  3336.         AX = error code (see #0811)
  3337.     CF clear if successful
  3338.         DS:SI -> swappable data area list (see #0819)
  3339. Notes:    copying and restoring the swappable data areas allows DOS to be
  3340.       reentered unless it is in a critical section delimited by calls to
  3341.       INT 2A/AH=80h and INT 2A/AH=81h,82h
  3342.     SHARE and other DOS utilities consult the byte at offset 04h in the
  3343.       DOS data segment (see INT 2F/AX=1203h) to determine the SDA format
  3344.       in use: 00h = DOS 3.x, 01h = DOS 4.0-6.0, other = error.
  3345.     DOS 5+ use the SDA format listed below, but revert back to the DOS 3.x
  3346.       call for finding the SDA (see #0818)
  3347. SeeAlso: AX=5D06h,INT 2A/AH=80h,INT 2A/AH=81h,INT 2A/AH=82h,INT 2F/AX=1203h
  3348.  
  3349. Format of DOS 4.x swappable data area list:
  3350. Offset    Size    Description    (Table 0819)
  3351.  00h    WORD    count of data areas
  3352.  02h  N BYTEs    "count" copies of data area record
  3353.         Offset    Size    Description
  3354.          00h    DWORD    address
  3355.          04h    WORD    length and type
  3356.                 bit 15 set if swap always, clear if swap in DOS
  3357.                 bits 14-0: length in bytes
  3358. SeeAlso: #0820
  3359.  
  3360. Format of DOS 4.0-6.0 swappable data area:
  3361. Offset    Size    Description    (Table 0820)
  3362.  -34    BYTE    printer echo flag (00h off, FFh active)
  3363.  -31    BYTE    current switch character (ignored by DOS 5+)
  3364.  -28    BYTE    incremented on each INT 21/AX=5E01h call
  3365.  -27 16 BYTEs    machine name set by INT 21/AX=5E01h
  3366.  -11  5 WORDs    zero-terminated list of offsets which need to be patched to
  3367.           enable critical-section calls (see INT 2A/AH=80h)
  3368.         (all offsets are 0D0Ch, but this list is still present for
  3369.           DOS 3.x compatibility)
  3370.  -1    BYTE    unused padding
  3371. ---start of actual SDA---
  3372.  00h    BYTE    critical error flag ("ErrorMode")
  3373.  01h    BYTE    InDOS flag (count of active INT 21 calls)
  3374.  02h    BYTE    drive on which current critical error occurred or FFh
  3375.  03h    BYTE    locus of last error
  3376.  04h    WORD    extended error code of last error
  3377.  06h    BYTE    suggested action for last error
  3378.  07h    BYTE    class of last error
  3379.  08h    DWORD    ES:DI pointer for last error
  3380.  0Ch    DWORD    current DTA (Disk Transfer Address)
  3381.         note: may point into SDA during the DOS EXEC function
  3382.           (see AH=4Bh), so programs which swap the SDA must be
  3383.           prepared to move the DTA to a private buffer if they
  3384.           might be invoked during an EXEC
  3385.  10h    WORD    current PSP
  3386.  12h    WORD    stores SP across an INT 23
  3387.  14h    WORD    return code from last process termination (zerod after reading
  3388.           with AH=4Dh)
  3389.  16h    BYTE    current drive
  3390.  17h    BYTE    extended break flag
  3391.  18h    BYTE    flag: code page switching
  3392.  19h    BYTE    flag: copy of previous byte in case of INT 24 Abort
  3393. ---remainder need only be swapped if in DOS---
  3394.  1Ah    WORD    value of AX on call to INT 21
  3395.  1Ch    WORD    PSP segment for sharing/network
  3396.  1Eh    WORD    network machine number for sharing/network (0000h = us)
  3397.  20h    WORD    first usable memory block found when allocating memory
  3398.  22h    WORD    best usable memory block found when allocating memory
  3399.  24h    WORD    last usable memory block found when allocating memory
  3400.  26h    WORD    memory size in paragraphs (used only during initialization)
  3401.  28h    WORD    last entry checked during directory search
  3402.  2Ah    BYTE    flag: nonzero if INT 24 Fail
  3403.  2Bh    BYTE    flags: allowable INT 24 responses (passed to INT 24 in AH)
  3404.  2Ch    BYTE    flag: do not set directory if nonzero
  3405.  2Dh    BYTE    flag: program aborted by ^C
  3406.  2Eh    BYTE    flag: allow embedded blanks in FCB
  3407.         may also allow use of "*" wildcard in FCBs
  3408.  2Fh    BYTE    padding (unused)
  3409.  30h    BYTE    day of month
  3410.  31h    BYTE    month
  3411.  32h    WORD    year - 1980
  3412.  34h    WORD    number of days since 1-1-1980
  3413.  36h    BYTE    day of week (0 = Sunday)
  3414.  37h    BYTE    flag: console swapped during read from device
  3415.  38h    BYTE    flag: safe to call INT 28 if nonzero
  3416.  39h    BYTE    flag: abort currently in progress, turn INT 24 Abort into Fail
  3417.  3Ah 30 BYTEs    device driver request header (see INT 2F/AX=0802h) for
  3418.           device calls
  3419.  58h    DWORD    pointer to device driver entry point (used in calling driver)
  3420.  5Ch 22 BYTEs    device driver request header for I/O calls
  3421.  72h 14 BYTEs    device driver request header for disk status check
  3422.  80h    DWORD    pointer to device I/O buffer
  3423.  84h    WORD    ???
  3424.  86h    WORD    ??? (0)
  3425.  88h    BYTE    type of PSP copy (00h=simple for INT 21/AH=26h, FFh=make child)
  3426.  89h    DWORD    start offset of file region to lock/unlock
  3427.  8Dh    DWORD    length of file region to lock/unlock
  3428.  91h    BYTE    padding (unused)
  3429.  92h  3 BYTEs    24-bit user number (see AH=30h)
  3430.  95h    BYTE    OEM number (see #0550 at AH=30h)
  3431.  96h  6 BYTEs    CLOCK$ transfer record (see #0786 at AH=52h)
  3432.  9Ch    BYTE    device I/O buffer for single-byte I/O functions
  3433.  9Dh    BYTE    padding???
  3434.  9Eh 128 BYTEs    buffer for filename
  3435. 11Eh 128 BYTEs    buffer for filename
  3436. 19Eh 21 BYTEs    findfirst/findnext search data block (see #0764 at AH=4Eh)
  3437. 1B3h 32 BYTEs    directory entry for found file (see #0550 at AH=11h)
  3438. 1D3h 88 BYTEs    copy of current directory structure for drive being accessed
  3439. 22Bh 11 BYTEs    FCB-format filename for device name comparison
  3440. 236h    BYTE    terminating NUL for above filename
  3441. 237h 11 BYTEs    wildcard destination specification for rename (FCB format)
  3442. 242h    BYTE    terminating NUL for above filespec
  3443. 243h    BYTE    ???
  3444. 244h    WORD    ???
  3445. 246h  5 BYTEs    ???
  3446. 24Bh    BYTE    extended FCB file attributes
  3447. 24Ch    BYTE    type of FCB (00h regular, FFh extended)
  3448. 24Dh    BYTE    directory search attributes
  3449. 24Eh    BYTE    file open/access mode
  3450. 24Fh    BYTE    ??? flag bits
  3451.         reportedly 00h when deleting a file under MSDOS 5.0
  3452. 250h    BYTE    flag: device name found on rename, or file not found
  3453. 251h    BYTE    splice flag??? (file name and directory name together)
  3454. 252h    BYTE    flag indicating how DOS function was invoked
  3455.         (00h = direct INT 20/INT 21, FFh = server call AX=5D00h)
  3456. 253h    BYTE    sector position within cluster
  3457. 254h    BYTE    ??? (flag: translate sector/cluster)
  3458. 255h    BYTE    ??? (flag: 00h if read, 01h if write)
  3459. 256h    BYTE    current working drive number
  3460. 257h    BYTE    cluster factor
  3461. 258h    BYTE    ???
  3462. 259h    BYTE    line edit (AH=0Ah) insert mode flag (nonzero = on)
  3463. 25Ah    BYTE    canonicalized filename referred to existing file/dir if FFh
  3464. 25Bh    BYTE    volume ID flag
  3465. 25Ch    BYTE    type of process termination (00h-03h) (see AH=4Dh)
  3466. 25Dh    BYTE    ???
  3467. 25Eh    BYTE    ??? file create flag (00h = no, search only)
  3468. 25Fh    BYTE    ??? (value for deleted file's first byte)
  3469. 260h    DWORD    pointer to Drive Parameter Block for critical error invocation
  3470. 264h    DWORD    pointer to stack frame containing user registers on INT 21
  3471. 268h    WORD    stores SP across INT 24
  3472. 26Ah    DWORD    pointer to DOS Drive Parameter Block for ???
  3473. 26Eh    WORD    segment of disk buffer
  3474. 270h    WORD    ??? (saving partial cluster number)
  3475. 272h    WORD    ??? (temp: sector of work current cluster)
  3476. 274h    WORD    ??? (high part of cluster number)
  3477. 276h    WORD    ??? (temp)
  3478. 278h    BYTE    Media ID byte returned by AH=1Bh,1Ch
  3479. 279h    BYTE    ??? (doesn't seem to be referenced)
  3480. 27Ah    DWORD    pointer to device header if filename is character device
  3481. 27Eh    DWORD    pointer to current SFT
  3482. 282h    DWORD    pointer to current directory structure for drive being accessed
  3483. 286h    DWORD    pointer to caller's FCB
  3484. 28Ah    WORD    SFT index to which file being opened will refer
  3485. 28Ch    WORD    temporary storage for file handle
  3486. 28Eh    DWORD    pointer to a JFT entry in process handle table
  3487.           (see #0535 at AH=26h)
  3488. 292h    WORD    offset in DOS DS of first filename argument
  3489. 294h    WORD    offset in DOS DS of second filename argument
  3490. 296h    WORD    ??? (offset of last component in pathname or FFFFh)
  3491. 298h    WORD    offset of transfer address to add
  3492. 29Ah    WORD    last relative cluster within file being accessed
  3493. 29Ch    WORD    temp: absolute cluster number being accessed
  3494. 29Eh    WORD    directory sector number
  3495. 2A0h    WORD    ???
  3496. 2A2h    WORD    ??? directory cluster number
  3497. 2A4h    DWORD    current relative sector number within file
  3498. 2A8h    DWORD    ??? (current sector number)
  3499. 2ACh    WORD    ??? (current byte offset within sector)
  3500. 2AEh    DWORD    current offset in file
  3501. 2B2h    WORD    ???
  3502. 2B4h    WORD    bytes in partial sector
  3503. 2B6h    WORD    number of sectors
  3504. 2B8h    WORD    ??? (free file cluster entry)
  3505. 2BAh    WORD    ??? (last file cluster entry)
  3506. 2BCh    WORD    ??? (next file cluster number)
  3507. 2BEh    DWORD    number of bytes appended to file
  3508. 2C2h    DWORD    pointer to current work disk buffer
  3509. 2C6h    DWORD    pointer to working SFT
  3510. 2CAh    WORD    used by INT 21 dispatcher to store caller's BX
  3511. 2CCh    WORD    used by INT 21 dispatcher to store caller's DS
  3512. 2CEh    WORD    temporary storage while saving/restoring caller's registers
  3513. 2D0h    DWORD    pointer to prev call frame (offset 264h) if INT 21 reentered
  3514.         also switched to for duration of INT 24
  3515. 2D4h    WORD    open mode/action for INT 21/AX=6C00h
  3516. 2D6h    BYTE    ??? (set to 00h by INT 21h dispatcher, 02h when a read is
  3517.           performed, and 01h or 03h by INT 21/AX=6C00h)
  3518. 2D7h    WORD    ??? apparently unused
  3519. 2D9h    DWORD    stored ES:DI for AX=6C00h
  3520. 2DDh    WORD    extended file open action code (see #0891 at AX=6C00h)
  3521. 2DFh    WORD    extended file open attributes (see #0890 at AX=6C00h)
  3522. 2E1h    WORD    extended file open file mode (see AX=6C00h)
  3523. 2E3h    DWORD    pointer to filename to open (see AX=6C00h)
  3524. 2E7h    WORD    ??? temp DX storage or 0000h or temp data buffer size from
  3525.           disk buffer
  3526. 2E9h    WORD    ???
  3527. 2EBh    BYTE    ???
  3528. 2ECh    WORD    stores DS during call to [List-of-Lists + 37h]
  3529. 2EEh    WORD    ???
  3530. 2F0h    BYTE    ???
  3531. 2F1h    WORD    ??? bit flags
  3532. 2F3h    DWORD    pointer to user-supplied filename
  3533. 2F7h    DWORD    pointer to ???
  3534. 2FBh    WORD    stores SS during call to [List-of-Lists + 37h]
  3535. 2FDh    WORD    stores SP during call to [List-of-Lists + 37h]
  3536. 2FFh    BYTE    flag, nonzero if stack switched in calling [List-of-Lists+37h]
  3537. 300h 21 BYTEs    FindFirst search data for source file(s) of a rename operation
  3538.         (see #0764 at AH=4Eh)
  3539. 315h 32 BYTEs    directory entry for file being renamed (see #0512 at AH=11h)
  3540. 335h 331 BYTEs    critical error stack
  3541. 480h 384 BYTEs    disk stack (functions greater than 0Ch, INT 25,INT 26)
  3542. 600h 384 BYTEs    character I/O stack (functions 01h through 0Ch)
  3543. 780h    BYTE    device driver lookahead flag (usually printer) (see AH=64h)
  3544. 781h    BYTE    volume change flag
  3545. 782h    BYTE    flag: virtual open
  3546. 783h    BYTE    ???
  3547. 784h    WORD    ???
  3548. 786h    WORD    ???
  3549. 788h    WORD    ???
  3550. 78Ah    WORD    ???
  3551. SeeAlso: #0818,#0819
  3552. --------D-215E00-----------------------------
  3553. INT 21 - DOS 3.1+ network - GET MACHINE NAME
  3554.     AX = 5E00h
  3555.     DS:DX -> 16-byte buffer for ASCIZ machine name
  3556. Return: CF clear if successful
  3557.         CH = validity
  3558.         00h name invalid
  3559.         nonzero valid
  3560.             CL = NetBIOS number for machine name
  3561.             DS:DX buffer filled with blank-paded name
  3562.     CF set on error
  3563.         AX = error code (01h) (see #0811 at AH=59h)
  3564. Note:    supported by OS/2 v1.3+ compatibility box, PC-NFS
  3565. SeeAlso: AX=5E01h
  3566. --------N-215E00-----------------------------
  3567. INT 21 - 10NET v5.0 - GET MACHINE NAME
  3568.     AX = 5E00h
  3569. Return: CL = redirector's NetBIOS name number
  3570.     ES:DI -> network node ID
  3571. SeeAlso: AX=5E01h"10NET"
  3572. --------D-215E01CH00-------------------------
  3573. INT 21 - DOS 3.1+ network - SET MACHINE NAME
  3574.     AX = 5E01h
  3575.     CH = 00h undefine name (make it invalid)
  3576.        <> 0     define name
  3577.     CL = name number
  3578.     DS:DX -> 15-character blank-padded ASCIZ name
  3579. SeeAlso: AX=5E00h
  3580. --------N-215E01-----------------------------
  3581. INT 21 - 10NET v5.0 - GET LOCAL 10NET CONFIGURATION TABLE
  3582.     AX = 5E01h
  3583.     CX = length of buffer
  3584.     DS:DX -> buffer for 10Net configuration table
  3585. SeeAlso: AX=5E00h"10NET",INT 6F/AH=02h,INT 6F/AH=03h
  3586.  
  3587. Format of 10Net Configuration Table:
  3588. Offset    Size    Description    (Table 0821)
  3589.  00h  8 BYTEs    user name
  3590.  08h 15 BYTEs    node ID
  3591.  17h  3 BYTEs    unique portion of Ethernet address
  3592.  1Ah    BYTE    Who group number
  3593.  1Bh    WORD    services mask (see #0823)
  3594.  1Dh    DWORD    serial number
  3595.  21h    BYTE    maximum concurrent users with same serial number allowed on net
  3596.  22h    BYTE    chat mask (see #0824)
  3597.  23h    BYTE    internal system bits (see #0825)
  3598.  24h  9 BYTEs    version number in format MM.mm.xxx
  3599.  2Dh    BYTE    flag: 01h if machine is a PS/2
  3600.  2Eh    BYTE    flag: 03h if 80386
  3601.  2Fh    BYTE    spool termination mode: 01h concatenate, 02h truncate
  3602.         (see AX=5D09h)
  3603.  30h    WORD    autospool timeout in clock ticks
  3604.  32h    WORD    monitor timeout in clock ticks
  3605.  34h    WORD    unused
  3606.  36h    WORD    chat timeout in clock ticks
  3607.  38h    WORD    netBIOS session timeout in half-seconds
  3608.  3Ah    WORD    datagram send timeout in seconds
  3609.  3Ch    WORD    keyboard value for initiating chat mode
  3610.  3Eh    WORD    Who timeout in clock ticks
  3611.  40h    BYTE    flag: 01h if server should process rom NetBIOS Post return
  3612.  41h    BYTE    flag: 01h if FCBs should be recycled
  3613.  42h  3 BYTEs    signature "DBG"
  3614.  45h    BYTE    last interrupt (21h or 6Fh)
  3615.  46h    BYTE    last INT 21 AH value
  3616.  47h    BYTE    last INT 6F AH value
  3617.  48h    WORD    last item posted
  3618.  4Ah    WORD    last item free-posted
  3619.  4Ch    WORD    last item handled by server
  3620.  4Eh    WORD    last redirector send NCB
  3621.  50h    WORD    last redirector receive NCB
  3622.  52h  4 BYTEs    signature "TABL"
  3623.  56h    WORD    offset of datagram buffer table header
  3624.  58h    WORD    offset of chat buffer table header
  3625.  5Ah    WORD    offset of Raw buffer table header
  3626.  5Ch    WORD    offset of Workstation buffer table header
  3627.  5Eh    WORD    offset of server receive-any table header
  3628.  60h    WORD    offset of Tiny buffer table header
  3629.  62h    WORD    offset of zero-length buffer table (NCBs)
  3630.  64h    WORD    offset of Rdr (Redirector Mount) table header
  3631.  66h    WORD    offset of Ntab (Redirector Session) table header
  3632.  68h    WORD    offset of FCB table header
  3633.  6Ah    WORD    offset of user file handle table header
  3634.  6Ch    WORD    offset of workstation printer RDR extension table header
  3635.  6Eh    WORD    offset of server shared device table header
  3636.  70h    WORD    offset of server connection table header
  3637.  72h    WORD    offset of server login table header
  3638.  74h    WORD    offset of server file table header
  3639.  76h    WORD    offset of server shared file table header
  3640.  78h    WORD    offset of server record lock table header
  3641.  7Ah    WORD    offset of remote printer claim table header
  3642.  7Ch    WORD    offset of remote printer device table header
  3643.  7Eh    WORD    offset of print server mount table header
  3644.  80h    WORD    offset of print server sessions table header
  3645.  82h    WORD    offset of print server print job structure table header
  3646.  84h    WORD    offset of print server pooled device table header
  3647.  86h    WORD    size of workstation buffer
  3648.  88h    WORD    size of server receive-any buffer
  3649.  8Ah    WORD    size of server raw I/O buffer
  3650.  8Ch  6 BYTEs    reserved
  3651.  92h    DWORD    pointer to profile pathname
  3652.  96h    BYTE    datagram retry count
  3653.  97h    BYTE    NetBIOS LAN adapter number
  3654.  98h  6 BYTEs    physical Ethernet address
  3655.  9Eh    BYTE    NetBIOS server name number
  3656.  9Fh    BYTE    NetBIOS redirector name number
  3657.  A0h    BYTE    10Net interrupt number
  3658.  A1h    BYTE    flag: chat is loaded
  3659.  A2h    BYTE    flag: INT 6F APIs permanently loaded
  3660.  A3h    BYTE    flag: file security present
  3661.  A4h    WORD    reserved
  3662.  A6h    BYTE    fixed mount bitmask for drives A:-H:
  3663.  A7h    BYTE    reserved
  3664.  A8h    WORD    10Net system flags (see #0826)
  3665.  AAh    BYTE    monitor flags (see #0827)
  3666.  ABh  5 BYTEs    reserved
  3667.  B0h    WORD    offset of monitor timer block
  3668.  B2h    WORD    offset of server timer block
  3669.  B4h    WORD    offset of chat timer block
  3670.  B6h    WORD    timer chain
  3671.  B8h  4 BYTEs    signature "TALS"
  3672.  BCh    WORD    number of 10Net sends
  3673.  BEh    WORD    number of 10Net receives
  3674.  C0h    WORD    number of no-buffer conditions
  3675.  C2h    WORD    number of dropped posted messages
  3676.  C4h    WORD    number of server NCB errors
  3677.  C6h    WORD    number of redirector NCB errors
  3678.  C8h    WORD    number of datagram send/receive errors
  3679.  CAh    WORD    number of dropped Whos
  3680.  CCh    WORD    number of dropped submits
  3681.  CEh    WORD    number of session aborts
  3682.  D0h    BYTE    number of NetBIOS interface-busy errors
  3683.  D1h    BYTE    last NetBIOS bad post command
  3684.  D2h    BYTE    last NetBIOS bad redirector command
  3685.  D3h    BYTE    do send datagram send/receive error command
  3686.  D4h    DWORD    -> DOS system parameter table
  3687.  D8h    WORD    number of DOS physical drives
  3688.  DAh    WORD    offset of DOS PSP field in DOS data segment
  3689.  DCh    WORD    offset of in-DOS flag in DOS data segment
  3690.  DEh    WORD    DOS data segment
  3691.  E0h    WORD    offset of DOS SFT in DOS data segment
  3692.  E2h    WORD    offset of number-of-physical-units field in DOS data segment
  3693.  E4h    WORD    10Net code segment
  3694.  E6h    WORD    10Net data segment
  3695.  E8h    WORD    10Net common server segment
  3696.  EAh    WORD    10Net file server segment
  3697.  ECh    WORD    10Net print server segment
  3698.  EEh    WORD    10Net remote printer segment
  3699. Note:    documentation lists field at offset D0h as a WORD, but all following
  3700.       offsets are as though it were a BYTE; if it is indeed a WORD, all
  3701.       offsets after D0h must be increased by one byte
  3702.  
  3703. Format of 10Net Table Header:
  3704. Offset    Size    Description    (Table 0822)
  3705.  -16  4 BYTEs    table identifier
  3706.  -12    WORD    peak number of tables allocated
  3707.  -10    WORD    number of tables currently in use
  3708.  -8    WORD    total number of tables
  3709.  -6    WORD    size of each table
  3710.  -4    WORD    offset of first allocated table
  3711.  -2    WORD    offset of first free table
  3712.  
  3713. Bitfields for 10NET services mask:
  3714. Bit(s)    Description    (Table 0823)
  3715.  0    workstation
  3716.  1    file server
  3717.  2    print queue server
  3718.  3    de-spool server
  3719.  
  3720. Bitfields for 10NET chat mask:
  3721. Bit(s)    Description    (Table 0824)
  3722.  0    chat permitted
  3723.  1    bell enabled
  3724.  2    chat keyboard initiated
  3725.  3    in INT 16 handler
  3726.  4    in Get Input
  3727.  5    display has timed out
  3728.  6    chat is idle
  3729.  
  3730. Bitfields for 10NET internal system bits:
  3731. Bit(s)    Description    (Table 0825)
  3732.  0    submit permitted
  3733.  1    submit initiated
  3734.  2    submit executing
  3735.  3    internal client call/chat/spool/autospool
  3736.  4    in spool termination
  3737.  5    print permitted
  3738.  6    waiting for keyboard input
  3739.  
  3740. Bitfields for 10NET System Flags:
  3741. Bit(s)    Description    (Table 0826)
  3742.  0    in NetBIOS
  3743.  1    processing INT 28
  3744.  2    is server
  3745.  3    in net user-DOS function
  3746.  4    in DOS user-DOS function
  3747.  5    in net for user non-DOS function
  3748.  6    in server DOS function
  3749.  7    in server non-DOS function
  3750.  8    in terminate
  3751.  10    in user on server request
  3752.  13    in DOS for user on server
  3753.  14    disable critical error handler
  3754.  
  3755. Bitfields for Monitor Flags:
  3756. Bit(s)    Description    (Table 0827)
  3757.  0    waiting for monitor response
  3758.  4    in monitor get-input routine
  3759.  5    monitor display timeout
  3760.  6    sensing for escape key
  3761. --------D-215E02-----------------------------
  3762. INT 21 - DOS 3.1+ network - SET NETWORK PRINTER SETUP STRING
  3763.     AX = 5E02h
  3764.     BX = redirection list index (see AX=5F02h)
  3765.     CX = length of setup string
  3766.     DS:SI -> setup string
  3767. Return: CF clear if successful
  3768.     CF set on error
  3769.         AX = error code (01h) (see #0811 at AH=59h)
  3770. Note:    also supported by 10NET v5.0
  3771. SeeAlso: AX=5E03h,INT 2F/AX=111Fh
  3772. --------D-215E03-----------------------------
  3773. INT 21 - DOS 3.1+ network - GET NETWORK PRINTER SETUP STRING
  3774.     AX = 5E03h
  3775.     BX = redirection list index (see AX=5F02h)
  3776.     ES:DI -> 64-byte buffer for setup string
  3777. Return: CF clear if successful
  3778.         CX = length of setup string
  3779.         ES:DI buffer filled
  3780.     CF set on error
  3781.         AX = error code (01h) (see #0811 at AH=59h)
  3782. Note:    also supported by 10NET v5.0, but 10NET is documented as using DS:SI
  3783.       instead of ES:DI
  3784. SeeAlso: AX=5E02h,INT 2F/AX=111Fh
  3785. --------D-215E04-----------------------------
  3786. INT 21 - DOS 3.1+ network - SET PRINTER MODE
  3787.     AX = 5E04h
  3788.     BX = redirection list index (see AX=5F02h)
  3789.     DX = mode
  3790.         bit 0: set if binary, clear if text (tabs expanded to blanks)
  3791. Return: CF set on error
  3792.         AX = error code (see #0811 at AH=59h)
  3793.     CF clear if successful
  3794. Note:    calls INT 2F/AX=111Fh with 5E04h on stack
  3795. SeeAlso: AX=5E05h"DOS",INT 2F/AX=111Fh
  3796. --------N-215E04-----------------------------
  3797. INT 21 - 10NET v5.0 - INITIATE PRINT JOB
  3798.     AX = 5E04h
  3799.     BX = zero-based redirection list index (see AX=5F02h)
  3800.     DS:DX -> extended workstation printer setup structure (see #0828)
  3801. Return: CF clear if successful
  3802.     CF set on error
  3803.         AX = error code (see #0811 at AH=59h)
  3804. SeeAlso: AX=5E05h"10NET",AX=5E06h"10NET"
  3805.  
  3806. Format of 10NET extended workstation printer setup structure:
  3807. Offset    Size    Description    (Table 0828)
  3808.  00h    BYTE    notification flags (see #0829)
  3809.  01h    BYTE    job control mask (see #0830)
  3810.  02h    WORD    days to retain file
  3811.  04h    WORD    test print length
  3812.  06h    BYTE    number of copies to print
  3813.  07h    BYTE    compression algorithm
  3814.  08h    BYTE    tab width (00h = don't expand)
  3815.  09h    BYTE    initiation type (00h normal, 01h non-spooled)
  3816.  0Ah 38 BYTEs    job start operation notification instructions
  3817.  30h 32 BYTEs    comment for job
  3818.  50h 64 BYTEs    output filename or non-spooled file
  3819.  
  3820. Bitfields for 10NET notification flags:
  3821. Bit(s)    Description    (Table 0829)
  3822.  0    user at print start
  3823.  1    operator at start, with reply
  3824.  2    user at print completion
  3825.  3    operator at completion, with reply
  3826.  4    user on queue switch
  3827.  5    operator on queue switch, with reply
  3828.  6    user on print error
  3829.  
  3830. Bitfields for 10NET job control mask:
  3831. Bit(s)    Description    (Table 0830)
  3832.  0    print banner page
  3833.  1    eject page at end of job
  3834.  2    mark as "held" (queue but don't print)
  3835.  3    rush job (queue at top)
  3836.  4    overwrite file with zeros before deletion
  3837.  5    hyperspool if possible
  3838. --------D-215E05-----------------------------
  3839. INT 21 - DOS 3.1+ network - GET PRINTER MODE
  3840.     AX = 5E05h
  3841.     BX = redirection list index (see AX=5F02h)
  3842. Return: CF set on error
  3843.         AX = error code (see #0811 at AH=59h)
  3844.     CF clear if successful
  3845.         DX = printer mode (see AX=5E04h)
  3846. Note:    calls INT 2F/AX=111Fh with 5E05h on stack
  3847. SeeAlso: AX=5E04h"DOS",INT 2F/AX=111Fh
  3848. --------N-215E05-----------------------------
  3849. INT 21 - 10NET v5.0 - TERMINATE PRINT JOB
  3850.     AX = 5E05h
  3851.     BX = zero-based redirection list index (see AX=5F02h)
  3852. Return: CF clear if successful
  3853.     CF set on error
  3854.         AX = error code (see #0811 at AH=59h)
  3855. Note:    this call resets the spool termination mode to "truncate"
  3856.       (see AX=5D08h)
  3857. SeeAlso: AX=5E04h"10NET",AX=5E06h
  3858. --------N-215E06-----------------------------
  3859. INT 21 - 10NET v5.0 - GET/SET 10NET WORKSTATION PRINTER SETUP STRUCTURE
  3860.     AX = 5E06h
  3861.     BX = zero-based redirection list index (see AX=5F02h)
  3862.     CX = operation (06h set, 07h get)
  3863.     DS:DX -> buffer for setup structure (same as first nine bytes of
  3864.           workstation printer setup) (see #0828)
  3865. Return: CF clear if successful
  3866.         DS:DX buffer updated on get
  3867.     CF set on error
  3868.         AX = error code (see #0811 at AH=59h)
  3869. SeeAlso: AX=5E04h"10NET",AX=5E05h"10NET"
  3870. --------D-215F00-----------------------------
  3871. INT 21 - DOS 3.1+ network - GET REDIRECTION MODE
  3872.     AX = 5F00h
  3873.     BL = redirection type
  3874.         03h printer
  3875.         04h disk drive
  3876. Return: CF set on error
  3877.         AX = error code (see #0811 at AH=59h)
  3878.     CF clear if successful
  3879.         BH = redirection state
  3880.         00h off
  3881.         01h on
  3882. Note:    calls INT 2F/AX=111Eh with AX on top of the stack
  3883. SeeAlso: AX=5F01h,INT 2F/AX=111Eh
  3884. --------D-215F01-----------------------------
  3885. INT 21 - DOS 3.1+ network - SET REDIRECTION MODE
  3886.     AX = 5F01h
  3887.     BL = redirection type
  3888.         03h printer
  3889.         04h disk drive
  3890.     BH = redirection state
  3891.         00h off
  3892.         01h on
  3893. Return: CF set on error
  3894.         AX = error code (see #0811 at AH=59h)
  3895.     CF clear if successful
  3896. Notes:    when redirection is off, the local device (if any) rather than the
  3897.       remote device is used
  3898.     calls INT 2F/AX=111Eh with AX on top of the stack
  3899. SeeAlso: AX=5F00h,INT 2F/AX=111Eh
  3900. --------D-215F02-----------------------------
  3901. INT 21 - DOS 3.1+ network - GET REDIRECTION LIST ENTRY
  3902.     AX = 5F02h
  3903.     BX = zero-based redirection list index
  3904.     CX = 0000h (LANtastic)
  3905.     DS:SI -> 16-byte buffer for ASCIZ local device name or drive letter
  3906.           followed by colon
  3907.     ES:DI -> 128-byte buffer for ASCIZ network name
  3908. Return: CF clear if successful
  3909.         BH = device status
  3910.         00h valid
  3911.         01h invalid
  3912.         02h valid (connected from inside Windows for Workgroups v3.11)
  3913.         BL = device type
  3914.         03h printer
  3915.         04h disk drive
  3916.         CX = user data previously set with AX=5F03h
  3917.         DS:SI and ES:DI buffers filled
  3918.         DX,BP destroyed
  3919.     CF set on error
  3920.         AX = error code (01h,12h) (see #0811 at AH=59h)
  3921. Notes:    this function is passed through to INT 2F/AX=111Eh by the DOS kernel
  3922.     error code 12h is returned if BX is greater than the size of the list
  3923.     also supported by Banyan VINES, PC-NFS, LANtastic, and 10NET
  3924.     the returned device name may or may not include a colon, depending on
  3925.       the network software
  3926. SeeAlso: AX=5F03h,AX=5F46h,INT 2F/AX=111Eh
  3927. --------D-215F03-----------------------------
  3928. INT 21 - DOS 3.1+ network - REDIRECT DEVICE
  3929.     AX = 5F03h
  3930.     BL = device type
  3931.         03h printer
  3932.         04h disk drive
  3933.     CX = user data to save
  3934.         0000h for LANtastic
  3935.         4E57h ("NW") for NetWare 4.0 requester
  3936.     DS:SI -> ASCIZ local device name (16 bytes max)
  3937.     ES:DI -> ASCIZ network name + ASCIZ password (128 bytes max total)
  3938. Return: CF clear if successful
  3939.     CF set on error
  3940.         AX = error code (01h,03h,05h,08h,0Fh,12h) (see #0811 at AH=59h)
  3941. Notes:    if device type is disk drive, DS:SI must point at either a null string
  3942.       or a string consisting the drive letter followed by a colon; if a
  3943.       null string, the network attempts to access the destination without
  3944.       redirecting a local drive
  3945.     the DOS kernel calls INT 2F/AX=111Eh with AX on top of the stack
  3946.     also supported by Banyan VINES, LANtastic, and 10NET
  3947. SeeAlso: AX=5F02h,AX=5F04h,INT 2F/AX=111Eh
  3948. --------D-215F04-----------------------------
  3949. INT 21 - DOS 3.1+ network - CANCEL REDIRECTION
  3950.     AX = 5F04h
  3951.     DS:SI -> ASCIZ local device name or path
  3952.     CX = 4E57h ("NW") for NetWare 4.0 requester
  3953. Return: CF clear if successful
  3954.     CF set on error
  3955.         AX = error code (01h,03h,05h,08h,0Fh,12h) (see #0811 at AH=59h)
  3956. Notes:    the DS:SI string must be either a local device name, a drive letter
  3957.       followed by a colon, or a network directory beginning with two
  3958.       backslashes
  3959.     the DOS kernel calls INT 2F/AX=111Eh with AX on top of the stack
  3960.     also supported by Banyan VINES, LANtastic, and 10NET
  3961. SeeAlso: AX=5F03h,INT 2F/AX=111Eh
  3962. --------D-215F05-----------------------------
  3963. INT 21 - DOS 4+ network - GET EXTENDED REDIRECTION LIST ENTRY
  3964.     AX = 5F05h
  3965.     BX = redirection list index
  3966.     DS:SI -> buffer for ASCIZ source device name
  3967.     ES:DI -> buffer for destination ASCIZ network path
  3968. Return: CF set on error
  3969.         AX = error code (see #0811 at AH=59h)
  3970.     CF clear if successful
  3971.         AX = server's network process ID handle (10NET)
  3972.         BH = device status flag (bit 0 clear if valid)
  3973.         BL = device type (03h if printer, 04h if drive)
  3974.         CX = stored parameter value (user data) from AX=5F03h
  3975.         BP = NETBIOS local session number
  3976.         DS:SI buffer filled
  3977.         ES:DI buffer filled
  3978. Notes:    the local session number allows sharing the redirector's session number
  3979.     if an error is caused on the NETBIOS LSN, the redirector may be unable
  3980.       to correctly recover from errors
  3981.     the DOS kernel calls INT 2F/AX=111Eh with AX on top of the stack
  3982.     supported by DR-DOS 5.0
  3983.     also supported by 10NET v5.0
  3984. SeeAlso: AX=5F06h"Network",INT 2F/AX=111Eh
  3985. --------O-215F05-----------------------------
  3986. INT 21 - STARLITE architecture - MAP LOCAL DRIVE LETTER TO REMOTE FILE SYSTEM
  3987.     AX = 5F05h
  3988.     DL = drive number (0=A:)
  3989.     DS:SI -> ASCIZ name of the object to map the drive to
  3990. Return: CF set on error
  3991.         AX = error code (see #0811 at AH=59h)
  3992.     CF clear if successful
  3993. SeeAlso: AX=5F06h"STARLITE"
  3994. --------N-215F06-----------------------------
  3995. INT 21 U - Network - GET FULL REDIRECTION LIST
  3996.     AX = 5F06h
  3997.     ???
  3998. Return: ???
  3999. Notes:    similar to AX=5F02h and AX=5F05h, but also returns redirections
  4000.       excluded from those calls for various reasons
  4001.     calls INT 2F/AX=111Eh with AX on top of the stack
  4002. SeeAlso: AX=5F05h"DOS",INT 2F/AX=111Eh
  4003. --------O-215F06-----------------------------
  4004. INT 21 - STARLITE architecture - UNMAP DRIVE LETTER
  4005.     AX = 5F06h
  4006.     DL = drive to be unmapped (0=A:)
  4007. Return: CF set on error
  4008.         AX = error code (see #0811 at AH=59h)
  4009.     CF clear if successful
  4010. SeeAlso: AX=5F05h"STARLITE"
  4011. --------D-215F07-----------------------------
  4012. INT 21 - DOS 5+ - ENABLE DRIVE
  4013.     AX = 5F07h
  4014.     DL = drive number (0=A:)
  4015. Return: CF clear if successful
  4016.     CF set on error
  4017.         AX = error code (0Fh) (see #0811 at AH=59h)
  4018. Notes:    simply sets the "valid" bit in the drive's CDS
  4019.     this function is not supported by Novell DOS 7
  4020. SeeAlso: AH=52h,AX=5F08h"DOS"
  4021. --------O-215F07-----------------------------
  4022. INT 21 - STARLITE architecture - MAKE NAMED OBJECT AVAILABLE ON NETWORK
  4023.     AX = 5F07h
  4024.     DS:SI -> ASCIZ name of object to offer to network
  4025.     ES:DI -> ASCIZ name under which object will be known on the network
  4026.         MUST begin with three slashes
  4027. Return: CF set on error
  4028.         AX = error code (see #0811 at AH=59h)
  4029.     CF clear if successful
  4030. SeeAlso: AX=5F08h"STARLITE"
  4031. --------D-215F08-----------------------------
  4032. INT 21 - DOS 5+ - DISABLE DRIVE
  4033.     AX = 5F08h
  4034.     DL = drive number (0=A:)
  4035. Return: CF clear if successful
  4036.     CF set on error
  4037.         AX = error code (0Fh) (see #0811 at AH=59h)
  4038. Notes:    simply clears the "valid" bit in the drive's CDS
  4039.     this function is not supported by Novell DOS 7
  4040. SeeAlso: AH=52h,AX=5F07h"DOS"
  4041. --------O-215F08-----------------------------
  4042. INT 21 - STARLITE architecture - REMOVE GLOBAL NETWORK NAME OF OBJECT
  4043.     AX = 5F08h
  4044.     DS:SI -> ASCIZ network name (not local name) of object to unshare
  4045. Return: CF set on error
  4046.         AX = error code (see #0811 at AH=59h)
  4047.     CF clear if successful
  4048. SeeAlso: AX=5F07h"STARLITE"
  4049. --------O-215F09-----------------------------
  4050. INT 21 - STARLITE architecture - BIND TO NETWORK DEVICE
  4051.     AX = 5F09h
  4052.     DS:DX -> ASCIZ name of the device driver to attach to
  4053. Return: CF set on error
  4054.         AX = error code (see #0811 at AH=59h)
  4055.     CF clear if successful
  4056. Note:    the STARLITE distributed file system can attach to multiple networks
  4057.       simultaneously
  4058. SeeAlso: AX=5F0Ah
  4059. --------O-215F0A-----------------------------
  4060. INT 21 - STARLITE architecture - DETACH FROM NETWORK DEVICE
  4061.     AX = 5F0Ah
  4062.     DS:DX -> ASCIZ name of device driver to detach from
  4063. Return: CF set on error
  4064.         AX = error code (see #0811 at AH=59h)
  4065.     CF clear if successful
  4066. SeeAlso: AX=5F09h
  4067. --------N-215F30-----------------------------
  4068. INT 21 U - LAN Manager Enhanced DOS - GET REDIRECTOR VERSION
  4069.     AX = 5F30h
  4070. Return: AX = version (AH=major,AL=minor)
  4071. --------N-215F32-----------------------------
  4072. INT 21 u - Named Pipes - LOCAL DosQNmPipeInfo
  4073.     AX = 5F32h
  4074.     BX = handle
  4075.     CX = size of _PIPEINFO structure
  4076.     DX = level (must be 0001h)
  4077.     DS:SI -> _PIPEINFO structure (see #0831)
  4078. Return: CF clear if successful
  4079.         _PIPEINFO structure filled in
  4080.     CF set on error
  4081.         AX = error code
  4082. Note:    this function was introduced by LAN Manager but is also supported by
  4083.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  4084.       Machines, and others
  4085. SeeAlso: AX=5F33h,AX=5F34h
  4086.  
  4087. Format of Named Pipes _PIPEINFO structure:
  4088. Offset    Size    Description    (Table 0831)
  4089.  00h    WORD    size of outgoing buffer
  4090.  02h    WORD    size of incoming buffer
  4091.  04h    BYTE    maximum number of instances allowed
  4092.  05h    BYTE    current number of instances
  4093.  06h    BYTE    length of the name (including terminating NUL)
  4094.  07h  N BYTEs    name
  4095. --------N-215F33-----------------------------
  4096. INT 21 u - Named Pipes - LOCAL DosQNmPHandState
  4097.     AX = 5F33h
  4098.     BX = handle
  4099. Return: CF clear if successful
  4100.         AH = pipe mode bit mask (see #0832)
  4101.         AL = maximum number of instances
  4102.     CF set on error
  4103.         AX = error code
  4104. Note:    this function was introduced by LAN Manager but is also supported by
  4105.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  4106.       Machines, and others
  4107. SeeAlso: AX=5F32h,AX=5F34h
  4108.  
  4109. Bitfields for Named Pipes pipe mode:
  4110. Bit(s)    Description    (Table 0832)
  4111.  7    set if nonblocking, clear if blocking
  4112.  6    set if server end, clear if client end
  4113.  2    set if write in message mode, clear if write in byte mode
  4114.  0    set if read in message mode, clear if read in byte mode
  4115. --------N-215F34-----------------------------
  4116. INT 21 u - Named Pipes - LOCAL DosSetNmPHandState
  4117.     AX = 5F34h
  4118.     BX = handle
  4119.     CX = pipe mode bit mask
  4120.         bit 15: set if nonblocking, clear if blocking
  4121.         bit     8: set if read in message mode, clear if read in byte mode
  4122. Return: CF clear if successful
  4123.     CF set if error
  4124.         AX = error code
  4125. Note:    this function was introduced by LAN Manager but is also supported by
  4126.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  4127.       Machines, and others
  4128. SeeAlso: AX=5F32h,AX=5F33h,AX=5F36h
  4129. --------N-215F35-----------------------------
  4130. INT 21 u - Named Pipes - LOCAL DosPeekNmPipe
  4131.     AX = 5F35h
  4132.     BX = handle
  4133.     CX = buffer length
  4134.     DS:SI -> buffer
  4135. Return:    CF set on error
  4136.         AX = error code
  4137.     CF clear if successful (LAN Manager v1-v2)
  4138.     AX = 0000h if successful (LAN Manager 3.x)
  4139.     ---if successful---
  4140.         CX = bytes read
  4141.         SI = bytes left in the pipe
  4142.         DX = bytes left in the current message
  4143.         AX = pipe status (v1-v2) (see #0833)
  4144.         DI = pipe status (v3.x)
  4145. Note:    this function was introduced by LAN Manager but is also supported by
  4146.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  4147.       Machines, and others
  4148. SeeAlso: AX=5F38h,AX=5F39h,AX=5F51h
  4149.  
  4150. (Table 0833)
  4151. Values for pipe status:
  4152.  0001h    disconnected
  4153.  0002h    listening
  4154.  0003h    connected
  4155.  0004h    closing
  4156. --------N-215F36-----------------------------
  4157. INT 21 u - Named Pipes - LOCAL DosTransactNmPipe
  4158.     AX = 5F36h
  4159.     BX = handle
  4160.     CX = in buffer length
  4161.     DS:SI -> in buffer
  4162.     DX = out buffer length
  4163.     ES:DI -> out buffer
  4164. Return: CF clear if successful
  4165.         CX = bytes read
  4166.     CF set on error
  4167.         AX = error code
  4168. Note:    this function was introduced by LAN Manager but is also supported by
  4169.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  4170.       Machines, and others
  4171. SeeAlso: AX=5F34h,AX=5F37h
  4172. --------N-215F37-----------------------------
  4173. INT 21 u - Named Pipes - DosCallNmPipe
  4174.     AX = 5F37h
  4175.     DS:SI -> DosCallNmPipe stack frame (see #0834)
  4176. Return: CF clear if successful
  4177.         CX = bytes read
  4178.     CF set on error
  4179.         AX = error code
  4180. Note:    this function was introduced by LAN Manager but is also supported by
  4181.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  4182.       Machines, and others
  4183. SeeAlso: AX=5F36h,AX=5F38h
  4184.  
  4185. Format of Named Pipes DosCallNmPipe stack frame:
  4186. Offset    Size    Description    (Table 0834)
  4187.  00h    DWORD    timeout
  4188.  04h    DWORD    -> bytes read WORD (not used!!)
  4189.  08h    WORD    out buffer length
  4190.  0Ah    DWORD    address of out buffer
  4191.  0Eh    WORD    in buffer length
  4192.  10h    DWORD    address of in buffer
  4193.  14h    DWORD    address of pipe name
  4194. --------N-215F38-----------------------------
  4195. INT 21 u - Named Pipes - LOCAL DosWaitNmPipe - AWAIT AVAIL. OF PIPE INSTANCE
  4196.     AX = 5F38h
  4197.     DS:DX -> pipe name
  4198.     BX:CX = timeout value
  4199. Return: CF clear if successful
  4200.     CF set if error
  4201.         AX = error code
  4202. Notes:    when a client gets a return code of ERROR_PIPE_BUSY on attempting to
  4203.       open a pipe, it should issue this call to wait until the pipe
  4204.       instance becomes available again; on return from this call, the
  4205.       client must attempt to open the pipe once again
  4206.     this function was introduced by LAN Manager but is also supported by
  4207.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  4208.       Machines, and others
  4209. SeeAlso: AX=5F37h,AX=5F39h
  4210. --------N-215F39-----------------------------
  4211. INT 21 U - Named Pipes - LOCAL DosRawReadNmPipe
  4212.     AX = 5F39h
  4213.     BX = handle
  4214.     CX = buffer length
  4215.     DS:DX -> buffer
  4216. Return: CF clear if successful
  4217.         CX = bytes read
  4218.     CF set if error
  4219.         AX = error code
  4220. Notes:    this function was introduced by LAN Manager but is also supported by
  4221.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  4222.       Machines, and others
  4223.     not documented in the LAN Manager Toolkit
  4224. SeeAlso: AX=5F35h,AX=5F3Ah,INT 2F/AX=1186h
  4225. --------N-215F3A-----------------------------
  4226. INT 21 U - Named Pipes - LOCAL DosRawWriteNmPipe
  4227.     AX = 5F3Ah
  4228.     BX = handle
  4229.     CX = buffer length
  4230.     DS:DX -> buffer
  4231. Return: CF clear if successful
  4232.         CX = bytes written
  4233.     CF set if error
  4234.         AX = error code
  4235. Notes:    this function was introduced by LAN Manager but is also supported by
  4236.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  4237.       Machines, and others
  4238.     not documented in the LAN Manager Toolkit
  4239. SeeAlso: AX=5F39h,AX=5F3Bh,INT 2F/AX=118Fh
  4240. --------N-215F3B-----------------------------
  4241. INT 21 u - LAN Manager Enhanced DOS - NetHandleSetInfo
  4242.     AX = 5F3Bh
  4243.     BX = handle
  4244.     CX = handle_info_1 structure length or sizeof DWORD
  4245.     DI = parameter number to set
  4246.         0000h all
  4247.         0001h number of milliseconds
  4248.         0002h number of characters
  4249.     DS:DX -> handle_info_1 structure (DI=0000h) (see #0835)
  4250.         or DWORD (DI=0001h or 0002h)
  4251.     SI = level of information (0001h)
  4252. Return: CF clear if successful
  4253.         CX = total bytes available
  4254.     CF set if error
  4255.         AX = error code
  4256. SeeAlso: AX=5F3Ch
  4257.  
  4258. Format of LAN Manager handle_info_1 structure:
  4259. Offset    Size    Description    (Table 0835)
  4260.  00h    DWORD    number of milliseconds which workstation collects data before
  4261.           it sends the data to the named pipe
  4262.  04h    DWORD    number of characters which workstation collects before it
  4263.           sends the data to the named pipe
  4264. --------N-215F3C-----------------------------
  4265. INT 21 u - LAN Manager Enhanced DOS - NetHandleGetInfo
  4266.     AX = 5F3Ch
  4267.     BX = handle
  4268.     CX = length of handle_info_1 structure
  4269.     DS:DX -> handle_info_1 structure (see #0835)
  4270.     SI = level of information (must be 0001h)
  4271. Return: CF clear if successful
  4272.         CX = total bytes available
  4273.     CF set if error
  4274.         AX = error code
  4275. SeeAlso: AX=5F3Bh
  4276. --------N-215F3D-----------------------------
  4277. INT 21 U - LAN Manager Enhanced DOS - WRITE MAILSLOT???
  4278.     AX = 5F3Dh
  4279.     ???
  4280. Return: ???
  4281. --------N-215F3E-----------------------------
  4282. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetSpecialSMB
  4283.     AX = 5F3Eh
  4284.     ???
  4285. Return: ???
  4286. Note:    This function is not documented anywhere in the LAN Manager 2.x Toolkit
  4287.       but was documented in LAN Manager 1.x manuals.
  4288. --------N-215F3F-----------------------------
  4289. INT 21 U - LAN Manager Enhanced DOS - REMOTE API CALL
  4290.     AX = 5F3Fh
  4291.     CX = api number
  4292.     ES:DI -> data descriptor
  4293.     ES:SI -> parameter descriptor
  4294.     ES:DX -> auxiliary descriptor (if DX <> 0)
  4295.     ???
  4296. Return: ???
  4297. --------N-215F40-----------------------------
  4298. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetMessageBufferSend
  4299.     AX = 5F40h
  4300.     DS:DX -> NetMessageBufferSend parameter structure (see #0836)
  4301. Return: AX = error code
  4302.  
  4303. Format of LAN Manager NetMessageBufferSend parameter structure:
  4304. Offset    Size    Description    (Table 0836)
  4305.  00h    DWORD    -> recipient name (name for specific user, name* for domain
  4306.               wide name, * for broadcast)
  4307.  04h    DWORD    -> buffer
  4308.  08h    WORD    length of buffer
  4309. --------N-215F41-----------------------------
  4310. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetServiceEnum
  4311.     AX = 5F41h
  4312.     BL = level of detail (0000h, 0001h or 0002h)
  4313.     CX = buffer length
  4314.     ES:DI -> buffer of service_info_0, service_info_1, or service_info_2
  4315.         (see #0837,#0838,#0839)
  4316. Return: CF clear if successful
  4317.         CX = entries read
  4318.         DX = total available
  4319.     CF set on error
  4320.         AX = error code
  4321.  
  4322. Format of LAN Manager service_info_0 structure:
  4323. Offset    Size    Description    (Table 0837)
  4324.  00h 16 BYTEs    name
  4325. SeeAlso: #0838,#0839
  4326.  
  4327. Format of service_info_1 structure:
  4328. Offset    Size    Description    (Table 0838)
  4329.  00h 16 BYTEs    name
  4330.  10h    WORD    status bitmask (see #0840)
  4331.  12h    DWORD    status code (see #0841)
  4332.         (also see Microsoft LAN Manager Programmer's Reference)
  4333.  16h    WORD    process id
  4334. SeeAlso: #0837,#0839
  4335.  
  4336. Format of service_info_2 structure:
  4337. Offset    Size    Description    (Table 0839)
  4338.  00h 16 BYTEs    name
  4339.  10h    WORD    status bitmask (see #0840)
  4340.  12h    DWORD    status code (see #0841)
  4341.  16h    WORD    process id
  4342.  18h 64 BYTEs    text
  4343. SeeAlso: #0837,#0838
  4344.  
  4345. Bitfields for LAN Manager status bitmask:
  4346. Bit(s)    Description    (Table 0840)
  4347.  0,1    00 uninstall
  4348.         01 install pending
  4349.         10 uninstall pending
  4350.         11 installed
  4351.  2,3    00 active
  4352.         01 Continue pending
  4353.         10 Pause pending
  4354.         11 paused
  4355.  4    uninstallable
  4356.  5    pausable
  4357.  8    disk redirector paused
  4358.  9    spooled device redirector paused (printing)
  4359.  10    communication device redirector paused
  4360.  
  4361. (Table 0841)
  4362. Values for LAN Manager status code:
  4363.  high word
  4364.     3051 Bad parameter value
  4365.     3052 A parameter is missing
  4366.     3053 An unknown parameter was specified
  4367.     3054 The resource is insufficient
  4368.     3055 Configuration is faulty
  4369.     3056 An MS-DOS or MS OS/2 error occured
  4370.     3057 An internal error occured
  4371.     3058 An ambiguous parameter name was given
  4372.     3059 A duplicate parameter exists
  4373.     3060 The service was terminated by NetSeviceControl when it did not respond
  4374.     3061 The service program file could not be executed
  4375.     3062 The subservice failed to start
  4376.     3063 There is a conflict in the value or use of these parameters
  4377.     3064 There is a problem with the file
  4378.  low word
  4379.     3070 There is insufficient memory
  4380.     3071 There is insufficeient disk space
  4381.     3072 Unable to create thread
  4382.     3073 Unable to create process
  4383.     3074 A security failure occured
  4384.     3075 There is bad or missing default path
  4385.     3076 Network software is not installed
  4386.     3077 Server software is not installed
  4387.     3078 The server could not access the UAS database
  4388.     3079 The action requires user-level security
  4389.     3080 The log directory is invalid
  4390.     3081 The LAN group specificed could not be used
  4391.     3082 The computername is being used as a message alias on another computer
  4392.     3083 The workstation failed to announce the servername
  4393.     3084 The user accounts system is not configured properly
  4394. --------N-215F42-----------------------------
  4395. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetServiceControl
  4396.     AX = 5F42h
  4397.     DH = opcode
  4398.         00h interrogate status
  4399.         01h pause
  4400.         02h continue
  4401.         03h uninstall
  4402.     DL = argument
  4403.         01h disk resource
  4404.         02h print resource
  4405.         04h communications resource (not implemented for DOS)
  4406.     ES:BX -> NetServiceControl parameter structure (see #0842)
  4407. Return: CF clear if successful
  4408.     CF set on error
  4409.         AX = error code
  4410.  
  4411. Format of LAN Manager NetServiceControl parameter structure:
  4412. Offset    Size    Description    (Table 0842)
  4413.  00h    DWORD    -> service name
  4414.  04h    WORD    result buffer size
  4415.  06h    DWORD    -> result buffer as service_info_2 structure
  4416. --------N-215F43-----------------------------
  4417. INT 21 u - LAN Manager Enhanced DOS - LOCAL DosPrintJobGetId
  4418.     AX = 5F43h
  4419.     BX = handle of remote print job
  4420.     CX = size of PRIDINFO struture
  4421.     ES:DI -> PRIDINFO structure (see #0843)
  4422. Return: CF clear if successful
  4423.         PRIDINFO filled in
  4424.     CF set on error
  4425.         AX = error code
  4426.  
  4427. Format of LAN Manager PRIDINFO structure:
  4428. Offset    Size    Description    (Table 0843)
  4429.  00h    WORD    job id
  4430.  02h 16 BYTEs    server name
  4431.  12h 13 BYTEs    queue name
  4432.  1Fh  1 BYTE    pad
  4433. --------N-215F44-----------------------------
  4434. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetWkstaGetInfo
  4435.     AX = 5F44h
  4436.     BX = information level (00h, 01h, or 0Ah)
  4437.     CX = buffer size
  4438.     ES:DI -> buffer in which to store info
  4439. Return: AX = error code
  4440.     DX = amount of buffer used (or required)
  4441. SeeAlso: AX=5F45h,AX=5F49h
  4442. --------N-215F45-----------------------------
  4443. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetWkstaSetInfo
  4444.     AX = 5F45h
  4445.     BX = level (0000h or 0001h)
  4446.     CX = buffer size
  4447.     DX = parameter to set
  4448.     ES:DI -> buffer
  4449. Return: CF clear if successful
  4450.     CF set if error
  4451.         AX = error code
  4452. SeeAlso: AX=5F44h
  4453. --------N-215F46-----------------------------
  4454. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetUseEnum
  4455.     AX = 5F46h
  4456.     BX = level (0000h or 0001h)
  4457.     CX = size of buffer
  4458.     ES:DI -> buffer of use_info_0 or use_info_1 structures
  4459.           (see #0844,#0845)
  4460. Return: CF clear if successful
  4461.         CX = entries read
  4462.         DX = total available entries
  4463.     CF set if error
  4464.         AX = error code
  4465. SeeAlso: AX=5F47h,AX=5F48h,AX=5F4Ch
  4466.  
  4467. Format of LAN Manager use_info_0 structure:
  4468. Offset    Size    Description    (Table 0844)
  4469.  00h  9 BYTEs    local device name
  4470.  09h    BYTE    padding
  4471.  0Ah    DWORD    -> remote device name in UNC form \\server\share
  4472. SeeAlso: #0845
  4473.  
  4474. Format of LAN Manager use_info_1 structure:
  4475. Offset    Size    Description    (Table 0845)
  4476.  00h  9 BYTEs    Local device name
  4477.  09h    BYTE    padding
  4478.  0Ah    DWORD    -> remote device name in UNC form \\server\share
  4479.  0Eh    DWORD    -> password
  4480.  12h    WORD    ignored
  4481.  14h    WORD    use type (-1 wildcard, 0 disk, 1 print, 2 com, 3 ipc)
  4482.  16h    WORD    ignored
  4483.  18h    WORD    ignored
  4484. SeeAlso: #0844
  4485. --------N-215F47-----------------------------
  4486. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetUseAdd
  4487.     AX = 5F47h
  4488.     BX = level (0001h)
  4489.     CX = size of use_info_1 structure
  4490.     ES:DI -> use_info_1 structure (see #0845)
  4491. Return: CF clear on success
  4492.     CF set on error
  4493.         AX = error code
  4494. SeeAlso: AX=5F46h,AX=5F48h
  4495. --------N-215F48-----------------------------
  4496. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetUseDel
  4497.     AX = 5F48h
  4498.     BX = force level
  4499.         0000h no force
  4500.         0001h force
  4501.         0002h lots of force
  4502.     ES:DI -> buffer as either the local device name or UNC remote name
  4503. Return: CF clear on success
  4504.     CF set on error
  4505.         AX = error code
  4506. SeeAlso: AX=5F46h,AX=5F48h,AX=5F49h
  4507. --------N-215F49-----------------------------
  4508. INT 21 u - LAN Manager Enhanced DOS - NetUseGetInfo
  4509.     AX = 5F49h
  4510.     DS:DX -> NetUseGetInfo parameter structure
  4511. Return: CF clear on success
  4512.         DX = total available
  4513.     CF set on error
  4514.         AX = error code
  4515. SeeAlso: AX=5F44h,AX=5F47h
  4516.  
  4517. Format of LAN Manager NetUseGetInfo parameter structure:
  4518. Offset    Size    Description    (Table 0846)
  4519.  00h    DWORD    pointer to either the local device name or UNC remote name
  4520.  04h    WORD    level of information (0000h or 0001h)
  4521.  06h    DWORD    pointer to buffer of use_info_0 or use_info_1 structures
  4522.  0Ah    WORD    length of buffer
  4523. --------N-215F4A-----------------------------
  4524. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetRemoteCopy
  4525.     AX = 5F4Ah
  4526.     DS:DX -> NetRemoteCopy parameter structure (see #0847)
  4527. Return: CF clear if successful
  4528.     CF set on error
  4529.         AX = error code
  4530. SeeAlso: AX=5F4Bh
  4531.  
  4532. Format of LAN Manager NetRemoteCopy parameter structure:
  4533. Offset    Size    Description    (Table 0847)
  4534.  00h    DWORD    -> source name as UNC
  4535.  04h    DWORD    -> destination name as UNC
  4536.  08h    DWORD    -> source password
  4537.  0Ch    DWORD    -> destination password
  4538.  10h    WORD    destination open bitmap
  4539.         if destination path exists
  4540.             0000h open fails
  4541.             0001h file is appended
  4542.             0002h file is overwritten
  4543.         if destination path doesn't exist
  4544.             0000h open fails
  4545.             0010h file is created
  4546.  12h    WORD    copy control bitmap (see #0848)
  4547.  14h    DWORD    -> copy_info buffer
  4548.  18h    WORD    length of copy_info buffer
  4549.  
  4550. Bitfields for LAN Manager copy control:
  4551. Bit(s)    Description    (Table 0848)
  4552.  0    destination must be a file
  4553.  1    destination must be a directory
  4554.  2    destination is opened in ascii mode instead of binary
  4555.  3    source is opened in ascii mode instead of binary
  4556.  4    verify all write operations
  4557. --------N-215F4B-----------------------------
  4558. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetRemoteMove
  4559.     AX = 5F4Bh
  4560.     DS:DX -> NetRemoteMove parameter structure
  4561. Return: CF clear if successful
  4562.     CF set on error
  4563.         AX = error code
  4564. SeeAlso: AX=5F4Ah
  4565.  
  4566. Format of LAN Manager NetRemoteMove parameter structure:
  4567. Offset    Size    Description    (Table 0849)
  4568.  00h    DWORD    -> source name as UNC
  4569.  04h    DWORD    -> destination name as UNC
  4570.  08h    DWORD    -> source password
  4571.  0Ch    DWORD    -> destination password
  4572.  10h    WORD    destination open bitmap
  4573.         if destination path exists
  4574.             0000h open fails
  4575.             0001h file is appended
  4576.             0002h file is overwritten
  4577.         if destination path doesn't exist
  4578.             0000h open fails
  4579.             0010h file is created
  4580.  12h    WORD    move control bitmap
  4581.             0001h destination must be a file
  4582.             0002h destination must be a directory
  4583.  14h    DWORD    -> move_info buffer
  4584.  18h    WORD    length of move_info buffer
  4585. --------N-215F4C-----------------------------
  4586. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetServerEnum
  4587.     AX = 5F4Ch
  4588.     BX = level (0000h or 0001h)
  4589.     CX = buffer length
  4590.     ES:DI -> buffer in which to store information
  4591. Return: CF clear if successful
  4592.         ES:DI -> server_info_X structures (depending on level)
  4593.           (see #0850,#0851)
  4594.         BX = entries read
  4595.         CX = total entries available
  4596.     CF set on error
  4597.         AX = error code
  4598. Notes:    this function is also supported by the Novell DOS Named Pipe Extender
  4599.     this function has been obseleted by NetServerEnum2
  4600. SeeAlso: AX=5F53h
  4601.  
  4602. Format of LAN Manager server_info_0 structure:
  4603. Offset    Size    Description    (Table 0850)
  4604.  00h 16 BYTEs    name
  4605. SeeAlso: #0851
  4606.  
  4607. Format of LAN Manager server_info_1 structure:
  4608. Offset    Size    Description    (Table 0851)
  4609.  00h 16 BYTEs    name
  4610.  10h    BYTE    major version in lower nibble
  4611.  11h    BYTE    minor version
  4612.  12h    DWORD    server type bitmask (see #0852)
  4613.  16h    DWORD    -> comment string
  4614. SeeAlso: #0850
  4615.  
  4616. Bitfields for LAN Manager server type:
  4617. Bit(s)    Description    (Table 0852)
  4618.  0    workstation
  4619.  1    server
  4620.  2    SQL server
  4621.  3    primary domain controller
  4622.  4    backup domain controller
  4623.  5    time server
  4624.  6    Apple File Protocol (AFP) server
  4625.  7    Novell server
  4626.  8    Domain Member (v2.1+)
  4627.  9    Print Queue server (v2.1+)
  4628.  10    Dialin server (v2.1+)
  4629.  11    Unix server (v2.1+)
  4630. --------N-215F4D-----------------------------
  4631. INT 21 u - LAN Manager Enhanced DOS - DosMakeMailslot
  4632.     AX = 5F4Dh
  4633.     BX = message size
  4634.     CX = mailslot size (must be bigger than message size by at least 1)
  4635.                (minimum 1000h, maximum FFF6h)
  4636.                (buffer must be 9 bytes bigger than this)
  4637.     DS:SI -> name
  4638.     ES:DI -> memory buffer
  4639. Return: CF clear if successful
  4640.         AX = handle
  4641.     CF set on error
  4642.         AX = error code
  4643. SeeAlso: AX=5F4Eh,AX=5F4Fh,AX=5F50h,AX=5F51h
  4644. --------N-215F4E-----------------------------
  4645. INT 21 u - LAN Manager Enhanced DOS - DosDeleteMailslot
  4646.     AX = 5F4Eh
  4647.     BX = handle
  4648. Return: CF clear if successful
  4649.         ES:DI -> memory to be freed (allocated during DosMakeMailslot)
  4650.     CF set on error
  4651.         AX = error code
  4652. SeeAlso: AX=5F4Dh,AX=5F4Fh
  4653. --------N-215F4F-----------------------------
  4654. INT 21 u - LAN Manager Enhanced DOS - DosMailslotInfo
  4655.     AX = 5F4Fh
  4656.     BX = handle
  4657. Return: CF clear if successful
  4658.         AX = max message size
  4659.         BX = mailslot size
  4660.         CX = next message size
  4661.         DX = next message priority
  4662.         SI = number of messages waiting
  4663.     CF set on error
  4664.         AX = error code
  4665. SeeAlso: AX=5F4Dh,AX=5F4Eh,AX=5F50h
  4666. --------N-215F50-----------------------------
  4667. INT 21 u - LAN Manager Enhanced DOS - DosReadMailslot
  4668.     AX = 5F50h
  4669.     BX = handle
  4670.     DX:CX = timeout
  4671.     ES:DI -> buffer
  4672. Return: CF clear if successful
  4673.         AX = bytes read
  4674.         CX = next item's size
  4675.         DX = next item's priority
  4676.     CF set on error
  4677.         AX = error code
  4678. SeeAlso: AX=5F4Dh,AX=5F4Fh,AX=5F51h,AX=5F52h
  4679. --------N-215F51-----------------------------
  4680. INT 21 u - LAN Manager Enhanced DOS - DosPeekMailslot
  4681.     AX = 5F51h
  4682.     BX = handle
  4683.     ES:DI -> buffer
  4684. Return: CF clear if successful
  4685.         AX = bytes read
  4686.         CX = next item's size
  4687.         DX = next item's priority
  4688.     CF set on error
  4689.         AX = error code
  4690. SeeAlso: AX=5F35h,AX=5F4Fh,AX=5F50h,AX=5F52h
  4691. --------N-215F52-----------------------------
  4692. INT 21 u - LAN Manager Enhanced DOS - DosWriteMailslot
  4693.     AX = 5F52h
  4694.     BX = class
  4695.     CX = length of buffer
  4696.     DX = priority
  4697.     ES:DI -> DosWriteMailslot parameter structure (see #0853)
  4698.     DS:SI -> mailslot name
  4699. Return: CF clear if successful
  4700.     CF set on error
  4701.         AX = error code
  4702. SeeAlso: AX=5F4Fh,AX=5F50h,AX=5F51h
  4703.  
  4704. Format of LAN Manager DosWriteMailslot parameter structure:
  4705. Offset    Size    Description    (Table 0853)
  4706.  00h    DWORD    timeout
  4707.  04h    DWORD    -> buffer
  4708. --------N-215F53-----------------------------
  4709. INT 21 u - LAN Manager Enhanced DOS - NetServerEnum2
  4710.     AX = 5F53h
  4711.     DS:SI -> NetServerEnum2 parameter structure (see #0854)
  4712. Return: CF clear if successful
  4713.         BX = entries read
  4714.         CX = total entries available
  4715.     CF set on error
  4716.         AX = error code
  4717. SeeAlso: AX=5F4Ch
  4718.  
  4719. Format of LAN Manager NetServerEnum2 parameter structure:
  4720. Offset    Size    Description    (Table 0854)
  4721.  00h    WORD    level (0000h or 0001h)
  4722.  02h    DWORD    -> buffer as array of server_info_??? structures
  4723.  06h    WORD    length of buffer
  4724.  08h    DWORD    server type bitmask (see #0855)
  4725.  0Ch    DWORD    -> Domain name (may be 0000h:0000h for all local domains)
  4726.  
  4727. Bitfields for LAN Manager server type:
  4728. Bit(s)    Description    (Table 0855)
  4729.  0    workstation
  4730.  1    server
  4731.  2    SQL server
  4732.  3    primary domain controller
  4733.  4    backup domain controller
  4734.  5    time server
  4735.  6    Apple File Protocol (AFP) server
  4736.  7    Novell server
  4737.  8    Domain Member (v2.1+)
  4738.  9    Print Queue server (v2.1+)
  4739.  10    Dialin server (v2.1+)
  4740.  11    Unix server (v2.1+)
  4741. Note:    set all (FFFFFFFFh) for All Types
  4742.  
  4743. Format of LAN Manager server_info_0 structure:
  4744. Offset    Size    Description    (Table 0856)
  4745.  00h 16 BYTEs    name
  4746.  
  4747. Format of LAN Manager server_info_1 structure:
  4748. Offset    Size    Description    (Table 0857)
  4749.  00h 16 BYTEs    name
  4750.  10h    BYTE    major version in lower nibble
  4751.  11h    BYTE    minor version
  4752.  12h    DWORD    server type (bits 0-11) (see #0855)
  4753.  16h    DWORD    -> comment string
  4754. --------N-215F55----------------------------
  4755. INT 21 U - LAN Manager Enhanced DOS - KILL ALL CONNECTIONS???
  4756.     AX = 5F55h
  4757.     BX = ???
  4758. Return: CF clear if successful
  4759.     CF set on error
  4760.         AX = error code
  4761. --------N-215F80-----------------------------
  4762. INT 21 - LANtastic - GET LOGIN ENTRY
  4763.     AX = 5F80h
  4764.     BX = login entry index (0-based)
  4765.     ES:DI -> 16-byte buffer for machine name
  4766. Return: CF clear if successful
  4767.         buffer filled with machine name ("\\" prefix removed)
  4768.         DL = adapter number (v3+)
  4769.     CF set on error
  4770.         AX = error code
  4771. Note:    the login entry index corresponds to the value BX used in AX=5F83h
  4772. SeeAlso: AX=5F83h
  4773. --------N-215F81-----------------------------
  4774. INT 21 - LANtastic - LOGIN TO SERVER
  4775.     AX = 5F81h
  4776.     ES:DI -> ASCIZ login path followed immediately by ASCIZ password
  4777.     BL = adapter number
  4778.         FFh try all valid adapters
  4779.         00h-07h try only specified adapter
  4780. Return: CF clear if successful
  4781.     CF set on error
  4782.         AX = error code
  4783. Notes:    login path is of form "\\machine\username"
  4784.     if no password is used, the string at ES:DI must be terminated with
  4785.       three NULs for compatibility with LANtastic v3.0.
  4786. SeeAlso: AX=5F82h,AX=5F84h
  4787. --------N-215F82-----------------------------
  4788. INT 21 - LANtastic - LOGOUT FROM SERVER
  4789.     AX = 5F82h
  4790.     ES:DI -> ASCIZ server name (in form "\\machine")
  4791. Return: CF clear if successful
  4792.     CF set on error
  4793.         AX = error code
  4794. SeeAlso: AX=5F81h,AX=5F88h,AX=5FCBh
  4795. --------N-215F83-----------------------------
  4796. INT 21 - LANtastic - GET USERNAME ENTRY
  4797.     AX = 5F83h
  4798.     BX = login entry index (0-based)
  4799.     ES:DI -> 16-byte buffer for username currently logged into
  4800. Return: CF clear if successful
  4801.         DL = adapter number (v3+)
  4802.     CF set on error
  4803.         AX = error code
  4804. Note:    the login entry index corresponds to the value BX used in AX=5F80h
  4805. SeeAlso: AX=5F80h
  4806. --------N-215F84-----------------------------
  4807. INT 21 - LANtastic - GET INACTIVE SERVER ENTRY
  4808.     AX = 5F84h
  4809.     BX = server index not currently logged into
  4810.     ES:DI -> 16-byte buffer for server name which is available for logging
  4811.         in to ("\\" prefix omitted)
  4812. Return: CF clear if successful
  4813.         DL = adapter number to non-logged in server is on
  4814.     CF set on error
  4815.         AX = error code
  4816. SeeAlso: AX=5F81h
  4817. --------N-215F85-----------------------------
  4818. INT 21 - LANtastic - CHANGE PASSWORD
  4819.     AX = 5F85h
  4820.     ES:DI -> buffer containing "\\machine\oldpassword" 00h "newpassword"00h
  4821. Return: CF clear if successful
  4822.     CF set on error
  4823.         AX = error code
  4824. Notes:    must be logged into the named machine
  4825.     this function is illegal for group accounts
  4826. --------N-215F86-----------------------------
  4827. INT 21 - LANtastic - DISABLE ACCOUNT
  4828.     AX = 5F86h
  4829.     ES:DI -> ASCIZ machine name and password in form "\\machine\password"
  4830. Return: CF clear if successful
  4831.     CF set on error
  4832.         AX = error code
  4833. Note:    must be logged into the named machine and concurrent logins set to 1
  4834.       by NET_MGR.  Requires system manager to re-enable account.
  4835. --------N-215F87-----------------------------
  4836. INT 21 - LANtastic v3+ - GET ACCOUNT
  4837.     AX = 5F87h
  4838.     DS:SI -> 128-byte buffer for account information (see #0858)
  4839.     ES:DI -> ASCIZ machine name in form "\\machine"
  4840. Return: CF clear if successful
  4841.     CF set on error
  4842.         AX = error code
  4843.     BX destroyed
  4844. Note:    must be logged into the specified machine
  4845.  
  4846. Format of LANtastic user account structure:
  4847. Offset    Size    Description    (Table 0858)
  4848.  00h 16 BYTEs    blank-padded username (zero-padded for v4.x)
  4849.  10h 16 BYTEs    reserved (00h)
  4850.  20h 32 BYTEs    user description
  4851.  40h    BYTE    privilege bits (see #0859)
  4852.  41h    BYTE    maximum concurrent users
  4853.  42h 42 BYTEs    bit map for disallowed half hours, beginning on Sunday
  4854.         (bit set if half-hour not an allowed time)
  4855.  6Ch    WORD    internal (0002h)
  4856.  6Eh  2 WORDs    last login time
  4857.  72h  2 WORDs    account expiration date (MS-DOS-format year/month:day)
  4858.  76h  2 WORDs    password expiration date (0 = none)
  4859.  7Ah    BYTE    number of days to extend password after change (1-31)
  4860.         00h if no extension required
  4861. ---v3.x---
  4862.  7Bh  5 BYTEs    reserved
  4863. ---v4.x---
  4864.  7Bh    BYTE    storage for first letter of user name when deleted (first
  4865.           character is changed to 00h when deleting account)
  4866.  7Ch    BYTE    extended privileges
  4867.  7Dh  3 BYTEs    reserved
  4868.  
  4869. Bitfields for LANtastic privilege bits:
  4870. Bit(s)    Description    (Table 0859)
  4871.  7    bypass access control lists
  4872.  6    bypass queue protection
  4873.  5    treat as local process
  4874.  4    bypass mail protection
  4875.  3    allow audit entry creation
  4876.  2    system manager
  4877.  0    user cannot change password
  4878. --------N-215F88-----------------------------
  4879. INT 21 - LANtastic v4.0+ - LOGOUT FROM ALL SERVERS
  4880.     AX = 5F88h
  4881. Return: CF clear if successful
  4882.     CF set on error
  4883.         AX = error code
  4884. SeeAlso: AX=5F82h
  4885. --------N-215F97-----------------------------
  4886. INT 21 - LANtastic - COPY FILE
  4887.     AX = 5F97h
  4888.     CX:DX = number of bytes to copy (FFFFFFFFh = entire file)
  4889.     SI = source file handle
  4890.     DI = destination file handle
  4891. Return: CF clear if successful
  4892.         DX:AX = number of bytes copied
  4893.     CF set on error
  4894.         AX = error code
  4895. Note:    copy is performed by server
  4896. --------N-215F98-----------------------------
  4897. INT 21 - LANtastic - SEND UNSOLICITED MESSAGE
  4898.     AX = 5F98h
  4899.     DS:SI -> message buffer (see #0860)
  4900. Return: CF clear if successful
  4901.     CF set on error
  4902.         AX = error code
  4903. Note:    v4.1- return no errors
  4904. SeeAlso: AX=5F99h
  4905.  
  4906. Format of LANtastic message buffer:
  4907. Offset    Size    Description    (Table 0860)
  4908.  00h    BYTE    reserved
  4909.  01h    BYTE    message type
  4910.         00h general
  4911.         01h server warning
  4912.         02h-7Fh reserved
  4913.         80h-FFh user-defined
  4914.  02h 16 BYTEs    ASCIZ destination machine name
  4915.  12h 16 BYTEs    ASCIZ server name which user must be logged into
  4916.  22h 16 BYTEs    ASCIZ user name
  4917.  32h 16 BYTEs    ASCIZ originating machine name (filled in when received)
  4918.  42h 80 BYTEs    message text
  4919. --------N-215F99-----------------------------
  4920. INT 21 - LANtastic - GET LAST RECEIVED UNSOLICITED MESSAGE
  4921.     AX = 5F99h
  4922.     ES:DI -> messsage buffer (see #0860)
  4923. Return: CF clear if successful
  4924.     CF set on error
  4925.         AX = error code
  4926. SeeAlso: AX=5F98h
  4927. --------N-215F9A-----------------------------
  4928. INT 21 - LANtastic - GET MESSAGE PROCESSING FLAGS
  4929.     AX = 5F9Ah
  4930. Return: CF clear if successful
  4931.         DL = bits describing processing of received messages (see #0861)
  4932.     CF set on error
  4933.         AX = error code
  4934. SeeAlso: AX=5F9Bh,AX=5F9Ch,AX=5F9Dh
  4935.  
  4936. Bitfields for unsolicited message processing flags:
  4937. Bit(s)    Description    (Table 0861)
  4938.  0    beep before message is delivered
  4939.  1    deliver message to message service
  4940.  2    pop up message automatically (v3+)
  4941. --------N-215F9B-----------------------------
  4942. INT 21 - LANtastic - SET MESSAGE PROCESSING FLAGS
  4943.     AX = 5F9Bh
  4944.     DL = bits describing processing for received unsolicited messages
  4945.          (see #0861)
  4946. Return: CF clear if successful
  4947.     CF set on error
  4948.         AX = error code
  4949. SeeAlso: AX=5F9Ah,AX=5F9Eh
  4950. --------N-215F9C-----------------------------
  4951. INT 21 - LANtastic v3+ - POP UP LAST RECEIVED MESSAGE
  4952.     AX = 5F9Ch
  4953.     CX = time to leave on screen in clock ticks
  4954.     DH = 0-based screen line on which to place message
  4955. Return: CF clear if successful
  4956.     CF set on error
  4957.         AX = error code (0Bh)
  4958. Notes:    the original screen contents are restored when the message is removed
  4959.     the message will not appear, and an error will be returned, if the
  4960.       screen is in a graphics mode
  4961. SeeAlso: AX=5F9Ah
  4962. --------N-215F9D-----------------------------
  4963. INT 21 - LANtastic v4.1+ - GET REDIRECTOR CONTROL BITS
  4964.     AX = 5F9Dh
  4965. Return: DL = redirector control bits
  4966.         bit 7: set to notify on print job completion
  4967. SeeAlso: AX=5F9Ah,AX=5F9Eh
  4968. --------N-215F9E-----------------------------
  4969. INT 21 - LANtastic v4.1+ - SET REDIRECTOR CONTROL BITS
  4970.     AX = 5F9Eh
  4971.     DL = redirector control bits (see AX=5F9Dh)
  4972. Return: nothing
  4973. SeeAlso: AX=5F9Bh,AX=5F9Dh
  4974. --------N-215FA0-----------------------------
  4975. INT 21 - LANtastic - GET QUEUE ENTRY
  4976.     AX = 5FA0h
  4977.     BX = queue entry index (0000h is first entry)
  4978.     DS:SI -> buffer for queue entry (see #0864)
  4979.     ES:DI -> ASCIZ server name in form "\\name"
  4980. Return: CF clear if successful
  4981.     CF set on error
  4982.         AX = error code
  4983.     BX = entry index for next queue entry (BX-1 is current index)
  4984. SeeAlso: AX=5FA1h,AX=5FA2h
  4985.  
  4986. (Table 0862)
  4987. Values for status of LANtastic queue entry:
  4988.  00h    empty
  4989.  01h    being updated
  4990.  02h    being held
  4991.  03h    waiting for despool
  4992.  04h    being despooled
  4993.  05h    canceled
  4994.  06h    spooled file could not be accessed
  4995.  07h    destination could not be accessed
  4996.  08h    rush job
  4997.  
  4998. (Table 0863)
  4999. Values for type of LANtastic queue entry:
  5000.  00h    printer queue file
  5001.  01h    message
  5002.  02h    local file
  5003.  03h    remote file
  5004.  04h    to remote modem
  5005.  05h    batch processor file
  5006.  
  5007. Format of LANtastic queue entry:
  5008. Offset    Size    Description    (Table 0864)
  5009.  00h    BYTE    status of entry (see #0862)
  5010.  01h    DWORD    size of spooled file
  5011.  05h    BYTE    type of entry (see #0863)
  5012.  06h    BYTE    output control (see #0865)
  5013.  07h    WORD    number of copies
  5014.  09h    DWORD    sequence number of queue entry
  5015.  0Dh 48 BYTEs    pathname of spooled file
  5016.  3Dh 16 BYTEs    user who spooled file
  5017.  4Dh 16 BYTEs    name of machine from which file was spooled
  5018.  5Dh    WORD    date file was spooled (see #0803 at AX=5700h)
  5019.  5Fh    WORD    time file was spooled (see #0802 at AX=5700h)
  5020.  61h 17 BYTEs    ASCIZ destination device or user name
  5021.  72h 48 BYTEs    comment field
  5022.  
  5023. Bitfields for output control:
  5024. Bit(s)    Description    (Table 0865)
  5025.  6    don't delete (for mail)
  5026.  5    mail file contains voice mail (v3+)
  5027.  4    mail message has been read
  5028.  3    response has been requested for this mail
  5029. --------N-215FA1-----------------------------
  5030. INT 21 - LANtastic - SET QUEUE ENTRY
  5031.     AX = 5FA1h
  5032.     BX = handle of opened queue entry
  5033.     DS:SI -> queue entry (see #0864)
  5034. Return: CF clear if successful
  5035.     CF set on error
  5036.         AX = error code
  5037. Notes:    the only queue entry fields which may be changed are output control,
  5038.       number of copies, destination device, and comment
  5039.     the handle in BX is that from a create or open (INT 21/AH=3Ch,3Dh)
  5040.       call on the file "\\server\\@MAIL" or "\\server\@name" (for
  5041.       printer queue entries)
  5042. SeeAlso: AX=5FA0h,AX=5FA2h,AX=5FA9h
  5043. --------N-215FA2-----------------------------
  5044. INT 21 - LANtastic - CONTROL QUEUE
  5045.     AX = 5FA2h
  5046.     BL = control command
  5047.         00h start despooling (privileged)
  5048.         01h halt despooling (privileged)
  5049.         02h halt despooling at end of job (privileged)
  5050.         03h pause despooler at end of job (privileged)
  5051.         04h print single job (privileged)
  5052.         05h restart current job (privileged)
  5053.         06h cancel the current job
  5054.         07h hold queue entry
  5055.         08h release a held queue entry
  5056.         09h make queue entry a rushed job (privileged)
  5057.     CX:DX = sequence number to control (commands 06h-09h)
  5058.     DX = physical printer number (commands 00h-05h)
  5059.         00h-02h LPT1-LPT3
  5060.         03h,04h COM1,COM2
  5061.         other    all printers
  5062.     ES:DI -> ASCIZ server name in form "\\machine"
  5063. Return: CF clear if successful
  5064.     CF set on error
  5065.         AX = error code
  5066. --------N-215FA3-----------------------------
  5067. INT 21 - LANtastic v3+ - GET PRINTER STATUS
  5068.     AX = 5FA3h
  5069.     BX = physical printer number (00h-02h = LPT1-LPT3, 03h-04h = COM1-COM2)
  5070.     DS:SI -> buffer for printer status (see #0866)
  5071.     ES:DI -> ASCIZ server name in form "\\machine"
  5072. Return: CF clear if successful
  5073.     CF set on error
  5074.         AX = error code
  5075.     BX = next physical printer number
  5076. Note:    you must be logged in to the specified server
  5077.  
  5078. Format of LANtastic printer status:
  5079. Offset    Size    Description    (Table 0866)
  5080.  00h    BYTE    printer state (see #0867)
  5081.  01h    WORD    queue index of print job being despooled
  5082.         FFFFh if not despooling--ignore all following fields
  5083.  03h    WORD    actual characters per second being output
  5084.  05h    DWORD    number of characters actually output so far
  5085.  09h    DWORD    number of bytes read from spooled file so far
  5086.  0Dh    WORD    copies remaining to print
  5087.  
  5088. Bitfields for LANtastic printer state:
  5089. Bit(s)    Description    (Table 0867)
  5090.  7    printer paused
  5091.  0-6    0 printer disabled
  5092.     1 will stop at end of job
  5093.     2 print multiple jobs
  5094. --------N-215FA4-----------------------------
  5095. INT 21 - LANtastic v3+ - GET STREAM INFO
  5096.     AX = 5FA4h
  5097.     BX = 0-based stream index number
  5098.     DS:SI -> buffer for stream information (see #0868)
  5099.     ES:DI -> ASCIZ machine name in form "\\machine"
  5100. Return: CF clear if successful
  5101.     CF set on error
  5102.         AX = error code
  5103.     BX = next stream number
  5104. SeeAlso: AX=5FA5h
  5105.  
  5106. Format of LANtastic stream information:
  5107. Offset    Size    Description    (Table 0868)
  5108.  00h    BYTE    queueing of jobs for logical printer (0=disabled,other=enabled)
  5109.  01h 11 BYTEs    logical printer resource template (may contain ? wildcards)
  5110. --------N-215FA5-----------------------------
  5111. INT 21 - LANtastic v3+ - SET STREAM INFO
  5112.     AX = 5FA5h
  5113.     BX = 0-based stream index number
  5114.     DS:SI -> buffer containing stream information (see #0868)
  5115.     ES:DI -> ASCIZ machine name in form "\\machine"
  5116. Return: CF clear if successful
  5117.     CF set on error
  5118.         AX = error code
  5119. SeeAlso: AX=5FA4h
  5120. --------N-215FA7-----------------------------
  5121. INT 21 - LANtastic - CREATE USER AUDIT ENTRY
  5122.     AX = 5FA7h
  5123.     DS:DX -> ASCIZ reason code (max 8 bytes)
  5124.     DS:SI -> ASCIZ variable reason string (max 128 bytes)
  5125.     ES:DI -> ASCIZ machine name in form "\\machine"
  5126. Return: CF clear if successful
  5127.     CF set on error
  5128.         AX = error code
  5129. Note:    you must be logged in to the specified server and have the "U"
  5130.       privilege to execute this call
  5131. --------N-215FA9-----------------------------
  5132. INT 21 - LANtastic v4.1+ - SET EXTENDED QUEUE ENTRY
  5133.     AX = 5FA9h
  5134.     BX = handle of opened queue entry
  5135.     DS:SI -> queue entry (see #0864)
  5136. Return: CF clear if successful
  5137.     CF set on error
  5138.         AX = error code
  5139. Note:    functions exactly the same as AX=5FA1h except the spooled filename is
  5140.       also set.  This call supports direct despooling.
  5141. SeeAlso: AX=5FA1h
  5142. --------N-215FB0-----------------------------
  5143. INT 21 - LANtastic - GET ACTIVE USER INFORMATION
  5144.     AX = 5FB0h
  5145.     BX = server login entry index
  5146.     DS:SI -> buffer for active user entry (see #0869)
  5147.     ES:DI -> ASCIZ machine name in form "\\server"
  5148. Return: CF clear if successful
  5149.     CF set on error
  5150.         AX = error code
  5151.     BX = next login index
  5152. SeeAlso: AX=5FB2h
  5153.  
  5154. Format of LANtastic active user entry:
  5155. Offset    Size    Description    (Table 0869)
  5156.  00h    WORD    virtual circuit number
  5157.  02h    BYTE    login state (see #0870)
  5158.  03h    BYTE    last command issued (see #0871)
  5159.  04h  5 BYTEs    number of I/O bytes (40-bit unsigned number)
  5160.  09h  3 BYTEs    number of server requests (24-bit unsigned)
  5161.  0Ch 16 BYTEs    name of user who is logged in
  5162.  1Ch 16 BYTEs    name of remote logged in machine
  5163.  2Ch    BYTE    extended privileges (v4+???)
  5164.         bit 0: user cannot change his password
  5165.  2Dh    WORD    time left in minutes (0000h = unlimited) (v4+???)
  5166.  
  5167. Bitfields for login state:
  5168. Bit(s)    Description    (Table 0870)
  5169.  0    fully logged in
  5170.  1    remote program load login
  5171.  2    user has system manager privileges
  5172.  3    user can create audit entries
  5173.  4    bypass mail protection
  5174.  5    treat as local process
  5175.  6    bypass queue protection
  5176.  7    bypass access control lists
  5177.  
  5178. (Table 0871)
  5179. Values for last LANtastic command:
  5180.  00h    login
  5181.  01h    process termination
  5182.  02h    open file
  5183.  03h    close file
  5184.  04h    create file
  5185.  05h    create new file
  5186.  06h    create unique file
  5187.  07h    commit data to disk
  5188.  08h    read file
  5189.  09h    write file
  5190.  0Ah    delete file
  5191.  0Bh    set file attributes
  5192.  0Ch    lock byte range
  5193.  0Dh    unlock byte range
  5194.  0Eh    create subdirectory
  5195.  0Fh    remove subdirectory
  5196.  10h    rename file
  5197.  11h    find first matching file
  5198.  12h    find next matching file
  5199.  13h    get disk free space
  5200.  14h    get a queue entry
  5201.  15h    set a queue entry
  5202.  16h    control the queue
  5203.  17h    return login information
  5204.  18h    return link description
  5205.  19h    seek on file
  5206.  1Ah    get server's time
  5207.  1Bh    create audit entry
  5208.  1Ch    open file in multitude of modes
  5209.  1Dh    change password
  5210.  1Eh    disable account
  5211.  1Fh    local server file copy
  5212. ---v3+---
  5213.  20h    get username from account file
  5214.  21h    translate server's logical path
  5215.  22h    make indirect file
  5216.  23h    get indirect file contents
  5217.  24h    get physical printer status
  5218.  25h    get logical print stream info
  5219.  26h    set logical print stream info
  5220.  27h    get user's account record
  5221. ---v4+---
  5222.  28h    request server shutdown
  5223.  29h    cancel server shutdown
  5224.  2Ah    stuff server's keyboard
  5225.  2Bh    write then commit data to disk
  5226.  2Ch    set extended queue entry
  5227.  2Dh    terminate user from server
  5228.  2Eh    enable/disable logins
  5229.  2Fh    flush server caches
  5230.  30h    change username
  5231.  31h    get extended queue entry
  5232.     (same as get queue, but can return named fields blanked)
  5233. --------N-215FB1-----------------------------
  5234. INT 21 - LANtastic - GET SHARED DIRECTORY INFORMATION
  5235.     AX = 5FB1h
  5236.     DS:SI -> 64-byte buffer for link description
  5237.     ES:DI -> ASCIZ machine and shared directory name in form
  5238.          "\\machine\shared-resource"
  5239. Return: CF clear if successful
  5240.         CX = access control list privileges for requesting user (see #0872)
  5241.     CF set on error
  5242.         AX = error code
  5243.  
  5244. Bitfields for LANtastic access control list:
  5245. Bit(s)    Description    (Table 0872)
  5246.  4    (I) allow expansion of indirect files
  5247.  5    (A) allow attribute changing
  5248.  6    (P) allow physical access to device
  5249.  7    (E) allow program execution
  5250.  8    (N) allow file renaming
  5251.  9    (K) allow directory deletion
  5252.  10    (D) allow file deletion
  5253.  11    (L) allow file/directory lookups
  5254.  12    (M) allow directory creation
  5255.  13    (C) allow file creation
  5256.  14    (W) allow open for write and writing
  5257.  15    (R) allow open for read and reading
  5258. --------N-215FB2-----------------------------
  5259. INT 21 - LANtastic v3+ - GET USERNAME FROM ACCOUNT FILE
  5260.     AX = 5FB2h
  5261.     BX = username entry index (0 for first)
  5262.     DS:SI -> 16-byte buffer for username
  5263.     ES:DI -> ASCIZ server name in form "\\machine"
  5264. Return: CF clear if successful
  5265.     CF set on error
  5266.         AX = error code
  5267.     BX = next queue entry index
  5268. SeeAlso: AX=5FB0h
  5269. --------N-215FB3-----------------------------
  5270. INT 21 - LANtastic v3+ - TRANSLATE PATH
  5271.     AX = 5FB3h
  5272.     DS:SI -> 128-byte buffer for ASCIZ result
  5273.     ES:DI -> full ASCIZ path, including server name
  5274.     DX = types of translation to be performed
  5275.         bit 0: expand last component as indirect file
  5276.         bit 1: return actual path relative to server's physical disk
  5277. Return: CF clear if successful
  5278.     CF set on error
  5279.         AX = error code
  5280. Note:    always expands any indirect files along the path
  5281. SeeALso: AX=5FB4h,INT 21/AH=60h
  5282. --------N-215FB4-----------------------------
  5283. INT 21 - LANtastic v3+ - CREATE INDIRECT FILE
  5284.     AX = 5FB4h
  5285.     DS:SI -> 128-byte buffer containing ASCIZ contents of indirect file
  5286.     ES:DI -> full ASCIZ path of indirect file to create, incl machine name
  5287. Return: CF clear if successful
  5288.     CF set on error
  5289.         AX = error code
  5290. Note:    the contents of the indirect file may be any valid server-relative path
  5291. SeeAlso: AX=5FB3h,AX=5FB5h
  5292. --------N-215FB5-----------------------------
  5293. INT 21 - LANtastic v3+ - GET INDIRECT FILE CONTENTS
  5294.     AX = 5FB5h
  5295.     DS:SI -> 128-byte buffer for ASCIZ indirect file contents
  5296.     ES:DI -> full ASCIZ path of indirect file
  5297. Return: CF clear if successful
  5298.     CF set on error
  5299.         AX = error code
  5300. SeeAlso: AX=5FB4h
  5301. --------N-215FB6-----------------------------
  5302. INT 21 - LANtastic v4.1+ - SET AUTO-LOGIN DEFAULTS
  5303.     AX = 5FB6h
  5304.     ES:DI -> pointer to ASCIZ default user name, immediately followed by
  5305.         ASCIZ password
  5306.     BL = adapter number to use for default login attempt
  5307.         FFh try all valid adapters
  5308.         00h-05h try adapter 0-5 explicitly
  5309. Return: CF clear if successful
  5310.     CF set on error
  5311.         AX = error code
  5312. Notes:    call with ES:DI -> two nulls to disable auto-login
  5313. SeeAlso: AX=5FB7h
  5314. --------N-215FB7-----------------------------
  5315. INT 21 - LANtastic v4.1+ - GET AUTO-LOGIN DEFAULTS
  5316.     AX = 5FB7h
  5317.     ES:DI -> pointer to 16-byte buffer to store ASCIZ auto-login user name
  5318. Return: CF clear if successful
  5319.         DL = adapter number used for default login attempt
  5320.         FFh all valid adapters will be tried
  5321.         00h-05h specified adapter will be tried explicitly
  5322.     CF set on error
  5323.         AX = error code
  5324. SeeAlso: AX=5F81h,AX=5FB6h
  5325. --------N-215FC0-----------------------------
  5326. INT 21 - LANtastic - GET TIME FROM SERVER
  5327.     AX = 5FC0h
  5328.     DS:SI -> time block (see #0873)
  5329.     ES:DI -> ASCIZ server name to get time from
  5330. Return: CF clear if successful
  5331.     CF set on error
  5332.         AX = error code
  5333. SeeAlso: AH=E7h
  5334.  
  5335. Format of LANtastic time block:
  5336. Offset    Size    Description    (Table 0873)
  5337.  00h    WORD    year
  5338.  02h    BYTE    day
  5339.  03h    BYTE    month
  5340.  04h    BYTE    minutes
  5341.  05h    BYTE    hour
  5342.  06h    BYTE    hundredths of second
  5343.  07h    BYTE    second
  5344. --------N-215FC8-----------------------------
  5345. INT 21 - LANtastic v4.0+ - SCHEDULE SERVER SHUTDOWN
  5346.     AX = 5FC8h
  5347.     ES:DI -> ASCIZ server name in form "\\machine"
  5348.     DS:SI -> ASCIZ reason string (80 characters)
  5349.     CX = number of minutes until shutdown (0 = immediate)
  5350.     DX = option flags (see #0874)
  5351. Return: CF clear if successful
  5352.     CF set on error
  5353.         AX = error code
  5354. SeeAlso: AX=5FC9h
  5355.  
  5356. Bitfields for LANtastic option flags:
  5357. Bit(s)    Description    (Table 0874)
  5358.  0    auto reboot
  5359.  1    do not notify users
  5360.  2    halt after shutdown
  5361.  3    shutdown due to power fail (used by UPS)
  5362.  4-7    reserved
  5363.  8-14    user definable
  5364.  15    reserved
  5365. --------N-215FC9-----------------------------
  5366. INT 21 - LANtastic v4.0+ - CANCEL SERVER SHUTDOWN
  5367.     AX = 5FC9h
  5368.     ES:DI -> ASCIZ server name in form "\\machine"
  5369. Return: CF clear if successful
  5370.     CF set on error
  5371.         AX = error code
  5372. Note:    you must have the "S" privilege to use this call
  5373. SeeAlso: AX=5FC8h
  5374. --------N-215FCA-----------------------------
  5375. INT 21 - LANtastic v4.0+ - STUFF SERVER KEYBOARD BUFFER
  5376.     AX = 5FCAh
  5377.     ES:DI -> ASCIZ server name in form "\\machine"
  5378.     DS:SI -> ASCIZ string to stuff (128 bytes)
  5379. Return: CF clear if successful
  5380.     CF set on error
  5381.         AX = error code
  5382. Note:    you must have the "S" privilege to use this call
  5383.     maximum number of characters that can be stuffed is determined by the
  5384.       server's RUN BUFFER SIZE.
  5385. SeeAlso: INT 16/AH=05h
  5386. --------N-215FCB-----------------------------
  5387. INT 21 - LANtastic v4.1+ - TERMINATE USER
  5388.     AX = 5FCBh
  5389.     ES:DI -> ASCIZ server name in form "\\machine"
  5390.     DS:SI -> blank-padded username.     A null char = wildcard.
  5391.     DS:DX -> blank-padded machine name.  A null char = wildcard.
  5392.     CX = minutes until termination (0 = immediate)
  5393. Return: CF clear if successful
  5394.     CF set on error
  5395.         AX = error code
  5396. Note:    you must have the "S" privilege to use this call
  5397.     you cannot log yourself out using this call
  5398. SeeAlso: AX=5F82h
  5399. --------N-215FCC-----------------------------
  5400. INT 21 - LANtastic v4.1+ - GET/SET SERVER CONTROL BITS
  5401.     AX = 5FCCh
  5402.     ES:DI -> ASCIZ server name in form "\\machine"
  5403.     CX = bit values (value of bits you want to set) (see #0875)
  5404.     DX = bit mask (bits you are interested in, 0 = get only) (see #0875)
  5405. Return: CF clear if successful
  5406.         CX = control bits after call (see #0875)
  5407.     CF set on error
  5408.         AX = error code
  5409. Note:    you must have the "S" privilege to SET, anyone can GET.
  5410.  
  5411. Bitfields for control bits:
  5412. Bit(s)    Description    (Table 0875)
  5413.  0    disable logins
  5414. --------N-215FCD-----------------------------
  5415. INT 21 - LANtastic v4.1+ - FLUSH SERVER CACHES
  5416.     AX = 5FCDh
  5417.     ES:DI -> ASCIZ server name in form "\\machine"
  5418. Return: CF clear if successful
  5419.     CF set on error
  5420.         AX = error code
  5421. Note:    you must have the "S" privilege to use this call.
  5422. --------N-215FD0-----------------------------
  5423. INT 21 - LANtastic - GET REDIRECTED PRINTER TIMEOUT
  5424.     AX = 5FD0h
  5425. Return: CF clear if successful
  5426.         CX = redirected printer timeout in clock ticks of 55ms
  5427.         0000h if timeout disabled
  5428.     CF set on error
  5429.         AX = error code
  5430. SeeAlso: AX=5FD1h
  5431. --------N-215FD1-----------------------------
  5432. INT 21 - LANtastic - SET REDIRECTED PRINTER TIMEOUT
  5433.     AX = 5FD1h
  5434.     CX = printer timeout in clock ticks of 55ms, 0000h to disable timeouts
  5435. Return: CF clear if successful
  5436.     CF set on error
  5437.         AX = error code
  5438. SeeAlso: AX=5FD0h
  5439. --------N-215FE0-----------------------------
  5440. INT 21 C - LANtastic - GET DOS SERVICE VECTOR
  5441.     AX = 5FE0h
  5442. Return: CF clear if successful
  5443.         ES:BX -> current FAR service routine
  5444.     CF set on error
  5445.         AX = error code
  5446. Note:    the service routine is called by the LANtastic redirector whenever DOS
  5447.       may safely be called, permitting external TSRs and drivers to hook
  5448.       into LANtastic's DOS busy flag checking
  5449. SeeAlso: AX=5FE1h,INT 28,INT 2A/AH=84h
  5450. --------N-215FE1-----------------------------
  5451. INT 21 - LANtastic - SET DOS SERVICE VECTOR
  5452.     AX = 5FE1h
  5453.     ES:BX -> FAR routine to call when DOS services are available
  5454. Return: CF clear if successful
  5455.     CF set on error
  5456.         AX = error code
  5457. Note:    new handler must chain to previous handler as its first action
  5458. SeeAlso: AX=5FE0h
  5459. --------N-215FE2-----------------------------
  5460. INT 21 - LANtastic - GET MESSAGE SERVICE VECTOR
  5461.     AX = 5FE2h
  5462. Return: CF clear if successful
  5463.         ES:BX -> current FAR message service routine
  5464.     CF set on error
  5465.         AX = error code
  5466. SeeAlso: AX=5FE0h,AX=5FE3h
  5467. --------N-215FE3-----------------------------
  5468. INT 21 - LANtastic - SET MESSAGE SERVICE VECTOR
  5469.     AX = 5FE3h
  5470.     ES:BX -> FAR routine for processing network messages
  5471. Return: CF clear if successful
  5472.     CF set on error
  5473.         AX = error code
  5474. Notes:    handler must chain to previous handler as its first action
  5475.     on invocation, ES:BX -> just-received message
  5476. SeeAlso: AX=5FE2h
  5477. --------D-2160-------------------------------
  5478. INT 21 - DOS 3.0+ - "TRUENAME" - CANONICALIZE FILENAME OR PATH
  5479.     AH = 60h
  5480.     DS:SI -> ASCIZ filename or path
  5481.     ES:DI -> 128-byte buffer for canonicalized name
  5482. Return: CF set on error
  5483.         AX = error code
  5484.         02h invalid component in directory path or drive letter only
  5485.         03h malformed path or invalid drive letter
  5486.         ES:DI buffer unchanged
  5487.     CF clear if successful
  5488.         AH = 00h
  5489.         AL = destroyed (00h or 5Ch or last char of current dir on drive)
  5490.         buffer filled with qualified name of form D:\PATH\FILE.EXT or
  5491.           \\MACHINE\PATH\FILE.EXT
  5492. Desc:    determine the canonical name of the specified filename or path,
  5493.       corresponding to the undocumented TRUENAME command in COMMAND.COM
  5494. Notes:    the input path need not actually exist
  5495.     letters are uppercased, forward slashes converted to backslashes,
  5496.       asterisks converted to appropriate number of question marks, and
  5497.       file and directory names are truncated to 8.3 if necessary.  (DR-DOS
  5498.       3.41 and 5.0 do not expand asterisks)
  5499.     '.' and '..' in the path are resolved
  5500.     filespecs on local drives always start with "d:", those on network
  5501.       drives always start with "\\"
  5502.     if path string is on a JOINed drive, the returned name is the one that
  5503.       would be needed if the drive were not JOINed; similarly for a
  5504.       SUBSTed, ASSIGNed, or network drive letter.    Because of this, it is
  5505.       possible to get a qualified name that is not legal under the current
  5506.       combination of SUBSTs, ASSIGNs, JOINs, and network redirections
  5507.     under DOS 3.3 through 6.00, a device name is translated differently if
  5508.       the device name does not have an explicit directory or the directory
  5509.       is \DEV (relative directory DEV from the root directory works
  5510.       correctly).  In these cases, the returned string consists of the
  5511.       unchanged device name and extension appended to the string X:/
  5512.       (forward slash instead of backward slash as in all other cases) where
  5513.       X is the default or explicit drive letter.
  5514.     functions which take pathnames require canonical paths if invoked via
  5515.       INT 21/AX=5D00h
  5516.     supported by OS/2 v1.1 compatibility box
  5517.     NetWare 2.1x does not support characters with the high bit set; early
  5518.       versions of NetWare 386 support such characters except in this call.
  5519.       In addition, NetWare returns error code 3 for the path "X:\"; one
  5520.       should use "X:\." instead.
  5521.     for DOS 3.3-6.0, the input and output buffers may be the same, as the
  5522.       canonicalized name is built in an internal buffer and copied to the
  5523.       specified output buffer as the very last step
  5524.     for DR DOS 6.0, this function is not automatically called when on a
  5525.       network.  Device drivers reportedly cannot make this call from their
  5526.       INIT function.  Using the same pointer for both input and output
  5527.       buffers is not supported in the April 1992 and earlier versions of
  5528.       DR DOS
  5529. SeeAlso: AX=5FB3h,INT 2F/AX=1123h,INT 2F/AX=1221h
  5530. --------D-2161-------------------------------
  5531. INT 21 - DOS 3+ - UNUSED
  5532.     AH = 61h
  5533. Return: AL = 00h
  5534. Note:    this function does nothing and returns immediately
  5535. --------O-2161--BP6467-----------------------
  5536. INT 21 U - OS/2 v1.x FAPI - OS/2 FILE SYSTEM JOIN/SUBST
  5537.     AH = 61h
  5538.     BP = 6467h ("dg")
  5539.     AL = function
  5540.         00h list
  5541.         01h add
  5542.         02h delete
  5543.     BX = drive number
  5544.     CX = size of buffer
  5545.     SI = type (0002h JOIN, 0003h SUBST)
  5546.     ES:DI -> buffer
  5547. Return: ???
  5548. Notes:    used by JOIN and SUBST to communicate with the OS/2 file system
  5549.     also supported by OS/2 v2.0+ Virtual DOS Machines
  5550. --------D-2162-------------------------------
  5551. INT 21 - DOS 3+ - GET CURRENT PSP ADDRESS
  5552.     AH = 62h
  5553. Return: BX = segment of PSP for current process
  5554. Notes:    under DOS 3+, this function does not use any of the DOS-internal stacks
  5555.       and may thus be called at any time, even during another INT 21h call
  5556.     the current PSP is not necessarily the caller's PSP
  5557.     identical to the undocumented AH=51h
  5558. SeeAlso: AH=50h,AH=51h
  5559. --------D-216300-----------------------------
  5560. INT 21 - DOS 2.25 only - GET LEAD BYTE TABLE ADDRESS
  5561.     AX = 6300h
  5562. Return: CF clear if successful
  5563.         DS:SI -> lead byte table (see #0876)
  5564.     CF set on error
  5565.         AX = error code (01h) (see #0811 at AH=59h)
  5566. Notes:    does not preserve any registers other than SS:SP
  5567.     the US version of MS-DOS 3.30 treats this as an unused function,
  5568.       setting AL=00h and returning immediately
  5569. SeeAlso: AX=6301h,AH=07h,AH=08h,AH=0Bh
  5570.  
  5571. Format of double-byte character set lead byte table entry:
  5572. Offset    Size    Description    (Table 0876)
  5573.  00h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  5574.  02h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  5575.     ...
  5576.   N   2 BYTEs    00h,00h end flag
  5577. --------D-216300-----------------------------
  5578. INT 21 - Far East DOS 3.2+ - GET DOUBLE BYTE CHARACTER SET LEAD-BYTE TABLE
  5579.     AX = 6300h
  5580. Return: AL = error code
  5581.         00h successful
  5582.         DS:SI -> DBCS table (see #0877)
  5583.         all other registers except CS:IP and SS:SP destroyed
  5584.         FFh not supported
  5585. Notes:    probably identical to AH=63h/AL=00h for DOS 2.25
  5586.     the US version of MS-DOS 3.30 treats this as an unused function,
  5587.       setting AL=00h and returning immediately
  5588.     the US version of DOS 4.0+ accepts this function, but returns an empty
  5589.       list
  5590. SeeAlso: AX=6300h"DOS 2.25"
  5591.  
  5592. Format of DBCS table:
  5593. Offset    Size    Description    (Table 0877)
  5594.  00h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  5595.  02h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  5596.     ...
  5597.   N   2 BYTEs    00h,00h end flag
  5598. --------D-216301-----------------------------
  5599. INT 21 - DOS 2.25, Far East DOS 3.2+ - SET KOREAN (HANGEUL) INPUT MODE
  5600.     AX = 6301h
  5601.     DL = new mode
  5602.         00h return only full characters on DOS keyboard input functions
  5603.         01h return partially-formed (interim) characters also
  5604. Return: AL = status
  5605.         00h successful
  5606.         FFh invalid mode
  5607. Note:    Novell DOS 7 simply stores DL in the caller's PSP (see #0535 at AH=26h)
  5608. SeeAlso: AH=07h,AH=08h,AH=0Bh,AH=63h,AX=6302h
  5609. --------D-216302-----------------------------
  5610. INT 21 - DOS 2.25, Far East DOS 3.2+ - GET KOREAN (HANGEUL) INPUT MODE
  5611.     AX = 6302h
  5612. Return: AL = status
  5613.         00h successful
  5614.         DL = current input mode
  5615.             00h return only full characters (clears interim flag)
  5616.             01h return partial characters (sets interim flag)
  5617.         FFh not supported
  5618. Note:    Novell DOS 7 simply reads the value out of the caller's PSP, so it
  5619.       can return values other than 00h or 01h if the last call to AX=6301h
  5620.       used another value
  5621. SeeAlso: AH=07h,AH=08h,AH=0Bh,AH=63h,AX=6301h
  5622. --------D-2164-------------------------------
  5623. INT 21 - DOS 3.2+ internal - SET DEVICE DRIVER LOOKAHEAD FLAG
  5624.     AH = 64h
  5625.     AL = flag
  5626.         00h (default) call device driver function 5 (non-dest read)
  5627.             before INT 21/AH=01h,08h,0Ah
  5628.         nonzero don't call driver function 5
  5629. Return: nothing (MS-DOS)
  5630.     CF set, AX=error code??? (DR-DOS 5.0, which does not support this call)
  5631. Notes:    this function is called by the DOS 3.3+ PRINT.COM
  5632.     under MS-DOS, this function does not use any of the DOS-internal stacks
  5633.       and may thus be called at any time, even during another DOS call
  5634. SeeAlso: AH=01h,AH=08h,AH=0Ah,AX=5D06h
  5635. --------O-2164--DX0000-----------------------
  5636. INT 21 U - OS/2 v2.0+ Virtual DOS Machine - ENABLE AUTOMATIC TITLE SWITCH
  5637.     AH = 64h
  5638.     DX = 0000h (function number)
  5639.     CX = 636Ch (magic value, "cl")
  5640.     BX = 0000h (indicates special request)
  5641. Note:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  5642.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  5643. SeeAlso: AH=64h/DX=0001h,INT 21/AH=4Bh
  5644. --------O-2164--DX0001-----------------------
  5645. INT 21 U - OS/2 v2.0+ Virtual DOS Machine - SET SESSION TITLE
  5646.     AH = 64h
  5647.     DX = 0001h (function number)
  5648.     CX = 636Ch (magic value, "cl")
  5649.     BX = 0000h (indicates special request)
  5650.     ES:DI -> new ASCIZ title (max 12 char) or "" to restore default title
  5651. Note:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  5652.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  5653. SeeAlso: AH=64h/DX=0000h,AH=64h/DX=0002h,INT 15/AH=12h/BH=05h
  5654. --------O-2164--DX0002-----------------------
  5655. INT 21 U - OS/2 v2.0+ Virtual DOS Machine - GET SESSION TITLE
  5656.     AH = 64h
  5657.     DX = 0002h (function number)
  5658.     CX = 636Ch (magic value, "cl")
  5659.     BX = 0000h (indicates special request)
  5660.     ES:DI -> 13-byte buffer for current title
  5661. Return: buffer filled (single 00h if title never changed)
  5662. Note:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  5663.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  5664. SeeAlso: AH=64h/DX=0000h,AH=64h/DX=0001h,INT 15/AH=12h/BH=05h
  5665. --------O-2164--DX0003-----------------------
  5666. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET LASTDRIVE
  5667.     AH = 64h
  5668.     DX = 0003h (function number)
  5669.     CX = 636Ch (magic value, "cl")
  5670.     BX = 0000h (indicates special request)
  5671. Return: AL = highest drive supported
  5672. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  5673.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  5674.     used by WinOS2
  5675. --------O-2164--DX0004-----------------------
  5676. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET SIZE OF PTDA JFT
  5677.     AH = 64h
  5678.     DX = 0004h (function number)
  5679.     CX = 636Ch (magic value, "cl")
  5680.     BX = 0000h (indicates special request)
  5681. Return: AX = number of entries in OS/2 JFT for VDM
  5682. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  5683.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  5684.     in an OS/2 VDM, the DOS Job File Table in the PSP contains an index
  5685.       into the OS/2 JFT in the Per-Task Data Area rather than an SFT index
  5686.       because the OS/2 SFT can contain more than 255 entries
  5687. --------O-2164--DX0005-----------------------
  5688. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET SECOND SFT FLAGS WORD
  5689.     AH = 64h
  5690.     DX = 0005h (function number)
  5691.     CX = 636Ch (magic value, "cl")
  5692.     BX = 0000h (indicates special request)
  5693.     DI = DOS file handle
  5694. Return: AX = value of second flags word from OS/2 SFT entry for file
  5695. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  5696.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  5697.     the OS/2 SFT has two flags words rather than DOS's one word, and this
  5698.       function provides access to the word which is not present in DOS
  5699. --------O-2164--DX0006-----------------------
  5700. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - UNLOAD DOSKRNL SYMBOLS & LOAD PROGR
  5701.     AH = 64h
  5702.     DX = 0006h (function number)
  5703.     CX = 636Ch (magic value, "cl")
  5704.     BX = 0000h (indicates special request)
  5705.     ES:DI -> ASCIZ filespec
  5706.     DS = base address for loading
  5707. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  5708.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  5709.     this function is only supported by the kernel debugging version of
  5710.       OS2KRNL
  5711. --------O-2164--DX0007-----------------------
  5712. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET WinOS2 CALL GATE ADDRESS
  5713.     AH = 64h
  5714.     DX = 0007h (function number)
  5715.     CX = 636Ch (magic value, "cl")
  5716.     BX = 0000h (indicates special request)
  5717. Return: AX = call gate address
  5718. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  5719.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  5720.     used by WinOS2 to make direct calls to OS2KRNL, bypassing the overhead
  5721.       of DOSKRNL
  5722. --------O-2164--DX0008-----------------------
  5723. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET LOADING MESSAGE
  5724.     AH = 64h
  5725.     DX = 0008h (function number)
  5726.     CX = 636Ch (magic value, "cl")
  5727.     BX = 0000h (indicates special request)
  5728. Return: DS:DX -> '$'-terminated message "Loading.  Please wait."
  5729. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  5730.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  5731.     this function permits National Language Support for the initial message
  5732.       displayed while WinOS2 starts a full-screen session
  5733. --------O-2164--CX636C-----------------------
  5734. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - OS/2 API support
  5735.     AH = 64h
  5736.     CX = 636Ch ("cl")
  5737.     BX = API ordinal (see #0878)
  5738.     other registers as appropriate for API call
  5739. Return: as appropriate for API call
  5740. SeeAlso: AH=64h/BX=0025h,AH=64h/BX=00B6h,AH=64h/BX=00CBh
  5741.  
  5742. (Table 0878)
  5743. Values for OS/2 API ordinal:
  5744.  0025h    DOS32StartSession
  5745.  0082h    DosGetCP
  5746.  00B6h    DosQFSAttach
  5747.  00BFh    DosEditName
  5748.  00CBh    DosForceDelete
  5749.  0144h    Dos32CreateEventSem
  5750.  0145h    Dos32OpenEvenSem
  5751.  0146h    Dos32CloseEventSem
  5752.  0147h    Dos32ResetEventSem
  5753.  0148h    Dos32PostEventSem
  5754.  0149h    Dos32WaitEventSem
  5755.  014Ah    Dos32QueryEventSem
  5756.  014Bh    Dos32CreateMutexSem
  5757.  014Ch    Dos32OpenMutexSem
  5758.  014Dh    Dos32CloseMutexSem
  5759.  014Eh    Dos32RequestMutexSem
  5760.  014Fh    Dos32ReleaseMutexSem
  5761.  0150h    Dos32QueryMutexSem
  5762.  0151h    Dos32CreateMuxWaitSem
  5763.  0152h    Dos32OpenMuxWaitSem
  5764.  0153h    Dos32CloseMuxWaitSem
  5765.  0154h    Dos32WaitMuxWaitSem
  5766.  0155h    Dos32AddMuxWaitSem
  5767.  0156h    Dos32DeleteMuxWaitSem
  5768.  0157h    Dos32QueryMuxWaitSem
  5769. --------O-2164--BX0025-----------------------
  5770. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - OS/2 API DOS32StartSession
  5771.     AH = 64h
  5772.     BX = 0025h (API ordinal)
  5773.     CX = 636Ch ("cl")
  5774.     DS:SI -> STARTDATA structure (see #0879)
  5775. Return: AX = return code
  5776. SeeAlso: AH=64h/CX=636Ch,AH=64h/BX=00B6h
  5777.  
  5778. Format of OS/2 Virtual DOS Machine STARTDATA structure:
  5779. Offset    Size    Description    (Table 0879)
  5780.  00h    WORD    length of structure (must be 0018h,001Eh,0020h,0032h,or 003Ch)
  5781.  02h    WORD    relation of new process to caller (00h independent, 01h child)
  5782.  04h    WORD    fore/background (00h foreground, 01h background)
  5783.  06h    WORD    trace options (00h-02h, 00h = no trace)
  5784.  08h    DWORD    pointer to ASCIZ program title (max 62 chars) or 0000h:0000h
  5785.  0Ch    DWORD    pointer to ASCIZ program name (max 128 chars) or 0000h:0000h
  5786.  10h    DWORD    pointer to ASCIZ program args (max 144 chars) or 0000h:0000h
  5787.  14h    DWORD    "TermQ" (currently reserved, must be 00000000h)
  5788.  18h    DWORD    pointer to environment (max 486 bytes) or 0000h:0000h
  5789.  1Ch    WORD    inheritance (00h or 01h)
  5790.  1Eh    WORD    session type
  5791.         00h OS/2 session manager determines type (default)
  5792.         01h OS/2 full-screen
  5793.         02h OS/2 window
  5794.         03h PM
  5795.         04h VDM full-screen
  5796.         07h VDM window
  5797.  20h    DWORD    pointer to ASCIZ icon filename (max 128 chars) or 0000h:0000h
  5798.  24h    DWORD    "PgmHandle" (currently reserved, must be 00000000h)
  5799.  28h    WORD    "PgmControl"
  5800.  2Ah    WORD    initial column
  5801.  2Ch    WORD    initial row
  5802.  2Eh    WORD    initial width
  5803.  30h    WORD    initial height
  5804.  32h    WORD    reserved (0)
  5805.  34h    DWORD    "ObjectBuffer" (currently reserved, must be 00000000h)
  5806.  38h    DWORD    "ObjectBufferLen" (currently reserved, must be 00000000h)
  5807. --------O-2164--BX00B6-----------------------
  5808. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - OS/2 API DosQFSAttach
  5809.     AH = 64h
  5810.     BX = 00B6h (API ordinal)
  5811.     CX = 636Ch (magic value "cl")
  5812.     DS = user's data segment
  5813.     ES:DI -> FSQAttachStruc (see #0880)
  5814. Return: CF set on error
  5815.         AX = error code (see #0811 at AH=59h)
  5816.     CF clear if successful
  5817.         AX = 0000h
  5818.         data buffer filled
  5819. SeeAlso: AH=64h/CX=636Ch
  5820.  
  5821. Format of OS/2 Virtual DOS Machine FSQAttachStruc:
  5822. Offset    Size    Description    (Table 0880)
  5823.  00h    DWORD    reserved
  5824.  04h    DWORD    pointer to the offset of the data buffer length
  5825.  08h    DWORD    pointer to the offset of the data buffer
  5826.  0Ch    WORD    FSA Info level
  5827.  0Eh    WORD    ordinal index into table
  5828.  10h    DWORD    pointer to the offset of the device name
  5829. Notes:    The segment value of the buffer, buffer length, and device
  5830.       name MUST all be the same.  It is defined on entry in the DS
  5831.       register.  The details of each info level are defined in the
  5832.       OS/2 CP Reference.
  5833. --------O-2164--BX00CB-----------------------
  5834. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - OS/2 API DosForceDelete
  5835.     AH = 64h
  5836.     BX = 00CBh (API ordinal)
  5837.     CX = 636Ch (magic value "cl")
  5838.     DS:DX -> ASCIZ filename
  5839. Return: CF clear if successful
  5840.         AX destroyed
  5841.     CF set on error
  5842.         AX = error code (02h,03h,05h) (see #0811 at AH=59h)
  5843. Desc:    delete a file without saving it to the undelete directory
  5844. SeeAlso: AH=41h,AH=64h/CX=636Ch
  5845. --------D-2165-------------------------------
  5846. INT 21 - DOS 3.3+ - GET EXTENDED COUNTRY INFORMATION
  5847.     AH = 65h
  5848.     AL = info ID
  5849.         01h get general internationalization info
  5850.         02h get pointer to uppercase table
  5851.         04h get pointer to filename uppercase table
  5852.         05h get pointer to filename terminator table
  5853.         06h get pointer to collating sequence table
  5854.         07h (DOS 4+) get pointer to Double-Byte Character Set table
  5855.     BX = code page (FFFFh=global code page)
  5856.     DX = country ID (FFFFh=current country)
  5857.     ES:DI -> country information buffer (see #0881)
  5858.     CX = size of buffer (>= 5)
  5859. Return: CF set on error
  5860.         AX = error code (see #0811 at AH=59h)
  5861.     CF clear if successful
  5862.         CX = size of country information returned
  5863.         ES:DI -> country information
  5864. Notes:    AL=05h appears to return same info for all countries and codepages; it
  5865.       has been documented for DOS 5+, but was undocumented in ealier
  5866.       versions
  5867.     NLSFUNC must be installed to get info for countries other than the
  5868.       default
  5869.     subfunctions 02h and 04h are identical under OS/2
  5870. SeeAlso: AH=38h,INT 2F/AX=1401h,INT 2F/AX=1402h,INT 2F/AX=14FEh
  5871.  
  5872. Format of country information:
  5873. Offset    Size    Description    (Table 0881)
  5874.  00h    BYTE    info ID
  5875. ---if info ID = 01h---
  5876.  01h    WORD    size
  5877.  03h    WORD    country ID
  5878.  05h    WORD    code page
  5879.  07h 34 BYTEs    country-dependent info (see AH=38h)
  5880. ---if info ID = 02h---
  5881.  01h    DWORD    pointer to uppercase table (see #0882)
  5882. ---if info ID = 04h---
  5883.  01h    DWORD    pointer to filename uppercase table (see #0883)
  5884. ---if info ID = 05h---
  5885.  01h    DWORD    pointer to filename character table (see #0884)
  5886. ---if info ID = 06h---
  5887.  01h    DWORD    pointer to collating table (see #0885)
  5888. ---if info ID = 07h (DOS 4+)---
  5889.  01h    DWORD    pointer to DBCS lead byte table (see #0886)
  5890.  
  5891. Format of uppercase table:
  5892. Offset    Size    Description    (Table 0882)
  5893.  00h    WORD    table size
  5894.  02h 128 BYTEs    uppercase equivalents (if any) of chars 80h to FFh
  5895.  
  5896. Format of filename uppercase table:
  5897. Offset    Size    Description    (Table 0883)
  5898.  00h    WORD    table size
  5899.  02h 128 BYTEs    uppercase equivalents (if any) of chars 80h to FFh
  5900.  
  5901. Format of filename terminator table:
  5902. Offset    Size    Description    (Table 0884)
  5903.  00h    WORD    table size (not counting this word)
  5904.  02h    BYTE    ??? (01h for MS-DOS 3.30-6.00)
  5905.  03h    BYTE    lowest permissible character value for filename
  5906.  04h    BYTE    highest permissible character value for filename
  5907.  05h    BYTE    ??? (00h for MS-DOS 3.30-6.00)
  5908.  06h    BYTE    first excluded character in range \ all characters in this
  5909.  07h    BYTE    last excluded character in range  / range are illegal
  5910.  08h    BYTE    ??? (02h for MS-DOS 3.30-6.00)
  5911.  09h    BYTE    number of illegal (terminator) characters
  5912.  0Ah  N BYTEs    characters which terminate a filename:    ."/\[]:|<>+=;,
  5913. Note:    partially documented for DOS 5+, but undocumented for earlier versions
  5914.  
  5915. Format of collating table:
  5916. Offset    Size    Description    (Table 0885)
  5917.  00h    WORD    table size
  5918.  02h 256 BYTEs    values used to sort characters 00h to FFh
  5919.  
  5920. Format of DBCS lead byte table:
  5921. Offset    Size    Description    (Table 0886)
  5922.  00h    WORD    length
  5923.  02h 2N BYTEs    start/end for N lead byte ranges
  5924.     WORD    0000h    (end of table)
  5925. --------D-2165-------------------------------
  5926. INT 21 - DOS 4+ - COUNTRY-DEPENDENT CHARACTER CAPITALIZATION
  5927.     AH = 65h
  5928.     AL = function
  5929.         20h capitalize character
  5930.         DL = character to capitalize
  5931.         Return: DL = capitalized character
  5932.         21h capitalize string
  5933.         DS:DX -> string to capitalize
  5934.         CX = length of string
  5935.         22h capitalize ASCIZ string
  5936.         DS:DX -> ASCIZ string to capitalize
  5937. Return: CF set on error
  5938.         AX = error code (see #0811 at AH=59h)
  5939.     CF clear if successful
  5940. Note:    these calls have been documented for DOS 5+, but were undocumented in
  5941.       DOS 4.x.
  5942. --------D-216523-----------------------------
  5943. INT 21 U - DOS 4+ internal - DETERMINE IF CHARACTER REPRESENTS YES/NO RESPONSE
  5944.     AX = 6523h
  5945.     DL = character
  5946.     DH = second character of double-byte character (if applicable)
  5947. Return: CF set on error
  5948.     CF clear if successful
  5949.         AX = type
  5950.         00h no
  5951.         01h yes
  5952.         02h neither yes nor no
  5953. --------D-2165-------------------------------
  5954. INT 21 U - DOS 4+ internal - COUNTRY-DEPENDENT FILENAME CAPITALIZATION
  5955.     AH = 65h
  5956.     AL = function
  5957.         A0h capitalize filename character
  5958.         DL = character to capitalize
  5959.         Return: DL = capitalized character
  5960.         A1h capitalize counted filename string
  5961.         DS:DX -> filename string to capitalize
  5962.         CX = length of string
  5963.         A2h capitalize ASCIZ filename
  5964.         DS:DX -> ASCIZ filename to capitalize
  5965. Return: CF set on error
  5966.         AX = error code (see #0811 at AH=59h)
  5967.     CF clear if successful
  5968. Note:    nonfunctional in DOS 4.00 through 6.00 due to a bug (the code sets a
  5969.       pointer depending on the high bit of AL, but doesn't clear the
  5970.       bit before branching by function number).
  5971. --------D-216601-----------------------------
  5972. INT 21 - DOS 3.3+ - GET GLOBAL CODE PAGE TABLE
  5973.     AX = 6601h
  5974. Return: CF set on error
  5975.         AX = error code (see #0811 at AH=59h)
  5976.     CF clear if successful
  5977.         BX = active code page (see #0887)
  5978.         DX = system code page (see #0887)
  5979. SeeAlso: AX=6602h
  5980. --------D-216602-----------------------------
  5981. INT 21 - DOS 3.3+ - SET GLOBAL CODE PAGE TABLE
  5982.     AX = 6602h
  5983.     BX = active code page (see #0887)
  5984.     DX = system code page (active page at boot time)
  5985. Return: CF set on error
  5986.         AX = error code (see #0811 at AH=59h)
  5987.     CF clear if successful
  5988. SeeAlso: AX=6601h,INT 2F/AX=14FFh
  5989.  
  5990. (Table 0887)
  5991. Values for code page:
  5992.  437    US
  5993.  850    Multilingual
  5994.  852    Slavic/Latin II (DOS 5+)
  5995.  857    Turkish
  5996.  860    Portugal
  5997.  861    Iceland
  5998.  863    Canada (French)
  5999.  865    Norway/Denmark
  6000. --------D-2167-------------------------------
  6001. INT 21 - DOS 3.3+ - SET HANDLE COUNT
  6002.     AH = 67h
  6003.     BX = size of new file handle table for process
  6004. Return: CF clear if successful
  6005.     CF set on error
  6006.         AX = error code (see #0811 at AH=59h)
  6007. Desc:    adjust the size of the per-process open file table, thus raising or
  6008.       lowering the limit on the number of files the caller can open
  6009.       simultaneously
  6010. Notes:    if BX <= 20, no action is taken if the handle limit has not yet been
  6011.       increased, and the table is copied back into the PSP if the limit
  6012.       is currently > 20 handles
  6013.     for file handle tables of > 20 handles, DOS 3.30 never reuses the
  6014.       same memory block, even if the limit is being reduced; this can lead
  6015.       to memory fragmentation as a new block is allocated and the existing
  6016.       one freed
  6017.     only the first 20 handles are copied to child processes in DOS 3.3-6.0
  6018.     increasing the file handles here will not, in general, increase the
  6019.       number of files that can be opened using the runtime library of a
  6020.       high-level language such as C
  6021. BUGS:    the original release of DOS 3.30 allocates a full 64K for the handle
  6022.       table on requests for an even number of handles
  6023.     DR-DOS 3.41 and 5.0 will lose track of any open file handles beyond
  6024.       the portion of the JFT retained after the call; MS-DOS will indicate
  6025.       error 04h if any of the JFT entries to be removed are open
  6026. SeeAlso: AH=26h,AH=86h
  6027. --------D-2168-------------------------------
  6028. INT 21 - DOS 3.3+ - "FFLUSH" - COMMIT FILE
  6029.     AH = 68h
  6030.     BX = file handle
  6031. Return: CF clear if successful
  6032.         all data still in DOS disk buffers is written to disk immediately,
  6033.           and the file's directory entry is updated
  6034.     CF set on error
  6035.         AX = error code (see #0811 at AH=59h)
  6036. SeeAlso: AX=5D01h,AH=6Ah,INT 2F/AX=1107h
  6037. --------D-2169-------------------------------
  6038. INT 21 U - DOS 4+ internal - GET/SET DISK SERIAL NUMBER
  6039.     AH = 69h
  6040.     AL = subfunction
  6041.         00h get serial number
  6042.         01h set serial number
  6043.     BL = drive (0=default, 1=A, 2=B, etc)
  6044.     BH = info level (00h only for DOS; OS/2 allows other levels)
  6045.     DS:DX -> disk info (see #0888)
  6046. Return: CF set on error
  6047.         AX = error code (see #0811 at AH=59h)
  6048.     CF clear if successful
  6049.         AX destroyed
  6050.         (AL = 00h) buffer filled with appropriate values from extended BPB
  6051.         (AL = 01h) extended BPB on disk set to values from buffer
  6052. Notes:    does not generate a critical error; all errors are returned in AX
  6053.     error 0005h given if no extended BPB on disk
  6054.     does not work on network drives (error 0001h)
  6055.     buffer after first two bytes is exact copy of bytes 27h thru 3Dh of
  6056.       extended BPB on disk
  6057.     this function is supported under Novell NetWare versions 2.0A through
  6058.       3.11; the returned serial number is the one a DIR would display,
  6059.       the volume label is the NetWare volume label, and the file system
  6060.       is set to "FAT16".
  6061.     the serial number is computed from the current date and time when the
  6062.       disk is created; the first part is the sum of the seconds/hundredths
  6063.       and month/day, the second part is the sum of the hours/minutes and
  6064.       year
  6065.     the volume label which is read or set is the one stored in the extended
  6066.       BPB on disks formatted with DOS 4.0+, rather than the special root
  6067.       directory entry used by the DIR command in COMMAND.COM (use AH=11h
  6068.       to find that volume label)
  6069. SeeAlso: AX=440Dh
  6070.  
  6071. Format of disk info:
  6072. Offset    Size    Description    (Table 0888)
  6073.  00h    WORD    info level (zero)
  6074.  02h    DWORD    disk serial number (binary)
  6075.  06h 11 BYTEs    volume label or "NO NAME    " if none present
  6076.  11h  8 BYTEs    (AL=00h only) filesystem type--string "FAT12   " or "FAT16   "
  6077. --------O-2169-------------------------------
  6078. INT 21 - DR-DOS 5.0 - NULL FUNCTION
  6079.     AH = 69h
  6080. Return: AL = 00h
  6081. SeeAlso: AH=18h
  6082. --------v-216969-----------------------------
  6083. INT 21 - VIRUS - "Rape-747" - INSTALLATION CHECK
  6084.     AX = 6969h
  6085. Return: AX = 0666h if resident
  6086. SeeAlso: AX=58CCh,AH=76h"VIRUS"
  6087. --------d-2169FFDX0000-----------------------
  6088. INT 21 U - CUBIT v4.00 - GET CUBIT INT 21 HANDLER
  6089.     AX = 69FFh
  6090.     DX = 0000h
  6091.     BX = CB00h (magic value)
  6092. Return: ES:BX -> CUBITR.EXE handler for INT 21
  6093. Note:    the installation check consists of testing that the first eight bytes
  6094.       at the returned interrupt handler are EBh 07h "CUBITR" (a short
  6095.       jump around the signature followed by the signature); the byte
  6096.       following the signature (i.e. ES:[BX+8]) indicates whether CUBITR
  6097.       is active (01h) or disabled (00h)
  6098. SeeAlso: AX=69FFh/DX=CFBFh
  6099. Index:    installation check;CUBIT
  6100. --------d-2169FFDXCFBF-----------------------
  6101. INT 21 U - CUBIT v4.00 - UNINSTALL
  6102.     AX = 69FFh
  6103.     DX = CFBFh
  6104.     CX = EFCFh
  6105.     BX = CB00h (magic value)
  6106. Return: ES:BX -> CUBITR.EXE handler for INT 21
  6107.     CX = status
  6108.         2020h successful
  6109.         2222h failed
  6110. Note:    if DX is neither 0000h nor CFBFh on entry, some other code is executed
  6111. SeeAlso: AX=69FFh/DX=0000h
  6112. --------D-216A-------------------------------
  6113. INT 21 U - DOS 4+ - COMMIT FILE
  6114.     AH = 6Ah
  6115.     BX = file handle
  6116. Return: CF clear if successful
  6117.         AH = 68h
  6118.     CF set on error
  6119.         AX = error code (06h) (see #0811 at AH=59h)
  6120. Note:    identical to AH=68h in DOS 5.0-6.0; not known whether this is the case
  6121.       in DOS 4.x
  6122. SeeAlso: AH=68h
  6123. --------D-216B-------------------------------
  6124. INT 21 U - DOS 4.0 internal - IFS IOCTL
  6125.     AH = 6Bh
  6126.     AL = subfunction
  6127.         00h ???
  6128.         DS:SI -> Current Directory Structure???
  6129.         CL = drive (1=A:)
  6130.         01h ???
  6131.         DS:SI -> ???
  6132.         CL = file handle???
  6133.         02h ???
  6134.         DS:SI -> Current Directory Structure???
  6135.         DI = ???
  6136.         CX = drive (1=A:)
  6137. Return: CF set on error
  6138.         AX = error code (see #0811 at INT 21/AH=59h)
  6139.     CF clear if successful
  6140. Note:    passed through to INT 2F/AX=112Fh with AX on top of stack
  6141. SeeAlso: AH=6Bh"DOS 5",INT 2F/AX=112Fh
  6142. --------D-216B-------------------------------
  6143. INT 21 U - DOS 5+ - NULL FUNCTION
  6144.     AH = 6Bh
  6145. Return: AL = 00h
  6146. Note:    this function does nothing and returns immediately
  6147. SeeAlso: AH=6Bh"DOS 4"
  6148. --------D-216C00-----------------------------
  6149. INT 21 - DOS 4+ - EXTENDED OPEN/CREATE
  6150.     AX = 6C00h
  6151.     BL = open mode as in AL for normal open (see also AH=3Dh)
  6152.         bit 7: inheritance
  6153.         bits 4-6: sharing mode
  6154.         bit 3 reserved
  6155.         bits 0-2: access mode
  6156.     BH = flags
  6157.         bit 6 = auto commit on every write (see also AH=68h)
  6158.         bit 5 = return error rather than doing INT 24h
  6159.     CX = create attribute (see #0890)
  6160.     DL = action if file exists/does not exist (see #0891)
  6161.     DH = 00h (reserved)
  6162.     DS:SI -> ASCIZ file name
  6163. Return: CF set on error
  6164.        AX = error code (see #0811 at AH=59h)
  6165.     CF clear if successful
  6166.        AX = file handle
  6167.        CX = status (see #0889)
  6168. Notes:    the PC LAN Program only supports DL=01h, DL=10h/sharing=compatibility,
  6169.       and DL=12h
  6170.     DR-DOS reportedly does not support this function and does not return
  6171.       an "invalid function call" error when this function is used.
  6172. BUG:    this function has bugs (at least in DOS 5.0 and 6.2) when used with
  6173.       drives handled via the network redirector (INT 2F/AX=112Eh):
  6174.         - CX (attribute) is not passed to the redirector if DL=11h,
  6175.         - CX does not return the status, it is returned unchanged because
  6176.           DOS does a PUSH CX/POP CX when calling the redirector.
  6177. SeeAlso: AH=3Ch,AH=3Dh,AX=6C01h,AH=71h,INT 2F/AX=112Eh
  6178.  
  6179. (Table 0889)
  6180. Values for extended open function status:
  6181.  01h    file opened
  6182.  02h    file created
  6183.  03h    file replaced
  6184.  
  6185. Bitfields for file create attribute:
  6186. Bit(s)    Description    (Table 0890)
  6187.  6-15    reserved
  6188.  5    archive
  6189.  4    reserved
  6190.  3    volume label
  6191.  2    system
  6192.  1    hidden
  6193.  0    readonly
  6194.  
  6195. Bitfields for action:
  6196. Bit(s)    Description    (Table 0891)
  6197.  7-4    action if file does not exist
  6198.     0000 fail
  6199.     0001 create
  6200.  3-0    action if file exists
  6201.     0000 fail
  6202.     0001 open
  6203.     0010 replace/open
  6204. --------O-216C01-----------------------------
  6205. INT 21 U - OS/2 v2.0 - "DosOpen2"
  6206.     AX = 6C01h
  6207.     BL = open mode as in AL for normal open (see also AH=3Dh)
  6208.         bit 7: inheritance
  6209.         bits 4-6: sharing mode
  6210.         bit 3 reserved
  6211.         bits 0-2: access mode
  6212.     BH = flags
  6213.         bit 6 = auto commit on every write (see also AH=68h)
  6214.         bit 5 = return error rather than doing INT 24h
  6215.     CX = create attribute (see #0890)
  6216.     DL = action if file exists/does not exist (see #0891)
  6217.     DH = 00h (reserved)
  6218.     DS:SI -> ASCIZ file name
  6219.     ES:DI -> EAOP structure
  6220. Return: CF set on error
  6221.        AX = error code (see #0811 at AH=59h)
  6222.     CF clear if successful
  6223.        AX = file handle
  6224.        CX = status (see #0889)
  6225. Note:    this function is virtually identical to AX=6C00h, but supports OS/2's
  6226.       extended attributes
  6227. SeeAlso: AX=5704h,AX=6C00h,AH=6Fh"OS/2"
  6228. --------D-216D-------------------------------
  6229. INT 21 U - DOS 5+ ROM - FIND FIRST ROM PROGRAM
  6230.     AH = 6Dh
  6231.     DS:DX -> ASCIZ program name (may contain wildcrds)
  6232. Return: CF clear if found
  6233.         [DTA] = ROM search structure (see #0892)
  6234.     CF set if not found
  6235.         AX = error code
  6236.         0002h name not found in ROM
  6237.         0003h name contains colon or backslash
  6238. Notes:    the '*' wildcard matches all remaining characters in a ROM program's
  6239.       name; any following characters in the search mask are ignored up to
  6240.       another asterisk, which must be matched by an asterisk in the
  6241.       found program's name.
  6242.     the search mask and program names may contain multiple periods
  6243. SeeAlso: AH=1Ah,AH=4Eh,AH=6Eh,AX=6F00h,AX=6F02h
  6244.  
  6245. Format of ROM search structure:
  6246. Offset    Size    Description    (Table 0892)
  6247.  00h 13 BYTEs    ASCIZ name of found ROM program
  6248.  0Dh    DWORD    address at which to resume search (do not modify)
  6249.  11h    var    ASCIZ search mask passed in (do not modify)
  6250. --------O-216D-------------------------------
  6251. INT 21 U - OS/2 v1.x FAPI - "DosMkDir2"
  6252.     AH = 6Dh
  6253.     ???
  6254. Return: ???
  6255. Note:    also supported by OS/2 v2.0+ Virtual DOS Machines
  6256. SeeAlso: AH=39h
  6257. --------O-216D-------------------------------
  6258. INT 21 U - Novell DOS 7 - NOP
  6259.     AH = 6Dh
  6260. Return: AX = 0000h
  6261. Note:    this function invokes the same code as other NOP functions such as
  6262.       AH=18h and AH=61h
  6263. --------D-216E-------------------------------
  6264. INT 21 U - DOS 5+ ROM - FIND NEXT ROM PROGRAM
  6265.     AH = 6Eh
  6266.     [DTA] = result of previous FindFirst ROM (see AH=6Dh)
  6267. Return: CF clear if found
  6268.         [DTA] = updated ROM search structure (see #0892)
  6269.     CF set if not found
  6270.         AX = 0012h (no more matches)
  6271. SeeAlso: AH=4Fh,AH=6Dh
  6272. --------O-216E-------------------------------
  6273. INT 21 U - OS/2 v1.x FAPI - "DosENumAttrib"
  6274.     AH = 6Eh
  6275.     ???
  6276. Return: ???
  6277. Note:    also supported by OS/2 v2.0+ Virtual DOS Machines
  6278. SeeAlso: AX=5703h,AH=6Fh"OS/2",INT 2F/AX=112Dh
  6279. --------O-216F-------------------------------
  6280. INT 21 U - OS/2 v1.x FAPI - "DosQMaxEASize" - GET MAXIMUM SIZE OF EXTENDED ATTR
  6281.     AH = 6Fh
  6282.     ???
  6283. Return: ???
  6284. Note:    also supported by OS/2 v2.0+ Virtual DOS Machines
  6285. SeeAlso: AX=5703h,AX=6C01h,AH=6Eh"OS/2"
  6286. --------D-216F00-----------------------------
  6287. INT 21 U - DOS 5+ ROM - GET ROM SCAN START ADDRESS
  6288.     AX = 6F00h
  6289. Return: CF clear
  6290.     AL = 00h
  6291.     BX = current ROM scan starting segment
  6292. SeeAlso: AH=6Dh,AX=6F01h,AX=6F02h
  6293. --------D-216F01-----------------------------
  6294. INT 21 U - DOS 5+ ROM - SET ROM SCAN START ADDRESS
  6295.     AX = 6F01h
  6296.     BX = new ROM scan starting address
  6297. Return: CF clear
  6298.     AL = 00h
  6299. SeeAlso: AX=6F00h,AX=6F03h
  6300. --------D-216F02-----------------------------
  6301. INT 21 U - DOS 5+ ROM - GET EXCLUSION REGION LIST
  6302.     AX = 6F02h
  6303.     ES:BX -> buffer for exclusion region list (see #0893)
  6304. Return: CF clear
  6305.     AL = 00h
  6306.     ES:BX = 0000h:0000h on error, unchanged if buffer filled
  6307. SeeAlso: AX=6F00h,AX=6F03h
  6308.  
  6309. Format of ROM exclusion region list:
  6310. Offset    Size    Description    (Table 0893)
  6311.  00h    WORD    number of entries
  6312.  02h 2N WORDs    start/end segments of N excluded regions
  6313. --------D-216F03-----------------------------
  6314. INT 21 U - DOS 5+ ROM - SET EXCLUSION REGION LIST
  6315.     AX = 6F03h
  6316.     DS:DX -> new exclusion region list (see #0893)
  6317. Return: CF clear
  6318.     AL = 00h
  6319. Notes:    DOS saves only the pointer and assumes that the contents of the list
  6320.       are never changed, and that regions do not overlap
  6321.     if AL > 03h on entry, DOS returns CF set/AL=01h
  6322. SeeAlso: AX=6F01h,AX=6F02h
  6323. ----------217070BX6060-----------------------
  6324. INT 21 - PCW Weather Card interface - GET DATA SEGMENT
  6325.     AX = 7070h
  6326.     BX = 6060h
  6327.     CX = 7070h
  6328.     DX = 7070h
  6329.     SI = 7070h
  6330.     DI = 7070h
  6331. Return: AX = segment of data structure (see #0894)
  6332. Notes:    the data structure is at offset 516 from this segment
  6333.     the update byte is at offset 514 from this segment.  Updates are
  6334.       once per second while this byte is nonzero and it is decremented
  6335.       once per second.  While this byte is 0 updates are once per minute.
  6336. SeeAlso: AX=7070h/BX=7070h
  6337.  
  6338. Format of PCW Weather Card data structure:
  6339. Offset    Type    Description    (Table 0894)
  6340.  00h    WORD    hour
  6341.  02h    WORD    minute
  6342.  04h    WORD    second
  6343.  06h    WORD    day
  6344.  08h    WORD    month
  6345.  0Ah    WORD    year
  6346.  0Ch    WORD    ???
  6347.  0Eh    WORD    relative barometric pressure (in 1/100 inches)
  6348.  10h    WORD    ???
  6349.  12h    WORD    ???
  6350.  14h    WORD    temperature 1 (in 1/10 degrees F)
  6351.  16h    WORD    temperature 1 lowest (in 1/10 degrees F)
  6352.  18h    WORD    temperature 1 highest (in 1/10 degrees F)
  6353.  1Ah    WORD    temperature 2 (in 1/10 degrees F)
  6354.  1Ch    WORD    temperature 2 lowest (in 1/10 degrees F)
  6355.  1Eh    WORD    temperature 2 highest (in 1/10 degrees F)
  6356.  20h    WORD    wind speed (in MPH)
  6357.  22h    WORD    average of 60 wind speed samples (in MPH)
  6358.  24h    WORD    highest wind speed (in MPH)
  6359.  26h    WORD    wind chill factor  (in 1/10 degrees F)
  6360.  28h    WORD    lowest wind chill factor (in 1/10 degrees F)
  6361.  2Ah    WORD    ???
  6362.  2Ch    WORD    wind direction (in degrees)
  6363.  2Eh    WORD    accumulated daily rainfall (in 1/10 inches)
  6364.  30h    WORD    accumulated annual rainfall (in 1/10 inches)
  6365. ----------217070BX7070-----------------------
  6366. INT 21 - PCW Weather Card interface - INSTALLATION CHECK
  6367.     AX = 7070h
  6368.     BX = 7070h
  6369.     CX = 7070h
  6370.     DX = 7070h
  6371.     SI = 7070h
  6372.     DI = 7070h
  6373. Return: AX = 0070h
  6374.     BX = 0070h
  6375.     CX = 0070h
  6376.     DX = 0070h
  6377.     SI = 0070h
  6378.     DI = 0070h
  6379. SeeAlso: AX=7070h/BX=6060h,AX=8080h
  6380. --------D-2171-------------------------------
  6381. INT 21 - DOS 7 (Chicago) - LONG FILENAME FUNCTIONS
  6382.     AH = 71h
  6383.     AL = function
  6384.         39h create directory
  6385.         3Ah remove directory
  6386.         3Bh set current directory
  6387.         41h delete file
  6388.         43h get file attributes (BL=00h), set file attributes (BL=01h)
  6389.         47h get current directory
  6390.         4Eh find first file
  6391.         4Fh find next file
  6392.         56h move (rename) file
  6393.         6Ch create/open file
  6394. Return: CF set on error
  6395.         AX = error code
  6396.         7100h if function not supported
  6397.     CF clear if successful
  6398.         other registers as for corresponding "old" DOS function
  6399. Notes:    if error 7100h is returned, the old-style function should be called
  6400.     AX=714Eh returns a "search handle" which must be passed to AX=714Fh;
  6401.       when the search is complete, AH=72h must be called to terminate
  6402.       the search
  6403. SeeAlso: AH=39h,AH=3Ah,AH=3Bh,AH=41h,AH=43h,AH=47h,AH=4Eh,AH=4Fh,AH=56h,AH=6Ch
  6404. SeeAlso: AH=72h
  6405. --------D-2172-------------------------------
  6406. INT 21 - DOS 7 (Chicago) - "FindClose" - TERMINATE DIRECTORY SEARCH
  6407.     AH = 72h
  6408.     details not yet available
  6409. Note:    this function must be called after starting a search with AX=714Eh,
  6410.       to indicate that the search handle returned by that function will
  6411.       no longer be used
  6412. SeeAlso: AH=4Eh,AH=71h
  6413. --------v-2176-------------------------------
  6414. INT 21 - VIRUS - "Klaeren"/"Hate" - INSTALLATION CHECK
  6415.     AH = 76h
  6416. Return: AL = 48h if resident
  6417. SeeAlso: AX=6969h,AX=7700h"VIRUS"
  6418. --------v-217700-----------------------------
  6419. INT 21 - VIRUS - "Growing Block" - INSTALLATION CHECK
  6420.     AX = 7700h
  6421. Return: AX = 0920h if resident
  6422. SeeAlso: AH=76h,AH=7Fh
  6423. --------V-217734-----------------------------
  6424. INT 21 U - SCROLLit v1.7 - INSTALLATION CHECK
  6425.     AX = 7734h
  6426. Return: DX = 3477h if installed
  6427.         AX = segment of resident code
  6428. Program: ScrollIt is a shareware backscroll utility by Bromfield Software
  6429.       Products
  6430. --------U-217761-----------------------------
  6431. INT 21 - WATCH.COM v3.2+ - INSTALLATION CHECK
  6432.     AX = 7761h ('wa')
  6433. Return: AX = 6177h
  6434. Note:    WATCH.COM is part of the "TSR" package by TurboPower Software
  6435. SeeAlso: INT 16/AX=7761h
  6436. --------v-217F-------------------------------
  6437. INT 21 - VIRUS - "Squeaker" - INSTALLATION CHECK
  6438.     AH = 7Fh
  6439. Return: AH = 80h if resident
  6440. SeeAlso: AX=7700h,AH=83h"VIRUS"
  6441. --------D-2180-------------------------------
  6442. INT 21 - European MS-DOS 4.0 - "AEXEC" - EXECUTE PROGRAM IN BACKGROUND
  6443.     AH = 80h
  6444.     CX = mode
  6445.         0000h place child in zombie mode on exit to preserve exit code
  6446.         0001h discard child process and exit code on termination
  6447.     DS:DX -> ASCIZ full program name
  6448.     ES:BX -> parameter block (as for AX=4B00h)
  6449. Return: CF clear if successful
  6450.         AX = Command Subgroup ID (CSID)
  6451.     CF set on error
  6452.         AX = error code (see #0811 at AH=59h)
  6453. Program: European MS-DOS 4.0 was written for Siemens in Germany and then used
  6454.       by several other European OEMs; its release falls between mainstream
  6455.       versions 3.2 and 3.3
  6456. Desc:    asynchronously execute a program, creating a new process for it
  6457. Notes:    this function is called by the DETACH command
  6458.     there is a system-wide limit of 32 processes
  6459.     the CSID is used to identify all processes that have been spawned by
  6460.       a given process, whether directly or indirectly
  6461.     programs to be run in the background must use the new executable format
  6462.       (see #0734 at AH=4Bh)
  6463.     background processes may only perform asynchronous (background) EXECs,
  6464.       either this function or AX=4B04h
  6465.     background processes may execute INT 11, INT 12, INT 21, INT 2A, and
  6466.       INT 2F at any time; they may execute INT 10 and INT 16 only while
  6467.       they have opened a popup screen via INT 2F/AX=1401h; no other
  6468.       interrupts may be executed from the background
  6469.     background processes may not use drive B: or overlay their code
  6470.       segments
  6471.     see AX=8700h for an installation check
  6472.     the "NE" new executable format made its first appearance in European
  6473.       MS-DOS 4.0
  6474. SeeAlso: AH=4Bh,AH=87h,INT 2F/AX=1400h"POPUP"
  6475. ----------218080-----------------------------
  6476. INT 21 - PCW Weather Card interface - UNINSTALL PCW.COM AND FREE MEMORY
  6477.     AX = 8080h
  6478. Return: ???
  6479. SeeAlso: AX=7070h/BX=7070h
  6480. --------D-2181-------------------------------
  6481. INT 21 - European MS-DOS 4.0 - "FREEZE" - STOP A PROCESS
  6482.     AH = 81h
  6483.     BX = flag (00h freeze command subtree, 01h only specified process)
  6484.     CX = Process ID of head of command subtree
  6485. Return: CF clear if successful
  6486.     CF set on error
  6487.         AX = error code (no such process)
  6488. Desc:    temporarily suspend a process or a process and all of its children
  6489. Note:    if BX=0001h, this call will not return until the process is actually
  6490.       frozen, which may not be until after it unblocks from an I/O
  6491.       operation
  6492. SeeAlso: AH=82h,AH=89h,AX=8E00h,INT 15/AX=101Dh
  6493. --------D-2182-------------------------------
  6494. INT 21 - European MS-DOS 4.0 - "RESUME" - RESTART A PROCESS
  6495.     AH = 82h
  6496.     BX = flag (00h resume command subtree, 01h only specified process)
  6497.     CX = Process ID of head of command subtree
  6498. Return: CF clear if successful
  6499.     CF set on error
  6500.         AX = error code (no such process)
  6501. Desc:    restart a previously-suspended process or a process and all of its
  6502.       children
  6503. SeeAlso: AH=81h,INT 15/AX=101Eh
  6504. --------D-2183-------------------------------
  6505. INT 21 - European MS-DOS 4.0 - "PARTITION" - GET/SET FOREGROUND PARTITION SIZE
  6506.     AH = 83h
  6507.     AL = function
  6508.         00h get size
  6509.         01h set new size
  6510.         BX = new size in paragraphs
  6511. Return: CF clear if successful
  6512.         BX = current size (function 00h) or old size (function 01h)
  6513.     CF set on error
  6514.         AX = error code (01h,07h,0Dh)(see #0811 at AH=59h)
  6515. Desc:    specify or determine how much memory may be allocated by the foreground
  6516.       process
  6517. Note:    if the partition size is set to 0000h, no partition management is done
  6518.       and all memory allocation is compatible with DOS 3.2.
  6519.     the partition size can be changed regardless of what use is being made
  6520.       of the changed memory; subsequent allocations will follow the
  6521.       partition rules (foreground processes may allocate only foreground
  6522.       memory; background processes allocate background memory first, then
  6523.       foreground memory)
  6524. SeeAlso: AH=48h,AH=4Ah
  6525. --------v-2183-------------------------------
  6526. INT 21 - VIRUS - "SVC" - INSTALLATION CHECK
  6527.     AH = 83h
  6528. Return: DX = 1990h if resident
  6529. SeeAlso: AH=76h,AH=84h"VIRUS"
  6530. --------v-2184-------------------------------
  6531. INT 21 - VIRUS - "SVC 5.0" or "SVC 6.0" - INSTALLATION CHECK
  6532.     AH = 84h
  6533. Return: DX = 1990h if resident
  6534.         BH = version number (major in high nybble, minor in low)
  6535. SeeAlso: AH=83h"VIRUS",AH=89h"VIRUS"
  6536. --------D-218400-----------------------------
  6537. INT 21 - European MS-DOS 4.0 - "CREATMEM" - CREATE A SHARED MEMORY AREA
  6538.     AX = 8400h
  6539.     BX = size in bytes (0000h = 65536)
  6540.     CX = flags
  6541.         bit 6: zero-initialize segment
  6542.     DS:DX -> ASCIZ name (must begin with "\SHAREMEM\")
  6543. Return: CF clear if successful
  6544.         AX = segment address of shared memory global object
  6545.     CF set on error
  6546.         AX = error code (06h,08h) (see #0811 at AH=59h)
  6547. Desc:    create an area of memory which may be accessed by multiple processes
  6548. Notes:    shared memory objects are created as special files (thus the
  6549.       restriction on the name)
  6550.     on successful creation, the reference count is set to 1
  6551. SeeAlso: AX=8401h,AX=8402h,INT 15/AX=DE19h
  6552. --------D-218401-----------------------------
  6553. INT 21 - European MS-DOS 4.0 - "GETMEM" - OBTAIN ACCESS TO SHARED MEMORY AREA
  6554.     AX = 8401h
  6555.     CX = flags
  6556.         bit 7: writable segment (ignored by MS-DOS 4.0)
  6557.     DS:DX -> ASCIZ name (must begin with "\SHAREMEM\")
  6558. Return: CF clear if successful
  6559.         AX = segment address of shared memory global object
  6560.         CX = size in bytes
  6561.     CF set on error
  6562.         AX = error code (invalid name)
  6563. Desc:    get address of a previously-created area of memory which may be
  6564.       accessed by multiple processes
  6565. Note:    this call increments the reference count for the shared memory area
  6566. SeeAlso: AX=8400h,AX=8402h
  6567. --------D-218402-----------------------------
  6568. INT 21 - European MS-DOS 4.0 - "RELEASEMEM" - FREE SHARED MEMORY AREA
  6569.     AX = 8402h
  6570.     BX = handle (segment address of shared memory object)
  6571. Return: CF clear if successful
  6572.     CF set on error
  6573.         AX = error code (no such name)
  6574. Desc:    indicate that the specified area of shared memory will no longer be
  6575.       used by the caller
  6576. Note:    the reference count is decremented and the shared memory area is
  6577.       deallocated if the new reference count is zero
  6578. SeeAlso: AX=8400h,AX=8401h,INT 15/AX=DE19h
  6579. --------D-2185-------------------------------
  6580. INT 21 U - European MS-DOS 4.0 - ???
  6581.     AH = 85h
  6582.     ???
  6583. Return: ???
  6584. --------D-2186-------------------------------
  6585. INT 21 - European MS-DOS 4.0 - "SETFILETABLE" - INSTALL NEW FILE HANDLE TABLE
  6586.     AH = 86h
  6587.     BX = total number of file handles in new table
  6588. Return: CF clear if successful
  6589.     CF set on error
  6590.         AX = error code (06h,08h) (see #0811 at AH=59h)
  6591. Desc:    adjust the size of the per-process open file table, thus raising or
  6592.       lowering the limit on the number of files the caller can open
  6593.       simultaneously
  6594. Notes:    any currently-open files are copied to the new table
  6595.     if the table is increased beyond the default 20 handles, only the
  6596.       first 20 will be inherited by child processes
  6597.     error 06h is returned if the requested number of handles exceeds
  6598.       system limits or would require closing currently-open files
  6599. SeeAlso: AH=26h,AH=67h
  6600. --------D-2187-------------------------------
  6601. INT 21 - European MS-DOS 4.0 - "GETPID" - GET PROCESS IDENTIFIER
  6602.     AH = 87h
  6603. Return: AX = PID
  6604.     BX = parent process's PID
  6605.     CX = Command Subgroup ID (CSID)
  6606. Program: European MS-DOS 4.0 was written for Siemens in Germany and then used
  6607.       by several other European OEMs; its release falls between mainstream
  6608.       versions 3.2 and 3.3
  6609. Desc:    determine an identifier by which to access the calling process
  6610. Notes:    called by MS C v5.1 getpid() function
  6611.     this function apparently must return AX=0001h for INT 21/AH=80h to
  6612.       succeed
  6613.     one possible check for European MS-DOS 4.0 is to issue this call with
  6614.       AL=00h and check whether AL is nonzero on return
  6615. SeeAlso: AH=30h,AH=62h,AH=80h
  6616. Index:    installation check;European MS-DOS 4.0
  6617. --------D-2188-------------------------------
  6618. INT 21 U - European MS-DOS 4.0 - ???
  6619.     AH = 88h
  6620.     ???
  6621. Return: ???
  6622. SeeAlso: AH=87h
  6623. --------D-2189-------------------------------
  6624. INT 21 - European MS-DOS 4.0 - SLEEP
  6625.     AH = 89h
  6626.     CX = time in milliseconds or 0000h to give up time slice
  6627. Return: CF clear if successful
  6628.         CX = 0000h
  6629.     CF set on error
  6630.         AX = error code (interrupted system call)
  6631.         CX = sleep time remaining
  6632. Desc:    suspend the calling process for the specified duration
  6633. Notes:    the sleep interval is rounded up to the next higher increment of the
  6634.       scheduler clock, and may be extended further if other processes are
  6635.       running
  6636.     this call may be interrupted by signals (see AH=8Dh)
  6637.     reportedly called by Microsoft C 4.0 startup code
  6638.     background processes have higher priority than the foreground process,
  6639.       and should thus periodically yield the CPU
  6640. SeeAlso: AH=81h,INT 15/AX=1000h,INT 2F/AX=1680h,INT 7A/BX=000Ah
  6641. --------v-2189-------------------------------
  6642. INT 21 - VIRUS - "Vriest" - INSTALLATION CHECK
  6643.     AH = 89h
  6644. Return: AX = 0123h if resident
  6645. SeeAlso: AH=84h"VIRUS",AH=90h"VIRUS"
  6646. --------D-218A-------------------------------
  6647. INT 21 - European MS-DOS 4.0 - "CWAIT" - WAIT FOR CHILD TO TERMINATE
  6648.     AH = 8Ah
  6649.     BL = range (00h command subtree, 01h any child)
  6650.     BH = suspend flag
  6651.         00h suspend if children exist but none are dead
  6652.         01h return if no dead children
  6653.     CX = Process ID of head of command subtree
  6654. Return: CF clear if successful
  6655.         AH = termination type (see #0895)
  6656.         AL = return code from child or aborting signal
  6657.         BX = PID of child (0000h if no dead children)
  6658.     CF set on error
  6659.         AX = error code (no child,interrupted system call)
  6660. Desc:    get return code from an asynchronously-executed child program,
  6661.       optionally waiting if no return code is available
  6662. SeeAlso: AH=4Bh,AH=4Dh,AH=80h,AH=8Dh
  6663.  
  6664. (Table 0895)
  6665. Values for termination type:
  6666.  00h    normal termination
  6667.  01h    aborted by Control-C
  6668.  02h    aborted by I/O error
  6669.  03h    terminate and stay resident
  6670.  04h    aborted by signal
  6671.  05h    aborted by program error
  6672. --------D-218B-------------------------------
  6673. INT 21 U - European MS-DOS 4.0 - ???
  6674.     AH = 8Bh
  6675.     ???
  6676. Return: ???
  6677. SeeAlso: AH=87h
  6678. --------D-218C-------------------------------
  6679. INT 21 - European MS-DOS 4.0 - SET SIGNAL HANDLER
  6680.     AH = 8Ch
  6681.     AL = signal number (see #0896)
  6682.     BL = action (see #0897)
  6683.     DS:DX -> signal handler (see #0898)
  6684. Return: CF clear if successful
  6685.         AL = previous action
  6686.         ES:BX -> previous signal handler
  6687.     CF set on error
  6688.         AX = error code (01h,invalid SigNumber or Action)
  6689.           (see #0811 at AH=59h)
  6690. Desc:    set the routine which will be invoked on a number of exceptional
  6691.       conditions
  6692. Note:    all signals will be sent to the most recently installed handler
  6693. SeeAlso: AH=8Dh
  6694.  
  6695. (Table 0896)
  6696. Values for European MS-DOS 4.0 signal number:
  6697.  01h    SIGINTR        Control-C or user defined interrupt key
  6698.  08h    SIGTERM        program termination
  6699.  09h    SIGPIPE        broken pipe
  6700.  0Dh    SIGUSER1    reserved for user definition
  6701.  0Eh    SIGUSER2    reserved for user definition
  6702.  
  6703. (Table 0897)
  6704. Values for signal action:
  6705.  00h    SIG_DFL        terminate process on receipt
  6706.  01h    SIG_IGN        ignore signal
  6707.  02h    SIG_GET        signal is accepted
  6708.  03h    SIG_ERR        sender gets error
  6709.  04h    SIG_ACK        acknowledge received signal and clear it, but don't
  6710.               change current setting
  6711.  
  6712. (Table 0898)
  6713. Values signal handler is called with:
  6714.     AL = signal number (see #0896)
  6715.     AH = signal argument
  6716. Return: RETF, CF set: terminate process
  6717.     RETF, CF clear, ZF set: abort any interrupted system call with an error
  6718.     RETF, CF clear, ZF clear: restart any interrupted system call
  6719.     IRET: restart any interrupted system call
  6720. Note:    the signal handler may also perform a nonlocal GOTO by resetting the
  6721.       stack pointer and jumping; before doing so, it should dismiss the
  6722.       signal by calling this function with BL=04h
  6723. --------D-218D-------------------------------
  6724. INT 21 - European MS-DOS 4.0 - SEND SIGNAL
  6725.     AH = 8Dh
  6726.     AL = signal number (see #0896)
  6727.     BH = signal argument
  6728.     BL = action
  6729.         00h send to entire command subtree
  6730.         01h send only to specified process
  6731.     DX = Process ID
  6732. Return: CF clear if successful
  6733.     CF set on error
  6734.         AX = error code (01h,06h)(see #0811 at AH=59h)
  6735. Desc:    invoke the exceptional-condition handler for the specified process
  6736. Note:    error 06h may be returned if one or more of the affected processes
  6737.       have an error handler for the signal
  6738. SeeAlso: AH=8Ch
  6739. --------D-218E00BH00-------------------------
  6740. INT 21 - European MS-DOS 4.0 - "SETPRI" - GET/SET PROCESS PRIORITY
  6741.     AX = 8E00h
  6742.     BH = 00h
  6743.     BL = action
  6744.         00h set priority for command subtree
  6745.         01h set priority for specified process only
  6746.     CX = Process ID
  6747.     DH = 00h
  6748.     DL = change in priority (00h to get priority)
  6749. Return: CF clear if successful
  6750.         DL = process priority
  6751.         DH destroyed
  6752.     CF set on error
  6753.         AX = error code (01h,no such process)(see #0811 at AH=59h)
  6754. Desc:    specify or determine the execution priority of the specified process
  6755.       or the process and all of its children
  6756. SeeAlso: AH=81h
  6757. --------D-218F-------------------------------
  6758. INT 21 U - European MS-DOS 4.0 - ???
  6759.     AH = 8Fh
  6760.     ???
  6761. Return: ???
  6762. SeeAlso: AH=87h
  6763. --------D-2190-------------------------------
  6764. INT 21 U - European MS-DOS 4.0 - ???
  6765.     AH = 90h
  6766.     ???
  6767. Return: ???
  6768. SeeAlso: AH=87h
  6769. --------v-2190-------------------------------
  6770. INT 21 - VIRUS - "Carioca" - INSTALLATION CHECK
  6771.     AH = 90h
  6772. Return: AH = 01h if resident
  6773. SeeAlso: AH=89h"VIRUS",AX=9753h"VIRUS"
  6774. --------D-2191-------------------------------
  6775. INT 21 U - European MS-DOS 4.0 - ???
  6776.     AH = 91h
  6777.     ???
  6778. Return: ???
  6779. SeeAlso: AH=87h
  6780. --------D-2192-------------------------------
  6781. INT 21 U - European MS-DOS 4.0 - ???
  6782.     AH = 92h
  6783.     ???
  6784. Return: ???
  6785. SeeAlso: AH=87h
  6786. --------D-2193-------------------------------
  6787. INT 21 - European MS-DOS 4.0 - "PIPE" - CREATE A NEW PIPE
  6788.     AH = 93h
  6789.     CX = size in bytes
  6790. Return: CF clear if successful
  6791.         AX = read handle
  6792.         BX = write handle
  6793.     CF set on error
  6794.         AX = error code (08h) (see #0811 at AH=59h)
  6795. Desc:    create a communications channel which may be used for interprocess
  6796.       data and command exchanges
  6797. SeeAlso: AH=3Ch,AH=3Fh,AH=40h,AH=84h
  6798. --------D-2194-------------------------------
  6799. INT 21 U - European MS-DOS 4.0 - ???
  6800.     AH = 94h
  6801.     ???
  6802. Return: ???
  6803. SeeAlso: AH=87h
  6804. --------D-2195-------------------------------
  6805. INT 21 - European MS-DOS 4.0 - HARD ERROR PROCESSING
  6806.     AH = 95h
  6807.     AL = new state
  6808.        00h enabled
  6809.        01h disabled, automatically fail hard errors
  6810. Return: AX = previous setting
  6811. Desc:    specify whether hard (critical) errors should automatically fail the
  6812.       system call or invoke an INT 24
  6813. SeeAlso: INT 24
  6814. --------D-2196-------------------------------
  6815. INT 21 U - European MS-DOS 4.0 - ???
  6816.     AH = 96h
  6817.     ???
  6818. Return: ???
  6819. --------D-2197-------------------------------
  6820. INT 21 U - European MS-DOS 4.0 - ???
  6821.     AH = 97h
  6822.     ???
  6823. Return: ???
  6824. --------v-219753-----------------------------
  6825. INT 21 - VIRUS - "Nina" - INSTALLATION CHECK
  6826.     AX = 9753h
  6827. Return: never (executes original program) if virus resident
  6828. SeeAlso: AH=90h"VIRUS",AX=A1D5h"VIRUS"
  6829. --------D-2198-------------------------------
  6830. INT 21 U - European MS-DOS 4.0 - ???
  6831.     AH = 98h
  6832.     ???
  6833. Return: ???
  6834. --------D-2199-------------------------------
  6835. INT 21 u - European MS-DOS 4.0 - "PBLOCK" - BLOCK A PROCESS
  6836.     AH = 99h
  6837.     DS:BX -> memory location to block on
  6838.     CX = timeout in milliseconds
  6839.     DH = nonzero if interruptable
  6840. Return: CF clear if awakened by event
  6841.         AX = 0000h
  6842.     CF set if unusual wakeup
  6843.         ZF set if timeout, clear if interrupted by signal
  6844.         AX = nonzero
  6845. Desc:    suspend calling process until another process sends a "restart" signal
  6846.       or a timeout occurs
  6847. SeeAlso: AH=9Ah,INT 2F/AX=0802h
  6848. --------D-219A-------------------------------
  6849. INT 21 u - European MS-DOS 4.0 - "PRUN" - UNBLOCK A PROCESS
  6850.     AH = 9Ah
  6851.     DS:BX -> memory location processes may have blocked on
  6852. Return: AX = number of processes awakened
  6853.     ZF set if no processes awakened
  6854. Program: European MS-DOS 4.0 was written for Siemens in Germany and then used
  6855.       by several other European OEMs; its release falls between mainstream
  6856.       versions 3.2 and 3.3
  6857. Desc:    restart all processes waiting for the specified "restart" signal
  6858. SeeAlso: AH=99h,INT 2F/AX=0802h
  6859. --------I-21A0-------------------------------
  6860. INT 21 - Attachmate Extra! - GET 3270 DISPLAY STATE
  6861.     AH = A0h
  6862. Return: AL = display status (see #0899)
  6863.     BX = host window status (see #0900)
  6864. Program: Attachmate Extra! is a 3270 emulator by Attachmate Corporation
  6865. SeeAlso: AH=A1h
  6866.  
  6867. Bitfields for Attachmate Extra! display status:
  6868. Bit(s)    Description    (Table 0899)
  6869.  7    0=windowed, 1=enlarged
  6870.  6-3    current screen profile number 0-9
  6871.  2-0    active window number (0=PC, 1-4=host B-E, 5-6=notepad F-G)
  6872.  
  6873. Bitfields for host window status:
  6874. Bit(s)    Description    (Table 0900)
  6875.  15    reserved
  6876.  14    0=host E window installed, 1=not
  6877.  13    0=host E terminal on, 1=off
  6878.  12    0=host E window displayed, 1=not
  6879.  11    reserved
  6880.  10    0=host D window installed, 1=not
  6881.  9    0=host D terminal on, 1=off
  6882.  8    0=host D window displayed, 1=not
  6883.  7    reserved
  6884.  6    0=host C window installed, 1=not
  6885.  5    0=host C terminal on, 1=off
  6886.  4    0=host C window displayed, 1=not
  6887.  3    reserved
  6888.  2    0=host B window installed, 1=not
  6889.  1    0=host B terminal on, 1=off
  6890.  0    0=host B window displayed, 1=not
  6891. --------I-21A1-------------------------------
  6892. INT 21 - Attachmate Extra! - SET 3270 DISPLAY STATE
  6893.     AH = A1h
  6894.     AL = new display status byte (see #0899)
  6895. SeeAlso: AH=A0h,AH=A2h
  6896. --------v-21A1D5-----------------------------
  6897. INT 21 - VIRUS - "789"/"Filehider" - INSTALLATION CHECK
  6898.     AX = A1D5h
  6899. Return: AX = 900Dh if resident
  6900. SeeAlso: AX=9753h,AX=A55Ah
  6901. --------I-21A2-------------------------------
  6902. INT 21 - Attachmate Extra! - SET HOST WINDOW STATE
  6903.     AH = A2h
  6904.     AL = new host window status byte (see #0901)
  6905. SeeAlso: AH=A1h
  6906.  
  6907. Bitfields for Attachmate Extra! host window status:
  6908. Bit(s)    Description    (Table 0901)
  6909.  7    0=power off, 1=power on
  6910.  6    0=not installed, 1=installed
  6911.  5-3    reserved
  6912.  2-0    window number 1-4=host B-E
  6913. --------I-21A3-------------------------------
  6914. INT 21 - Attachmate Extra! - SEND KEYSTROKES TO HOST WINDOW
  6915.     AH = A3h
  6916.     AL = window number (1-4=host B-E)
  6917.     CX = 0001h
  6918.     DS:BX -> keystroke buffer
  6919.     DL = zero if keystroke buffer contains host function code (see #0902),
  6920.           non-zero if keystroke buffer contains ASCII character
  6921. Return: CX = zero if character sent, non-zero if not
  6922.     BX incremented if CX=0
  6923.  
  6924. (Table 0902)
  6925. Values for Attachmate Extra! host function code:
  6926.  00h=reserved    10h=PF16    20h=Clear    30h=SysReq
  6927.  01h=PF1    11h=PF17    21h=Print    31h=ErInp
  6928.  02h=PF2    12h=PF18    22h=Left    32h=ErEof
  6929.  03h=PF3    13h=PF19    23h=Right    33h=Ident
  6930.  04h=PF4    14h=PF20    24h=Up        34h=Test
  6931.  05h=PF5    15h=PF21    25h=Down    35h=Reset
  6932.  06h=PF6    16h=PF22    26h=Home    36h=DevCncl
  6933.  07h=PF7    17h=PF23    27h=Fast Left    37h=Dup
  6934.  08h=PF8    18h=PF24    28h=Fast Right    38h=FldMark
  6935.  09h=PF9    19h=Alt on    29h=Bksp    39h=Enter
  6936.  0Ah=PF10    1Ah=Alt off    2Ah=Insert    3Ah=CrSel
  6937.  0Bh=PF11    1Bh=Shift on    2Bh=Delete
  6938.  0Ch=PF12    1Ch=Shift off    2Ch=Backtab
  6939.  0Dh=PF13    1Dh=PA1        2Dh=Tab
  6940.  0Eh=PF14    1Eh=PA2        2Eh=Newline
  6941.  0Fh=PF15    1Fh=PA3        2Fh=Attn
  6942. --------I-21A4-------------------------------
  6943. INT 21 - Attachmate Extra! - GET HOST WINDOW BUFFER ADDRESS
  6944.     AH = A4h
  6945.     AL = window number (1-4=host B-E)
  6946. Return: DS:BX -> 3270 display buffer
  6947. SeeAlso: AH=A5h,AH=B8h
  6948. --------I-21A5-------------------------------
  6949. INT 21 - Attachmate Extra! - GET HOST WINDOW CURSOR POSITION
  6950.     AH = A5h
  6951.     AL = window number (1-4=host B-E)
  6952. Return: BX = cursor position (80 * row + column, where 0:0 is upper left)
  6953. Note:    if the host window is configured with the Extended Attribute (EAB)
  6954.       feature, multiply the cursor position by 2 to obtain the byte offset
  6955.       into the display buffer
  6956. SeeAlso: AH=A4h
  6957. --------v-21A55A-----------------------------
  6958. INT 21 - VIRUS - "Eddie-2" - INSTALLATION CHECK
  6959.     AX = A55Ah
  6960. Return: AX = 5AA5h if resident
  6961. SeeAlso: AX=A1D5h,AX=AA00h
  6962. --------v-21AA00-----------------------------
  6963. INT 21 - VIRUS - "Blinker" - INSTALLATION CHECK
  6964.     AX = AA00h
  6965. Return: AX = 00AAh if resident
  6966. SeeAlso: AX=A55Ah,AX=AA03h
  6967. --------v-21AA03-----------------------------
  6968. INT 21 - VIRUS - "Backtime" - INSTALLATION CHECK
  6969.     AX = AA03h
  6970. Return: AX = 03AAh if resident
  6971. SeeAlso: AX=AA00h,AH=ABh
  6972. --------v-21AB-------------------------------
  6973. INT 21 - VIRUS - "600" or "Voronezh"-family - INSTALLATION CHECK
  6974.     AH = ABh
  6975. Return: AX = 5555h if resident
  6976. SeeAlso: AX=AA03h,AX=BBBBh"VIRUS"
  6977. --------I-21AF-------------------------------
  6978. INT 21 - Attachmate Extra! - GET TRANSLATE TABLE ADDRESS
  6979.     AH = AFh
  6980. Return: DS:BX -> translate tables (see #0903)
  6981.  
  6982. Format of Attachmate Extra! translate tables:
  6983. Offset    Size    Description    (Table 0903)
  6984.  00h 256 BYTEs    ASCII to 3270 buffer code translate table
  6985. 100h 256 BYTEs    3270 buffer code to ASCII translate table
  6986. 200h 256 BYTEs    3270 buffer code to EBCDIC translate table
  6987. 300h 256 BYTEs    EBCDIC to 3270 buffer code translate table
  6988. --------N-21B300-----------------------------
  6989. INT 21 U - Novell NetWare - CHECK LIP/PACKET SIGNING/IPX CHECKSUM SUPPORT???
  6990.     AX = B300h
  6991. Return: AX = 0000h if supported???
  6992. Note:    this function appeared with the packet signing/Large Internet Packets/
  6993.       IPX Checksum-aware NetWare shells
  6994. SeeAlso: AX=B301h,AX=B302h
  6995. --------N-21B301-----------------------------
  6996. INT 21 U - Novell NetWare - CHECK SIGNATURE LEVEL???
  6997.     AX = B301h
  6998. Return: AX = 0000h if supported???
  6999.         BX:CX indicate signature level (see #0904)
  7000. Note:    this function appeared with the packet signing/Large Internet Packets/
  7001.       IPX Checksum-aware NetWare shells
  7002. SeeAlso: AX=B300h,AX=B304h,#1477 at INT 2F/AX=7A20h/BX=0000h
  7003.  
  7004. (Table 0904)
  7005. Values for signature level indicator:
  7006.  0000h:0000h = signature level 0
  7007.  0002h:0000h = signature level 1
  7008.  0202h:0000h = signature level 2
  7009.  0202h:0202h = signature level 3
  7010. --------N-21B302-----------------------------
  7011. INT 21 U - Novell NetWare - START PACKET SIGNING
  7012.     AX = B302h
  7013.     CX = server connection (1-8)
  7014.     DS:SI -> 24-byte buffer containing ???
  7015. Return: ???
  7016. Notes:    this function appeared with the packet signing/Large Internet Packets/
  7017.       IPX Checksum-aware NetWare shells
  7018.     if packet signing is active, this call is required if and only if the
  7019.       last call successfully authenticated the workstation to the server
  7020. --------N-21B304-----------------------------
  7021. INT 21 U - Novell NetWare - SET SIGNATURE LEVEL
  7022.     AX = B304h
  7023.     BX:CX = new signature level (see AX=B301h)
  7024. Return: ???
  7025. Note:    this function appeared with the packet signing/Large Internet Packets/
  7026.       IPX Checksum-aware NetWare shells
  7027. SeeAlso: AX=B300h,AX=B301h
  7028. --------N-21B4-------------------------------
  7029. INT 21 U - Novell NetWare - "AttachHandle"
  7030.     AH = B4h
  7031.     DS:SI -> input buffer (see #0905)
  7032. Return: AX = DOS file handle or return code
  7033. Note:    this is an interface provided by NetWare to give DOS file access to
  7034.       NetWare files on non-DOS systems such as Macintosh, OS/2, and Unix
  7035. SeeAlso: AX=E909h
  7036.  
  7037. Format of Novell NetWare input buffer:
  7038. Offset    Size    Description    (Table 0905)
  7039.  00h    BYTE    "WorkFileServer"
  7040.  01h    BYTE    access code
  7041.  02h    DWORD    "OpenHandle"
  7042.  06h    WORD    "OpenHandleCount"
  7043.  08h    DWORD    "OpenFileSize"
  7044. Note:    the six bytes at 02h-07h appear to be the six-byte NetWare handle
  7045.       returned by AX=E909h
  7046. --------N-21B500-----------------------------
  7047. INT 21 U - Novell NetWare - VNETWARE.386 API - GET INSTANCE DATA
  7048.     AX = B500h
  7049. Return: ES:BX -> data
  7050.     CX = length
  7051. SeeAlso: AX=B501h,AX=B502h
  7052. --------N-21B501-----------------------------
  7053. INT 21 U - Novell NetWare - VNETWARE.386 API - END VIRTUAL MACHINE
  7054.     AX = B501h
  7055. SeeAlso: AX=B500h,AX=B502h
  7056. --------N-21B502-----------------------------
  7057. INT 21 U - Novell NetWare - VNETWARE.386 API - START VIRTUAL MACHINE
  7058.     AX = B502h
  7059. SeeAlso: AX=B500h,AX=B501h
  7060. --------N-21B5-------------------------------
  7061. INT 21 - Novell NetWare shell 3.01 - TASK MODE CONTROL
  7062.     AH = B5h
  7063.     AL = subfunction
  7064.         03h get task mode
  7065.         Return: AH = 00h
  7066.             AL = current task mode byte (see #0906)
  7067.         04h get task mode pointer
  7068.         Return: ES:BX -> task mode byte
  7069. Notes:    the task mode byte specifies how task cleanup should be performed, but
  7070.       is declared to be version-dependent
  7071.     allows a program to disable the automatic cleanup for programs managing
  7072.       task swapping, etc.
  7073.  
  7074. (Table 0906)
  7075. Values for NetWare task mode byte in version 3.01:
  7076.  00h-03h reserved
  7077.  04h     no task cleanup
  7078. --------N-21B505-----------------------------
  7079. INT 21 U - Novell NetWare - VNETWARE.386 API - SET VIRTUAL MACHINE ID
  7080.     AX = B505h
  7081.     ???
  7082. Return: ???
  7083. SeeAlso: AX=B502h,AX=B506h
  7084. --------N-21B506-----------------------------
  7085. INT 21 U - Novell NetWare - VNETWARE.386 API - GET VIRTUAL MACH SUPPORT LEVEL
  7086.     AX = B506h
  7087. Return: AX = ??? (0002h)
  7088. SeeAlso: AX=B505h
  7089. --------N-21B507-----------------------------
  7090. INT 21 - Novell NetWare - NetWare Shell - GET NUMBER OF PACKET BURST BUFFERS
  7091.     AX = B507h
  7092. Return: AL = number of packet burst buffers (configured at shell load time)
  7093. --------N-21B6-------------------------------
  7094. INT 21 - Novell NetWare - FILE SERVICES - EXTENDED FILE ATTRIBUTES
  7095.     AH = B6h
  7096.     AL = subfunction
  7097.         00h get extended file attributes
  7098.         01h set extended file attributes
  7099.         CL = extended file attributes (see #0907)
  7100.     DS:DX -> ASCIZ pathname (max 255 bytes)
  7101. Return: CF set on error
  7102.         AL = error code
  7103.         8Ch caller lacks privileges
  7104.         FEh not permitted to search directory
  7105.         FFh file not found
  7106.     CF clear if successful
  7107.         AL = 00h (success)
  7108.         CL = current extended file attributes (see #0907)
  7109. Note:    this function is supported by Advanced NetWare 2.1+
  7110. SeeAlso: AX=4300h,AH=E3h/SF=0Fh
  7111.  
  7112. Bitfields for NetWare extended file attributes:
  7113. Bit(s)    Description    (Table 0907)
  7114.  2-0    search mode (executables only)
  7115.     000 none (use shell's default search)
  7116.     001 search on all opens without path
  7117.     010 do not search
  7118.     011 search on read-only opens without path
  7119.     100 reserved
  7120.     101 search on all opens
  7121.     110 reserved
  7122.     111 search on all read-only opens
  7123.  3    reserved
  7124.  4    transactions on file tracked
  7125.  5    file's FAT indexed
  7126.  6    read audit (to be implemented)
  7127.  7    write audit (to be implemented)
  7128. --------N-21B7-------------------------------
  7129. INT 21 U - Novell NetWare - "HoldFileModeSet" (obsolete)
  7130.     AH = B7h
  7131.     AL = new value for HoldFileFlag
  7132. Return: AL = previous value of HoldFileFlag
  7133. Note:    this function provided backward compatibility with a bug in early
  7134.       DOS versions and CP/M, but is no longer used or supported
  7135. --------I-21B8-------------------------------
  7136. INT 21 - Attachmate Extra! - DISABLE HOST BUFFER UPDATES
  7137.     AH = B8h
  7138.     AL = window number (1-4=host B-E)
  7139.     DL = 01h
  7140. Notes:    only valid in CUT mode
  7141.     next AID keystroke (eg Enter) enables host buffer updates
  7142. SeeAlso: AH=A4h
  7143. --------N-21B800-----------------------------
  7144. INT 21 - Novell NetWare - PRINT SERVICES - GET DEFAULT CAPTURE FLAGS
  7145.     AX = B800h
  7146.     CX = size of reply buffer (01h-3Fh)
  7147.     ES:BX -> reply buffer for capture flags table (see #0908)
  7148. Return: AL = status
  7149.         00h successful
  7150. Note:    this function is supported by Advanced NetWare 2.0+
  7151. SeeAlso: AX=B801h,AX=B802h,AH=DFh/DL=00h,AH=DFh/DL=04h
  7152.  
  7153. Format of NetWare capture flags table:
  7154. Offset    Size    Description    (Table 0908)
  7155.  00h    BYTE    status (used internally, should be set to 00h)
  7156.  01h    BYTE    print flags (see #0909)
  7157.  02h    BYTE    tab size (01h-12h, default 08h)
  7158.  03h    BYTE    printer number on server (00h-04h, default 00h)
  7159.  04h    BYTE    number of copies to print (00h-FFh, default 01h)
  7160.  05h    BYTE    form type required in printer (default 00h)
  7161.  06h    BYTE    reserved
  7162.  07h 13 BYTEs    text to be placed on banner page
  7163.  14h    BYTE    reserved
  7164.  15h    BYTE    default local printer (00h = LPT1)
  7165.  16h    WORD    (big-endian) timeout in clock ticks for flushing capture file
  7166.           on inactivity, or 0000h to disable timeout
  7167.  18h    BYTE    flush capture file on LPT close if nonzero
  7168.  19h    WORD    (big-endian) maximum lines per page
  7169.  1Bh    WORD    (big-endian) maximum characters per line
  7170.  1Dh 13 BYTEs    name of form required in printer
  7171.  2Ah    BYTE    LPT capture flag
  7172.         00h inactive, FFh LPT device is being captured
  7173.  2Bh    BYTE    file capture flag
  7174.         00h if no file specified, FFh if capturing to file
  7175.  2Ch    BYTE    timing out (00h if no timeout in effect, FFh if timeout counter
  7176.           running)
  7177.  2Dh    DWORD    (big-endian) address of printer setup string
  7178.  31h    DWORD    (big-endian) address of printer reset string
  7179.  35h    BYTE    target connection ID
  7180.  36h    BYTE    capture in progress if FFh
  7181.  37h    BYTE    job queued for printing if FFh
  7182.  38h    BYTE    print job valid if FFh
  7183.  39h    DWORD    bindery object ID of print queue if previous byte FFh
  7184.  3Dh    WORD    (big-endian) print job number (1-999)
  7185.  
  7186. Bitfields for NetWare print flags:
  7187. Bit(s)    Description    (Table 0909)
  7188.  2    print capture file if interrupted by loss of connection
  7189.  3    no automatic form feed after print job
  7190.  6    printing control sequences interpreted by print service
  7191.  7    print banner page before capture file
  7192. --------N-21B801-----------------------------
  7193. INT 21 - Novell NetWare - PRINT SERVICES - SET DEFAULT CAPTURE FLAGS
  7194.     AX = B801h
  7195.     CX = size of buffer (01h-3Fh)
  7196.     ES:BX -> buffer containing capture flags table (see #0908)
  7197. Return: AL = status
  7198.         00h successful
  7199. Note:    this function is supported by Advanced NetWare 2.0+
  7200. SeeAlso: AX=B800h,AX=B803h,AH=DFh/DL=00h,AH=DFh/DL=04h
  7201. --------N-21B802-----------------------------
  7202. INT 21 - Novell NetWare - PRINT SERVICES - GET SPECIFIC CAPTURE FLAGS
  7203.     AX = B802h
  7204.     CX = size of reply buffer (01h-3Fh)
  7205.     DH = LPT port (00h-02h)
  7206.     ES:BX -> reply buffer for capture flags table (see #0908)
  7207. Return: AL = status
  7208.         00h successful
  7209. Note:    this function is supported by Advanced NetWare 2.1+
  7210. SeeAlso: AX=B800h,AX=B803h,AH=DFh/DL=00h,AH=DFh/DL=04h
  7211. --------N-21B803-----------------------------
  7212. INT 21 - Novell NetWare - PRINT SERVICES - SET SPECIFIC CAPTURE FLAGS
  7213.     AX = B803h
  7214.     CX = size of buffer (01h-3Fh)
  7215.     DH = LPT port (00h-02h)
  7216.     ES:BX -> buffer containing capture flags table (see #0908)
  7217. Return: AL = status
  7218.         00h successful
  7219. Note:    this function is supported by Advanced NetWare 2.1+
  7220. SeeAlso: AX=B800h,AX=B803h,AH=DFh/DL=00h,AH=DFh/DL=04h
  7221. --------N-21B804-----------------------------
  7222. INT 21 - Novell NetWare - PRINT SERVICES - GET DEFAULT LOCAL PRINTER
  7223.     AX = B804h
  7224. Return: DH = default LPT port (00h-02h)
  7225. Note:    this function is supported by Advanced NetWare 2.1+
  7226. SeeAlso: AX=B800h,AX=B805h,AH=DFh/DL=00h
  7227. --------N-21B805-----------------------------
  7228. INT 21 - Novell NetWare - PRINT SERVICES - SET DEFAULT LOCAL PRINTER
  7229.     AX = B805h
  7230.     DH = new default LPT port (00h-02h)
  7231. Return: AL = status
  7232.         00h successful
  7233. Note:    this function is supported by Advanced NetWare 2.1+
  7234. SeeAlso: AX=B800h,AX=B804h,AH=DFh/DL=00h
  7235. --------N-21B806-----------------------------
  7236. INT 21 - Novell NetWare - PRINT SERVICES - SET CAPTURE PRINT QUEUE
  7237.     AX = B806h
  7238.     DH = LPT port (00h-02h)
  7239.     BX:CX = print queue's object ID
  7240. Return: AL = status
  7241.         00h successful
  7242.         FFh job already set
  7243. Desc:    specify the print queue on which a print job is to be placed the next
  7244.       time a capture is started on the given printer port
  7245. Note:    this function is supported by Advanced NetWare 2.1+
  7246. SeeAlso: AX=B801h,AX=B807h,AH=E0h/SF=09h
  7247. --------N-21B807-----------------------------
  7248. INT 21 - Novell NetWare - PRINT SERVICES - SET CAPTURE PRINT JOB
  7249.     AX = B807h
  7250.     DH = LPT port (00h-02h)
  7251.     BX = job number (see AH=E3h/SF=68h)
  7252.     SI:DI:CX = NetWare file handle (see AH=E3h/SF=68h)
  7253. Return: AL = status
  7254.         00h successful
  7255.         FFh job already queued
  7256. Desc:    specify the capture file and print job to be used for subsequent
  7257.       output to the given printer port
  7258. Note:    this function is supported by Advanced NetWare 2.1+
  7259. SeeAlso: AX=B801h,AX=B806h,AH=E0/SF=09h,AH=E3h/SF=68h
  7260. --------N-21B808-----------------------------
  7261. INT 21 - Novell NetWare - PRINT SERVICES - GET BANNER USER NAME
  7262.     AX = B808h
  7263.     ES:BX -> 12-byte buffer for user name
  7264. Return: AL = status
  7265.         00h successful
  7266. Desc:    get the user name which is printed on the banner page
  7267. Notes:    this function is supported by Advanced NetWare 2.1+
  7268.     the default name is the login name of the user
  7269. SeeAlso: AX=B809h
  7270. --------N-21B809-----------------------------
  7271. INT 21 - Novell NetWare - PRINT SERVICES - SET BANNER USER NAME
  7272.     AX = B809h
  7273.     ES:BX -> 12-byte buffer containing user name
  7274. Return: AL = status
  7275.         00h successful
  7276. Desc:    specify the user name which is printed on the banner page
  7277. Notes:    this function is supported by Advanced NetWare 2.1+
  7278.     the default name is the login name of the user
  7279. SeeAlso: AX=B808h
  7280. --------N-21B9-------------------------------
  7281. INT 21 U - Novell NetWare - "SpecialAttachableFunction"
  7282.     AH = B9h
  7283.     AL = FFh to hook this function
  7284.         ES:BX -> function to invoke on AH=B9h when AL<>FFh
  7285. Note:    this function is no longer used or supported by current versions of
  7286.       NetWare
  7287. --------N-21BA-------------------------------
  7288. INT 21 U - Novell NetWare - "ReturnCommandComPointers"
  7289.     AH = BAh
  7290. Return: DX = environment segment
  7291.     ES:DI -> COMMAND.COM drive
  7292. Desc:    used to edit the COMSPEC and PATH variables in the master environment
  7293.       when mapping network drives
  7294. Note:    this function was documented in older Novell documents which are no
  7295.       longer available
  7296. --------N-21BB-------------------------------
  7297. INT 21 - Novell NetWare - WORKSTATION - SET END OF JOB STATUS
  7298.     AH = BBh
  7299.     AL = new EOJ flag
  7300.         00h disable EOJs
  7301.         01h enable EOJs
  7302. Return: AL = old EOJ flag
  7303. Desc:    specify whether the network shell should automatically generate an
  7304.       End of Job call when the root command processor regains control
  7305. Note:    this function is supported by NetWare 4.0+, Advanced NetWare 1.0+, and
  7306.       Alloy NTNX
  7307. SeeAlso: AH=19h,AH=D6h
  7308. --------v-21BBBB-----------------------------
  7309. INT 21 - VIRUS - "Hey You" - INSTALLATION CHECK
  7310.     AX = BBBBh
  7311. Return: AX = 6969h
  7312. SeeAlso: AH=ABh"VIRUS",AH=BEh"VIRUS"
  7313. --------N-21BC-------------------------------
  7314. INT 21 - Novell NetWare - SYNCHRONIZATION SERVICES - LOG PHYSICAL RECORD
  7315.     AH = BCh
  7316.     AL = flags (see #0911)
  7317.     BX = file handle
  7318.     CX:DX = starting offset in file
  7319.     SI:DI = length of region to lock
  7320.     BP = timeout in timer ticks (1/18 sec)
  7321.         0000h = don't wait if already locked
  7322. Return: AL = status (see #0910)
  7323. Desc:    add the specified physical record to the log table, optionally locking
  7324.       it
  7325. Note:    this function is supported by NetWare 4.6+, Advanced NetWare 1.0+, and
  7326.       Alloy NTNX
  7327. SeeAlso: AH=5Ch,AH=BDh,AH=BEh,AH=BFh,AH=C2h,AH=D0h
  7328.  
  7329. (Table 0910)
  7330. Values for NetWare status:
  7331.  00h    successful
  7332.  96h    no dynamic memory for file
  7333.  FEh    timed out
  7334.  FFh    failed
  7335.  
  7336. Bitfields for NetWare flags:
  7337. Bit(s)    Description    (Table 0911)
  7338.  0    lock as well as log record
  7339.  1    non-exclusive lock
  7340. --------N-21BD-------------------------------
  7341. INT 21 - Novell NetWare - SYNCHRONIZATION SERVICES - RELEASE PHYSICAL RECORD
  7342.     AH = BDh
  7343.     BX = file handle
  7344.     CX:DX = starting offset in file
  7345.     SI:DI = length of record
  7346. Return: AL = status
  7347.         00h successful
  7348.         FFh record not locked
  7349. Desc:    unlock the specified physical record but do not remove it from log
  7350.       table
  7351. Note:    this function is supported by NetWare 4.6+, Advanced NetWare 1.0+, and
  7352.       Alloy NTNX
  7353. SeeAlso: AH=BCh,AH=BEh"NetWare",AH=C0h,AH=C3h,AH=D2h
  7354. --------N-21BE-------------------------------
  7355. INT 21 - Novell NetWare - SYNCHRONIZATION SERVICES - CLEAR PHYSICAL RECORD
  7356.     AH = BEh
  7357.     BX = file handle
  7358.     CX:DX = starting offset within file
  7359.     SI:DI = record length in bytes
  7360. Return: AL = status
  7361.         00h successful
  7362.         FFh specified record not locked
  7363. Desc:    unlock the physical record and remove it from the log table
  7364. Note:    this function is supported by NetWare 4.6+, Advanced NetWare 1.0+, and
  7365.       Alloy NTNX
  7366. SeeAlso: AH=5Ch,AH=BCh,AH=BDh,AH=C1h,AH=C4h,AH=D4h
  7367. --------v-21BE-------------------------------
  7368. INT 21 - VIRUS - "Datalock" - INSTALLATION CHECK
  7369.     AH = BEh
  7370. Return: AX = 1234h if resident
  7371. SeeAlso: AX=BBBBh,AX=BE00h
  7372. --------v-21BE00-----------------------------
  7373. INT 21 - VIRUS - "USSR-1049" - INSTALLATION CHECK
  7374.     AX = BE00h
  7375.     CF set
  7376. Return: CF clear if resident
  7377. SeeAlso: AH=BEh"VIRUS",AH=C0h"VIRUS"
  7378. --------N-21BF-------------------------------
  7379. INT 21 O - Novell NetWare, Alloy NTNX - LOG/LOCK RECORD (FCB)
  7380.     AH = BFh
  7381.     AL = flags (see #0911)
  7382.     DS:DX -> opened FCB (see #0506 at AH=0Fh)
  7383.     BX:CX = offset
  7384.     BP = lock timeout in timer ticks (1/18 sec) if AL nonzero
  7385.     SI:DI = length
  7386. Return: AL = error code (see #0910)
  7387. Note:    this function was added in NetWare 4.6, but was removed some time prior
  7388.       to Advanced NetWare 2.15, and is no longer listed in current Novell
  7389.       documentation
  7390. SeeAlso: AH=BCh,AH=C0h"NetWare",AH=C2h"NetWare"
  7391. --------!---Section--------------------------
  7392.