home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / INTER38A.ZIP / INTERRUP.D < prev    next >
Text File  |  1993-12-05  |  348KB  |  9,331 lines

  1. Interrupt List, part 4 of 10
  2. This compilation is Copyright (c) 1989,1990,1991,1992,1993 Ralf Brown
  3. --------D-2142-------------------------------
  4. INT 21 - DOS 2+ - "LSEEK" - SET CURRENT FILE POSITION
  5.     AH = 42h
  6.     AL = origin of move
  7.         00h start of file
  8.         01h current file position
  9.         02h end of file
  10.     BX = file handle
  11.     CX:DX = offset from origin of new file position
  12. Return: CF clear if successful
  13.         DX:AX = new file position in bytes from start of file
  14.     CF set on error
  15.         AX = error code (01h,06h) (see AH=59h)
  16. Notes:    for origins 01h and 02h, the pointer may be positioned before the
  17.       start of the file; no error is returned in that case, but subsequent
  18.       attempts at I/O will produce errors
  19.     if the new position is beyond the current end of file, the file will
  20.       be extended by the next write (see AH=40h)
  21. BUG:    using this method to grow a file from zero bytes to a very large size
  22.       can corrupt the FAT in some versions of DOS; the file should first
  23.       be grown from zero to one byte and then to the desired large size
  24. SeeAlso: AH=24h,INT 2F/AX=1228h
  25. --------v-214203-----------------------------
  26. INT 21 - VIRUS - "Shake" - INSTALLATION CHECK
  27.     AX = 4203h
  28. Return: AX = 1234h if resident
  29. SeeAlso: AX=3DFFh,AX=4243h
  30. --------v-214243-----------------------------
  31. INT 21 - VIRUS - "Invader" - INSTALLATION CHECK
  32.     AX = 4243h
  33. Return: AX = 5678h if resident
  34. SeeAlso: AX=4203h,AX=4B04h
  35. --------D-214300-----------------------------
  36. INT 21 - DOS 2+ - GET FILE ATTRIBUTES
  37.     AX = 4300h
  38.     DS:DX -> ASCIZ filename
  39. Return: CF clear if successful
  40.         CX = file attributes (see AX=4301h)
  41.         AX = CX (DR-DOS 5.0)
  42.     CF set on error
  43.         AX = error code (01h,02h,03h,05h) (see AH=59h)
  44. Notes:    under the FlashTek X-32 DOS extender, the filename pointer is in DS:EDX
  45.     under DR-DOS 3.41 and 5.0, attempts to change the subdirectory bit are
  46.       simply ignored without an error
  47. SeeAlso: AX=4301h,AX=4310h,AH=B6h,INT 2F/AX=110Fh
  48. --------D-214301-----------------------------
  49. INT 21 - DOS 2+ - "CHMOD" - SET FILE ATTRIBUTES
  50.     AX = 4301h
  51.     CX = new file attributes (see below)
  52.     DS:DX -> ASCIZ filename
  53. Return: CF clear if successful
  54.         AX destroyed
  55.     CF set on error
  56.         AX = error code (01h,02h,03h,05h) (see AH=59h)
  57. Notes:    will not change volume label or directory attribute bits, but will
  58.       change the other attribute bits of a directory (the directory
  59.       bit must be cleared to successfully change the other attributes of a
  60.       directory, but the directory will not be changed to a normal file as
  61.       a result)
  62.     MS-DOS 4.01 reportedly closes the file if it is currently open
  63.     for security reasons, the Novell NetWare execute-only bit can never
  64.       be cleared; the file must be deleted and recreated
  65.     under the FlashTek X-32 DOS extender, the filename pointer is in DS:EDX
  66.     DOS 5.0 SHARE will close the file if it is currently open in sharing-
  67.       compatibility mode, otherwise a sharing violation critical error is
  68.       generated if the file is currently open
  69. SeeAlso: AX=4300h,AX=4311h,INT 2F/AX=110Eh
  70.  
  71. Bitfields for file attributes:
  72.  bit 7    shareable (Novell NetWare)
  73.  bit 6    unused
  74.  bit 5    archive
  75.  bit 4    directory
  76.  bit 3    volume label
  77.     execute-only (Novell NetWare)
  78.  bit 2    system
  79.  bit 1    hidden
  80.  bit 0    read-only
  81. --------O-214302-----------------------------
  82. INT 21 - DR-DOS 3.41+ internal - GET ACCESS RIGHTS
  83.     AX = 4302h
  84.     DS:DX -> ASCIZ pathname
  85. Return: CF clear if successful
  86.         CX = access rights (see below)
  87.         AX = CX (DR-DOS 5.0)
  88.     CF set on error
  89.         AX = error code
  90. Desc:    Determine which operations the calling program may perform on a
  91.       specified file without being required to provide a password.
  92. Notes:    this protection scheme has been coordinated on all current Digital
  93.       Research/Novell operating systems (DR-DOS 3.41+, DRMDOS 5.x, and
  94.       FlexOS 2+)
  95.     this function is documented in DR-DOS 6.0 and corresponds to the
  96.       "Get/Set File Attributes" function, subfunction 2, documented in
  97.       Concurrent DOS.
  98.     only FlexOS actually uses the "execution" bits; DR-DOS 3.41+ treats
  99.       them as "read" bits.
  100.     DR-DOS 3.41-5.x only use bits 0-3.  Only DR-DOS 6.0 using a
  101.       DRMDOS 5.x security system allowing for users and groups uses bits
  102.       4-11.
  103. SeeAlso: AX=4303h
  104.  
  105. Bitfields for access rights:
  106.  bit 0    owner delete requires password
  107.  bit 1    owner execution requires password (FlexOS)
  108.  bit 2    owner write requires password
  109.  bit 3    owner read requires password
  110.  bit 4    group delete requires password
  111.  bit 5    group execution requires password (FlexOS)
  112.  bit 6    group write requires password
  113.  bit 7    group read requires password
  114.  bit 8    world delete requires password
  115.  bit 9    world execution requires password (FlexOS)
  116.  bit 10 world write requires password
  117.  bit 11 world read requires password
  118. --------O-214303-----------------------------
  119. INT 21 - DR-DOS 3.41+ internal - SET ACCESS RIGHTS AND PASSWORD
  120.     AX = 4303h
  121.     CX = access rights
  122.          bits 11-0: access rights (see AX=4302h)
  123.          bit 15: new password is to be set
  124.     DS:DX -> ASCIZ pathname
  125.     [DTA] = new password if CX bit 15 is set (blank-padded to 8 characters)
  126. Return: CF clear if successful
  127.     CF set on error
  128.         AX = error code
  129. Notes:    if the file is already protected, the old password must be added after
  130.       the pathname, separated by a ";"
  131.     this function is documented in DR-DOS 6.0 and corresponds to the
  132.       "Get/Set File Attributes" function, subfunction 3, documented in
  133.       Concurrent DOS.
  134. SeeAlso: AH=0Fh,AH=17h,AX=4302h,AX=4305h,AX=4454h
  135. --------O-214304-----------------------------
  136. INT 21 U - DR-DOS 5.0-6.0 internal - GET ENCRYPTED PASSWORD
  137.     AX = 4304h
  138.     DS:DX -> ASCIZ filename
  139.     ???
  140. Return: CF clear if successful
  141.         CX = AX = 0000h if no password assigned to file
  142.     CF set on error
  143.         AX = error code (see AH=59h)
  144. Note:    this function is only supported by DR-DOS 5.0 and 6.0 and DRMDOS 5.1
  145. SeeAlso: AX=4303h,AX=4305h
  146. --------O-214305-----------------------------
  147. INT 21 U - DR-DOS 5.0-6.0 internal - SET EXTENDED FILE ATTRIBUTES
  148.     AX = 4305h
  149.     DS:DX -> ASCIZ filename
  150.     ???
  151. Return: CF clear if successful
  152.     CF set on error
  153.         AX = error code (see AH=59h)
  154. Desc:    this function allows the extended attributes, and optionally the
  155.       encrypted password, of a file to be set.
  156. Note:    this function is only supported by DR-DOS 5.0 and 6.0 and DRMDOS 5.1
  157. SeeAlso: AX=4304h,AX=4311h
  158. --------O-214306-----------------------------
  159. INT 21 - DR-DOS 6.0 - GET FILE OWNER
  160.     AX = 4306h
  161.     DS:DX -> ASCIZ filename
  162. Return: CF clear if successful
  163.         AX = CX = value set with AX=4307h
  164.     CF set on error
  165.         AX = error code (see AH=59h)
  166. SeeAlso: AX=4307h
  167. --------O-214307-----------------------------
  168. INT 21 - DR-DOS 6.0 - SET FILE OWNER
  169.     AX = 4307h
  170.     CX = ??? (owner identification number?)
  171.     DS:DX -> ASCIZ filename
  172. Return: CF clear if successful
  173.     CF set on error
  174.         AX = error code (see AH=59h)
  175. SeeAlso: AX=4306h
  176. --------N-214310-----------------------------
  177. INT 21 - Banyan VINES 2.1+ - GET EXTENDED FILE ATTRIBUTES
  178.     AX = 4310h
  179.     DS:DX -> ASCIZ filename
  180. Return: CF clear if successful
  181.         CH = attributes (see AX=4311h)
  182.     CF set on error
  183.         AX = error code (01h,02h,03h,05h) (see AH=59h)
  184. Note:    the filename may be a directory but must be on a VINES file service
  185. SeeAlso: AX=4300h,AX=4311h,AH=B6h,INT 2F/AX=110Fh
  186. --------N-214311-----------------------------
  187. INT 21 - Banyan VINES 2.1+ - SET EXTENDED FILE ATTRIBUTES
  188.     AX = 4311h
  189.     CH = new attributes
  190.         bit 7: unused
  191.         bit 6: shareable
  192.         bit 5: execute-only
  193.         bits 4-0: unused
  194.     DS:DX -> ASCIZ filename
  195. Return: CF clear if successful
  196.     CF set on error
  197.         AX = error code (01h,02h,03h,05h) (see AH=59h)
  198. Note:    the filename may be a directory but must be on a VINES file service
  199. SeeAlso: AX=4301h,AX=4305h,AX=4310h,INT 2F/AX=110Eh
  200. --------O-214380-----------------------------
  201. INT 21 - Novell DOS 7 - UNDELETE PENDING DELETE FILE
  202.     AX = 4380h
  203.     ???
  204. Return: ???
  205. SeeAlso: AH=41h,AX=4381h
  206. --------O-214381-----------------------------
  207. INT 21 - Novell DOS 7 - PURGE PENDING DELETE FILE
  208.     AX = 4381h
  209.     ???
  210. Return: ???
  211. SeeAlso: AH=41h,AX=4380h
  212. --------D-214400-----------------------------
  213. INT 21 - DOS 2+ - IOCTL - GET DEVICE INFORMATION
  214.     AX = 4400h
  215.     BX = handle
  216. Return: CF clear if successful
  217.         DX = device information word (see below)
  218.         AX destroyed
  219.     CF set on error
  220.         AX = error code (01h,05h,06h) (see AH=59h)
  221. Notes:    value in DH corresponds to high byte of device driver's attribute word
  222.       if handle refers to a character device
  223.     Novell NetWare reportedly does not return a drive number in bits 5-0
  224.       for a disk file
  225. SeeAlso: AX=4401h,INT 2F/AX=122Bh
  226.  
  227. Bitfields for device information word:
  228.  character device
  229.   bit 14: device driver can process IOCTL requests (see AX=4402h)
  230.   bit 13: output until busy supported
  231.   bit 11: driver supports OPEN/CLOSE calls
  232.   bit  7: set (indicates device)
  233.   bit  6: EOF on input
  234.   bit  5: raw (binary) mode
  235.   bit  4: device is special (uses INT 29)
  236.   bit  3: clock device
  237.   bit  2: NUL device
  238.   bit  1: standard output
  239.   bit  0: standard input
  240.  disk file
  241.   bit 15: file is remote (DOS 3+)
  242.   bit 14: don't set file date/time on closing (DOS 3+)
  243.   bit 11: media not removable
  244.   bit  8: (DOS 4 only) generate INT 24 if no disk space on write or read past
  245.         end of file
  246.   bit  7: clear (indicates file)
  247.   bit  6: file has not been written
  248.   bits 5-0: drive number (0 = A:)
  249. --------D-214401-----------------------------
  250. INT 21 - DOS 2+ - IOCTL - SET DEVICE INFORMATION
  251.     AX = 4401h
  252.     BX = handle (must refer to character device)
  253.     DX = device information word (see AX=4400h)
  254.         (DH must be zero)
  255. Return: CF clear if successful
  256.     CF set on error
  257.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  258. SeeAlso: AX=4400h,INT 2F/AX=122Bh
  259. --------D-214402-----------------------------
  260. INT 21 - DOS 2+ - IOCTL - READ FROM CHARACTER DEVICE CONTROL CHANNEL
  261.     AX = 4402h
  262.     BX = file handle referencing character device
  263.     CX = number of bytes to read
  264.     DS:DX -> buffer
  265. Return: CF clear if successful
  266.         AX = number of bytes actually read
  267.     CF set on error
  268.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  269. Note:    format of data is driver-specific (see below for some specific cases)
  270. SeeAlso: AX=4400h,AX=4403h,AX=4404h,INT 2F/AX=122Bh
  271. --------N-214402-----------------------------
  272. INT 21 - Network Driver Interface Specification (NDIS) 2.0.1 - PROTOCOL MANAGER
  273.     AX = 4402h
  274.     BX = file handle for device "PROTMAN$"
  275.     CX = 000Eh (size of request block)
  276.     DS:DX -> request block (see below)
  277. Return: CF clear if successful
  278.         AX = number of bytes actually read
  279.     CF set on error
  280.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  281. SeeAlso: AX=4402h"FTPSOFT"
  282.  
  283. Format of request block for GetProtocolManagerInfo:
  284. Offset    Size    Description
  285.  00h    WORD    01h
  286.  02h    WORD    returned status (see below)
  287.  04h    DWORD    returned pointer to structure representing parsed user config
  288.  08h    DWORD    unused
  289.  0Ch    WORD    returned BCD version of NDIS on which Protocol Manager is based
  290.  
  291. Format of request block for RegisterModule:
  292. Offset    Size    Description
  293.  00h    WORD    02h
  294.  02h    WORD    returned status (see below)
  295.  04h    DWORD    pointer to module's common characteristics table (see below)
  296.  08h    DWORD    pointer to list of modules to which the module is to be bound
  297.  0Ch    WORD    unused
  298.  
  299. Format of request block for BindAndStart:
  300. Offset    Size    Description
  301.  00h    WORD    03h
  302.  02h    WORD    returned status (see below)
  303.  04h    DWORD    caller's virtual address in FailingModules structure
  304.  08h    DWORD    unused
  305.  0Ch    WORD    unused
  306.  
  307. Format of request block for GetProtocolManagerLinkage:
  308. Offset    Size    Description
  309.  00h    WORD    04h
  310.  02h    WORD    returned status (see below)
  311.  04h    DWORD    returned dispatch point
  312.  08h    DWORD    unused
  313.  0Ch    WORD    returned protocol manager DS
  314. Note:    the dispatch point may be called as follows instead of using this IOCTL
  315.     STACK: WORD  protocol manager DS
  316.            DWORD pointer to request block
  317.     Return: AX = returned status
  318.         STACK popped
  319.  
  320. Format of request block for GetProtocolIniPath:
  321. Offset    Size    Description
  322.  00h    WORD    05h
  323.  02h    WORD    returned status (see below)
  324.  04h    DWORD    pointer to a buffer for the ASCIZ pathname of PROTOCOL.INI
  325.  08h    DWORD    unused
  326.  0Ch    WORD    buffer length
  327.  
  328. Format of request block for RegisterProtocolManagerInfo:
  329. Offset    Size    Description
  330.  00h    WORD    06h
  331.  02h    WORD    returned status (see below)
  332.  04h    DWORD    pointer to structure containing parsed user config file
  333.  08h    DWORD    unused
  334.  0Ch    WORD    length of structure
  335.  
  336. Format of request block for InitAndRegister:
  337. Offset    Size    Description
  338.  00h    WORD    07h
  339.  02h    WORD    returned status (see below)
  340.  04h    DWORD    unused
  341.  08h    DWORD    poitner to ASCIZ name of the module to be prebind initialized
  342.  0Ch    WORD    unused
  343.  
  344. Format of request block for UnbindAndStop:
  345. Offset    Size    Description
  346.  00h    WORD    08h
  347.  02h    WORD    returned status (see below)
  348.  04h    DWORD    failing modules as for BindAndStart
  349.  08h    DWORD    if not 0000h:0000h, pointer to ASCIZ name of module to unbind
  350.         if 0000h:0000h, terminate a set of previously dynamically
  351.           bound protocol modules
  352.  0Ch    WORD    unused
  353.  
  354. Format of request block for BindStatus:
  355. Offset    Size    Description
  356.  00h    WORD    09h
  357.  02h    WORD    returned status (see below)
  358.  04h    DWORD    must be 0000h:0000h
  359.         on return, points to root tree
  360.  08h    DWORD    0000h:0000h
  361.  0Ch    WORD    unused under DOS
  362.  
  363. Format of request block for RegisterStatus:
  364. Offset    Size    Description
  365.  00h    WORD    0Ah
  366.  02h    WORD    returned status (0000h, 0008h, 002Ch) (see below)
  367.  04h    DWORD    0000h:0000h
  368.  08h    DWORD    pointer to 16-byte ASCIZ module name
  369.  0Ch    WORD    0000h
  370. Note:    not supported by the 10NET v5.0 PROTMAN$ driver
  371.  
  372. Values for status code:
  373.  0000h    success
  374.  0001h    wait for release--protocol has retained control of the data buffer
  375.  0002h    request queued
  376.  0003h    frame not recognized
  377.  0004h    frame rejected
  378.  0005h    frame should be forwarded
  379.  0006h    out of resource
  380.  0007h    invalid parameter
  381.  0008h    invalid function
  382.  0009h    not supported
  383.  000Ah    hardware error
  384.  000Bh    transmit error
  385.  000Ch    unrecognized destination
  386.  000Dh    buffer too small
  387.  0020h    already started
  388.  0021h    binding incomplete
  389.  0022h    driver not initialized
  390.  0023h    hardware not found
  391.  0024h    hardware failure
  392.  0025h    configuration failure
  393.  0026h    interrupt conflict
  394.  0027h    MAC incompatible
  395.  0028h    initialization failed
  396.  0029h    no binding
  397.  002Ah    network may be disconnected
  398.  002Bh    incompatible OS version
  399.  002Ch    already registered
  400.  002Dh    path not found
  401.  002Eh    insufficient memory
  402.  002Fh    info not found
  403.  00FFh    general failure
  404.  F000h-FFFFh reserved for vendor-specific codes, treated as general failure
  405.  
  406. Format of common characteristics table:
  407. Offset    Size    Description
  408.  00h    WORD    size of table in bytes
  409.  02h    BYTE    NDIS major version
  410.  03h    BYTE    NDIS minor version
  411.  04h    WORD    reserved
  412.  06h    BYTE    module major version
  413.  07h    BYTE    module minor version
  414.  08h    DWORD    module function flag bits
  415.         bit 0: binding at upper boundary supported
  416.         bit 1: binding at lower boundary supported
  417.         bit 2: dynamically bound
  418.         bits 3-31 reserved, must be 0
  419.  0Ch 16 BYTEs    ASCIZ module name
  420.  1Ch    BYTE    upper boundary protocol level (see below)
  421.  1Dh    BYTE    upper boundary interface type
  422.         for MACs: 1 = MAC
  423.         for data links and transports: to be defined
  424.         for session: 1 = NCB
  425.         any level: 0 = private (ISV-defined)
  426.  1Eh    BYTE    lower boundary protocol level (see below)
  427.  1Fh    BYTE    lower boundary interface type
  428.         same as offset 1Dh
  429.  20h    WORD    module ID filled in by protocol manager
  430.  22h    WORD    module DS
  431.  24h    DWORD    system request entry point
  432.  28h    DWORD    pointer to service-specific characteristics
  433.         0000h:0000h if none
  434.  2Ch    DWORD    pointer to service-specific status, or 0000h:0000h if none
  435.  30h    DWORD    pointer to upper dispatch table (see below)
  436.         0000h:0000h if none
  437.  34h    DWORD    pointer to lower dispatch table (see below)
  438.         0000h:0000h if none
  439.  38h  2 DWORDs    reserved, must be 0
  440. Note:    for compatibility with NDIS 1.x.x, a major version of 00h is
  441.       interpreted as 01h
  442.  
  443. Values for boundary protocol level:
  444.  00h    physical
  445.  01h    Media Access Control
  446.  02h    Data link
  447.  03h    network
  448.  04h    transport
  449.  05h    session
  450.  FFh    not specified
  451.  
  452. Format of dispatch table:
  453. Offset    Size    Description
  454.  00h    DWORD    -> common characteristics table (see above)
  455.  04h  4 BYTEs    ???
  456.  08h    DWORD    -> ??? function (called with 12 bytes of stack arguments)
  457.  0Ch    DWORD    -> ??? function (called with 10 bytes of stack arguments)
  458.  10h    DWORD    -> ??? function (called with 16 bytes of stack arguments)
  459.  14h    DWORD    -> ??? function (called with 4 bytes of stack arguments)
  460.  18h    DWORD    -> ??? function (called with 18 bytes of stack arguments)
  461.  1Ch    DWORD    -> ??? function (called with 12 bytes of stack arguments)
  462.  
  463. Format of MAC Service-Specific Characteristics Table:
  464. Offset    Size    Description
  465.  00h    WORD    length of table in bytes
  466.  02h 16 BYTEs    ASCIZ MAC type name, "802.3", "802.4", "802.5", "802.6", "DIX",
  467.         "DIX+802.3", "APPLETALK", "ARCNET", "FDDI", "SDLC", "BSC",
  468.         "HDLC", or "ISDN"
  469.  12h    WORD    length of station addresses in bytes
  470.  14h 16 BYTEs    permanent station address
  471.  24h 16 BYTEs    current station address
  472.  34h    DWORD    current functional adapter address (00000000h if none)
  473.  38h    DWORD    pointer to multicast address list
  474.  3Ch    DWORD    link speed in bits/sec
  475.  40h    DWORD    service flags (see below)
  476.  44h    WORD    maximum frame size which may be both sent and received
  477.  46h    DWORD    total transmit buffer capacity in bytes
  478.  4Ah    WORD    transmit buffer allocation block size in bytes
  479.  4Ch    DWORD    total receive buffer capacity in bytes
  480.  50h    WORD    receive buffer allocation block size in bytes
  481.  52h  3 BYTEs    IEEE vendor code
  482.  55h    BYTE    vendor adapter code
  483.  56h    DWORD    pointer to ASCIZ vendor adapter description
  484.  5Ah    WORD    IRQ used by adapter
  485.  5Ch    WORD    transmit queue depth
  486.  5Eh    WORD    maximum supported number of data blocks in buffer descriptors
  487.  60h  N BYTEs    vendor-specific info
  488.  
  489. Bitfields for service flags:
  490.  bit 0    supports broadcast
  491.  bit 1    supports multicast
  492.  bit 2    supports functional/group addressing
  493.  bit 3    supports promiscuous mode
  494.  bit 4    station address software settable
  495.  bit 5    statistics always current
  496.  bit 6    supports InitiateDiagnostics
  497.  bit 7    supports loopback
  498.  bit 8    MAC does primarily ReceiveChain indications instead of ReceiveLookahead
  499.     indications
  500.  bit 9    supports IBM source routing
  501.  bit 10 supports MAC reset
  502.  bit 11 supports Open/Close adapter
  503.  bit 12 supports interrupt request
  504.  bit 13 supports source routing bridge
  505.  bit 14 supports GDT virtual addresses (OS/2 version)
  506.  bit 15 multiple TransferDatas allowed durign a single indication
  507.  bit 16 MAC normally sets FrameSize = 0 in ReceiveLookahead
  508.  bit 17-31 reserved, must be 0
  509.  
  510. Format of NetBIOS Service-Specific Characteristics Table
  511. Offset    Size    Description
  512.  00h    WORD    length of table in bytes
  513.  02h 16 BYTEs    ASCIZ type name of NetBIOS module
  514.  12h    WORD    NetBIOS module code
  515.  14h  N BYTEs    vendor-specific info
  516.  
  517. Format of MAC Service-Specific Status Table:
  518. Offset    Size    Description
  519.  00h    WORD    length of table in bytes
  520.  02h    DWORD    seconds since 0:00 1/1/70 when diagnostics last run
  521.         (FFFFFFFFh = never)
  522.  06h    DWORD    MAC status bits (see below)
  523.  0Ah    WORD    current packet filter flags
  524.         bit 0: directed/multicast or group/functional
  525.         bit 1: broadcast
  526.         bit 2: promiscuous
  527.         bit 3: all source routing
  528.         bits 4-15: reserved, must be zero
  529.  0Ch    DWORD    pointer to media-specific status table or 0000h:0000h
  530.  10h    DWORD    seconds past 0:00 1/1/70 of last ClearStatistics
  531.  14h    DWORD    total frames received (FFFFFFFFh = not counted)
  532.  18h    DWORD    frames with CRC error (FFFFFFFFh = not counted)
  533.  1Ch    DWORD    total bytes received (FFFFFFFFh = not counted)
  534.  20h    DWORD    frames discarded--no buffer space (FFFFFFFFh = not counted)
  535.  24h    DWORD    multicast frames received (FFFFFFFFh = not counted)
  536.  28h    DWORD    broadcast frames received (FFFFFFFFh = not counted)
  537.  2Ch    DWORD    frames with errors (FFFFFFFFh = not counted)
  538.  30h    DWORD    overly large frames (FFFFFFFFh = not counted)
  539.  34h    DWORD    frames less than minimum size (FFFFFFFFh = not counted)
  540.  38h    DWORD    multicast bytes received (FFFFFFFFh = not counted)
  541.  3Ch    DWORD    broadcast bytes received (FFFFFFFFh = not counted)
  542.  40h    DWORD    frames discarded--hardware error (FFFFFFFFh = not counted)
  543.  44h    DWORD    total frames transmitted (FFFFFFFFh = not counted)
  544.  48h    DWORD    total bytes transmitted (FFFFFFFFh = not counted)
  545.  4Ch    DWORD    multicast frames transmitted (FFFFFFFFh = not counted)
  546.  50h    DWORD    broadcast frames transmitted (FFFFFFFFh = not counted)
  547.  54h    DWORD    broadcast bytes transmitted (FFFFFFFFh = not counted)
  548.  58h    DWORD    multicast bytes transmitted (FFFFFFFFh = not counted)
  549.  5Ch    DWORD    frames not transmitted--timeout (FFFFFFFFh = not counted)
  550.  60h    DWORD    frames not transmitted--hardware error (FFFFFFFFh = not countd)
  551.  64h  N BYTEs    vendor-specific info
  552.  
  553. Bitfields for MAC status bits:
  554.  bits 0-2    operational status
  555.         000 hardware not installed
  556.         001 hardware failed startup diagnostics
  557.         010 hardware configuration problem
  558.         011 hardware fault
  559.         100 operating marginally due to soft faults
  560.         101 reserved
  561.         110 reserved
  562.         111 hardware fully operational
  563.  bit 3    MAC bound
  564.  bit 4    MAC open
  565.  bit 5    diagnostics in progress
  566.  bits 6-31 reserved
  567. --------I-214402-----------------------------
  568. INT 21 U - IBM SYSTEM 36/38 WORKSTATION EMULATION - VDI.SYS - GET ???
  569.     AX = 4402h
  570.     BX = handle for character device "GDMS"
  571.     CX = number of bytes to read (>= 4)
  572.     DS:DX -> buffer (see below)
  573. Return: CF set on error
  574.         AX = error code (see AH=59h)
  575.     CF clear if successful
  576.         AX = number of bytes read
  577.  
  578. Format of returned data:
  579. Offset    Size    Description
  580.  00h  4 BYTEs    ???
  581.  04h    DWORD    pointer to ???
  582.  08h  4 BYTEs    ???
  583. --------m-214402-----------------------------
  584. INT 21 U - LASTBYTE.SYS v1.19 - IOCTL - GET ??? TABLE
  585.     AX = 4402h
  586.     BX = handle for device "LA$TBYTE"
  587.     CX = 0004h
  588.     DS:DX -> DWORD to hold address of 39-byte table of ???
  589. Return: CF set on error
  590.         AX = error code (see AH=59h)
  591.     CF clear if successful
  592.         AX = number of bytes read
  593. Program: LASTBYTE.SYS is part of the shareware "The Last Byte" memory
  594.       management package by Key Software Products
  595. SeeAlso: AX=4402h"HIGHUMM"
  596. --------m-214402-----------------------------
  597. INT 21 - HIGHUMM.SYS v1.17+ - IOCTL - GET API ADDRESS
  598.     AX = 4402h
  599.     BX = handle for device "KSP$UMM"
  600.     CX = 0004h
  601.     DS:DX -> DWORD to hold entry point
  602. Return: CF set on error
  603.         AX = error code (see AH=59h)
  604.     CF clear if successful
  605.         AX = number of bytes read
  606. Program: HIGHUMM.SYS is part of the shareware "The Last Byte" memory management
  607.       package by Key Software Products
  608. SeeAlso: AX=4402h"LASTBYTE"
  609.  
  610. Call HIGHUMM.SYS entry point with:
  611.     AH = 00h allocate UMB (same as XMS function 10h) (see INT 2F/AX=4310h)
  612.         DX = size in paragraphs
  613.         Return: BX = segment number (if successful)
  614.             DX = size of requested block/size of largest block
  615.     AH = 01h deallocate UMB (same as XMS func 11h) (see INT 2F/AX=4310h)
  616.         DX = segment number of UMB
  617.     AH = 02h request a bank-switched memory block
  618.         DX = size in paragraphs
  619.         Return: BX = segment number (if successful)
  620.             DX = size of requested block/size of largest block
  621.     AH = 03h release a bank-switched memory block
  622.         DX = segment number
  623.     AH = 04h transfer data to/from high memory
  624.         DS:SI -> source
  625.         ES:DI -> destination
  626.         CX = length in bytes
  627.         Note: enables bank-switched memory, does the copy, then disables
  628.         bank-switched memory
  629.     AH = 05h get a word from bank-switched memory
  630.         ES:DI -> word to read
  631.         Return: DX = word
  632.     AH = 06h put a word to bank-switched memory
  633.         ES:DI -> word to write
  634.         DX = word
  635.     AH = 07h put a byte to bank-switched memory
  636.         ES:DI -> byte to write
  637.         DL = byte
  638.     AH = 08h enable bank-switched memory
  639.         DS:SI -> 6-byte status save area
  640.     AH = 09h disable bank-switched memory
  641.         DS:SI -> 6-byte save area from enable call (AH=08h)
  642.     AH = 0Ah assign name to UMB or high bank-switched block
  643.         DX = segment number
  644.         DS:SI -> 8-byte blank-padded name
  645.     AH = 0Bh locate UMB block by name
  646.         DS:SI -> 8-byte blank-padded name
  647.         Return: BX = segment number (if successful)
  648.             DX = size of block
  649.     AH = 0Ch locate bank-switched block by name
  650.         DS:SI -> 8-byte blank-padded name
  651.         Return: BX = segment number (if successful)
  652.             DX = size of block
  653. Return: AX = status code
  654.         0001h successful
  655.         0000h failed
  656.         BL = error code
  657.             80h not implemented
  658.             B0h insufficient memory, smaller block available
  659.             B1h insufficient memory, no blocks available
  660.             B2h invalid segment number
  661. Note:    only functions 00h and 01h are always available; the remaining
  662.       functions are only enabled if the proper commandline switch is given
  663. --------c-214402-----------------------------
  664. INT 21 - SMARTDRV.SYS v3.x only - IOCTL - GET CACHE STATUS
  665.     AX = 4402h
  666.     BX = file handle for device "SMARTAAR"
  667.     CX = number of bytes to read (min 28h)
  668.     DS:DX -> buffer for status record (see below)
  669. Return: CF clear if successful
  670.         AX = number of bytes actually read
  671.     CF set on error
  672.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  673. SeeAlso: AX=4403h"SMARTDRV",INT 2F/AX=4A10h/BX=0000h
  674.  
  675. Format of SMARTDRV status record:
  676. Offset    Size    Description
  677.  00h    BYTE    write-through flag (always 01h)
  678.  01h    BYTE    writes should be buffered (always 00h)
  679.  02h    BYTE    cache enabled if 01h
  680.  03h    BYTE    driver type (01h extended memory, 02h expanded)
  681.  04h    WORD    clock ticks between cache flushes (currently unused)
  682.  06h    BYTE    cache contains locked tracks if nonzero
  683.  07h    BYTE    flush cache on INT 19 reboot if nonzero
  684.  08h    BYTE    cache full track writes if nonzero
  685.  09h    BYTE    double buffering (for VDS) state (00h off, 01h on, 02h dynamic)
  686.  0Ah    DWORD    original INT 13 vector
  687.  0Eh    BYTE    minor version number
  688.  0Fh    BYTE    major version number
  689.  10h    WORD    unused
  690.  12h    WORD    sectors read            \
  691.  14h    WORD    sectors already in cache     > may be scaled rather than
  692.  16h    WORD    sectors already in track buffer /  absolute counts
  693.  18h    BYTE    cache hit rate in percent
  694.  19h    BYTE    track buffer hit rate in percent
  695.  1Ah    WORD    total tracks in cache
  696.  1Ch    WORD    number of tracks in use
  697.  1Eh    WORD    number of locked tracks
  698.  20h    WORD    number of dirty tracks
  699.  22h    WORD    current cache size in 16K pages
  700.  24h    WORD    original (maximum) cache size in 16K pages
  701.  26h    WORD    minimum cache size in 16K pages
  702.  28h    DWORD    pointer to byte flag to increment for locking cache contents
  703. --------d-214402-----------------------------
  704. INT 21 - CD-ROM device driver - IOCTL INPUT
  705.     AX = 4402h
  706.     BX = file handle referencing character device for CD-ROM driver
  707.     CX = number of bytes to read
  708.     DS:DX -> control block (see below)
  709. Return: CF clear if successful
  710.         AX = number of bytes actually read
  711.     CF set on error
  712.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  713. Note:    the data returned depends on the first byte of the control block; the
  714.       remainder of the control block is filled by the driver
  715. SeeAlso: AX=4403h"CD-ROM",INT 2F/AX=0802h
  716.  
  717. Values for data being requested:
  718.  00h    device driver header address
  719.  01h    drive head location
  720.  02h    reserved
  721.  03h    error statistics
  722.  04h    audio channel info
  723.  05h    raw drive bytes (uninterpreted and device-specific)
  724.  06h    device status
  725.  07h    sector size
  726.  08h    volume size
  727.  09h    media change status
  728.  0Ah    audio disk info
  729.  0Bh    audio track info
  730.  0Ch    audio Q-Channel info
  731.  0Dh    audio sub-channel info
  732.  0Eh    UPC code
  733.  
  734. Format of control block:
  735. Offset    Size    Description
  736.  00h    BYTE    data being requested (see above)
  737. ---function 00h---
  738.  01h    DWORD    device driver header address (see also AH=52h)
  739. ---function 01h---
  740.  01h    BYTE    addressing mode
  741.         00h HSG
  742.         01h Red Book
  743.  02h    DWORD    current location of drive's head
  744.         logical sector number in HSG mode
  745.         frame/second/minute/unused in Red Book mode
  746.         (HSG sector = minute * 4500 + second * 75 + frame - 150)
  747. ---function 03h---
  748.  01h  N BYTEs    undefined as of 5 Aug 88 specification
  749. ---function 04h---
  750.  01h    BYTE    input channel (0-3) for output channel 0
  751.  02h    BYTE    volume for output channel 0
  752.  03h    BYTE    input channel (0-3) for output channel 1
  753.  04h    BYTE    volume for output channel 1
  754.  05h    BYTE    input channel (0-3) for output channel 2
  755.  06h    BYTE    volume for output channel 2
  756.  07h    BYTE    input channel (0-3) for output channel 3
  757.  08h    BYTE    volume for output channel 3
  758. Notes:    output channels 0 and 1 are left and right, 2 and 3 are left prime and
  759.       right prime; a volume of 00h is off
  760.     the default setting is for each input channel to be assigned to the
  761.       same-numbered output channel at full (FFh) volume
  762. ---function 05h---
  763.  01h    BYTE    number of bytes read
  764.  02h 128 BYTEs    buffer for drive bytes
  765. ---function 06h---
  766.  01h    DWORD    device parameters (see below)
  767. ---function 07h---
  768.  01h    BYTE    read mode
  769.         00h cooked
  770.         01h raw
  771.  02h    WORD    sector size in bytes
  772. ---function 08h---
  773.  01h    DWORD    volume size in sectors
  774. ---function 09h---
  775.  01h    BYTE    media change status
  776.         00h don't know
  777.         01h media unchanged
  778.         FFh media has been changed
  779. ---function 0Ah---
  780.  01h    BYTE    lowest audio track number
  781.  02h    BYTE    highest audio track number
  782.  03h    DWORD    start address of lead-out track (Red Book format)
  783. --function 0Bh---
  784.  01h    BYTE    track number (set by caller)
  785.  02h    DWORD    starting point of track (Red Book format)
  786.  06h    BYTE    track control info
  787.         bits 15,14,12: track type (notice: bits not contiguous!)
  788.             000 two audio channels, no pre-emphasis
  789.             001 two audio channels with pre-emphasis
  790.             010 data track
  791.             100 four audio channels, no pre-emphasis
  792.             101 four audio channels with pre-emphasis
  793.             other reserved
  794.         bit 13: digital copy permitted
  795. ---function 0Ch---
  796.  01h    BYTE    CONTROL and ADR byte (as received from drive)
  797.  02h    BYTE    track number
  798.  03h    BYTE    point or index
  799.  04h    BYTE    minute    \
  800.  05h    BYTE    second     > running time within track
  801.  06h    BYTE    frame    /
  802.  07h    BYTE    zero
  803.  08h    BYTE    "AMIN" or "PMIN"     \
  804.  09h    BYTE    "ASEC" or "PSEC"      > running time on disk
  805.  0Ah    BYTE    "AFRAME" or "PFRAME" /
  806. ---function 0Dh---
  807.  01h    DWORD    starting frame address (Red Book format)
  808.  05h    DWORD    transfer address
  809.  09h    DWORD    number of sectors to read
  810. Note:    copies 96 bytes of sub-channel info per sector into buffer
  811. ---function 0Eh---
  812.  01h    BYTE    CONTROL and ADR byte
  813.  02h  7 BYTEs    UPC/EAN code (13 BCD digits,low-order nybble of last byte is 0)
  814.  09h    BYTE    zero
  815.  0Ah    BYTE    "AFRAME"
  816.  
  817. Bitfields for device parameters:
  818.  bit 0    door open
  819.  bit 1    door unlocked
  820.  bit 2    supports raw reading in addition to cooked
  821.  bit 3    writable
  822.  bit 4    can play audio/video tracks
  823.  bit 5    supports interleaving
  824.  bit 6    reserved
  825.  bit 7    supports prefetch requests
  826.  bit 8    supports audio channel control
  827.  bit 9    supports Red Book addressing in addition to HSG
  828.  bit 10 audio is playing
  829. --------m-214402-----------------------------
  830. INT 21 - Quarterdeck - QEMM-386 v5+ - GET API ENTRY POINT
  831.     AX = 4402h
  832.     BX = file handle for device "QEMM386$"
  833.     CX = 0004h
  834.     DS:DX -> DWORD buffer for API entry point
  835. Return: CF clear if successful
  836.         buffer filled (see INT 67/AH=3Fh for entry point parameters)
  837.     CF set on error
  838.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  839. Note:    Quarterdeck recently (June 1993) documented this function, but the
  840.       documentation incorrectly states that it is only available for
  841.       QEMM 6+
  842. SeeAlso: AX=4402h"HOOKROM",INT 2F/AX=D201h/BX=5145h,INT 67/AH=3Fh
  843. --------Q-214402-----------------------------
  844. INT 21 U - Quarterdeck - HOOKROM.SYS - GET HOOKED VECTOR TABLE
  845.     AX = 4402h
  846.     BX = file handle for device "HOOKROM$"
  847.     CX = 0004h
  848.     DS:DX -> DWORD buffer for address of hooked vector table (see below)
  849. Return: CF clear if successful
  850.         DS:DX buffer filled
  851.     CF set on error
  852.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  853. SeeAlso: AX=4402h/SF=01h
  854.  
  855. Format of hooked vector table entry:
  856. Offset    Size    Description
  857.  00h  5 BYTEs    FAR jump to actual interrupt handler
  858.         (end of table if first byte is not EAh)
  859.  05h    BYTE    interrupt vector number
  860. --------d-214402-----------------------------
  861. INT 21 - Advanced SCSI Programming Interface (ASPI) - INTERFACE
  862.     AX = 4402h
  863.     BX = file handle for device "SCSIMGR$"
  864.     CX = 0004h
  865.     DS:DX -> buffer for function address
  866. Return: CF clear if successful
  867.         AX = 0004h
  868.     CF set on error
  869.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  870. Note:    the function address is called with the address of a SCSI Request
  871.       Block on the stack and the caller must clean up the stack
  872. SeeAlso: AX=440Ch"ASPITAPE",INT 11/AH=FFh"WD7000"
  873.  
  874. Format of SCSI Request Block (64 bytes):
  875. Offset    Size    Description
  876.  00h    BYTE    request number
  877.         00h "HA_INQ"     host adapter inquiry
  878.         01h "GET_TYPE"     get device type
  879.         02h "EXEC_SIO"     execute SCSI I/O
  880.         03h "ABORT_SRB"     abort SRB
  881.         04h "RESET_DEV"     reset SCSI device
  882.         05h "SET_HAPRMS" set host adapter parameters
  883.  01h    BYTE    request status
  884.         00h not done yet
  885.         02h aborted
  886.         04h SCSI I/O error
  887.         80h invalid
  888.         81h no adapter
  889.         82h no device attached
  890.         else status
  891.  02h    BYTE    host adapter ID
  892.  03h    BYTE    request flags
  893.         bit 3: ???
  894.  04h    DWORD    reserved
  895. ---request 00h---
  896.  08h    BYTE    (returned) number of host adapters
  897.  09h    BYTE    (returned) target adapter ID
  898.  0Ah 16 BYTEs    (returned) manager ID
  899.  1Ah 16 BYTEs    (returned) adapter ID
  900.  2Ah 16 BYTEs    (returned) parameters
  901. ---request 01h---
  902.  08h    BYTE    target ID
  903.  09h    BYTE    logical unit number
  904.  0Ah    BYTE    (returned) device type
  905.         01h streamer
  906. ---request 02h---
  907.  08h    BYTE    target ID
  908.  09h    BYTE    logical unit number
  909.  0Ah    DWORD    data allocation length
  910.  0Eh    BYTE    sense allocation length
  911.  0Fh    DWORD    data buffer pointer
  912.  13h    DWORD    next request pointer (for linking)
  913.  17h    BYTE    CDB length
  914.  18h    BYTE    (returned) host adapter status
  915.         11h select timeout
  916.         12h data overrun
  917.         13h bus error
  918.         14h bus failure
  919.  19h    BYTE    (returned) target status
  920.         02h sense data stored in SRB
  921.         08h target busy
  922.         18h reservation error
  923.  1Ah    DWORD    post routine address
  924.  1Eh    WORD    real mode Post DS
  925.  20h    DWORD    SRB pointer
  926.  24h    WORD    reserved
  927.  26h    DWORD    SRB physical address
  928.  2Ah 22 BYTEs    SCSIMGR$ workspace
  929.  40h  N BYTEs    CCB (20-24 bytes)
  930. ---request 04h---
  931.  08h    BYTE    target ID
  932.  09h    BYTE    logical unit number
  933.  0Ah 14 BYTEs    reserved
  934.  18h    BYTE    (returned) host adapter status (see above)
  935.  19h    BYTE    (returned) target status (see above)
  936.  1Ah    DWORD    post routine address
  937.  1Eh 34 BYTEs    workspace
  938.  
  939. Format of CCB:
  940. Offset    Size    Description
  941.  00h    BYTE    command code
  942.         01h rewind
  943.         05h get block size limits
  944.         08h read
  945.         0Ah write
  946.         10h write file marks
  947.         11h SCSI Space (set position?)
  948.         12h SCSI Inquire
  949.         19h erase
  950.         1Bh load/unload media
  951.  01h    BYTE    flags
  952.         bits 4-0: vary by function
  953.         bits 7-5: logical unit number
  954.  02h    BYTE    "adr_1"
  955.  03h    BYTE    "adr_0"
  956.  04h    BYTE    length
  957.  05h    BYTE    control
  958.     ...
  959.  06h/0Ah 14 BYTEs buffer for sense data
  960. --------m-214402-----------------------------
  961. INT 21 U - Qualitas 386MAX v6.00+ - IOCTL INPUT - GET STATE
  962.     AX = 4402h
  963.     BX = file handle for device "386MAX$$"
  964.     CX = number of bytes to read
  965.     DS:DX -> BYTE 03h followed by 386MAX state buffer (see below)
  966. Return: CF clear if successful
  967.         buffer at DS:DX+1 filled
  968.         AX = number of bytes actually copied
  969.     CF set on error
  970.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  971. Notes:    if the value given in CX is less than the size of the state record
  972.       (5Ah for v6.01, 66h for v7.00), only a partial state record will be
  973.       returned
  974.     the state is 40h bytes for 386MAX (actually ASTEMM) v2.20 ("386MAX$$"
  975.       did not exist yet, use "QMMXXXX0" and then "EMMXXXX0" instead) and
  976.       56h bytes for v5.11.
  977.     to invoke 386MAX API functions, push DX onto the stack, load DX with
  978.       the word at offset 25h in the returned state, load all other
  979.       registers as needed for the desired function, and execute an
  980.       OUT DX,AL or OUT DX,AX; DX will be set to the pushed value on return
  981.       if it is not otherwise modified by the API function.    For safety,
  982.       in case a function is not supported or 386MAX is not present, SP
  983.       should be saved and restored around the API call.
  984.     Windows 3.1 Standard mode, LAN Manager, and Windows for Workgroups all
  985.       use the 386MAX API; LAN Manager and Windows for Workgroups reportedly
  986.       make some calls incorrectly
  987. SeeAlso: AX=4403h/SF=03h"386MAX",INT 67/AH=3Fh
  988.  
  989. Format of 386MAX v6.01+ state:
  990. Offset    Size    Description
  991.  -1    BYTE    (call) 03h
  992.  00h  6 BYTEs    signature "386MAX"
  993.  06h  4 BYTEs    version string "N;NN" (i.e. "6;01" for v6.01)
  994.  0Ah    WORD    segment of low-memory portion of 386MAX.SYS
  995.  0Ch  2 BYTEs    ???
  996.  0Eh    WORD    segment of ??? memory block or 0000h
  997.  10h    WORD    bit flags 1 (see below)
  998.  12h    WORD    (v6.01) starting address of video memory in KB
  999.         (v7.00) low memory size in bytes
  1000.  14h  2 BYTEs    ???
  1001.  16h    WORD    total high DOS memory in KB
  1002.  18h  2 BYTEs    ???
  1003.  1Ah    WORD    available shared memory in KB
  1004.  1Ch    WORD    KBytes extended memory used by 386MAX
  1005.  1Eh  2 BYTEs    ???
  1006.  20h    WORD    total extended memory in KB
  1007.  22h    WORD    IO port to write (OUT DX,AL) to invoke 386MAX INT 15 functions
  1008.  24h    WORD    IO port to write (OUT DX,AL) to invoke 386MAX API functions
  1009.  26h    WORD    ??? (depends on DOS version)
  1010.  28h  2 BYTEs    ???
  1011.  2Ah    DWORD    machine type (see below)
  1012.  2Eh    WORD    ???
  1013.  30h    WORD    ???
  1014.  32h    WORD    system configuration flags (see below)
  1015.  34h    WORD    debugging flags 1 (see below)
  1016.  36h    WORD    debugging flags 2 (see below)
  1017.  38h  2 BYTEs    ???
  1018.  3Ah    WORD    segment of first MCB in high memory chain???
  1019.  3Ch    WORD    feature flags 1 (see below)
  1020.  3Eh    WORD    feature flags 2 (see below)
  1021.  40h    WORD    feature flags 3 (see below)
  1022.  42h    WORD    segment of first 386MAX control block??? (see below)
  1023.  44h    WORD    amount of memory to report available on INT 15/AH=88h
  1024.  46h  4 BYTEs    ???
  1025.  4Ah    WORD    number of K at start of address space swapped with fast
  1026.         extended memory (SWAP= parameter)
  1027.  4Ch  2 BYTEs    ???
  1028.  4Eh    WORD    ???
  1029.  50h    WORD    debugging flags 3 (see below)
  1030.  52h    DWORD    old INT 21h
  1031.  56h    DWORD    pointer to 386MAX's EMS (INT 67h) handler
  1032. ---386MAX v7.00---
  1033.  5Ah    DWORD    KB of extended memory managed by 386MAX
  1034.  5Eh    DWORD    bytes of extended memory (EXT= parameter)
  1035.  62h  4 BYTEs    ???
  1036.  
  1037. Bitfields for bit flags 1:
  1038.  bit 1    ???
  1039.  bit 2    ???
  1040.  bit 3    ??? (cleared by calling INT 67 functions)
  1041.  bit 4    high RAM present???
  1042.  bit 5    386MAX in AUTO mode
  1043.  bit 6    386MAX enabled
  1044.  bit 7    386MAX is providing EMS services
  1045.  bit 8    ???
  1046.  bit 9    A20 enabled??? (see INT 15/AX=2402h)
  1047.  bit 10    Weitek support enabled
  1048.  bit 11    ???
  1049.  bit 12    ???
  1050.  bit 13    QPMS has been used
  1051.  bit 14    ???
  1052.  bit 15    ???
  1053.  
  1054. Bitfields for system configuration flags:
  1055.  bit 1    ROM compressed???
  1056.  bit 3    ???
  1057.  bit 5    386MAX loaded into high memory
  1058.  bit 6    Microchannel bus
  1059.  bit 7    Weitek math coprocessor detected
  1060.  bit 11    PC/XT (thus only single 8259 interrupt controller present, DMA only
  1061.         in 1st megabyte, etc)
  1062.  bit 13    LMLTOP= specified
  1063.  bit 15    ???
  1064.  
  1065. Bitfields for debugging flags 1:
  1066.  bit 0    DEBUG=LED
  1067.  bit 1    DEBUG=X67
  1068.  bit 2    DEBUG=INV
  1069.  bit 3    DEBUG=EMSPTED
  1070.  bit 4    DEBUG=JMP
  1071.  bit 5    DEBUG=CALL
  1072.  bit 6    DEBUG=HLT
  1073.  bit 7    DEBUG=PMR
  1074.  bit 8    DEBUG=CR3
  1075.  bit 9    DEBUG=CAPS or DEBUG=INT
  1076.  bit 10    DEBUG=RC
  1077.  bit 11    DEBUG=ROM
  1078.  bit 12    DEBUG=XM
  1079.  bit 13    DEBUG=SOR
  1080.  bit 14    DEBUG=XR
  1081.  bit 15    DEBUG=EMSERR
  1082.  
  1083. Bitfields for debugging flags 2:
  1084.  bit 0    DEBUG=ROMSWAP
  1085.  bit 1    DEBUG=UNSHADOWROM
  1086.  bit 2    DEBUG=COMPROM
  1087.  bit 3    DEBUG=DPMIPHYS
  1088.  bit 4    DEBUG=ALLROM
  1089.  bit 5    DEBUG=VMS
  1090.  bit 6    DEBUG=XMS
  1091.  bit 7    DEBUG=I06
  1092.  bit 8    DEBUG=VCPI
  1093.  bit 9    DEBUG=XDMA
  1094.  bit 10    DEBUG=X09
  1095.  bit 13    DEBUG=I67
  1096.  bit 14    DEBUG=EVM
  1097.  bit 15 DEBUG=EMSSAVE or DEBUG=VDS
  1098.  
  1099. Bitfields for debugging flags 3:
  1100.  bit 10    DEBUG=EPM
  1101.  bit 12    DEBUG=ABIOS
  1102.  bit 13    DEBUG=XMSPTED
  1103.  bit 14    DEBUG=TIME
  1104.  bit 15    DEBUG=SCRUB
  1105.  
  1106. Bitfields for feature flags 1:
  1107.  bit 1    Weitek present
  1108.  bit 2    no DPMI services
  1109.  bit 3    NODMA
  1110.  bit 4    TERSE
  1111.  bit 5    NOROM
  1112.  bit 6    NOPARITY
  1113.  bit 8    NOFLEX (IGNOREFLEXFRAME)
  1114.  bit 11    don't create UMBs
  1115.  bit 12    don't backfill below video memory (NOLOW)
  1116.  bit 13    FRAME= specified
  1117.  bit 14    EXT= specified
  1118.  bit 15    NOEMS, allow prior expanded memory manager to provide EMS
  1119.  
  1120. Bitfields for feature flags 2:
  1121.  bit 0    UNSHIFT specified (FORCEA20 disabled)
  1122.  bit 1    NOXRAM
  1123.  bit 2    NOSCSI specified
  1124.  bit 3    SCREEN specified
  1125.  bit 4    enabled EISADMA
  1126.  bit 5    slow DMA
  1127.  bit 6    RESETKEYB specified
  1128.  bit 7    ???
  1129.  bit 9    TOP384
  1130.  bit 11    NOWARMBOOT
  1131.  bit 12    USE= specified
  1132.  bit 13    ROM= specified
  1133.  
  1134. Bitfields for feature flags 3:
  1135.  bit 0    Windows3 support enabled
  1136.  bit 1    SHADOWROM
  1137.  bit 2    don't compress ROM (NOCOMPROM)
  1138.  bit 3    ??? (related to PRGREG=)
  1139.  bit 4    ??? (related to PRGREG=)
  1140.  bit 5    SHADOWRAM
  1141.  bit 6    DOS4 specified
  1142.  bit 7    NOLOADHIGH
  1143.  bit 8    NOPULSE
  1144.  bit 11    FORCEA20
  1145.  bit 12    DMA buffer enabled
  1146.  bit 13 NOSCRUB
  1147.  bit 15    NOFRAME
  1148.  
  1149. Bitfields for machine type:
  1150.  bit 12 Amstrad
  1151.  bit 13 Epson
  1152.  bit 14 Zenith Data Systems
  1153.  bit 15    "ASEM"
  1154.  bit 16 NEC
  1155.  bit 17    "HPRS" model codes 69h and 6Ah
  1156.  bit 18 Dell
  1157.  bit 19    "CA"
  1158.  bit 20    ITT (Xtra Business Systems/Alcatel)
  1159.  bit 21    Toshiba 5100
  1160.  bit 22    Olivetti
  1161.  bit 23    Quadram Quad386 (BIOS model FEh, submodel A6h)
  1162.  bit 24    Tandy???
  1163.  bit 25    AST 386
  1164.  bit 26    INBOARD, ??? version
  1165.  bit 27    INBOARD, ??? version
  1166.  bit 28    INBOARD, ??? version
  1167.  bit 29    "HPRS"
  1168.  bit 30    Compaq 386
  1169.  bit 31    JET386
  1170.  
  1171. Format of 386MAX control block:
  1172. Offset    Size    Description
  1173.  00h    WORD    segment of next block (FFFFh if last)
  1174.  02h    WORD    segment of previous block (FFFFh if first)
  1175.  04h 12 BYTEs    filename
  1176.  10h    WORD    resident size in paragraphs
  1177.  12h    WORD    environment size???
  1178.  14h    WORD    real prsent environment size + 1 (0000h if ENVSAVE used)
  1179.  16h  2 BYTEs    ???
  1180.  18h    DWORD    initial size or SIZE=n in 386LOAD commandline
  1181.  1Ch    DWORD    SIZE=-1 ???
  1182.  20h    DWORD    SIZE= ???
  1183.  24h    BYTE    PRGREG= if specified, else FFh
  1184.  25h    BYTE    ENVREG= if specified, else FFh
  1185.  26h    BYTE    FlexFrame (00h not present, 01h present)
  1186.  27h  3 BYTEs    ???
  1187.  2Ah    BYTE    GROUP= or 00h if not present
  1188.  2Bh    BYTE    ???
  1189.  2Ch    WORD    PSP
  1190.  
  1191. Format of high memory info record:
  1192. Offset    Size    Description
  1193.  00h    WORD    segment address of memory region
  1194.  02h    WORD    size of memory region in paragraphs
  1195.  04h    BYTE    type or flags???
  1196.         00h if locked out
  1197.         02h if EMS page frame
  1198.         04h if high RAM
  1199.         42h if ROM
  1200.  05h    BYTE    ???
  1201.  
  1202. Format of ROM shadowing record:
  1203. Offset    Size    Description
  1204.  00h    WORD    segment of ROM???
  1205.  02h    WORD    segment of ROM???
  1206.  04h  2 BYTEs    ???
  1207.  06h    WORD    size of shadowed ROM in paragraphs
  1208.  08h  4 BYTEs    ???
  1209.  
  1210. Values for memory type:
  1211.  00h    unused by EMS
  1212.  01h    DOS
  1213.  04h    page frame overlapping ROM???
  1214.  80h    high memory
  1215.  84h    page frame???
  1216.  87h    video ROM???
  1217. Note:    the type may be 00h (unused) if the 16K page is split among different
  1218.       uses (such as ROM and high RAM)
  1219.  
  1220. Call 386MAX API (via OUT DX,AL) with:
  1221.     STACK: WORD value for DX
  1222.     AH = 01h get high memory information
  1223.         ES:DI -> buffer for array of high memory info records
  1224.             (see above)
  1225.         Return: CX = number of records placed in buffer
  1226.     AH = 02h get shadowed ROM info???
  1227.         ES:DI -> buffer for array of ROM shadowing records (see above)
  1228.         Return: CX = number of records placed in buffer
  1229.     AH = 03h get 386MAX state
  1230.         ES:DI -> 90-byte buffer for state (see above)
  1231.         Return: AH = 00h (successful)
  1232.             buffer filled
  1233.         Note:    unlike INT 21/AX=4402h"386MAX", this function omits
  1234.               the first byte specifying the state buffer version
  1235.     AH = 04h get memory types???
  1236.         ES:DI -> buffer for memory type info (array of bytes, one per
  1237.             16K page) (see above)
  1238.         Return:    CX = number of bytes placed in buffer
  1239.     AH = 05h get ???
  1240.         AL = A20 control (00h enable A20 first, 01h leave unchanged)
  1241.         CX = number of 4K pages to report (0000h for default)
  1242.         SI = first K to report (rounded down to 4K page)
  1243.         ES:DI -> buffer for returned info on ???
  1244.         Return: CX = number of 4K pages reported on
  1245.             ???
  1246.     AH = 06h get memory speed info
  1247.         ES:DI -> buffer for memory speed records (see below)
  1248.         Return: AH = 00h (successful)
  1249.             CX = number of bytes placed in buffer
  1250.         Note:    this function can take over a second to execute
  1251.     AH = 07h ???
  1252.         DX = EMS handle (on stack)
  1253.         ???
  1254.         Return:    ???
  1255.     AH = 08h "EMM2_GOREAL" check whether possible to disable 386MAX
  1256.         AL = ??? (00h or nonzero)
  1257.         Return: AH = status (00h OK, A4h not possible at this time)
  1258.         Note:    if AL=00h, this function always returns success
  1259.     AH = 09h toggle Bit Flags 1 flags
  1260.         BX = bitmask of bit flags 1's flags to toggle (see above)
  1261.         Return: AH = 00h (successful)
  1262.         Note:    enables A20 first
  1263.     AH = 0Ah toggle system configuration flags
  1264.         BX = bitmask of system configuration flags to toggle
  1265.               (see above)
  1266.         Return: AH = 00h (successful)
  1267.         Notes:    enabled A20 first
  1268.             does ??? if bit 3 on after specified bits are toggled
  1269.     AH = 0Bh toggle debugging flags 1
  1270.         BX = bitmask of debugging flags 1's bits to toggle (see above)
  1271.         Return: AH = 00h (successful)
  1272.         Note:    enables A20 first
  1273.     AH = 0Ch toggle feature flags 3
  1274.         BX = bitmask of feature flags 3's bits to toggle (see above)
  1275.         Return: AH = 00h (successful)
  1276.         Note:    enables A20 first
  1277.     AH = 0Dh specify 386MAX high-memory location
  1278.         BX = segment address of high-memory real-mode portion of 386MAX
  1279.         CX = current segment of real-mode stub???
  1280.         Return: AH = status (00h successful)
  1281.             ???
  1282.     AH = 0Eh CRT controller register virtualization
  1283.         AL = subfunction
  1284.             00h allow access to CRTC I/O ports 03B4h/03B5h, 03D4h/03D5h
  1285.             01h trap accesses to CRTC I/O ports
  1286.     AH = 0Fh reboot system
  1287.         Return: never
  1288.     AH = 11h get high memory information
  1289.         ES:DI -> 96-byte buffer for high memory info
  1290.         Return: AH = 00h (successful)
  1291.             ES:DI buffer filled
  1292.         Notes:    each byte in buffer contains bit flags for a 4K page in
  1293.               the A000h-FFFFh region
  1294.                 bit 0: ???
  1295.                 bit 1: physical address same as linear address
  1296.                 bit 2: EMS page frame
  1297.                 bit 6: ???
  1298.             this function can take over a second to execute,
  1299.               because it also tests the memory
  1300.     AH = 12h ???
  1301.         AL = subfunction
  1302.             00h ???
  1303.             01h ???
  1304.         ???
  1305.         Return: AH = 00h (successful) if AL=00h or 01h
  1306.             AH = 8Fh otherwise
  1307.     AH = 13h page protection???
  1308.         AL = subfunction
  1309.             00h set all ??? 4K pages to read-only???
  1310.             01h set all ??? 4K pages to read-write???
  1311.         ???
  1312.         Return: AH = 00h (successful) if AL=00h or 01h
  1313.             AH = 8Fh otherwise
  1314.     AH = 14h ???
  1315.         ES:DI -> 54-byte buffer for ???
  1316.         Return: AH = 00h if successful
  1317.             AH = A4h on error
  1318.     AH = 15h ???
  1319.         ???
  1320.         Return: ???
  1321.     AH = 16h get 386MAX memory usage screen
  1322.         ES:DI -> buffer for memory info display
  1323.         CX = size of buffer in bytes
  1324.         Return:    ES:DI buffer filled with '$'-terminated string (if
  1325.                 large enough to hold entire usage screen)
  1326.         Note:    the screen is 0303h bytes in v7.00
  1327.     AH = 17h Windows 3 startup/termination
  1328.         AL = subfunction
  1329.             00h Windows3 initializing
  1330.             DX (on stack) = Windows startup flags
  1331.             DI = Windows version number (major in upper byte)
  1332.             ES:BX = 0000h:0000h
  1333.             DS:SI = 0000h:0000h
  1334.             Return: CX = 0000h if OK for Windows to load
  1335.                    <> 0 if Windows should not load
  1336.                 ES:BX -> startup info structure
  1337.                 DS:SI -> Virtual86 mode enable/disable callback
  1338.             01h Windows3 terminating
  1339.             ES:BX -> ???
  1340.             DX (on stack) = Windows exit flags
  1341.             Return: ???
  1342.     AH = 18h QPMS (Qualitas Protected Memory Services)
  1343.         AL = subfunction
  1344.             00h get QPMS configuration
  1345.             Return: BX = starting segment of QPMS memory window
  1346.                 CX = number of 4K pages reserved for QPMS???
  1347.                 DX = number of 4K pages in QPMS window???
  1348.             01h map QPMS memory page???
  1349.             BX = 4K page number within memory reserved for QPMS???
  1350.             CL = 4K page number within QPMS memory window???
  1351.             02h mark all QPMS memory read-only
  1352.             03h mark all QPMS memory read-write
  1353.         Return: AH = status (00h,8Ah,8Bh,8Fh)
  1354.     AH = 19h get linear address for physical address
  1355.         EDX = physical address (low word on stack)
  1356.         Return: AH = status
  1357.                 00h successful
  1358.                 EDX = linear address at which physical address
  1359.                     may be accessed
  1360.                 8Bh physical address currently not addressable
  1361.         Note:    enables A20 first
  1362.     AH = 1Ah set page table entry???
  1363.         EDX = new page table entry??? (low word on stack)
  1364.         ESI = linear address of page???
  1365.         Return: AH = status (00h,8Bh)
  1366.         Note:    enables A20 first
  1367.     AH = 1Bh get ???
  1368.         Return: AH = status
  1369.             BX = ???
  1370.             CX = ???
  1371.             EDX = physical address of ???
  1372.     AH = 1Ch get original interrupt vector
  1373.         AL = interrupt vector (00h-7Fh)
  1374.         Return: AH = 00h (successful)
  1375.             EDX = original vector before 386MAX loaded (segment in
  1376.                 high word, offset in low word)
  1377.         Note:    no range checking is performed; requests for INTs 80h-
  1378.               FFh will return random values
  1379.     AH = 1Dh display string???
  1380.         SI = ???
  1381.         Return: AH = 00h (successful)
  1382.             ???
  1383.     AH = 1Eh get memory info
  1384.         ES:DI -> memory info (see below)
  1385.         Return: ???
  1386.     AH = 1Fh get DPMI host information
  1387.         Return: AX = 0000h if successful
  1388.             BX = DPMI flags (see INT 31/AX=0400h)
  1389.             CL = CPU type (02h = 80286, 03h = 80386, etc.)
  1390.             DX = DPMI ver supported (DH=major, DL=2-digit minor)
  1391.             SI = ???
  1392.             ES???:DI -> ???
  1393.         Note:    NOP if NODPMI switch specified
  1394.     AH = 20h (v7.00) ???
  1395.         AL = ???
  1396.         Return: EDX = ??? for ??? AL
  1397.     AH = 21h (v7.00) STACKS support
  1398.         AL = 00h get STACKS parameters
  1399.         Return: BX = ???
  1400.             CX = number of stacks for hardware interrupts
  1401.             DX = size of each stack in bytes
  1402.             SI = ???
  1403.             DI = ???
  1404.         AL = 01h set ??? "EMM2_DSTKS"
  1405.         EBX = ???
  1406.         ECX = ???
  1407.         DS = ???
  1408.         AL = 02h ???
  1409.         BL = ??? (00h-03h)
  1410.         ???
  1411.     AH = 22h (v7.00)
  1412.         AL = 00h ???
  1413.         AL = nonzero ???
  1414.         ???
  1415.     AH = 23h (v7.00) ???
  1416.         AL = 00h set ???
  1417.         ???
  1418.         AL = 01h ???
  1419.         ???
  1420.         AL = 02h get ???
  1421.         CX = size of buffer
  1422.         ES:DI -> buffer for ???
  1423.         Return: CX = number of bytes actually returned
  1424.         AL = 03h set ???
  1425.         ES:DI -> buffer containing ASCIZ ???
  1426.         AL = 04h get ???
  1427.         ES:DI -> buffer for ASCIZ ???
  1428.     AH = 24h (v7.00) ???
  1429.         AL = 00h get ???
  1430.         Return: BX = current state of ??? (0/1)
  1431.         AL = 01h set ???
  1432.         BX = new state of ??? (0/1)
  1433.         AL = other ???
  1434.     AH = 25h (v7.00) ???
  1435.     AH = 26h (v7.00) ???
  1436.         Return: BX = ???
  1437.             CX = ???
  1438.     AH = 27h (v7.00) ???
  1439.         AL = 00h get ???
  1440.         Return: BX = ???
  1441.         AL = 01h ???
  1442.         BX = ???
  1443.         ES??? = ???
  1444.         AL = 02h ???
  1445.         ???
  1446.         AL = 03h ???
  1447.         CX = ???
  1448.         DX = ???
  1449.         ES??? = ???
  1450.         Return: ???
  1451.     AH = 28h (v7.00) get ???
  1452.         Return: CX = ???
  1453.             DX = ???
  1454.     AH = 29h (v7.00) get ???
  1455.         Return: AX = ???
  1456.     AH = 40h-5Dh EMS services (see INT 67/AH=40h etc)
  1457.     AH = DEh VCPI services (see INT 67/AX=DE00h etc)
  1458. Return: AH = status (as for EMS INT 67 calls)
  1459.         00h successful
  1460.         80h internal error
  1461.         81h hardware malfunction
  1462.         83h invalid handle
  1463.         84h    undefined function
  1464.         8Ah invalid logical page nuber
  1465.         8Bh illegal physical page number
  1466.         8Fh undefined subfunction
  1467.         A4h access denied
  1468.         etc.
  1469.     STACK popped (value placed in DX if no specific return value for DX)
  1470.  
  1471. Format of memory speed record:
  1472. Offset    Size    Description
  1473.  00h    DWORD    page table entry for 4K page
  1474.  04h    WORD    number of microticks (840ns units) required for REP LODSD of
  1475.         entire 4K page
  1476.  
  1477. Format of memory info [array]:
  1478. Offset    Size    Description
  1479.  00h    DWORD    ???
  1480.  04h    DWORD    ???
  1481.  08h  2 BYTEs    ???
  1482.  0Ah    BYTE    type??? (03h = conventional???)
  1483.  0Bh    BYTE    ???
  1484. --------V-214402-----------------------------
  1485. INT 21 - PGS1600.DEV - IOCTL - GET CONFIGURATION INFO
  1486.     AX = 4402h
  1487.     BX = file handle for device "PGS1600$"
  1488.     CX = 0018h (size of buffer)
  1489.     DS:DX -> configuration buffer (see below)
  1490. Return: CF clear if successful
  1491.         buffer filled
  1492.         AX = number of bytes actually copied
  1493.     CF set on error
  1494.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1495. Program: PGS1600.DEV is a device driver for the Cornerstone Technology PG1600
  1496.       display adapter, which provides a 1600x1200 monochrome display as
  1497.       well as one of two emulations, MDA or CGA.
  1498. SeeAlso: AX=4403h"PGS1600"
  1499.  
  1500. Format of configuration information:
  1501. Offset    Size    Description
  1502.  00h    WORD    version (high byte = major, low byte = minor)
  1503.  02h    WORD    board initialisation mode
  1504.  04h    WORD    board I/O address
  1505.         03D0h CGA emulation
  1506.         03B0h MDA emulation
  1507.         0390h no emulation
  1508.         0350h no emulation, alternate
  1509.  06h    WORD    emulation buffer segment
  1510.         B800h    CGA emulation
  1511.         B000h    MDA emulation
  1512.         0000h    no emulation
  1513.  08h    WORD    PG1600 graphics buffer segment
  1514.  0Ah    WORD    number of bytes between consecutive graphic rows
  1515.  0Ch    WORD    horizontal pixel size
  1516.  0Eh    WORD    vertical pixel size
  1517.  10h    WORD    horizontal dots per inch
  1518.  12h    WORD    vertical dots per inch
  1519.  14h    WORD    graphics buffer bits per pixel
  1520.  16h    WORD    monitor bits per pixel
  1521. --------N-214402-----------------------------
  1522. INT 21 - PC/TCP IPCUST.SYS - RESET CONFIGURATION DATA READ POINTER
  1523.     AX = 4402h
  1524.     BX = file handle referencing device "$IPCUST"
  1525.     CX, DS:DX ignored
  1526. Return: CF clear if successful
  1527.         AX destroyed
  1528.     CF set on error
  1529.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1530. Notes:    there are a total of 378h bytes of configuration data for IPCUST.SYS
  1531.       version 2.05.     If less than the entire data is read or written,
  1532.       the next read/write continues where the previous one ended; this
  1533.       call and AX=4403h both reset the location at which the next
  1534.       operation starts to zero
  1535.     v2.1+ uses a new configuration method, but allows the installation
  1536.       of IPCUST.SYS for backward compatibility with other software which
  1537.       must read the PC/TCP configuration
  1538. SeeAlso: AH=3Fh"IPCUST",AH=40h"IPCUST",AX=4403h"IPCUST"
  1539. --------N-214402-----------------------------
  1540. INT 21 - WORKGRP.SYS - GET API ENTRY POINT
  1541.     AX = 4402h
  1542.     BX = file handle for device "NET$HLP$"
  1543.     CX = 0008h
  1544.     DS:DX -> buffer for entry point record
  1545. Return: CF clear if successful
  1546.         AX = number of bytes actually read
  1547.     CF set on error
  1548.         AX = error code
  1549. Program: WORKGRP.SYS is the portion of Microsoft's Workgroup Connection which
  1550.       permits communication with PCs running Windows for Workgroups or
  1551.       LAN Manager
  1552. SeeAlso: AH=3Fh"WORKGRP.SYS"
  1553.  
  1554. Format of entry point record:
  1555. Offset    Size    Description
  1556.  00h    WORD    3633h  \ signature???
  1557.  02h    WORD    EF6Fh  /
  1558.  04h    DWORD    address of entry point
  1559. Note:    first four bytes of buffer must be 6Fh E9h 33h 36h on entry when using
  1560.       IOCTL rather than READ to get the entry point record
  1561.  
  1562. Call WORKGRP entry point with:
  1563.     STACK:    WORD    function number (0000h-0009h)
  1564. Return: STACK unchanged
  1565.  
  1566. Call WORKGRP function 00h with:
  1567.     STACK:    WORD    0000h (function "get ???")
  1568. Return: DX:AX -> data table
  1569.  
  1570. Call WORKGRP function 01h with:
  1571.     STACK:    WORD    0001h (function "hook ???")
  1572. Return: STACK:    DWORD    pointer to ???
  1573.         WORD    0001h (function number)
  1574.  
  1575. Call WORKGRP function 02h with:
  1576.     STACK:    WORD    0002h (function "unhook ???")
  1577.     ???
  1578. Return: ???
  1579.  
  1580. Call WORKGRP function 03h with:
  1581.     STACK:    WORD    0003h (function "reenable printer port")
  1582.         WORD    LPT port number
  1583. Return: ???
  1584.  
  1585. Call WORKGRP function 04h with:
  1586.     STACK:    WORD    0004h (function "disable printer port")
  1587.         WORD    LPT port number
  1588. Return: ???
  1589.  
  1590. Call WORKGRP function 05h with:
  1591.     STACK:    WORD    0005h (function "???")
  1592.         ???
  1593. Return: ???
  1594.  
  1595. Call WORKGRP function 06h with:
  1596.     STACK:    WORD    0006h (function "???")
  1597. Return: STACK unchanged
  1598.     AX = 0000h
  1599.     DX = 0000h
  1600.  
  1601. Call WORKGRP functions 07h-09h with:
  1602.     STACK:    WORD    0007h-0009h (NOP functions)
  1603. Return: STACK unchanged
  1604.     AX = 0001h
  1605.     DX = 0000h
  1606. --------N-214402-----------------------------
  1607. INT 21 - 10NET v5.0 - 10BEUI.DOS - API
  1608.     AX = 4402h
  1609.     BX = file handle referencing device "10BEUI$"
  1610.     DS:DX -> parameter record (see below)
  1611.     CX ignored
  1612. Return: CF clear if successful
  1613.         AX destroyed
  1614.     CF set on error
  1615.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1616. SeeAlso: AX=4402h"10MEMMGR",INT 6F/AH=00h"10NET"
  1617.  
  1618. Format of parameter record:
  1619. Offset    Size    Description
  1620.  00h    WORD    000Ah (function number???)
  1621.  02h    WORD    ???
  1622.  04h    DWORD    pointer to buffer for ???
  1623.  08h  4 BYTEs    ???
  1624.  0Ch    WORD    transfer size
  1625. --------N-214402-----------------------------
  1626. INT 21 - 10NET v5.0 - 10MEMMGR.SYS - API
  1627.     AX = 4402h
  1628.     BX = file handle referencing device "MEMMGR0$"
  1629.     DS:DX -> 6-byte buffer for interface info (see below)
  1630.     CX ignored
  1631. Return: CF clear if successful
  1632.         AX destroyed
  1633.     CF set on error
  1634.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1635. SeeAlso: AX=4402h"10BEUI",INT 6F/AH=00h"10NET"
  1636.  
  1637. Format of interface info:
  1638. Offset    Size    Description
  1639.  00h    DWORD    address of entry point (see below)
  1640.  04h    WORD    version (0500h for v5.00)
  1641.  
  1642. Call entry point with:
  1643.     AL = 01h ???
  1644.         BX = ???
  1645.         Return: CF clear if successful
  1646.             CF set on error
  1647.             AX = error code
  1648.     AL = 02h ???
  1649.         ???
  1650.     AL = 03h ???
  1651.         ???
  1652.     AL = 04h set/restore memory allocation strategy
  1653.         BX = subfunction
  1654.         0000h set strategy
  1655.         0001h restore strategy
  1656.         Return: CF clear if successful
  1657.             CF set on error (if function disabled)
  1658.             various registers destroyed
  1659.     AL = other
  1660.         Return: CF set
  1661.             AX = 0000h
  1662.             BL = 01h
  1663. --------m-214402SF00-------------------------
  1664. INT 21 U - Memory Managers - GET API ENTRY POINT
  1665.     AX = 4402h subfn 00h
  1666.     BX = file handle for device "EMMXXXX0"
  1667.     CX = 0006h (size of buffer in bytes)
  1668.     DS:DX -> buffer for API entry point record (see below)
  1669.         first byte must be 00h on entry
  1670. Return: CF clear if successful
  1671.         buffer filled (see INT 67/AH=3Fh function 1B00h)
  1672.     CF set on error
  1673.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1674. Notes:    this function is supported by Microsoft EMM386.EXE v4.45+ and
  1675.       CEMM v5.10+, and is intended for use by MS Windows as it starts up
  1676.     if no other program has hooked INT 67, an alternate installation
  1677.       check for CEMM is testing for the string
  1678.       "COMPAQ EXPANDED MEMORY MANAGER 386" at offset 14h in the INT 67
  1679.       handler's segment; if present, the word at offset 12h contains the
  1680.       offset of the API entry point
  1681. SeeAlso: AX=4402h/SF=01h,AX=4402h/SF=02h,AX=4402h"EMM386",INT 67/AH=3Fh
  1682.  
  1683. Format of API entry point record:
  1684. Offset    Size    Description
  1685.  00h    WORD    ??? (0022h for CEMM 5.11, 0025h for MS EMM386 v4.45)
  1686.  02h    DWORD    manager's private API entry point (see below,INT 67/AX=FFA5h)
  1687.  
  1688. Call CEMM v5.10+ entry point with:
  1689.     AH = 00h get memory manager's state
  1690.         Return: AH = state
  1691.             bit 0: turned OFF
  1692.             bit 1: AUTO mode enabled
  1693.     AH = 01h set memory manager's state
  1694.         AL = new state (00h ON, 01h OFF, 02h AUTO)
  1695.         Return: CF clear if successful
  1696.             CF set on error
  1697.     AH = 02h Weitek coprocessor support
  1698.         AL = subfunction
  1699.         00h get Weitek support state
  1700.             Return: AL = status
  1701.                 bit 0: Weitek coprocessor is present
  1702.                 bit 1: Weitek support is enabled
  1703.         01h turn on Weitek support
  1704.         02h turn off Weitek support
  1705.         Return: CF clear if successful
  1706.             CF set on error
  1707.             AH = error code (01h invalid subfunc, 02h no Weitek)
  1708.     AH = 05h get statistics
  1709.         ???
  1710.     AH > 06h
  1711.         Return: CF set
  1712.             AH = 01h (invalid function)
  1713. Notes:    AH=03h,04h,06h are NOPs which return CF clear, presumably for backwards
  1714.       compatibility with earlier versions of CEMM
  1715.     in v5.11, AH=05h merely prints an error message (using INT 21/AH=09h)
  1716.       stating that a different version of CEMM is installed and it is
  1717.       therefore not possible to display the statistics
  1718. --------m-214402SF01-------------------------
  1719. INT 21 U - Memory Managers - GET EMM IMPORT STRUCTURE ADDRESS
  1720.     AX = 4402h subfn 01h
  1721.     BX = file handle for device "EMMXXXX0"
  1722.     CX = 0006h (size of buffer in bytes)
  1723.     DS:DX -> buffer for EMM import structure record (see below)
  1724.         first byte must be 01h on entry
  1725. Return: CF clear if successful
  1726.         buffer filled (see INT 67/AH=3Fh function 1B00h)
  1727.     CF set on error
  1728.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1729. Notes:    this function is supported by Microsoft EMM386.EXE v4.45+,
  1730.       QEMM-386 v6+, and CEMM v5.10+, and is intended for use by MS Windows
  1731.       as it starts up
  1732.     for QEMM-386, this call always returns an error if Windows3 support
  1733.       has been disabled with the NW3 switch
  1734. SeeAlso: AX=4402h/SF=00h,AX=4402h"EMM386",INT 2F/AX=D201h/BX=5145h
  1735. SeeAlso: INT 67/AH=3Fh
  1736.  
  1737. Format of EMM import structure record:
  1738. Offset    Size    Description
  1739.  00h    DWORD    physical address of EMM import structure
  1740.  04h    BYTE    EMM import structure major version
  1741.  05h    BYTE    EMM import structure minor version
  1742. --------m-214402SF02-------------------------
  1743. INT 21 U - Memory Managers - GET MEMORY MANAGER VERSION
  1744.     AX = 4402h subfn 02h
  1745.     BX = file handle for device "EMMXXXX0"
  1746.     CX = 0002h (size of buffer in bytes)
  1747.     DS:DX -> buffer for memory manager version (see below)
  1748.         first byte must be 02h on entry
  1749. Return: CF clear if successful
  1750.         buffer filled
  1751.     CF set on error
  1752.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1753. Note:    this function is supported by Microsoft EMM386.EXE v4.45+ and
  1754.       CEMM v5.10+, and is intended for use by MS Windows as it starts up
  1755. SeeAlso: AX=4402h/SF=00h,AX=4402h"EMM386",INT 67/AH=3Fh
  1756.  
  1757. Format of memory manager version:
  1758. Offset    Size    Description
  1759.  00h    BYTE    major version
  1760.  01h    BYTE    minor version (binary)
  1761. --------m-214402-----------------------------
  1762. INT 21 U - Microsoft EMM386.EXE v4.45 - GET MEMORY MANAGER INFORMATION
  1763.     AX = 4402h
  1764.     BX = file handle for device "EMMXXXX0"
  1765.     CX = size of buffer in bytes (varies, see below)
  1766.     DS:DX -> buffer for returned data (see below)
  1767.         first byte must be set on entry to indicate desired data
  1768. Return: CF clear if successful
  1769.         buffer filled
  1770.     CF set on error
  1771.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1772. Notes:    an error is returned if the number of bytes to be read does not match
  1773.       the number of bytes returned for the specified data item
  1774.     this function is part of the interface which allows MS Windows to
  1775.       cooperate with memory managers
  1776. SeeAlso: AX=4402h/SF=00h,AX=4402h/SF=01h,AX=4402h/SF=02h,INT 67/AX=FFA5h
  1777.  
  1778. Format of data buffer:
  1779. Offset    Size    Description
  1780.  00h    BYTE    (call) function
  1781.         03h get ???
  1782.         04h get ???
  1783. ---function 03h---
  1784.  00h    WORD    ???
  1785.  02h    WORD    ???
  1786. ---function 04h---
  1787.  00h    WORD    segment of UMB containing EMM386 code/data
  1788.  02h    WORD    number of paragraphs of EMM386 code/data in UMB
  1789.  04h    WORD    ???
  1790. --------V-214402-----------------------------
  1791. INT 21 - Compaq AG1024.SYS - RGDI - GET DRIVER LOCATION
  1792.     AX = 4402h
  1793.     BX = file handle for device "$$$$RGDI"
  1794.     CX = 0006h (size of returned data)
  1795.     DS:DX -> location record (see below)
  1796. Return: CF clear if successful
  1797.         buffer filled
  1798.     CF set on error
  1799.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1800. Program: AG1024.SYS is a device driver for the Advanced Graphics 1024 adapter
  1801. SeeAlso: AX=4403h"RGDI"
  1802.  
  1803. Format of location record:
  1804. Offset    Size    Description
  1805.  00h    WORD    signature 55AAh
  1806.  02h    WORD    segment of ???
  1807.  04h    WORD    segment of device driver's code
  1808. --------N-214402-----------------------------
  1809. INT 21 - FTPSOFT.DOS v3.1 - GET ???
  1810.     AX = 4402h
  1811.     BX = file handle for device "FTPSOFT$"
  1812.     CX = size of buffer
  1813.     DS:DX -> buffer for data (see below)
  1814. Return: CF clear if successful
  1815.         buffer filled
  1816.     CF set on error
  1817.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1818. Program: FTPSOFT.DOS is a device driver for Protocol Manager support from
  1819.        FTP Software, Inc.
  1820. SeeAlso: AH=3Fh"PC/TCP",AX=4402h"NDIS"
  1821.  
  1822. Format of data:
  1823. Offset    Size    Description
  1824.  00h    WORD    (call) BA98h (if different, no data returned)
  1825.  02h    DWORD    -> NDIS common characteristics table (see AX=4402h"NDIS")
  1826.  06h    DWORD    (call) -> new dispatch table (see AX=4402h"NDIS")
  1827.  0Ah    DWORD    -> 28-byte buffer for ??? data
  1828.  0Eh    DWORD    ???
  1829.  12h    DWORD    -> FAR function to reset dispatch jump table to defaults
  1830.  16h    BYTE    ???
  1831. Note:    the addresses in the new dispatch table are copied into an internal
  1832.       jump table which may be reset by calling the function pointed at by
  1833.       offset 12h
  1834. --------n-214402-----------------------------
  1835. INT 21 U - PenDOS PENDEV.SYS - GET ENTRY POINTS
  1836.     AX = 4402h
  1837.     BX = file handle for device "$$PENDOS" or "$$PD_REG"
  1838.     CX = size of buffer (4 for $$PENDOS and a 4,8,12, or 16 for $$PD_REG)
  1839.     DS:DX -> buffer for entry point record (see below)
  1840. Return: CF clear if successful
  1841.         buffer filled
  1842.     CF set on error
  1843.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1844. Program: A limited version of PenDOS by Communication Intelligence Corporation,
  1845.       which provides pen capability to keyboard-based programs, is bundled
  1846.       with IBM DOS 6.1
  1847. SeeAlso: AX=4403h"PENDEV.SYS"
  1848.  
  1849. Format of entry point record:
  1850. Offset    Size    Description
  1851.  00h    DWORD    -> array of jumps
  1852.  04h    WORD    offset of function to retrieve entry point
  1853.  06h  2 BYTEs    signature "Pe"
  1854.  08h    WORD    offset of function to set entry point
  1855.  0Ah  2 BYTEs    signature "nD"
  1856.  0Ch    WORD    offset of function to clear entry point
  1857.  0Eh    WORD    signature "OS"
  1858.  
  1859. Call function to retrieve entry point with:
  1860.     AX = index of entry point (0-9)
  1861. Return: CF clear if successful
  1862.         DX:AX -> desired entry point
  1863.     CF set on error (AX out of range)
  1864.  
  1865. Call function to set entry point with:
  1866.     AX = index of entry point (0-9)
  1867.     DX:SI -> new handler
  1868. Return: CF clear if successful
  1869.     CF set on error (AX out of range)
  1870.  
  1871. Call function to clear entry point with:
  1872.     AX = index of entry point (0-9)
  1873. Return: CF clear if successful
  1874.     CF set on error (AX out of range)
  1875. Note:    resets the jump at the specified entry point to its default target,
  1876.       which simply returns
  1877. --------N-214402-----------------------------
  1878. INT 21 U - LAN Manager - TCPDRV.DOS - API
  1879.     AX = 4402h
  1880.     BX = file handle referencing device "TCPDRV$"
  1881.     CX = 0019h
  1882.     DS:DX -> buffer containing request block
  1883. Return: CF clear if successful
  1884.         buffer filled
  1885.     CF set on error
  1886.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1887. Program: TCPDRV.DOS is the low-level device driver supporting LAN Manager's
  1888.       TCP/IP protocol stack
  1889.  
  1890. Format of request block:
  1891. Offset    Size    Description
  1892.  00h    BYTE    (call) function number
  1893.         00h initialize ???
  1894.         06h get ???
  1895.         07h get ???
  1896.  01h    BYTE    (call) 00h
  1897.         (return) error code if error, unchanged if successful
  1898.  02h    WORD    signature 4354h ('CT')
  1899. ---function 00h---
  1900.  04h    DWORD    (call) pointer to ??? FAR function
  1901.         function is called with ES:BX -> device driver request used to
  1902.           invoke this function
  1903.  08h  4 BYTEs    ???
  1904.  0Ch    DWORD    (call) pointer to ??? record, WORD at offset 22h is read
  1905.  10h    DWORD    (return) -> ??? buffer if 0000h:0000h on call
  1906. ---function 06h---
  1907.  04h  4 BYTEs    ???
  1908.  08h    DWORD    (return) pointer to ???
  1909. ---function 07h---
  1910.  04h    DWORD    (return) pointer to ??? record
  1911. --------y-214402-----------------------------
  1912. INT 21 U - PC Tools 9 CPRLOW.EXE - GET CODE AND DATA ADDRESSES
  1913.     AX = 4402h
  1914.     BX = file handle referencing device "RECLOWLD"
  1915.     DS:DX -> buffer for address list (see below)
  1916.     CX ignored
  1917. Return: CF clear if successful
  1918.         buffer filled
  1919.     CF set on error
  1920.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1921.  
  1922. Format of address list:
  1923. Offset    Size    Description
  1924.  00h    WORD    segment of CPRLOW code
  1925.  02h    WORD    offset in code segment of ??? entry point
  1926.         (switches into protected mode)
  1927.  04h    WORD    offset in code segment of jump array (see below)
  1928.  06h    WORD    segment of copy of interrupt vector table at CPRLOW load time
  1929. Note:    neither the entry point nor the jump array is valid until after a
  1930.       CPR /LOAD, because CPR.EXE installs the code into CPRLOW at runtime.
  1931.  
  1932. Format of jump array:
  1933. Offset    Size    Description
  1934.  00h  3 BYTEs    initialize CPRLOW interrupt hooks
  1935.  03h  3 BYTEs    reset timers and enable CPR (hotkey enable)
  1936.  06h  3 BYTEs    disable CPR (hotkey disable)
  1937.  09h  3 BYTEs    clear ??? flag, hotkey disable, and ???
  1938.  0Ch  3 BYTEs    initialize delay loop counter (destroys AX,BX,CX,DX)
  1939.  0Fh  3 BYTEs    disable CPR completely (commandline /DISABLE)
  1940.  12h  3 BYTEs    enable ??? if CPR enabled by both cmdline and hotkey
  1941.  15h  3 BYTEs    enable CPR (commandline /ENABLE)
  1942. --------D-214403-----------------------------
  1943. INT 21 - DOS 2+ - IOCTL - WRITE TO CHARACTER DEVICE CONTROL CHANNEL
  1944.     AX = 4403h
  1945.     BX = file handle referencing character device
  1946.     CX = number of bytes to write
  1947.     DS:DX -> data to write
  1948. Return: CF clear if successful
  1949.         AX = number of bytes actually written
  1950.     CF set on error
  1951.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1952. Notes:    format of data is driver-specific (see below for some specific cases)
  1953.     if the file handle refers to "4DOSSTAK", the 4DOS (v2.x-3.03)
  1954.       KEYSTACK.SYS driver will push the specified characters on the
  1955.       keyboard stack; similarly for "NDOSSTAK", the NDOS KEYSTACK.SYS
  1956.       driver will push the characters onto the keyboard stack
  1957. SeeAlso: AX=4400h,AX=4402h,AX=4405h,INT 2F/AX=122Bh,INT 2F/AX=D44Dh
  1958. SeeAlso: INT 2F/AX=D44Fh
  1959. --------c-214403-----------------------------
  1960. INT 21 - SMARTDRV.SYS v3.x only - IOCTL - CACHE CONTROL
  1961.     AX = 4403h
  1962.     BX = handle for device "SMARTAAR"
  1963.     CX = number of bytes to write
  1964.     DS:DX -> SMARTDRV control block (see below)
  1965. Return: CF clear if successful
  1966.         AX = number of bytes actually written
  1967.            = 0000h if control block too small for given command
  1968.     CF set on error
  1969.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1970. SeeAlso: AX=4402h"SMARTDRV",INT 2F/AX=4A10h/BX=0000h
  1971.  
  1972. Format of SMARTDRV control block:
  1973. Offset    Size    Description
  1974.  00h    BYTE    function code
  1975.         00h flush cache
  1976.         01h flush and discard cache
  1977.         02h disable caching (flushes and discards cache first)
  1978.         03h enable caching
  1979.         04h control write caching
  1980.         05h set flushing tick count
  1981.         06h lock cache contents
  1982.         07h unlock cache contents
  1983.         08h set flush-on-reboot flag
  1984.         09h unused
  1985.         0Ah control full-track caching
  1986.         0Bh reduce cache size
  1987.         0Ch increase cache size
  1988.         0Dh set INT 13 chain address
  1989. ---function 04h---
  1990.  01h    BYTE    write caching control action
  1991.         00h turn off write-through
  1992.         01h turn on write-through
  1993.         02h turn off write buffering (also flushes cache)
  1994.         03h turn on write buffering (also flushes cache)
  1995. ---function 05h---
  1996.  01h    WORD    number of timer ticks between cache flushes
  1997. ---function 08h---
  1998.  01h    BYTE    new flush-on-reboot flag (00h off, 01h on)
  1999. ---function 0Ah---
  2000.  01h    BYTE    full-track writes are
  2001.         00h not cached
  2002.         01h cached
  2003. ---functions 0Bh,0Ch---
  2004.  01h    WORD    number of 16K pages by which to increase/reduce cache size
  2005. ---function 0Dh---
  2006.  01h    DWORD    new address to which to chain on INT 13
  2007. Note:    the previous address is not preserved
  2008. --------d-214403-----------------------------
  2009. INT 21 - CD-ROM device driver - IOCTL OUTPUT
  2010.     AX = 4403h
  2011.     BX = file handle referencing character device for CD-ROM driver
  2012.     CX = number of bytes to write
  2013.     DS:DX -> control block (see below)
  2014. Return: CF clear if successful
  2015.         AX = number of bytes actually written
  2016.     CF set on error
  2017.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2018. SeeAlso: AX=4402h"CD-ROM",INT 2F/AX=0802h
  2019.  
  2020. Format of control block:
  2021. Offset    Size    Description
  2022.  00h    BYTE    function code
  2023.         00h eject disk
  2024.         01h lock/unlock door
  2025.         02h reset drive
  2026.         03h control audio channel
  2027.         04h write device control string
  2028.         05h close tray
  2029. ---functions 00h,02h,05h---
  2030.  no further fields
  2031. ---function 01h---
  2032.  01h    BYTE    lock function
  2033.         00h unlock door
  2034.         01h lock door
  2035. ---function 03h---
  2036.  01h    BYTE    input channel (0-3) for output channel 0
  2037.  02h    BYTE    volume for output channel 0
  2038.  03h    BYTE    input channel (0-3) for output channel 1
  2039.  04h    BYTE    volume for output channel 1
  2040.  05h    BYTE    input channel (0-3) for output channel 2
  2041.  06h    BYTE    volume for output channel 2
  2042.  07h    BYTE    input channel (0-3) for output channel 3
  2043.  08h    BYTE    volume for output channel 3
  2044. Note:    output channels 0 and 1 are left and right, 2 and 3 are left prime and
  2045.       right prime; a volume of 00h is off
  2046. ---function 04h---
  2047.  01h  N BYTEs    bytes to send directly to the CD-ROM drive without
  2048.         interpretation
  2049. --------d-214403-----------------------------
  2050. INT 21 - Brian Antoine Seagate ST-01 SCSI.SYS - IOCTL - EXECUTE COMMANDS
  2051.     AX = 4403h
  2052.     BX = handle for device "SCSITAPE"
  2053.     CX = number of bytes to write
  2054.     DS:DX -> SCSITAPE control block (see below)
  2055. Return: CF clear if successful
  2056.         AX = number of bytes actually written
  2057.     CF set on error
  2058.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2059. SeeAlso: AX=4405h"ST-01",INT 78/AH=10h
  2060.  
  2061. Format of SCSITAPE control block:
  2062. Offset    Size    Description
  2063.  00h    WORD    command type
  2064.         'F' Format (argument 1 = interleave, argument 2 = format type)
  2065.         'E' Erase
  2066.         'R' Rewind
  2067.         'L' Load
  2068.         'N' No Load
  2069.         'S' Space (argument 1 = count, argument 2 = type)
  2070.         'M' File Mark (argument 1 = count)
  2071.         'A' Reassign
  2072.  02h    WORD    argument 1
  2073.  04h    WORD    argument 2
  2074.  06h    WORD    segment of command buffer
  2075.  08h    WORD    offset of command buffer
  2076.  0Ah    WORD    length of command buffer
  2077. --------E-214403-----------------------------
  2078. INT 21 U - AI Architects - OS/x86??? - API
  2079.     AX = 4403h
  2080.     BX = handle for device "AIA_OS"
  2081.     CX = number of bytes to write (ignored)
  2082.     DS:DX -> 12-byte buffer, first byte is command:
  2083.             81h installation check
  2084.             82h get API entry point
  2085.             84h uninstall
  2086. Return: CF clear if successful
  2087.         AX = number of bytes actually written
  2088.     CF set on error
  2089.         AX = error code (01h,05h,06h,0Ch,0Dh) (see AH=59h)
  2090. Notes:    these functions are only available if the DOS extender was loaded as a
  2091.       device driver in CONFIG.SYS
  2092.     called by TKERNEL (a licensed version of AI Architects/Ergo OS/x86)
  2093. SeeAlso: INT 2F/AX=FBA1h/BX=0081h,INT 2F/AX=FBA1h/BX=0082h
  2094. Index:    installation check;OS/x86|entry point;OS/x86|uninstall;OS/x86
  2095.  
  2096. Format of buffer on return:
  2097. Offset    Size    Description
  2098.  00h  4 BYTEs    signature "IABH"
  2099. ---if func 81h---
  2100.  (no additional fields)
  2101. ---if func 82h---
  2102.  04h    DWORD    pointer to API entry point (see INT 2F/AX=FBA1h/BX=0082h)
  2103. ---if func 84h---
  2104.  04h    WORD    success indicator
  2105.  06h    WORD    segment of ???
  2106.  08h    WORD    segment of ??? memory block to free if nonzero
  2107.  0Ah    WORD    segment of ??? memory block to free if nonzero
  2108. --------V-214403-----------------------------
  2109. INT 21 - PGS1600.DEV - IOCTL - SET CONFIGURATION???
  2110.     AX = 4403h
  2111.     BX = file handle for device "PGS1600$"
  2112.     CX = 0018h (size of buffer)
  2113.     DS:DX -> configuration buffer (see AX=4402h"PGS1600")
  2114. Return: CF clear if successful
  2115.         AX = number of bytes actually written
  2116.     CF set on error
  2117.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2118. Program: PGS1600.DEV is a device driver for the Cornerstone Technology PG1600
  2119.       display adapter, which provides a 1600x1200 monochrome display as
  2120.       well as one of two emulations, MDA or CGA.
  2121. SeeAlso: AX=4402h"PGS1600"
  2122. --------N-214403-----------------------------
  2123. INT 21 - PC/TCP IPCUST.SYS - RESET CONFIGURATION DATA READ POINTER
  2124.     AX = 4403h
  2125.     BX = file handle referencing device "$IPCUST"
  2126.     CX, DS:DX ignored
  2127. Return: CF clear if successful
  2128.         AX destroyed
  2129.     CF set on error
  2130.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2131. Notes:    there are a total of 378h bytes of configuration data for IPCUST.SYS
  2132.       version 2.05.     If less than the entire data is read or written,
  2133.       the next read/write continues where the previous one ended; this
  2134.       call and AX=4402h both reset the location at which the next
  2135.       operation starts to zero
  2136.     v2.1+ uses a new configuration method, but allows the installation
  2137.       of IPCUST.SYS for backward compatibility with other software which
  2138.       must read the PC/TCP configuration
  2139. SeeAlso: AH=3Fh"IPCUST",AH=40h"IPCUST",AX=4402h"IPCUST"
  2140. --------V-214403-----------------------------
  2141. INT 21 - Compaq AG1024.SYS - CPQ_MGES - IOCTL OUTPUT
  2142.     AX = 4403h
  2143.     BX = file handle referencing device "CPQ_MGES"
  2144.     DS:DX -> request packet (see below)
  2145.     CX ignored
  2146. Return: CF clear if successful
  2147.         AX destroyed
  2148.         data buffer filled (if applicable)
  2149.         first word of request packet set to number of bytes of data
  2150.           available (amount returned is smaller of this and requested
  2151.           amount)
  2152.     CF set on error
  2153.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2154. Program: AG1024.SYS is a device driver for the Advanced Graphics 1024 adapter
  2155. SeeAlso: AX=4403h"RGDI"
  2156.  
  2157. Format of request packet:
  2158. Offset    Size    Description
  2159.  00h    WORD    function
  2160.         0000h get ??? (26h bytes)
  2161.         0001h get ??? (36h bytes)
  2162.         0002h set ??? (same as returned by function 0001h)
  2163.         0003h get ??? (6 bytes)
  2164.         0004h get ???
  2165.         0005h get ???
  2166.         0006h get ??? (10h bytes)
  2167.         0007h set ??? (same as returned by function 0006h)
  2168. ---functions 00h-03h,06h,07h---
  2169.  02h    WORD    size of data buffer
  2170.  04h    DWORD    -> buffer for function's data
  2171.  ---functions 04h,05h---
  2172.  02h    WORD    ???
  2173.  04h    WORD    size of data buffer
  2174.  06h    DWORD    -> buffer to receive data
  2175. --------V-214403-----------------------------
  2176. INT 21 - Compaq AG1024.SYS - RGDI - IOCTL OUTPUT
  2177.     AX = 4403h
  2178.     BX = file handle referencing device "$$$$RGDI"
  2179.     DS:DX -> request packet (see below)
  2180.     CX ignored
  2181. Return: CF clear if successful
  2182.         AX destroyed
  2183.         data buffer filled (if applicable)
  2184.         first word of request packet set to number of bytes of data
  2185.           available (amount returned is smaller of this and requested
  2186.           amount)
  2187.     CF set on error
  2188.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2189. Program: AG1024.SYS is a device driver for the Advanced Graphics 1024 adapter
  2190. SeeAlso: AX=4402h"RGDI",AX=4403h"CPQ_MGES"
  2191.  
  2192. Format of request packet:
  2193. Offset    Size    Description
  2194.  00h    WORD    function
  2195.         0000h get entry points
  2196.         0001h get ???
  2197.  02h    DWORD    address of buffer for returned data
  2198. --------m-214403SF01-------------------------
  2199. INT 21 U - Qualitas 386MAX v6.01+ - TURN 386MAX OFF
  2200.     AX = 4403h subfn 01h
  2201.     BX = handle for device "386MAX$$"
  2202.     DS:DX -> BYTE 01h
  2203.     CX ignored
  2204. Return: DS:DX -> BYTE status (00h = successful)
  2205.     CF clear if successful
  2206.         AX destroyed
  2207.     CF set on error
  2208.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2209. Note:    this function will fail if any EMS or UMBs are in use
  2210. SeeAlso: AX=4403h/SF=02h,AX=4403h/SF=03h,AX=4403h/SF=05h
  2211. --------m-214403SF02-------------------------
  2212. INT 21 U - Qualitas 386MAX v6.01+ - TURN 386MAX ON
  2213.     AX = 4403h subfn 02h
  2214.     BX = handle for device "386MAX$$"
  2215.     DS:DX -> BYTE 02h
  2216.     CX ignored
  2217. Return: DS:DX -> BYTE status (00h = successful)
  2218.     CF clear if successful
  2219.         AX destroyed
  2220.     CF set on error
  2221.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2222. SeeAlso: AX=4403h/SF=01h,AX=4403h/SF=03h,AX=4403h/SF=05h
  2223. --------m-214403SF03-------------------------
  2224. INT 21 U - Qualitas 386MAX v6.01+ - SET STATE
  2225.     AX = 4403h subfn 03h
  2226.     BX = handle for device "386MAX$$"
  2227.     CX = number of bytes to copy (up to size of state buffer)
  2228.     DS:DX -> BYTE 03h followed by state buffer (see AX=4402h"386MAX")
  2229. Return: CF clear if successful
  2230.         AX = number of bytes actually written
  2231.     CF set on error
  2232.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2233. Note:    the first byte of the buffer must be either 01h, 02h, or 03h
  2234.       (specifying the version of the state record) and the buffer must
  2235.       contain CX bytes AFTER the initial byte
  2236. SeeAlso: AX=4402h"386MAX"
  2237. --------m-214403SF05-------------------------
  2238. INT 21 U - Qualitas 386MAX v7.00+ - LIMIT AUTOMATIC ACTIVATION TO STD EMS CALLS
  2239.     AX = 4403h subfn 05h
  2240.     BX = handle for device "386MAX$$"
  2241.     DS:DX -> BYTE 05h
  2242.     CX ignored
  2243. Return: CF clear if successful
  2244.         AX destroyed
  2245.     CF set on error
  2246.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2247. Desc:    specifies that 386MAX will only shift from AUTO to ON mode on standard
  2248.       EMS calls INT 67/AH=40h-5Dh
  2249. SeeAlso: AX=4403h/SF=02h,AX=4403h/SF=03h,AX=4403h/SF=06h
  2250. --------m-214403SF06-------------------------
  2251. INT 21 U - Qualitas 386MAX v7.00+ - ALLOW AUTOMATIC ACTIVATION ON ANY INT 67
  2252.     AX = 4403h subfn 06h
  2253.     BX = handle for device "386MAX$$"
  2254.     DS:DX -> BYTE 06h
  2255.     CX ignored
  2256. Return: CF clear if successful
  2257.         AX destroyed
  2258.     CF set on error
  2259.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2260. Desc:    specified that 386MAX should shift from AUTO to ON mode on any INT 67
  2261.       call other than INT 67/AH=3Fh
  2262. SeeAlso: AX=4403h/SF=01h,AX=4403h/SF=03h,AX=4403h/SF=05h
  2263. --------n-214403-----------------------------
  2264. INT 21 U - PenDOS PENDEV.SYS - ???
  2265.     AX = 4403h
  2266.     BX = file handle for device "$$PENDOS" or "$$PD_REG"
  2267.     CX = size of buffer
  2268.     DS:DX -> buffer containing ???
  2269. Return: CF clear if successful
  2270.         buffer filled
  2271.     CF set on error
  2272.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2273. Program: A limited version of PenDOS by Communication Intelligence Corporation,
  2274.       which provides pen capability to keyboard-based programs, is bundled
  2275.       with IBM DOS 6.1
  2276. Note:    this call sets the WORD at offset 1Ah into the device driver request
  2277.       header used to call the driver to 0000h.
  2278. SeeAlso: AX=4402h"PENDEV.SYS"
  2279. --------D-214404-----------------------------
  2280. INT 21 - DOS 2+ - IOCTL - READ FROM BLOCK DEVICE CONTROL CHANNEL
  2281.     AX = 4404h
  2282.     BL = drive number (00h = default, 01h = A:, etc.)
  2283.     CX = number of bytes to read
  2284.     DS:DX -> buffer
  2285. Return: CF clear if successful
  2286.         AX = number of bytes actually read
  2287.     CF set on error
  2288.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2289. Note:    format of data is driver-specific
  2290. SeeAlso: AX=4402h,AX=4405h,INT 2F/AX=122Bh
  2291. --------d-214404-----------------------------
  2292. INT 21 - Stacker - GET DEVICE DRIVER ADDRESS AND SET VOLUME NUMBER
  2293.     AX = 4404h
  2294.     BL = drive number (00h = default, 01h = A:, etc.)
  2295.     CX = 0004h
  2296.     DS:DX -> DWORD buffer to receive device driver address
  2297. Note:    In addition to returning the address of the Stacker device driver,
  2298.       this call also sets the volume number at offset 3Eh in the device
  2299.       driver (see INT 25/AX=CDCDh)
  2300. SeeAlso: INT 25/AX=CDCDh
  2301. --------d-214404-----------------------------
  2302. INT 21 - Stacker - GET STACVOL FILE SECTORS
  2303.     AX = 4404h
  2304.     BL = drive number (0 is current drive)
  2305.     CX = byte count (i.e., 200h = 1 sector)
  2306.     DS:DX -> buffer (see below)
  2307. Return: Data Buffer contains the number of sectors requested from the
  2308.       STACVOL physical file for the drive specified.
  2309.  
  2310. Format of stacker buffer:
  2311. Offset    Size    Description
  2312.  00h    WORD    01CDh
  2313.  02h    WORD    sector count
  2314.  04h    DWORD    number of starting sector
  2315.  08h    DWORD    far pointer to Data Buffer
  2316. --------d-214404-----------------------------
  2317. INT 21 - DUBLDISK.SYS v2.6 - GET INFO
  2318.     AX = 4404h
  2319.     BL = drive number of DoubleDisk drive (00h = default, 01h = A:, etc.)
  2320.     CX = number of bytes (000Ah-0014h, call ignored otherwise)
  2321.     DS:DX -> data record (see below)
  2322. Return: CF clear if successful
  2323.         AX = number of bytes read
  2324.     CF set on error
  2325.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2326. Program: DUBLDISK.SYS is the device driver portion of DoubleDisk, a disk
  2327.       expander by Vertisoft Systems, Inc.
  2328. Note:    the installation check consists of scanning memory for the signature
  2329.       "FAT 2.6  byte:", which is immediately followed by a data table
  2330. SeeAlso: AX=440Dh
  2331. Index:    installation check;DUBLDISK.SYS
  2332.  
  2333. Format of data record:
  2334. Offset    Size    Description
  2335.  00h    WORD    (call) signature 4444h
  2336.  02h    BYTE    (call) function
  2337.             00h ???
  2338.             01h ???
  2339. ---function 00h---
  2340.  02h    BYTE    (return) ???
  2341.  03h    BYTE    (return) ???
  2342. ---function 01h---
  2343.  02h    WORD    (return) 4444h
  2344.  04h    WORD    allocation unit size???
  2345.  06h    WORD    ???
  2346.  08h    WORD    ???
  2347.  0Ah    BYTE    ???
  2348.  
  2349. Format of signature data table:
  2350. Offset    Size    Description
  2351.  00h  5 BYTEs    ???
  2352.  05h    BYTE    first drive number
  2353.  06h    BYTE    number of drives
  2354.  07h    ???
  2355. --------d-214404-----------------------------
  2356. INT 21 - DBLSPACE.BIN - IOCTL - FLUSH OR INVALIDATE INTERNAL CACHES
  2357.     AX = 4404h
  2358.     BL = drive number (00h = default, 01h = A:, etc)
  2359.     CX = 000Ah (size of DSPACKET structure)
  2360.     DS:DX -> DSPACKET structure (see below)
  2361. Return: CF clear if IOCTL successful -- check DSPACKET for actual status
  2362.         AX = number of bytes actually transferred
  2363.     CF set on error
  2364.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2365. SeeAlso: AX=4405h"DBLSPACE",INT 2F/AX=4A11h/BX=0000h
  2366.  
  2367. Format of DSPACKET structure:
  2368. Offset    Size    Description
  2369.  00h    WORD    signature 444Dh ("DM")
  2370.  02h    BYTE    command code
  2371.         46h ('F') flush internal caches
  2372.         49h ('I') flush and invalidate internal caches
  2373.  03h    WORD    result code
  2374.         (return) 4F4Bh ("OK") if successful, else unchanged
  2375.  05h  5 BYTEs    padding
  2376. --------d-214404-----------------------------
  2377. INT 21 U - xDISK v3.31 - CONFIGURE
  2378.     AX = 4404h
  2379.     BL = drive number (00h = default, 01h = A:, etc)
  2380.     CX = 0047h (length of version string)
  2381.     DS:DX -> 79-byte buffer for version string and ???
  2382.     DS:0081h = commandline containing new switches for driver
  2383. Return: CF clear if successful
  2384.         AX = number of bytes actually transferred
  2385.     CF set on error
  2386.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2387. Program: xDISK is a shareware resizeable EMS RAMdisk by FM de Monasterio
  2388. SeeAlso: AX=4405h"xDISK",INT 2F/AH=DDh"xDISK"
  2389. --------c-214404-----------------------------
  2390. INT 21 - COMBI-disk v1.13 - GET DATA RECORD
  2391.     AX = 4404h
  2392.     BL = drive number (00h = default, 01h = A:, etc)
  2393.     CX =  (length of data packet)
  2394.     DS:DX -> buffer for data packet (see below)
  2395. Return: CF clear if successful
  2396.         AX = number of bytes actually transferred
  2397.     CF set on error
  2398.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2399. Program: COMBI-disk is a shareware combination cache and RAMdisk sharing a
  2400.       single pool of memory by Vadim V. Vlasov
  2401. Note:    the installation check consists of scanning the valid drives for one
  2402.       which returns a correctly-sized data packet with the proper
  2403.       signature in the first field
  2404. SeeAlso: AX=4405h"COMBI"
  2405. Index:    installation check;COMBI-disk
  2406.  
  2407. Format of data packet:
  2408. Offset    Size    Description
  2409.  00h  6 BYTEs    ASCIZ signature "COMBI"
  2410.  06h    WORD    version (high byte = major, low = decimal minor version)
  2411.  08h    BYTE    current options (see below)
  2412.  09h    BYTE    sectors per allocation block
  2413.  0Ah    WORD    maximum buffer in KB
  2414.  0Ch    WORD    current buffer in KB (less than max if XMS memory being lent)
  2415.  0Eh    WORD    total number of allocation blocks
  2416.  10h    WORD    current number of allocation blocks
  2417.  12h    WORD    number of blocks being used by RAM disk
  2418.  14h    WORD    number of blocks being used by cache or unused
  2419.  16h    WORD    number of dirty cache blocks
  2420.  18h    WORD    number of blocks which could not be written out due to errors
  2421.  1Ah    WORD    total number of read requests
  2422.  1Ch    WORD    total number of sectors read
  2423.  1Eh    WORD    number of BIOS read requests (cache misses)
  2424.  20h    WORD    number of sectors read via BIOS (cache misses)
  2425.  22h    WORD    total number of write requests
  2426.  24h    WORD    total number of sectors written
  2427.  26h    WORD    number of BIOS write requests
  2428.  28h    WORD    number of sectors written via BIOS
  2429.  2Ah    WORD    number of RAM disk read requests
  2430.  2Ch    WORD    number of sectors read from RAM disk
  2431.  2Eh    WORD    number of RAM disk write requests
  2432.  30h    WORD    number of sectors written to RAM disk
  2433. --------D-214405-----------------------------
  2434. INT 21 - DOS 2+ - IOCTL - WRITE TO BLOCK DEVICE CONTROL CHANNEL
  2435.     AX = 4405h
  2436.     BL = drive number (00h = default, 01h = A:, etc)
  2437.     CX = number of bytes to write
  2438.     DS:DX -> data to write
  2439. Return: CF clear if successful
  2440.         AX = number of bytes actually written
  2441.     CF set on error
  2442.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2443. Note:    format of data is driver-specific
  2444. SeeAlso: AX=4403h,AX=4404h,INT 2F/AX=122Bh
  2445. --------d-214405-----------------------------
  2446. INT 21 - Brian Antoine Seagate ST-01 SCSI.SYS - IOCTL - EXECUTE COMMANDS
  2447.     AX = 4405h
  2448.     BX = drive number (00h = default, 01h = A:, etc)
  2449.     CX = number of bytes to write
  2450.     DS:DX -> SCSIDISK control block (see AX=4403h"ST-01")
  2451. Return: CF clear if successful
  2452.         AX = number of bytes actually written
  2453.     CF set on error
  2454.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2455. SeeAlso: AX=4403h"ST-01"
  2456. --------d-214405-----------------------------
  2457. INT 21 U - DBLSPACE.BIN - IOCTL - FLUSH OR INVALIDATE INTERNAL CACHES
  2458.     AX = 4405h
  2459.     BL = drive number (00h = default, 01h = A:, etc)
  2460.     CX = 000Ah (size of DSPACKET structure)
  2461.     DS:DX -> DSPACKET structure (see below)
  2462. Return: CF clear if IOCTL successful -- check DSPACKET for actual status
  2463.         AX = number of bytes actually transferred
  2464.     CF set on error
  2465.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2466. Note:    this call is identical to the documented AX=4404h
  2467. SeeAlso: AX=4404h"DBLSPACE",INT 2F/AX=4A11h/BX=0000h
  2468.  
  2469. Format of DSPACKET structure:
  2470. Offset    Size    Description
  2471.  00h    WORD    signature 444Dh ("DM")
  2472.  02h    BYTE    command code
  2473.         46h ('F') flush internal caches
  2474.         49h ('I') flush and invalidate internal caches
  2475.  03h    WORD    result code
  2476.         (return) 4F4Bh ("OK") if successful, else unchanged
  2477.  05h  5 BYTEs    padding
  2478. --------d-214405-----------------------------
  2479. INT 21 U - xDISK v3.31 - ???
  2480.     AX = 4405h
  2481.     BL = drive number (00h = default, 01h = A:, etc)
  2482.     CX = number of bytes to write
  2483.     DS:DX -> buffer containing version string
  2484.     ???
  2485. Return: CF clear if successful
  2486.         AX = number of bytes actually transferred
  2487.     CF set on error
  2488.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2489. Program: xDISK is a shareware resizeable EMS RAMdisk by FM de Monasterio
  2490. SeeAlso: AX=4404h"xDISK",INT 2F/AH=DDh"xDISK"
  2491. --------d-214405-----------------------------
  2492. INT 21 - COMBI-disk v1.13 - CONTROL COMBI-disk
  2493.     AX = 4405h
  2494.     BL = drive number (00h = default, 01h = A:, etc) for RAM disk
  2495.     CX = number of bytes to write
  2496.     DS:DX -> buffer containing command packet (see below)
  2497. Return: CF clear if successful
  2498.         AX = number of bytes actually transferred
  2499.     CF set on error
  2500.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2501. SeeAlso: AX=4404h"COMBI"
  2502.  
  2503. Format of command packet:
  2504. Offset    Size    Description
  2505.  00h    WORD    version
  2506.  02h    BYTE    command code
  2507.         80h flush cache
  2508.         81h change options byte
  2509.         82h shrink memory
  2510.         83h expand memory
  2511.         84h get dirty block information
  2512.         85h reset write errors
  2513.         86h reset counters
  2514. ---command code 81h---
  2515.  03h    BYTE    new options byte (see below)
  2516. ---command code 82h---
  2517.  03h    WORD    number of KB to release
  2518. ---command code 83h---
  2519.  03h    WORD    number of KB to expand
  2520. ---command code 84h---
  2521.  03h    DWORD    -> buffer for block info (see below)
  2522. ---command code 85h---
  2523.  03h    DWORD    block ID
  2524. ---command code 86h---
  2525.  03h    BYTE    which counters to reset
  2526.         bit 0: hard disk read counts
  2527.         bit 1: hard disk write counts
  2528.         bit 2: RAM disk read/write counts
  2529. Note:    multiple commands may be placed in a single packet by stringing
  2530.       together as many command/argument pairs as desired
  2531.  
  2532. Bitfields for options byte:
  2533.  bit 0    cache off
  2534.  bit 1    cache frozen
  2535.  bit 2    write caching enabled
  2536.  bit 3    delayed writing disabled
  2537.  bit 5    fix memory allocation (no XMS lending)
  2538.  bit 6    no 'sector not found' error
  2539.  
  2540. Format of block info:
  2541. Offset    Size    Description
  2542.  00h    DWORD    block ID
  2543.  04h    BYTE    bitmask of valid sectors in block
  2544.  05h    BYTE    bitmask of dirty sectors in block
  2545.  06h    BYTE    last error returned by BIOS
  2546.  07h    BYTE    number of errors
  2547. --------D-214406-----------------------------
  2548. INT 21 - DOS 2+ - IOCTL - GET INPUT STATUS
  2549.     AX = 4406h
  2550.     BX = file handle
  2551. Return: CF clear if successful
  2552.         AL = input status
  2553.         00h not ready (device) or at EOF (file)
  2554.         FFh ready
  2555.     CF set on error
  2556.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2557. Note:    files may not register as being at EOF if positioned there by AH=42h
  2558. SeeAlso: AX=4407h,INT 2F/AX=122Bh
  2559. --------D-214407-----------------------------
  2560. INT 21 - DOS 2+ - IOCTL - GET OUTPUT STATUS
  2561.     AX = 4407h
  2562.     BX = file handle
  2563. Return: CF clear if successful
  2564.         AL = input status
  2565.         00h not ready
  2566.         FFh ready
  2567.     CF set on error
  2568.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2569. Note:    for DOS 2+, files are always ready for output, even if the disk is
  2570.       full or no media is in the drive
  2571. SeeAlso: AX=4406h,INT 2F/AX=122Bh
  2572. --------D-214408-----------------------------
  2573. INT 21 - DOS 3.0+ - IOCTL - CHECK IF BLOCK DEVICE REMOVABLE
  2574.     AX = 4408h
  2575.     BL = drive number (00h = default, 01h = A:, etc)
  2576. Return: CF clear if successful
  2577.         AX = 0000h if removable
  2578.            = 0001h if fixed
  2579.     CF set on error
  2580.         AX = error code (01h,0Fh) (see AH=59h)
  2581. SeeAlso: AX=4400h,AX=4409h,INT 2F/AX=122Bh
  2582. --------D-214409-----------------------------
  2583. INT 21 - DOS 3.1+ - IOCTL - CHECK IF BLOCK DEVICE REMOTE
  2584.     AX = 4409h
  2585.     BL = drive number (00h = default, 01h = A:, etc)
  2586. Return: CF clear if successful
  2587.         DX = device attribute word
  2588.         bit 15: drive is SUBSTituted
  2589.         bit 12: drive is remote
  2590.         bit  9: direct I/O not allowed
  2591.     CF set on error
  2592.         AX = error code (01h,0Fh) (see AH=59h)
  2593. Note:    on local drives, DX bits not listed above are the attribute word from
  2594.       the device driver header (see AH=52h); for remote drives, the other
  2595.       bits appear to be undefined for DOS versions prior to 5.0 (they are
  2596.       all cleared in DOS 5+)
  2597. SeeAlso: AX=4400h,AX=4408h,AX=440Ah,INT 2F/AX=122Bh
  2598. --------D-21440A-----------------------------
  2599. INT 21 - DOS 3.1+ - IOCTL - CHECK IF HANDLE IS REMOTE
  2600.     AX = 440Ah
  2601.     BX = handle
  2602. Return: CF clear if successful
  2603.         DX = attribute word (as stored in SFT)
  2604.         bit 15: set if remote
  2605.         bit 14: date/time not set on close
  2606.     CF set on error
  2607.         AX = error code (01h,06h) (see AH=59h)
  2608. Notes:    if file is remote, Novell Advanced NetWare 2.0 returns the number of
  2609.       the file server on which the handle is located in CX
  2610.     DR-DOS 3.41 and 5.0 clear all bits of DX except bit 15
  2611. SeeAlso: AX=4400h,AX=4409h,AH=52h,INT 2F/AX=122Bh
  2612. --------D-21440B-----------------------------
  2613. INT 21 - DOS 3.1+ - IOCTL - SET SHARING RETRY COUNT
  2614.     AX = 440Bh
  2615.     CX = pause between retries (default 1)
  2616.     DX = number of retries (default 3)
  2617. Return: CF clear if successful
  2618.     CF set on error
  2619.         AX = error code (01h) (see AH=59h)
  2620. Notes:    delay is dependent on processor speed (value in CX specifies number of
  2621.       64K-iteration empty loops to execute)
  2622.     if DX=0000h on entry, the retry count is left unchanged
  2623. SeeAlso: AH=52h,INT 2F/AX=1224h,INT 2F/AX=122Bh
  2624. --------D-21440C-----------------------------
  2625. INT 21 - DOS 3.2+ - IOCTL - GENERIC CHARACTER DEVICE REQUEST
  2626.     AX = 440Ch
  2627.     BX = device handle
  2628.     CH = category code
  2629.         00h unknown (DOS 3.3+)
  2630.         01h COMn: (DOS 3.3+)
  2631.         03h CON (DOS 3.3+)
  2632.         05h LPTn:
  2633.         9Eh Media Access Control driver (STARLITE)
  2634.         00h-7Fh reserved for Microsoft
  2635.         80h-FFh reserved for OEM/user-defined
  2636.     CL = function
  2637.         00h MAC driver Bind (STARLITE)
  2638.         45h set iteration (retry) count
  2639.         4Ah select code page
  2640.         4Ch start code-page preparation
  2641.         4Dh end code-page preparation
  2642.         5Fh set display information (DOS 4+)
  2643.         65h get iteration (retry) count
  2644.         6Ah query selected code page
  2645.         6Bh query prepare list
  2646.         7Fh get display information (DOS 4+)
  2647.     DS:DX -> parameter block (see below)
  2648.     SI = parameter to pass to driver (European MS-DOS 4.0, OS/2 comp box)
  2649.     DI = parameter to pass to driver (European MS-DOS 4.0, OS/2 comp box)
  2650. Return: CF set on error
  2651.         AX = error code (see AH=59h)
  2652.     CF clear if successful
  2653.         DS:DX -> iteration count if CL=65h
  2654.         SI = returned value (European MS-DOS 4.0, OS/2 comp box)
  2655.         DI = returned value (European MS-DOS 4.0, OS/2 comp box)
  2656. Notes:    bit assignments for function code in CL:
  2657.         bit 7: set to ignore if unsupported, clear to return error
  2658.         bit 6: set if passed to driver, clear if intercepted by DOS
  2659.         bit 5: set if queries data from device, clear if sends command
  2660.         bits 4-0: subfunction
  2661.     DR-DOS 3.41 and 5.0 return error code 16h on CL=45h,65h if the device
  2662.       does not support a retry counter
  2663. SeeAlso: AX=440Dh,INT 2F/AX=0802h,INT 2F/AX=122Bh,INT 2F/AX=14FFh
  2664. SeeAlso: INT 2F/AX=1A01h
  2665.  
  2666. Format of parameter block for function 00h:
  2667. Offset    Size    Description
  2668.  00h  8 BYTEs    ASCIZ signature "STARMAC"
  2669.  08h    WORD    version
  2670.  0Ah    WORD    flags
  2671.         bit 0: media requires connect or listen request before use
  2672.         bit 1: network is a LAN (broadcast/multicast supported)
  2673.         bit 2: point-to-point network
  2674.  0Ch    WORD    handle for use with MAC driver's private interface (filled in
  2675.         by MAC driver)
  2676.  0Eh    WORD    context
  2677.  10h    WORD    approximate speed in KB/sec (filled in by MAC driver)
  2678.  12h    WORD    approximate cost in cents per hour (filled in by MAC driver)
  2679.  14h    WORD    maximum packet size in bytes (filled in by MAC driver)
  2680.  16h    WORD    addressing format (filled in by MAC driver)
  2681.         0000h general addressing
  2682.         0001h Ethernet addressing
  2683.         0002h Token Ring addressing
  2684.         0003h Token Bus addressing
  2685.  18h    DWORD    Send entry point (filled in by MAC driver)
  2686.  1Ch    DWORD    RegisterEventHandler entry point (filled in by MAC driver)
  2687.  20h    DWORD    SetPacketFilter entry point (filled in by MAC driver)
  2688.  24h    DWORD    UnBind entry point (filled in by MAC driver)
  2689.  
  2690. Format of parameter block for function 45h:
  2691. Offset    Size    Description
  2692.  00h    WORD    number of times output is attempted before driver assumes
  2693.         device is busy
  2694.  
  2695. Format of parameter block for functions 4Ah and 6Ah:
  2696. Offset    Size    Description
  2697.  00h    WORD    length of data
  2698.  02h    WORD    code page ID
  2699.  04h 2N BYTEs    DCBS (double byte character set) lead byte range
  2700.           start/end for each of N ranges (DOS 4.0)
  2701.     WORD    0000h  end of data (DOS 4.0)
  2702.  
  2703. Format of parameter block for function 4Ch:
  2704. Offset    Size    Description
  2705.  00h    WORD    flags
  2706.         DISPLAY.SYS = 0000h
  2707.         PRINTER.SYS bit 0 clear to prepare downloaded font, set to
  2708.             prepare cartridge selection
  2709.  02h    WORD    length of remainder of parameter block
  2710.  04h    WORD    number of code pages following
  2711.  06h  N WORDs    code page 1,...,N
  2712.  
  2713. Format of parameter block for function 4Dh:
  2714. Offset    Size    Description
  2715.  00h    WORD    length of data
  2716.  02h    WORD    code page ID
  2717.  
  2718. Format of parameter block for functions 5Fh and 7Fh:
  2719. Offset    Size    Description
  2720.  00h    BYTE    level (0 for DOS 4.x-6.0)
  2721.  01h    BYTE    reserved (0)
  2722.  02h    WORD    length of following data (14)
  2723.  04h    WORD    control flags
  2724.           bit 0 set for blink, clear for intensity
  2725.           bits 1 to 15 reserved
  2726.  06h    BYTE    mode type (1=text, 2=graphics)
  2727.  07h    BYTE    reserved (0)
  2728.  08h    WORD    colors
  2729.            0 = monochrome
  2730.            else N bits per pixel
  2731.  0Ah    WORD    pixel columns
  2732.  0Ch    WORD    pixel rows
  2733.  0Eh    WORD    character columns
  2734.  10h    WORD    character rows
  2735.  
  2736. Format of parameter block for function 6Bh:
  2737. Offset    Size    Description
  2738.  00h    WORD    length of following data
  2739.  02h    WORD    number of hardware code pages
  2740.  04h  N WORDs    hardware code pages 1,...,N
  2741.     WORD    number of prepared code pages
  2742.       N WORDs    prepared code pages 1,...,N
  2743. --------d-21440C-----------------------------
  2744. INT 21 - Greg Shenaut ASPITAPE.SYS - INTERFACE
  2745.     AX = 440Ch
  2746.     BX = device handle
  2747.     CH = category code
  2748.         07h tape (ASPITAPE.SYS)
  2749.     CL = function
  2750.         01h "mtop" - perform tape operation
  2751.         02h "mtget" - get tape status
  2752.         03h ignore end-of-tape errors
  2753.         04h enable end-of-tape errors
  2754.     DS:DX -> parameter block (see below)
  2755. Return: CF set on error
  2756.         AX = error code (see AH=59h)
  2757.     CF clear if successful
  2758.         DS:DX -> data block
  2759. Notes:    This device driver is a simple DOS interface to the Adaptec Advanced
  2760.       SCSI Programming Interface (ASPI).  It provides the following device
  2761.       names as access to the SCSI tape, 'RMTx' (rewind on close) and
  2762.       'NRMTx' (NO rewind on close) where x can go from 0 to 3.  There may
  2763.       also be the following names 'MTx' and 'NMTx' which default to 1024
  2764.       byte blocks.    The names may also have a '$' appended to try and make
  2765.       them unique from file names of 'RMT0' etc.
  2766.     once opend these devices must be put into RAW mode
  2767. SeeAlso: AX=4402h"ASPI"
  2768.  
  2769. Format of mtop parameter block:
  2770. Offset    Size    Description
  2771.  00h    WORD    operation code
  2772.         00h "MTWEOF" - write an end-of-file record
  2773.         01h "MTFSF" - forward space file
  2774.         02h "MTBSF" - backward space file
  2775.         03h "MTFSR" - forward space record
  2776.         04h "MTBSR" - backward space record
  2777.         05h "MTREW" - rewind
  2778.         06h "MTOFFL" - rewind and unload
  2779.         07h "MTNOP" - perform TEST UNIT READY
  2780.  02h    DWORD    repetition count
  2781.  
  2782. Format of mtget parameter block:
  2783. Offset    Size    Description
  2784.  00h    BYTE    ASPI host ID
  2785.  01h    BYTE    SCSI target ID
  2786.  02h    BYTE    SCSI logical unit number
  2787.  03h    BYTE    device parameters
  2788.         bit 0: drive must use fixed-block read and write
  2789.         bit 7: drive is an ASPI device
  2790.  04h    BYTE    current device state (see below)
  2791.  05h    BYTE    unit number within driver
  2792.  06h    WORD    fixed block blocksize
  2793.  08h    BYTE    last SCSI status
  2794.  09h    BYTE    last SCSI sense key
  2795.  0Ah    WORD    last SCSI opcode (packed)
  2796.         bits 0-7: SCSI operation (SCSI packet byte 0)
  2797.         bits 8-10: SCSI flags (SCSI packet byte 1)
  2798.         bits 11-12: ASPI "Direction Bits" (ASPI SRB byte 3)
  2799.  0Ch    WORD    residual bytes from SCSI opcode
  2800.  
  2801. Bitfields for current device state:
  2802.  bit 0    device currently opened in buffered mode
  2803.  bit 1    drive currently opened in nonbuffered mode
  2804.  bit 2    rewind drive on last close
  2805.  bit 3    drive has been written on
  2806.  bit 4    drive has been read from
  2807.  bit 5    next read will return 0 bytes
  2808.  bit 6    EOM will resemble EOF
  2809.  bit 7    drive may be busy rewinding
  2810. --------D-21440D-----------------------------
  2811. INT 21 - DOS 3.2+ - IOCTL - GENERIC BLOCK DEVICE REQUEST
  2812.     AX = 440Dh
  2813.     BL = drive number (00h=default,01h=A:,etc)
  2814.     CH = category code
  2815.         08h disk drive
  2816.         00h-7Fh reserved for Microsoft
  2817.         80h-FFh reserved for OEM/user-defined
  2818.     CL = minor code (function) (see below)
  2819.     DS:DX -> (DOS) parameter block (see below)
  2820.     SI:DI -> (OS/2 comp box) parameter block (see below)
  2821. Return: CF set on error
  2822.         AX = error code (01h,02h) (see AH=59h)
  2823.     CF clear if successful
  2824.         DS:DX -> data block if CL=60h or CL=61h
  2825. Notes:    DOS 4.01 seems to ignore the high byte of the number of directory
  2826.       entries in the BPB for diskettes.
  2827.     functions 46h and 66h undocumented in DOS 4.x, documented for DOS 5+
  2828.     the DUBLDISK.SYS v2.6 driver only supports minor codes 60h and 67h
  2829.     DR-DOS 3.41-6.0 only support minor codes 40h-42h and 60h-62h; all
  2830.       other minor codes return error code 16h
  2831. SeeAlso: AX=440Ch,AH=69h,INT 2F/AX=0802h,INT 2F/AX=122Bh
  2832.  
  2833. Values for minor code:
  2834.  00h    (OS/2)    \ used to lock/unlock a drive
  2835.  01h    (OS/2)    /
  2836.  40h    set device parameters
  2837.  41h    write logical device track
  2838.  42h    format and verify logical device track
  2839.  46h    (DOS 4+) set volume serial number (see also AH=69h)
  2840.  47h    (DOS 4+) set access flag
  2841.  50h    (PCMCIA) attribute memory write
  2842.  51h    (PCMCIA) common memory write
  2843.  52h    (PCMCIA) force media change
  2844.  53h    (PCMCIA) erase drive
  2845.  54h    (PCMCIA) erase media
  2846.  56h    (PCMCIA) set erase status callback
  2847.  57h    (PCMCIA) append Card Information Structure (CIS) tuple
  2848.  58h    (PCMCIA) erase CIS tuples
  2849.  60h    get device parameters
  2850.  61h    read logical device track
  2851.  62h    verify logical device track
  2852.  66h    (DOS 4+) get volume serial number (see also AH=69h)
  2853.  67h    (DOS 4+) get access flag
  2854.  68h    (DOS 5+) sense media type
  2855.  70h    (PCMCIA) attribute memory read
  2856.  73h    (PCMCIA) get memory media information
  2857.  76h    (PCMCIA) get erase status callback
  2858.  77h    (PCMCIA) get first Card Information Structure (CIS) tuple
  2859.  78h    (PCMCIA) get next CIS tuple
  2860.  
  2861. Format of parameter block for functions 40h, 60h:
  2862. Offset    Size    Description
  2863.  00h    BYTE    special functions
  2864.         bit 0 set if function to use current BPB, clear if Device
  2865.             BIOS Parameter Block field contains new default BPB
  2866.         bit 1 set if function to use track layout fields only
  2867.             must be clear if CL=60h
  2868.         bit 2 set if all sectors in track same size (should be set)
  2869.         bits 3-7 reserved
  2870.  01h    BYTE    device type (see below)
  2871.  02h    WORD    device attributes
  2872.         bit 0 set if nonremovable medium
  2873.         bit 1 set if door lock ("changeline") supported
  2874.         bits 2-15 reserved
  2875.  04h    WORD    number of cylinders
  2876.  06h    BYTE    media type
  2877.         for 1.2M drive
  2878.             00h 1.2M disk (default)
  2879.             01h 320K/360K disk
  2880.         F8h for DUBLDISK.SYS v2.6 expanded drives
  2881.         always 00h for other drive types
  2882.  07h 31 BYTEs    device BPB (see AH=53h), bytes after BPB offset 1Eh omitted
  2883. ---function 40h only---
  2884.  26h    WORD    number of sectors per track (start of track layout field)
  2885.         max 63
  2886.  28h  N word pairs: number,size of each sector in track
  2887.  
  2888. Values for device type:
  2889.  00h    320K/360K disk
  2890.  01h    1.2M disk
  2891.  02h    720K disk
  2892.  03h    single-density 8-inch disk
  2893.  04h    double-density 8-inch disk
  2894.  05h    fixed disk
  2895.  06h    tape drive
  2896.  07h    (DOS 3.3+) other type of block device, normally 1.44M floppy
  2897.  08h    read/write optical disk
  2898.  09h    (DOS 5+) 2.88M floppy
  2899.  
  2900. Format of parameter block for functions 41h, 61h:
  2901. Offset    Size    Description
  2902.  00h    BYTE    special functions (reserved, must be zero)
  2903.  01h    WORD    number of disk head
  2904.  03h    WORD    number of disk cylinder
  2905.  05h    WORD    number of first sector to read/write
  2906.  07h    WORD    number of sectors
  2907.  09h    DWORD    transfer address
  2908.  
  2909. Format of parameter block for function 42h:
  2910. Offset    Size    Description
  2911.  00h    BYTE    reserved, must be zero (DOS <3.2)
  2912.           bit 0=0: format/verify track
  2913.             1: format status call (DOS 3.2+), don't actually format
  2914.           bits 1-7 reserved, must be zero
  2915.         value on return (DOS 3.3+):
  2916.           00h    specified tracks, sectors/track supported by BIOS
  2917.           01h    function not supported by BIOS
  2918.           02h    specified tracks, sectors/track not allowed for drive
  2919.           03h    no disk in drive
  2920.  01h    WORD    number of disk head
  2921.  03h    WORD    number of disk cylinder
  2922.  
  2923. Format of parameter block for function 62h:
  2924. Offset    Size    Description
  2925.  00h    BYTE    reserved, must be zero (DOS <3.2)
  2926.           bit 0=0: verify single track
  2927.             1: verify multiple tracks
  2928.           bits 1-7 reserved, must be zero
  2929.         value on return (DOS 3.3+):
  2930.           00h    specified tracks, sectors/track supported by BIOS
  2931.           01h    function not supported by BIOS
  2932.           02h    specified tracks, sectors/track not allowed for drive
  2933.           03h    no disk in drive
  2934.  01h    WORD    number of disk head
  2935.  03h    WORD    number of disk cylinder
  2936.  05h    WORD    number of tracks to verify (equivalent to 255 or fewer sectors)
  2937.  
  2938. Format of parameter block for functions 46h, 66h:
  2939. Offset    Size    Description
  2940.  00h    WORD    (call) info level (should be 0000h)
  2941.  02h    DWORD    disk serial number (binary)
  2942.  06h 11 BYTEs    volume label or "NO NAME    "
  2943.  11h  8 BYTEs    filesystem type "FAT12     " or "FAT16   " (CL=66h only)
  2944.  
  2945. Format of parameter block for functions 47h, 67h:
  2946. Offset    Size    Description
  2947.  00h    BYTE    special-function field (must be zero)
  2948.  01h    BYTE    disk-access flag, nonzero if access allowed by driver
  2949.  
  2950. Format of parameter block for function 68h:
  2951. Offset    Size    Description
  2952.  00h    BYTE    01h for default media type, 00h for any other media type
  2953.         (see also INT 13/AH=20h)
  2954.  01h    BYTE    02h for 720K, 07h for 1.44M, 09h for 2.88M
  2955. --------D-21440E-----------------------------
  2956. INT 21 - DOS 3.2+ - IOCTL - GET LOGICAL DRIVE MAP
  2957.     AX = 440Eh
  2958.     BL = drive number (00h=default,01h=A:,etc)
  2959. Return: CF set on error
  2960.         AX = error code (01h,0Fh) (see AH=59h)
  2961.     CF clear if successful
  2962.         AL = 00h block device has only one logical drive assigned
  2963.          1..26 the last letter used to reference the drive (1=A:,etc)
  2964. Note:    DR-DOS 3.41-5.0 DRIVER.SYS does not support drive mapping and thus
  2965.       always returns AL=00h
  2966. SeeAlso: AX=440Fh,INT 2F/AX=122Bh
  2967. --------D-21440F-----------------------------
  2968. INT 21 - DOS 3.2+ - IOCTL - SET LOGICAL DRIVE MAP
  2969.     AX = 440Fh
  2970.     BL = physical drive number (00h=default,01h=A:,etc))
  2971. Return: CF set on error
  2972.         AX = error code (01h,0Fh) (see AH=59h)
  2973.     CF clear if successful
  2974.         drive now responds to next logical drive number
  2975. Notes:    maps logical drives to physical drives, similar to DOS's treatment of
  2976.       a single physical floppy drive as both A: and B:
  2977.     DR-DOS 3.41-5.0 DRIVER.SYS does not support drive mapping and thus
  2978.       always returns an error on this function
  2979. SeeAlso: AX=440Eh,INT 2F/AX=122Bh
  2980. --------D-214410-----------------------------
  2981. INT 21 - DOS 5+ - IOCTL - QUERY GENERIC IOCTL CAPABILITY (HANDLE)
  2982.     AX = 4410h
  2983.     BX = handle for device
  2984.     CH = category code (see AX=440Ch)
  2985.     CL = function code
  2986. Return: CF clear if successful
  2987.         AX = 0000h    specified IOCTL function is supported
  2988.     CF set on error
  2989.         AL = 01h    IOCTL capability not available
  2990. Note:    a program which wishes to use Generic IOCTL calls beyond those in the
  2991.       standard DOS 3.2 set may use this call first to see whether a
  2992.       particular call is supported
  2993. SeeAlso: AX=440Ch,AX=440Dh,AX=4411h
  2994. --------d-214410BXFFFF-----------------------
  2995. INT 21 U - NewSpace - ENABLE DRIVER
  2996.     AX = 4410h
  2997.     BX = FFFFh
  2998. Program: NewSpace is a TSR by Isogon Corporation which automatically compresses
  2999.       all files as they are written and decompresses them as they are read
  3000. Note:    compressed files are not accessible unless the driver is enabled
  3001. SeeAlso: AX=4411h/BX=FFFFh
  3002. --------D-214411-----------------------------
  3003. INT 21 - DOS 5+ - IOCTL - QUERY GENERIC IOCTL CAPABILITY (DRIVE)
  3004.     AX = 4411h
  3005.     BL = drive number
  3006.     CH = category code (see AX=440Dh)
  3007.     CL = function code
  3008. Return: CF clear if successful
  3009.         AX = 0000h    specified IOCTL function is supported
  3010.     CF set on error
  3011.         AL = 01h    IOCTL capability not available
  3012. Note:    a program which wishes to use Generic IOCTL calls beyond those in the
  3013.       standard DOS 3.2 set may use this call first to see whether a
  3014.       particular call is supported
  3015. SeeAlso: AX=440Ch,AX=440Dh,AX=4410h
  3016. --------d-214411BXFFFF-----------------------
  3017. INT 21 U - NewSpace - DISABLE DRIVER
  3018.     AX = 4411h
  3019.     BX = FFFFh
  3020. Program: NewSpace is a TSR by Isogon Corporation which automatically compresses
  3021.       all files as they are written and decompresses them as they are read
  3022. Note:    compressed files are not accessible unless the driver is enabled
  3023. SeeAlso: AX=4410h/BX=FFFFh
  3024. --------O-214412-----------------------------
  3025. INT 21 - DR-DOS 5+ - DETERMINE DOS TYPE
  3026.     AX = 4412h
  3027.     CF set
  3028. Return: CF set if not DR-DOS
  3029.         AX = error code (see AH=59h)
  3030.     CF clear if DR-DOS
  3031.         DX = AX = version code (see AX=4452h)
  3032. Note:    this obsolete call which will not be supported in future versions of
  3033.       DR-DOS is identical to AX=4452h
  3034. SeeAlso: AX=4452h
  3035. --------d-214412BXFFFF-----------------------
  3036. INT 21 U - NewSpace - INSTALLATION CHECK???
  3037.     AX = 4412h
  3038.     BX = FFFFh
  3039. Return: AX = PSP segment of NewRes (resident driver for NewSpace)
  3040.     BX:DX -> ???
  3041.     CX = ???
  3042. SeeAlso: AX=4411h/BX=FFFFh
  3043. --------d-214413BXFFFF-----------------------
  3044. INT 21 U - NewSpace - GET ???
  3045.     AX = 4413h
  3046.     BX = FFFFh
  3047. Return: AX = code segment of NewRes (resident driver for NewSpace)
  3048.     BX = offset of ???
  3049. SeeAlso: AX=4412h/BX=FFFFh
  3050. --------O-214414-----------------------------
  3051. INT 21 U - DR-DOS 5.0 - SET GLOBAL PASSWORD
  3052.     AX = 4414h
  3053.     DS:DX -> password string (blank-padded to 8 characters)
  3054. Desc:    Specify the master password for accessing files.
  3055. Note:    this obsolete call which will not be supported in future versions of
  3056.       DR-DOS is identical to AX=4452h
  3057. SeeAlso: AX=4454h
  3058. --------d-214414BXFFFF-----------------------
  3059. INT 21 U - NewSpace - DEBUGGING DUMP
  3060.     AX = 4414h
  3061.     BX = FFFFh
  3062. Return: debugging dump written to X:\NEWSPACE.SMP
  3063. SeeAlso: AX=4413h/BX=FFFFh,AX=44FFh/BX=FFFFh
  3064. --------O-2144-------------------------------
  3065. INT 21 U - DR-DOS 5.0 - HISTORY BUFFER, SHARE, AND HILOAD CONTROL
  3066.     AH = 44h
  3067.     AL = 16h to 18h
  3068. Note:    these obsolete subfunctions (which will not be supported in future
  3069.       versions of DR-DOS) are identical to AX=4456h through 4458h
  3070. SeeAlso: AX=4456h,AX=4457h,AX=4458h
  3071. --------O-214451-----------------------------
  3072. INT 21 - Concurrent DOS v3.2+ - INSTALLATION CHECK
  3073.     AX = 4451h
  3074. Return: CF set if not Concurrent DOS
  3075.         AX = error code (see AH=59h)
  3076.     CF clear if successful
  3077.         AH = single-user/multiuser nature
  3078.         10h single-user
  3079.             AL = operating system version ID (see AX=4452h)
  3080.         14h multiuser
  3081.             AL = operating system version ID (see below)
  3082. Notes:    as of Concurrent DOS/XM 5.0 (possibly earlier), the version is stored
  3083.       in the environment variable VER
  3084.     use this function if you are looking for multiuser capabilities,
  3085.       AX=4452h for single-user
  3086.     this function should never return the single-user values
  3087. SeeAlso: AX=4452h,AX=4459h
  3088.  
  3089. Values for operating system version ID:
  3090.  32h    Concurrent PC DOS 3.2
  3091.  41h    Concurrent DOS 4.1
  3092.  50h    Concurrent DOS/XM 5.0 or Concurrent DOS/386 1.1
  3093.  60h    Concurrent DOS/XM 6.0 or Concurrent DOS/386 2.0
  3094.  62h    Concurrent DOS/XM 6.2 or Concurrent DOS/386 3.0
  3095.  66h    DR Multiuser DOS 5.1
  3096.  67h    Concurrent DOS 5.1
  3097. --------O-214452-----------------------------
  3098. INT 21 - DR-DOS 3.41+ - DETERMINE DOS TYPE/GET DR-DOS VERSION
  3099.     AX = 4452h ("DR")
  3100.     CF set
  3101. Return: CF set if not DR-DOS
  3102.         AX = error code (see AH=59h)
  3103.     CF clear if DR-DOS
  3104.         DX = AX = version code
  3105.         AH = single-user/multiuser nature
  3106.         10h single-user
  3107.             AL = operating system version ID (see below)
  3108.         14h multiuser
  3109.             AL = operating system version ID (see AX=4451h)
  3110. Notes:    the DR-DOS version is stored in the environment variable VER
  3111.     use this function if looking for single-user capabilities, AX=4451h
  3112.       if looking for multiuser; this call should never return multiuser
  3113.       values
  3114. SeeAlso: AX=4412h,AX=4451h,AX=4459h
  3115.  
  3116. Values for operating system version ID:
  3117.  60h    DOS Plus
  3118.  63h    DR-DOS 3.41
  3119.  64h    DR-DOS 3.42
  3120.  65h    DR-DOS 5.00
  3121.  67h    DR-DOS 6.00
  3122.  70h    PalmDOS
  3123.  71h    DR-DOS 6.0 March 1993 "business update"
  3124.  72h    Novell DOS 7.0
  3125. --------O-214454-----------------------------
  3126. INT 21 U - DR-DOS 3.41+ - SET GLOBAL PASSWORD
  3127.     AX = 4454h
  3128.     DS:DX -> password string (blank-padded to 8 characters)
  3129. Desc:    Specify the master password for accessing files.
  3130. SeeAlso: AX=4303h,AX=4414h
  3131. --------O-214456-----------------------------
  3132. INT 21 U - DR-DOS 5.0+ - HISTORY BUFFER CONTROL
  3133.     AX = 4456h
  3134.     DL = flag
  3135.         bit 0: 1 = COMMAND.COM history buffers
  3136.            0 = set to application
  3137. Return: AL = ??? (20h if DL bit 0 set, A0h if clear (DR-DOS 6.0))
  3138. Note:    This was seen called by COMMAND.COM of DR-DOS 6.0
  3139. --------O-214457-----------------------------
  3140. INT 21 U - DR-DOS 5.0+ - SHARE/HILOAD CONTROL
  3141.     AX = 4457h
  3142.     DH = subfunction
  3143.         00h enable/disable SHARE
  3144.         DL = 00h disable
  3145.            = 01h enable
  3146.            else Return: AX = ???
  3147.         01h get HILOAD status
  3148.         Return: AX = status
  3149.                 0000h off
  3150.                 0001h on
  3151.         02h set HILOAD status
  3152.         DL = new state (00h off, 01h on)
  3153.         Return: AX = ???
  3154.         other
  3155.         Return: AX = ???
  3156. Note:    This was seen called by COMMAND.COM of DR-DOS 6.0
  3157. SeeAlso: AX=4457h/DX=FFFFh
  3158. --------O-214457DXFFFF-----------------------
  3159. INT 21 U - DR-DOS 6.0 - GET SHARE STATUS
  3160.     AX = 4457h
  3161.     DX = FFFFh
  3162. Return: AX = SHARE status
  3163. SeeAlso: INT 2F/AX=1000h
  3164. --------O-214458-----------------------------
  3165. INT 21 U - DR-DOS 5.0+ internal - GET POINTER TO INTERNAL VARIABLE TABLE
  3166.     AX = 4458h
  3167. Return: ES:BX -> internal variable table (see below)
  3168.     AX = ??? (0B50h for DR-DOS 5.0, 0A56h for DR-DOS 6.0)
  3169. SeeAlso: AX=4452h
  3170.  
  3171. Format of internal variable table:
  3172. Offset    Size    Description
  3173.  00h    WORD    ???
  3174.  02h    WORD    segment of ???
  3175.  04h  7 BYTEs    ???
  3176.  0Bh    WORD    KB of extended memory at startup
  3177.  0Dh    BYTE    number of far jump entry points
  3178.  0Eh    WORD    segment containing far jumps to DR-DOS entry points (see below)
  3179.  10h    WORD    (only if kernel loaded in HMA) offset in HMA of first free HMA
  3180.         memory block (see below) or 0000h if none; segment is FFFFh
  3181.  12h    WORD    pointer to segment of environment variables set in CONFIG,
  3182.         or 0000h if already used
  3183. ---DR-DOS 6.0---
  3184.  14h    WORD    (only if kernel loaded in HMA) offset in HMA of first used HMA
  3185.         memory block (see below) or 0000h if none; segment is FFFFh
  3186. Note:    the segment used for the DR-DOS 6.0 CONFIG environment variables
  3187.       (excluding COMSPEC, VER and OS) is only useful for programs/drivers
  3188.       called from CONFIG.SYS. The word is set to zero later when the area
  3189.       is copied to the COMMAND.COM environment space.  This allows
  3190.       CONFIG.SYS to pass information to AUTOEXEC.BAT.
  3191.  
  3192. Format of kernel entry jump table for DR-DOS 5.0-6.0:
  3193. Offset    Size    Description
  3194.  00h  5 BYTEs    far jump to kernel entry point for CP/M CALL 5
  3195.  05h  5 BYTEs    far jump to kernel entry point for INT 20
  3196.  0Ah  5 BYTEs    far jump to kernel entry point for INT 21
  3197.  0Fh  5 BYTEs    far jump to kernel entry point for INT 22 (RETF)
  3198.  14h  5 BYTEs    far jump to kernel entry point for INT 23 (RETF)
  3199.  19h  5 BYTEs    far jump to kernel entry point for INT 24
  3200.  1Eh  5 BYTEs    far jump to kernel entry point for INT 25
  3201.  23h  5 BYTEs    far jump to kernel entry point for INT 26
  3202.  28h  5 BYTEs    far jump to kernel entry point for INT 27
  3203.  2Dh  5 BYTEs    far jump to kernel entry point for INT 28
  3204.  32h  5 BYTEs    far jump to kernel entry point for INT 2A (IRET)
  3205.  37h  5 BYTEs    far jump to kernel entry point for INT 2B (IRET)
  3206.  3Ch  5 BYTEs    far jump to kernel entry point for INT 2C (IRET)
  3207.  41h  5 BYTEs    far jump to kernel entry point for INT 2D (IRET)
  3208.  46h  5 BYTEs    far jump to kernel entry point for INT 2E (IRET)
  3209.  4Bh  5 BYTEs    far jump to kernel entry point for INT 2F
  3210. Notes:    all of these entry points are indirected through this jump table
  3211.       to allow the kernel to be relocated into high memory while leaving
  3212.       the actual entry addresses in low memory for maximum compatibility
  3213.     some of these entry points (22h,23h,24h,2Eh,2Fh) are replaced as soon
  3214.       as COMMAND.COM is loaded, and return immediately to the caller, some
  3215.       returning an error code (the original handler for INT 2F returns
  3216.       AL=03h [fail]).
  3217.  
  3218. Format of HMA Memory Block (DR-DOS 6.0 kernel loaded in HMA):
  3219. Offset    Size    Description
  3220.  00h    WORD    offset of next HMA Memory Block (0000h if last block)
  3221.  02h    WORD    size of this block in bytes (at least 10h)
  3222.  04h    BYTE    type of HMA Memory Block (interpreted by MEM)
  3223.         00h system
  3224.         01h KEYB
  3225.         02h NLSFUNC
  3226.         03h SHARE
  3227.         04h TaskMAX
  3228.         05h COMMAND
  3229.  05h    var    TSR (or system) code and data. DR-DOS TSR's, such as KEYB,
  3230.         hooks interrupts using segment FFFEh instead FFFFh.
  3231. --------O-214459-----------------------------
  3232. INT 21 - DR MultiUser DOS 5.0 - API
  3233.     AX = 4459h
  3234.     CL = function (see INT E0"CP/M")
  3235.     DS,DX = parameters
  3236. Notes:    DR-DOS 5.0 returns CF set and AX=0001h
  3237.     this API is also available on INT E0
  3238. SeeAlso: AX=4452h,INT E0"CP/M"
  3239. --------N-2144E0-----------------------------
  3240. INT 21 U - Sun PC-NFS - API???
  3241.     AX = 44E0h
  3242.     DS:DX -> ???
  3243.     SS:BP -> stack frame (see below)
  3244. Return: ???
  3245. Note:    this function is also supported by Beame&Whiteside's BWPCNFS shim; the
  3246.       description presented here was derived from that shim
  3247.  
  3248. Format of stack frame:
  3249. Offset    Size    Description
  3250.  00h    WORD    -> previous stack frame
  3251.  02h    DWORD    return address
  3252. --------d-2144FFBXFFFF-----------------------
  3253. INT 21 U - NewSpace - ???
  3254.     AX = 44FFh
  3255.     BX = FFFFh
  3256.     DX = ???
  3257. Program: NewSpace is a TSR by Isogon Corporation which automatically compresses
  3258.       all files as they are written and decompresses them as they are read
  3259. SeeAlso: AX=4414h/BX=FFFFh
  3260. --------D-2145-------------------------------
  3261. INT 21 - DOS 2+ - "DUP" - DUPLICATE FILE HANDLE
  3262.     AH = 45h
  3263.     BX = file handle
  3264. Return: CF clear if successful
  3265.         AX = new handle
  3266.     CF set on error
  3267.         AX = error code (04h,06h) (see AH=59h)
  3268. Notes:    moving file pointer for either handle will also move it for the other,
  3269.       because both will refer to the same system file table
  3270.     for DOS versions prior to 3.3, file writes may be forced to disk by
  3271.       duplicating the file handle and closing the duplicate
  3272. SeeAlso: AH=3Dh,AH=46h
  3273. --------D-2146-------------------------------
  3274. INT 21 - DOS 2+ - "DUP2", "FORCEDUP" - FORCE DUPLICATE FILE HANDLE
  3275.     AH = 46h
  3276.     BX = file handle
  3277.     CX = file handle to become duplicate of first handle
  3278. Return: CF clear if successful
  3279.     CF set on error
  3280.         AX = error code (04h,06h) (see AH=59h)
  3281. Notes:    closes file with handle CX if it is still open
  3282.     DOS 3.30 hangs if BX=CX on entry
  3283.     moving file pointer for either handle will also move it for the other,
  3284.       because both will refer to the same system file table
  3285. SeeAlso: AH=3Dh,AH=45h
  3286. --------D-2147-------------------------------
  3287. INT 21 - DOS 2+ - "CWD" - GET CURRENT DIRECTORY
  3288.     AH = 47h
  3289.     DL = drive number (00h = default, 01h = A:, etc)
  3290.     DS:SI -> 64-byte buffer for ASCIZ pathname
  3291. Return: CF clear if successful
  3292.         AX = 0100h (undocumented)
  3293.     CF set on error
  3294.         AX = error code (0Fh) (see AH=59h)
  3295. Notes:    the returned path does not include a drive or the initial backslash
  3296.     many Microsoft products for Windows rely on AX being 0100h on success
  3297.     under the FlashTek X-32 DOS extender, the buffer pointer is in DS:ESI
  3298. SeeAlso: AH=19h,AH=3Bh,INT 15/AX=DE25h
  3299. --------D-2148-------------------------------
  3300. INT 21 - DOS 2+ - ALLOCATE MEMORY
  3301.     AH = 48h
  3302.     BX = number of paragraphs to allocate
  3303. Return: CF clear if successful
  3304.         AX = segment of allocated block
  3305.     CF set on error
  3306.         AX = error code (07h,08h) (see AH=59h)
  3307.         BX = size of largest available block
  3308. Notes:    DOS 2.1-6.0 coalesces free blocks while scanning for a block to
  3309.       allocate
  3310.     .COM programs are initially allocated the largest available memory
  3311.       block, and should free some memory with AH=49h before attempting any
  3312.       allocations
  3313.     under the FlashTek X-32 DOS extender, EBX contains a protected-mode
  3314.       near pointer to the allocated block on a successful return
  3315. SeeAlso: AH=49h,AH=4Ah,AH=58h,AH=83h
  3316. --------D-2149-------------------------------
  3317. INT 21 - DOS 2+ - FREE MEMORY
  3318.     AH = 49h
  3319.     ES = segment of block to free
  3320. Return: CF clear if successful
  3321.     CF set on error
  3322.         AX = error code (07h,09h) (see AH=59h)
  3323. Notes:    apparently never returns an error 07h, despite official docs; DOS 2.1+
  3324.       code contains only an error 09h exit
  3325.     DOS 2.1-6.0 does not coalesce adjacent free blocks when a block is
  3326.       freed, only when a block is allocated or resized
  3327.     the code for this function is identical in DOS 2.1-6.0 except for
  3328.       calls to start/end a critical section in DOS 3+
  3329. SeeAlso: AH=48h,AH=4Ah
  3330. --------D-214A-------------------------------
  3331. INT 21 - DOS 2+ - RESIZE MEMORY BLOCK
  3332.     AH = 4Ah
  3333.     BX = new size in paragraphs
  3334.     ES = segment of block to resize
  3335. Return: CF clear if successful
  3336.     CF set on error
  3337.         AX = error code (07h,08h,09h) (see AH=59h)
  3338.         BX = maximum paragraphs available for specified memory block
  3339. Notes:    under DOS 2.1-6.0, if there is insufficient memory to expand the block
  3340.       as much as requested, the block will be made as large as possible
  3341.     DOS 2.1-6.0 coalesces any free blocks immediately following the block
  3342.       to be resized
  3343. SeeAlso: AH=48h,AH=49h,AH=83h
  3344. --------D-214B-------------------------------
  3345. INT 21 - DOS 2+ - "EXEC" - LOAD AND/OR EXECUTE PROGRAM
  3346.     AH = 4Bh
  3347.     AL = type of load
  3348.         00h load and execute
  3349.         01h load but do not execute
  3350.         03h load overlay
  3351.         04h load and execute in background (European MS-DOS 4.0 only)
  3352.         "Exec & Go" (see also AH=80h)
  3353.     DS:DX -> ASCIZ program name (must include extension)
  3354.     ES:BX -> parameter block (see below)
  3355.     CX = mode (subfunction 04h only)
  3356.         0000h child placed in zombie mode after termination
  3357.         0001h child's return code discarded on termination
  3358. Return: CF clear if successful
  3359.         BX,DX destroyed
  3360.         if subfunction 01h, process ID set to new program's PSP; get with
  3361.         INT 21/AH=62h
  3362.     CF set on error
  3363.         AX = error code (01h,02h,05h,08h,0Ah,0Bh) (see AH=59h)
  3364. Notes:    DOS 2.x destroys all registers, including SS:SP
  3365.     under ROM-based DOS, if no disk path characters (colons or slashes)
  3366.       are included in the program name, the name is searched for in the
  3367.       ROM module headers (see below) before searching on disk
  3368.     for functions 00h and 01h, the calling process must ensure that there
  3369.       is enough unallocated memory available; if necessary, by releasing
  3370.       memory with AH=49h or AH=4Ah
  3371.     for function 01h, the AX value to be passed to the child program is put
  3372.       on top of the child's stack
  3373.     for function 03h, DOS assumes that the overlay is being loaded into
  3374.       memory allocated by the caller
  3375.     function 01h was undocumented prior to the release of DOS 5.0
  3376.     some versions (such as DR-DOS 6.0) check the parameters and parameter
  3377.       block and return an error if an invalid value (such as an offset of
  3378.       FFFFh) is found
  3379.     background programs under European MS-DOS 4.0 must use the new
  3380.       executable format
  3381.     new executables begin running with the following register values
  3382.         AX = environment segment
  3383.         BX = offset of command tail in environment segment
  3384.         CX = size of automatic data segment (0000h = 64K)
  3385.         ES,BP = 0000h
  3386.         DS = automatic data segment
  3387.         SS:SP = initial stack
  3388.       the command tail corresponds to an old executable's PSP:0081h and
  3389.       following, except that the 0Dh is turned into a NUL (00h); new
  3390.       format executables have no PSP
  3391.     under the FlashTek X-32 DOS extender, only function 00h is supported
  3392.       and the pointers are passed in DS:EDX and ES:EBX
  3393.     DR-DOS 6 always loads .EXE-format programs with no fixups above the
  3394.       64K mark to avoid the EXEPACK bug
  3395.     names for the various executable type understood by various
  3396.       environments:
  3397.         MZ  old-style DOS executable
  3398.         NE  Windows or OS/2 1.x segmented ("new") executable
  3399.         LE  Windows virtual device driver (VxD) linear executable
  3400.         LX  variant of LE used in OS/2 2.x
  3401.         W3  Windows WIN386.EXE file; a collection of LE files
  3402.         PE  Win32 (Windows NT and Win32s) portable executable based on
  3403.             Unix COFF
  3404. BUGS:    DOS 2.00 assumes that DS points at the current program's PSP
  3405.     Load Overlay (subfunction 03h) loads up to 512 bytes too many if the
  3406.       file contains additional data after the actual overlay
  3407. SeeAlso: AX=4B05h,AH=4Ch,AH=4Dh,AH=64h"OS/2",AH=8Ah,INT 2E
  3408.  
  3409. Format of EXEC parameter block for AL=00h,01h,04h:
  3410. Offset    Size    Description
  3411.  00h    WORD    segment of environment to copy for child process (copy caller's
  3412.         environment if 0000h)
  3413.  02h    DWORD    pointer to command tail to be copied into child's PSP
  3414.  06h    DWORD    pointer to first FCB to be copied into child's PSP
  3415.  0Ah    DWORD    pointer to second FCB to be copied into child's PSP
  3416.  0Eh    DWORD    (AL=01h) will hold subprogram's initial SS:SP on return
  3417.  12h    DWORD    (AL=01h) will hold entry point (CS:IP) on return
  3418.  
  3419. Format of EXEC parameter block for AL=03h:
  3420. Offset    Size    Description
  3421.  00h    WORD    segment at which to load overlay
  3422.  02h    WORD    relocation factor to apply to overlay if in .EXE format
  3423.  
  3424. Format of EXEC parameter block for FlashTek X-32:
  3425. Offset    Size    Description
  3426.  00h    PWORD    48-bit far pointer to environment string
  3427.  06h    PWORD    48-bit far pointer to command tail string
  3428.  
  3429. Format of .EXE file header:
  3430. Offset    Size    Description
  3431.  00h  2 BYTEs    .EXE signature, either "MZ" or "ZM" (5A4Dh or 4D5Ah)
  3432.  02h    WORD    number of bytes in last 512-byte page of executable
  3433.  04h    WORD    total number of 512-byte pages in executable (includes any
  3434.         partial last page)
  3435.  06h    WORD    number of relocation entries
  3436.  08h    WORD    header size in paragraphs
  3437.  0Ah    WORD    minimum paragraphs of memory to allocation in addition to
  3438.         executable's size
  3439.  0Ch    WORD    maximum paragraphs to allocate in addition to executable's size
  3440.  0Eh    WORD    initial SS relative to start of executable
  3441.  10h    WORD    initial SP
  3442.  12h    WORD    checksum (one's complement of sum of all words in executable)
  3443.  14h    DWORD    initial CS:IP relative to start of executable
  3444.  18h    WORD    offset within header of relocation table
  3445.         40h or greater for new-format (NE,LE,LX,W3,PE,etc.) executable
  3446.  1Ah    WORD    overlay number (normally 0000h = main program)
  3447. ---new executable---
  3448.  1Ch  4 BYTEs    ???
  3449.  20h    WORD    behavior bits
  3450.  22h 26 BYTEs    reserved for additional behavior info
  3451.  3Ch    DWORD    offset of new executable (NE,LE,etc) header within disk file,
  3452.         or 00000000h if plain MZ executable
  3453. ---Borland TLINK---
  3454.  1Ch  2 BYTEs    ??? (apparently always 01h 00h)
  3455.  1Eh    BYTE    signature FBh
  3456.  1Fh    BYTE    TLINK version (major in high nybble, minor in low nybble)
  3457.  20h  2 BYTEs    ??? (v2.0 apparently always 72h 6Ah, v3.0+ seems always 6Ah 72h)
  3458. ---ARJ self-extracting archive---
  3459.  1Ch  4 BYTEs    signature "RJSX" (older versions, new signature is "aRJsfX" in
  3460.         the first 1000 bytes of the file)
  3461. ---LZEXE 0.90 compressed executable---
  3462.  1Ch  4 BYTEs    signature "LZ09"
  3463. ---LZEXE 0.91 compressed executable---
  3464.  1Ch  4 BYTEs    signature "LZ91"
  3465. ---PKLITE compressed executable---
  3466.  1Ch    BYTE    minor version number
  3467.  1Dh    BYTE    bits 0-3: major version
  3468.         bit 4: extra compression
  3469.         bit 5: huge (multi-segment) file
  3470.  1Eh  6 BYTEs    signature "PKLITE" (followed by copyright message)
  3471. ---LHarc 1.x self-extracting archive---
  3472.  1Ch  4 BYTEs    unused???
  3473.  20h  3 BYTEs    jump to start of extraction code
  3474.  23h  2 BYTEs    ???
  3475.  25h 12 BYTEs    signature "LHarc's SFX "
  3476. ---LHA 2.x self-extracting archive---
  3477.  1Ch  8 BYTEs    ???
  3478.  24h 10 BYTEs    signature "LHa's SFX " (v2.10) or "LHA's SFX " (v2.13)
  3479. ---TopSpeed C 3.0 CRUNCH compressed file---
  3480.  1Ch    DWORD    018A0001h
  3481.  20h    WORD    1565h
  3482. ---PKARCK 3.5 self-extracting archive---
  3483.  1Ch    DWORD    00020001h
  3484.  20h    WORD    0700h
  3485. ---BSA (Soviet archiver) self-extracting archive---
  3486.  1Ch    WORD    000Fh
  3487.  1Eh    BYTE    A7h
  3488. ---LARC self-extracting archive---
  3489.  1Ch  4 BYTEs    ???
  3490.  20h 11 BYTEs    "SFX by LARC "
  3491. ---LH self-extracting archive---
  3492.  1Ch  8 BYTEs    ???
  3493.  24h  8 BYTEs    "LH's SFX "
  3494. ---other linkers---
  3495.  1Ch    var    optional information
  3496. ---
  3497.   N   N DWORDs    relocation items
  3498. Notes:    if word at offset 02h is 4, it should be treated as 00h, since pre-1.10
  3499.       versions of the MS linker set it that way
  3500.     if both minimum and maximum allocation (offset 0Ah/0Ch) are zero, the
  3501.       program is loaded as high in memory as possible
  3502.     the maximum allocation is set to FFFFh by default
  3503.  
  3504. Format of ROM Module Header:
  3505. Offset    Size    Description
  3506.  00h  2 BYTEs    ROM signature 55h, AAh
  3507.  02h    BYTE    size of ROM in 512-byte blocks
  3508.  03h  3 BYTEs    POST initialization entry point (near JMP instruction)
  3509.  06h    ROM Program Name List [array]
  3510.     Offset    Size    Description
  3511.      00h    BYTE    length of ROM program's name (00h if end of name list)
  3512.      01h  N BYTEs    program name
  3513.      N+1  3 BYTEs    program entry point (near JMP instruction)
  3514.  
  3515. Format of new executable header:
  3516. Offset    Size    Description
  3517.  00h  2 BYTEs    "NE" (4Eh 45h) signature
  3518.  02h  2 BYTEs    linker version (major, then minor)
  3519.  04h    WORD    offset from start of this header to entry table (see below)
  3520.  06h    WORD    length of entry table in bytes
  3521.  08h    DWORD    file load CRC (0 in Borland's TPW)
  3522.  0Ch    BYTE    program flags
  3523.         bits 0-1 DGROUP type
  3524.           0 = none
  3525.           1 = single shared
  3526.           2 = multiple (unshared)
  3527.           3 = (null)
  3528.         bit 2:    global initialization
  3529.         bit 3:    protected mode only
  3530.         bit 4:    8086 instructions
  3531.         bit 5:    80286 instructions
  3532.         bit 6:    80386 instructions
  3533.         bit 7:    80x87 instructions
  3534.  0Dh    BYTE    application flags
  3535.         bits 0-2: application type
  3536.             001 full screen (not aware of Windows/P.M. API)
  3537.             010 compatible with Windows/P.M. API
  3538.             011 uses Windows/P.M. API
  3539.         bit 3: is a Family Application (OS/2)
  3540.         bit 5: 0=executable, 1=errors in image
  3541.         bit 6: non-conforming program (valid stack is not maintained)
  3542.         bit 7: DLL or driver rather than application
  3543.             (SS:SP info invalid, CS:IP points at FAR init routine
  3544.              called with AX=module handle which returns AX=0000h
  3545.              on failure, AX nonzero on successful initialization)
  3546.  0Eh    WORD    auto data segment index
  3547.  10h    WORD    initial local heap size
  3548.  12h    WORD    initial stack size (added to data seg, 0000h if SS <> DS)
  3549.  14h    DWORD    program entry point (CS:IP), "CS" is index into segment table
  3550.  18h    DWORD    initial stack pointer (SS:SP), "SS" is segment index
  3551.         if SS=automatic data segment and SP=0000h, the stack pointer is
  3552.           set to the top of the automatic data segment, just below the
  3553.           local heap
  3554.  1Ch    WORD    segment count
  3555.  1Eh    WORD    module reference count
  3556.  20h    WORD    length of nonresident names table in bytes
  3557.  22h    WORD    offset from start of this header to segment table (see below)
  3558.  24h    WORD    offset from start of this header to resource table
  3559.  26h    WORD    offset from start of this header to resident names table
  3560.  28h    WORD    offset from start of this header to module reference table
  3561.  2Ah    WORD    offset from start of this header to imported names table
  3562.         (array of counted strings, terminated with a string of length
  3563.          00h)
  3564.  2Ch    DWORD    offset from start of file to nonresident names table
  3565.  30h    WORD    count of moveable entry point listed in entry table
  3566.  32h    WORD    file alignment size shift count
  3567.         0 is equivalent to 9 (default 512-byte pages)
  3568.  34h    WORD    number of resource table entries
  3569.  36h    BYTE    target operating system
  3570.         00h unknown
  3571.         01h OS/2
  3572.         02h Windows
  3573.         03h European MS-DOS 4.x
  3574.         04h Windows 386
  3575.         05h BOSS (Borland Operating System Services)
  3576.  37h    BYTE    other EXE flags
  3577.         bit 0: supports long filenames
  3578.         bit 1: 2.X protected mode
  3579.         bit 2: 2.X proportional font
  3580.         bit 3: gangload area
  3581.  38h    WORD    offset to return thunks or start of gangload area
  3582.  3Ah    WORD    offset to segment reference thunks or length of gangload area
  3583.  3Ch    WORD    minimum code swap area size
  3584.  3Eh  2 BYTEs    expected Windows version (minor version first)
  3585. Note:    this header is documented in detail in the Windows 3.1 SDK Programmer's
  3586.       Reference, Vol 4.
  3587.  
  3588. Format of Codeview trailer (at end of executable):
  3589. Offset    Size    Description
  3590.  00h    WORD    signature 4E42h ('NB')
  3591.  02h    WORD    Microsoft debug info version number
  3592.  04h    DWORD    Codeview header offset
  3593.  
  3594. Format of new executable segment table record:
  3595.  00h    WORD    offset in file (shift left by alignment shift to get byte offs)
  3596.  02h    WORD    length of image in file (0000h = 64K)
  3597.  04h    WORD    segment attributes (see below)
  3598.  06h    WORD    number of bytes to allocate for segment (0000h = 64K)
  3599. Note:    the first segment table entry is entry number 1
  3600.  
  3601. Bitfields for segment attributes:
  3602.  bit 0    data segment rather than code segment
  3603.  bit 1    unused???
  3604.  bit 2    real mode
  3605.  bit 3    iterated
  3606.  bit 4    movable
  3607.  bit 5    sharable
  3608.  bit 6    preloaded rather than demand-loaded
  3609.  bit 7    execute-only (code) or read-only (data)
  3610.  bit 8    relocations (directly following code for this segment)
  3611.  bit 9    debug info present
  3612.  bits 10,11    80286 DPL bits
  3613.  bit 12        discardable
  3614.  bits 13-15    discard priority
  3615.  
  3616. Format of new executable entry table item (list):
  3617. Offset    Size    Description
  3618.  00h    BYTE    number of entry points (00h if end of entry table list)
  3619.  01h    BYTE    segment number (00h if end of entry table list)
  3620.  02h 3N BYTEs    entry records
  3621.         Offset    Size    Description
  3622.          00h    BYTE    flags
  3623.                 bit 0: exported
  3624.                 bit 1: single data
  3625.                 bits 2-7: unused???
  3626.          01h    WORD    offset within segment
  3627.  
  3628. Format of new executable relocation data (immediately follows segment image):
  3629. Offset    Size    Description
  3630.  00h    WORD    number of relocation items
  3631.  02h 8N BYTEs    relocation items
  3632.         Offset    Size    Description
  3633.          00h    BYTE    relocation type
  3634.                 00h LOBYTE
  3635.                 02h BASE
  3636.                 03h PTR
  3637.                 05h OFFS
  3638.                 0Bh PTR48
  3639.                 0Dh OFFS32
  3640.          01h    BYTE    flags
  3641.                 bit 2: additive
  3642.          02h    WORD    offset within segment
  3643.          04h    WORD    target address segment
  3644.          06h    WORD    target address offset
  3645.  
  3646. Format of new executable resource data:
  3647. Offset    Size    Description
  3648.  00h    WORD    alignment shift count for resource data
  3649.  02h  N RECORDs resources
  3650.     Format of resource record:
  3651.     Offset    Size    Description
  3652.      00h    WORD    type ID
  3653.             0000h if end of resource records
  3654.             >= 8000h if integer type
  3655.             else offset from start of resource table to type string
  3656.      02h    WORD    number of resources of this type
  3657.      04h    DWORD    reserved for runtime use
  3658.      08h  N Resources (see below)
  3659. Note:    resource type and name strings are stored immediately following the
  3660.       resource table, and are not null-terminated
  3661.  
  3662. Format of new executable resource entry:
  3663. Offset    Size    Description
  3664.  00h    WORD    offset in alignment units from start of file to contents of
  3665.         the resource data
  3666.  02h    WORD    length of resource image in bytes
  3667.  04h    WORD    flags
  3668.         bit 4: moveable
  3669.         bit 5: shareable
  3670.         bit 6: preloaded
  3671.  06h    WORD    resource ID
  3672.         >= 8000h if integer resource
  3673.         else offset from start of resource table to resource string
  3674.  08h    DWORD    reserved for runtime use
  3675. Notes:    resource type and name strings are stored immediately following the
  3676.       resource table, and are not null-terminated
  3677.     strings are counted strings, with a string of length 0 indicating the
  3678.       end of the resource table
  3679.  
  3680. Format of new executable module reference table [one bundle of entries]:
  3681. Offset    Size    Description
  3682.  00h    BYTE    number of records in this bundle (00h if end of table)
  3683.  01h    BYTE    segment indicator
  3684.         00h unused
  3685.         FFh movable segment, segment number is in entry
  3686.         else segment number of fixed segment
  3687.  02h  N RECORDs
  3688.     Format of segment record
  3689.     Offset    Size    Description
  3690.      00h    BYTE    flags
  3691.             bit 0: entry is exported
  3692.             bit 1: entry uses global (shared) data
  3693.             bits 7-3: number of parameter words
  3694.     ---fixed segment---
  3695.      01h    WORD    offset
  3696.     ---moveable segment---
  3697.      01h  2 BYTEs    INT 3F instruction (CDh 3Fh)
  3698.      03h    BYTE    segment number
  3699.      05h    WORD    offset
  3700. Note:    table entries are numbered starting from 1
  3701.  
  3702. Format of new executable resident/nonresident name table entry:
  3703. Offset    Size    Description
  3704.  00h    BYTE    length of string (00h if end of table)
  3705.  01h  N BYTEs    ASCII text of string
  3706.  N+1    WORD    ordinal number (index into entry table)
  3707. Notes:    the first string in the resident name table is the module name; the
  3708.       first entry in the nonresident name table is the module description
  3709.     the strings are case-sensitive; if the executable was linked with
  3710.       /IGNORECASE, all strings are in uppercase
  3711.  
  3712. Format of Linear Executable (enhanced mode executable) header:
  3713. Offset    Size    Description
  3714.  00h  2 BYTEs    "LE" (4Ch 45h) signature (Windows)
  3715.         "LX" (4Ch 58h) signature (OS/2)
  3716.  02h    BYTE    byte order (00h = little-endian, nonzero = big-endian)
  3717.  03h    BYTE    word order (00h = little-endian, nonzero = big-endian)
  3718.  04h    DWORD    executable format level
  3719.  08h    WORD    CPU type (see also INT 15/AH=C9h)
  3720.         01h Intel 80286 or upwardly compatible
  3721.         02h Intel 80386 or upwardly compatible
  3722.         03h Intel 80486 or upwardly compatible
  3723.         04h Intel Pentium (80586) or upwardly compatible
  3724.         20h Intel i860 (N10) or compatible
  3725.         21h Intel "N11" or compatible
  3726.         40h MIPS Mark I (R2000, R3000) or compatible
  3727.         41h MIPS Mark II (R6000) or compatible
  3728.         42h MIPS Mark III (R4000) or compatible
  3729.  0Ah    WORD    target operating system
  3730.         01h OS/2
  3731.         02h Windows
  3732.         03h European DOS 4.0
  3733.         04h Windows 386
  3734.  0Ch    DWORD    module version
  3735.  10h    DWORD    module type
  3736.         bit 2: initialization (only for DLLs)
  3737.             0 = global
  3738.             1 = per-process
  3739.         bit 4: no internal fixups in executable image
  3740.         bit 5: no external fixups in executable image
  3741.         bits 8,9,10:
  3742.             0 = unknown
  3743.             1 = incompatible with PM windowing \
  3744.             2 = compatible with PM windowing    > (only for
  3745.             3 = uses PM windowing API       /    programs)
  3746.         bit 13: module not loadable (only for programs)
  3747.         bits 17,16,15: module type
  3748.             000 program
  3749.             001 library (DLL)
  3750.             011 protected memory library module
  3751.             100 physical device driver
  3752.             110 virtual device driver
  3753.         bit 30: per-process library termination
  3754.             (requires valid CS:EIP, can't be set for .EXE)
  3755.  14h    DWORD    number of memory pages
  3756.  18h    Initial CS:EIP
  3757.     DWORD    object number
  3758.     DWORD    offset
  3759.  20h    Initial SS:ESP
  3760.     DWORD    object number
  3761.     DWORD    offset
  3762.  28h    DWORD    memory page size
  3763.  2Ch    DWORD    (Windows LE) bytes on last page
  3764.         (OS/2 LX) page offset shift count
  3765.  30h    DWORD    fixup section size
  3766.  34h    DWORD    fixup section checksum
  3767.  38h    DWORD    loader section size
  3768.  3Ch    DWORD    loader section checksum
  3769.  40h    DWORD    offset of object table (see below)
  3770.  44h    DWORD    object table entries
  3771.  48h    DWORD    object page map table offset
  3772.  4Ch    DWORD    object iterate data map offset
  3773.  50h    DWORD    resource table offset
  3774.  54h    DWORD    resource table entries
  3775.  58h    DWORD    resident names table offset
  3776.  5Ch    DWORD    entry table offset
  3777.  60h    DWORD    module directives table offset
  3778.  64h    DWORD    Module Directives entries
  3779.  68h    DWORD    Fixup page table offset
  3780.  6Ch    DWORD    Fixup record table offset
  3781.  70h    DWORD    imported modules name table offset
  3782.  74h    DWORD    imported modules count
  3783.  78h    DWORD    imported procedures name table offset
  3784.  7Ch    DWORD    per-page checksum table offset
  3785.  80h    DWORD    data pages offset
  3786.  84h    DWORD    preload page count
  3787.  88h    DWORD    non-resident names table offset
  3788.  8Ch    DWORD    non-resident names table length
  3789.  90h    DWORD    non-resident names checksum
  3790.  94h    DWORD    automatic data object
  3791.  98h    DWORD    debug information offset
  3792.  9Ch    DWORD    debug information length
  3793.  A0h    DWORD    preload instance pages number
  3794.  A4h    DWORD    demand instance pages number
  3795.  A8h    DWORD    extra heap allocation
  3796.  ACh 20 BYTEs    reserved
  3797.  C0h    WORD    device ID (MS-Windows VxD only)
  3798.  C2h    WORD    DDK version (MS-Windows VxD only)
  3799. Note:    used by EMM386.EXE, QEMM, and Windows 3.0 Enhanced Mode drivers
  3800.  
  3801. Format of object table entry:
  3802. Offset    Size    Description
  3803.  00h    DWORD    virtual size in bytes
  3804.  04h    DWORD    relocation base address
  3805.  08h    DWORD    object flags (see below)
  3806.  0Ch    DWORD    page map index
  3807.  10h    DWORD    page map entries
  3808.  14h  4 BYTEs    reserved??? (apparently always zeros)
  3809.  
  3810. Bitfields for object flags:
  3811.  bit 0    readable
  3812.  bit 1    writable
  3813.  bit 2    executable
  3814.  bit 3    resource
  3815.  bit 4    discardable
  3816.  bit 5    shared
  3817.  bit 6    preloaded
  3818.  bit 7    invalid
  3819.  bit 8-9 type
  3820.     00 normal
  3821.     01 zero-filled
  3822.     10 resident
  3823.     11 resident and contiguous
  3824.  bit 10 resident and long-lockable
  3825.  bit 11 reserved
  3826.  bit 12 16:16 alias required
  3827.  bit 13 "BIG" (Huge: 32-bit)
  3828.  bit 14 conforming
  3829.  bit 15 "OBJECT_I/O_PRIVILEGE_LEVEL"
  3830.  bits 16-31 reserved
  3831.  
  3832. Format of object page map table entry:
  3833. Offset    Size    Description
  3834.  00h    BYTE    ??? (usually 00h)
  3835.  01h    WORD    (big-endian) index to fixup table
  3836.         0000h if no relocation info
  3837.  03h    BYTE    type (00h hard copy in file, 03h some relocation needed)
  3838.  
  3839. Format of resident names table entry:
  3840. Offset    Size    Description
  3841.  00h    BYTE    length of name
  3842.  01h  N BYTEs    name
  3843.  N+1  3 BYTEs    ???
  3844.  
  3845. Format of LE linear executable entry table:
  3846. Offset    Size    Description
  3847.  00h    BYTE    number of entries in table
  3848.  01h 10 BYTEs per entry
  3849.         Offset    Size    Description
  3850.          00h    BYTE    bit flags
  3851.                 bit 0: non-empty bundle
  3852.                 bit 1: 32-bit entry
  3853.          01h    WORD    object number
  3854.          03h    BYTE    entry type flags
  3855.                 bit 0: exported
  3856.                 bit 1: uses single data rather than instance
  3857.                 bit 2: reserved
  3858.                 bits 3-7: number of stack parameters
  3859.          04h    DWORD    offset of entry point
  3860.          08h  2 BYTEs    ???
  3861. Note:    empty bundles (bit flags at 00h = 00h) are used to skip unused indices,
  3862.       and do not contain the remaining nine bytes
  3863.  
  3864. Format of LX linear executable entry table [array]:
  3865. Offset    Size    Description
  3866.  00h    BYTE    number of bundles following (00h = end of entry table)
  3867.  01h    BYTE    bundle type
  3868.         00h empty
  3869.         01h 16-bit entry
  3870.         02h 286 callgate entry
  3871.         03h 32-bit entry
  3872.         04h forwarder entry
  3873.         bit 7 set if additional parameter typing information is present
  3874. ---bundle type 00h---
  3875.  no additional fields
  3876. ---bundle type 01h---
  3877.  02h    WORD    object number
  3878.  04h    BYTE    entry flags
  3879.         bit 0: exported
  3880.         bits 7-3: number of stack parameters
  3881.  05h    WORD    offset of entry point in object (shifted by page size shift)
  3882. ---bundle type 02h---
  3883.  02h    WORD    object number
  3884.  04h    BYTE    entry flags
  3885.         bit 0: exported
  3886.         bits 7-3: number of stack parameters
  3887.  05h    WORD    offset of entry point in object
  3888.  07h    WORD    reserved for callgate selector (used by loader)
  3889. ---bundle type 03h---
  3890.  02h    WORD    object number
  3891.  04h    BYTE    entry flags
  3892.         bit 0: exported
  3893.         bits 7-3: number of stack parameters
  3894.  05h    DWORD    offset of entry point in object
  3895. ---bundle type 04h---
  3896.  02h    WORD    reserved
  3897.  04h    BYTE    forwarder flags
  3898.         bit 0: import by ordinal
  3899.         bits 7-1 reserved
  3900.  05h    WORD    module ordinal
  3901.         (forwarder's index into Import Module Name table)
  3902.  07h    DWORD    procedure name offset or import ordinal number
  3903. Note:    all fields after the first two bytes are repeated N times
  3904.  
  3905. Bitfields for linear executable fixup type:
  3906.  bit 7    ordinal is BYTE rather than WORD
  3907.  bit 6    16-bit rather than 8-bit object number/module ordinal
  3908.  bit 5    addition with DWORD rather than WORD
  3909.  bit 4    relocation info has size with new two bytes at end
  3910.  bit 3    reserved (0)
  3911.  bit 2    set if add to destination, clear to replace destination
  3912.  bits 1-0    type
  3913.         00 internal fixup
  3914.         01 external fixup, imported by ordinal
  3915.         10 external fixup, imported by name
  3916.         11 internal fixup via entry table
  3917.  
  3918. Format of linear executable fixup record:
  3919. Offset    Size    Description
  3920.  00h    BYTE    type
  3921.         bits 7-4: modifier (0001 single, 0011 multiple)
  3922.         bits 3-0: type
  3923.             0000 byte offset
  3924.             0010 word segment
  3925.             0011 16-bit far pointer (DWORD)
  3926.             0101 16-bit offset
  3927.             0110 32-bit far pointer (PWORD)
  3928.             0111 32-bit offset
  3929.             1000 near call or jump, WORD/DWORD based on seg attrib
  3930.  01h    BYTE    linear executable fixup type (see above)
  3931. ---if single type---
  3932.  02h    WORD    offset within page
  3933.  04h    relocation information
  3934.     ---internal fixup---
  3935.     BYTE    object number
  3936.     ---external,ordinal---
  3937.     BYTE    one-based module number in Import Module table
  3938.     BYTE/WORD ordinal number
  3939.     WORD/DWORD value to add (only present if modifier bit 4 set)
  3940.     ---external,name---
  3941.     BYTE    one-based module number in Import Module table
  3942.     WORD    offset in Import Procedure names
  3943.     WORD/DWORD value to add (only present if modifier bit 4 set)
  3944. ---if multiple type---
  3945.  02h    BYTE    number of items
  3946.  03h    var    relocation info as for "single" type (see above)
  3947.       N WORDs    offsets of items to relocate
  3948.  
  3949. Format of old Phar Lap .EXP file header:
  3950. Offset    Size    Description
  3951.  00h  2 BYTEs    "MP" (4Dh 50h) signature
  3952.  02h    WORD    remainder of image size / page size (page size = 512h)
  3953.  04h    WORD    size of image in pages
  3954.  06h    WORD    number of relocation items
  3955.  08h    WORD    header size in paragraphs
  3956.  0Ah    WORD    minimum number of extra 4K pages to be allocated at the end
  3957.         of program, when it is loaded
  3958.  0Ch    WORD    maximum number of extra 4K pages to be allocated at the end
  3959.         of program, when it is loaded
  3960.  0Eh    DWORD    initial ESP
  3961.  12h    WORD    word checksum of file
  3962.  14h    DWORD    initial EIP
  3963.  18h    WORD    offset of first relocation item
  3964.  1Ah    WORD    overlay number
  3965.  1Ch    WORD    ??? (wants to be 1)
  3966.  
  3967. Format of new Phar Lap .EXP file header:
  3968. Offset    Size    Description
  3969.  00h  2 BYTEs    signature ("P2" for 286 .EXP executable, "P3" for 386 .EXP)
  3970.  02h    WORD    level (01h flat-model file, 02h multisegmented file)
  3971.  04h    WORD    header size
  3972.  06h    DWORD    file size in bytes
  3973.  0Ah    WORD    checksum
  3974.  0Ch    DWORD    offset of run-time parameters within file
  3975.  10h    DWORD    size of run-time parameters in bytes
  3976.  14h    DWORD    offset of relocation table within file
  3977.  18h    DWORD    size of relocation table in bytes
  3978.  1Ch    DWORD    offset of segment information table within file
  3979.  20h    DWORD    size of segment information table in bytes
  3980.  24h    WORD    size of segment information table entry in bytes
  3981.  26h    DWORD    offset of load image within file
  3982.  2Ah    DWORD    size of load image on disk
  3983.  2Eh    DWORD    offset of symbol table within file
  3984.  32h    DWORD    size of symbol table in bytes
  3985.  36h    DWORD    offset of GDT within load image
  3986.  3Ah    DWORD    size of GDT in bytes
  3987.  3Eh    DWORD    offset of LDT within load image
  3988.  42h    DWORD    size of LDT in bytes
  3989.  46h    DWORD    offset of IDT within load image
  3990.  4Ah    DWORD    size of IDT in bytes
  3991.  4Eh    DWORD    offset of TSS within load image
  3992.  52h    DWORD    size of TSS in bytes
  3993.  56h    DWORD    minimum number of extra bytes to be allocated at end of program
  3994.         (level 1 executables only)
  3995.  5Ah    DWORD    maximum number of extra bytes to be allocated at end of program
  3996.         (level 1 executables only)
  3997.  5Eh    DWORD    base load offset (level 1 executables only)
  3998.  62h    DWORD    initial ESP
  3999.  66h    WORD    initial SS
  4000.  68h    DWORD    initial EIP
  4001.  6Ch    WORD    initial CS
  4002.  6Eh    WORD    initial LDT
  4003.  70h    WORD    initial TSS
  4004.  72h    WORD    flags
  4005.         bit 0: load image is packed
  4006.         bit 1: 32-bit checksum is present
  4007.         bits 4-2: type of relocation table
  4008.  74h    DWORD    memory requirements for load image
  4009.  78h    DWORD    32-bit checksum (optional)
  4010.  7Ch    DWORD    size of stack segment in bytes
  4011.  80h 256 BYTEs    reserved (0)
  4012.  
  4013. Format of Phar Lap segment information table entry:
  4014. Offset    Size    Description
  4015.  00h    WORD    selector number
  4016.  02h    WORD    flags
  4017.  04h    DWORD    base offset of selector
  4018.  08h    DWORD    minimum number of extra bytes to be allocated to the segment
  4019.  
  4020. Format of 386|DOS-Extender run-time parameters:
  4021. Offset    Size    Description
  4022.  00h  2 BYTEs    signature "DX" (44h 58h)
  4023.  02h    WORD    minimum number of real-mode params to leave free at run time
  4024.  04h    WORD    maximum number of real-mode params to leave free at run time
  4025.  06h    WORD    minimum interrupt buffer size in KB
  4026.  08h    WORD    maximum interrupt buffer size in KB
  4027.  0Ah    WORD    number of interrupt stacks
  4028.  0Ch    WORD    size in KB of each interrupt stack
  4029.  0Eh    DWORD    offset of byte past end of real-mode code and data
  4030.  12h    WORD    size in KB of call buffers
  4031.  14h    WORD    flags
  4032.         bit 0: file is virtual memory manager
  4033.         bit 1: file is a debugger
  4034.  16h    WORD    unprivileged flag (if nonzero, executes at ring 1, 2, or 3)
  4035.  18h 104 BYTEs    reserved (0)
  4036.  
  4037. Format of Phar Lap repeat block header:
  4038. Offset    Size    Description
  4039.  00h    WORD    byte count
  4040.  02h    BYTE    repeat string length
  4041.  
  4042. Format of Borland debugging information header (following load image):
  4043. Offset    Size    Description
  4044.  00h    WORD    signature 52FBh
  4045.  02h    WORD    version ID
  4046.  04h    DWORD    size of name pool in bytes
  4047.  08h    WORD    number of names in namem pool
  4048.  0Ah    WORD    number of type entries
  4049.  0Ch    WORD    number of structure members
  4050.  0Eh    WORD    number of symbols
  4051.  10h    WORD    number of global symbols
  4052.  12h    WORD    number of modules
  4053.  14h    WORD    number of locals (optional)
  4054.  16h    WORD    number of scopes in table
  4055.  18h    WORD    number of line-number entries
  4056.  1Ah    WORD    number of include files
  4057.  1Ch    WORD    number of segment records
  4058.  1Eh    WORD    number of segment/file correlations
  4059.  20h    DWORD    size of load image after removing uninitialized data and debug
  4060.         info
  4061.  24h    DWORD    debugger hook; pointer into debugged program whose meaning
  4062.         depends on program flags
  4063.  28h    BYTE    program flags
  4064.         bit 0: case-sensitive link
  4065.         bit 1: pascal overlay program
  4066.  29h    WORD    no longer used
  4067.  2Bh    WORD    size of data pool in bytes
  4068.  2Dh    BYTE    padding
  4069.  2Eh    WORD    size of following header extension (currently 00h, 10h, or 20h)
  4070.  30h    WORD    number of classes
  4071.  32h    WORD    number of parents
  4072.  34h    WORD    number of global classes (currently unused)
  4073.  36h    WORD    number of overloads (currently unused)
  4074.  38h    WORD    number of scope classes
  4075.  3Ah    WORD    number of module classes
  4076.  3Ch    WORD    number of coverage offsets
  4077.  3Eh    DWORD    offset relative to symbol base of name pool
  4078.  42h    WORD    number of browser information records
  4079.  44h    WORD    number of optimized symbol records
  4080.  46h    WORD    debugging flags
  4081.  48h  8 BYTEs    padding
  4082. Note:    additional information on the Borland debugging info may be found in
  4083.       Borland's Open Architecture Handbook
  4084. --------U-214B-------------------------------
  4085. INT 21 - ELRES v1.0 only - INSTALLATION CHECK
  4086.     AH = 4Bh
  4087.     DS:DX = 0000h:0000h
  4088. Return: ES:BX -> ELRES history structure (see AH=2Bh/CX=454Ch)
  4089.     DX = DABEh (signature, DAve BEnnett)
  4090. Program: ELRES is an MS-DOS return code (errorlevel) recorder by David H.
  4091.       Bennett
  4092. SeeAlso: AH=2Bh/CX=454Ch
  4093. --------v-214B04-----------------------------
  4094. INT 21 - VIRUS - "MG", "699"/"Thirteen Minutes" - INSTALLATION CHECK
  4095.     AX = 4B04h
  4096. Return: CF clear if "MG" resident
  4097.     AX = 044Bh if "699"/"Thirteen Minutes" resident
  4098. SeeAlso: AX=4243h,AX=4B21h
  4099. --------D-214B05-----------------------------
  4100. INT 21 - DOS 5+ - SET EXECUTION STATE
  4101.     AX = 4B05h
  4102.     DS:DX -> execution state structure (see below)
  4103. Return: CF clear if successful
  4104.         AX = 0000h
  4105.     CF set on error
  4106.         AX = error code (see AH=59h)
  4107. Note:    used by programs which intercept AX=4B00h to prepare new programs for
  4108.       execution (including setting the DOS version number).     No DOS, BIOS
  4109.       or other software interrupt may be called after return from this call
  4110.       before commencement of the child process.  If DOS is running in the
  4111.       HMA, A20 is turned off on return from this call.
  4112. SeeAlso: AH=4Bh
  4113.  
  4114. Format of execution state structure:
  4115. Offset    Size    Description
  4116.  00h    WORD    reserved (00h)
  4117.  02h    WORD    type flags
  4118.         bit 0: program is an .EXE
  4119.         bit 1: program is an overlay
  4120.  04h    DWORD    pointer to ASCIZ name of program file
  4121.  08h    WORD    PSP segment of new program
  4122.  0Ah    DWORD    starting CS:IP of new program
  4123.  0Eh    DWORD    program size including PSP
  4124. --------v-214B20-----------------------------
  4125. INT 21 - VIRUS - "Holocaust"/"Telefonica" - ???
  4126.     AX = 4B20h
  4127. SeeAlso: AX=4B04h,AX=4B21h
  4128. --------v-214B21-----------------------------
  4129. INT 21 C - VIRUS - "Holocaust"/"Telefonica" - ???
  4130.     AX = 4B21h
  4131. Note:    called at completion of virus installation
  4132. SeeAlso: AX=4B04h,AX=4B20h,AX=4B25h
  4133. --------v-214B25-----------------------------
  4134. INT 21 - VIRUS - "1063"/"Mono" - INSTALLATION CHECK
  4135.     AX = 4B25h
  4136. Return: DI = 1234h if resident
  4137. SeeAlso: AX=4B21h,AX=4B40h
  4138. --------v-214B40-----------------------------
  4139. INT 21 - VIRUS - "Plastique"/"AntiCad" - INSTALLATION CHECK
  4140.     AX = 4B40h
  4141. Return: AX = 5678h if resident
  4142. SeeAlso: AX=4B25h,AX=4B41h,AX=4B4Ah
  4143. --------v-214B41-----------------------------
  4144. INT 21 - VIRUS - "Plastique"/"AntiCad" - ???
  4145.     AX = 4B41h
  4146.     ???
  4147. Return: ???
  4148. SeeAlso: AX=4B40h
  4149. --------v-214B4A-----------------------------
  4150. INT 21 - VIRUS - "Jabberwocky" - INSTALLATION CHECK
  4151.     AX = 4B4Ah
  4152. Return: AL = 57h if resident
  4153. SeeAlso: AX=4B40h,AX=4B4Bh
  4154. --------v-214B4B-----------------------------
  4155. INT 21 - VIRUS - "Horse-2" - INSTALLATION CHECK
  4156.     AX = 4B4Bh
  4157. Return: CF clear if resident
  4158. SeeAlso: AX=4B4Ah,AX=4B4Dh
  4159. --------v-214B4D-----------------------------
  4160. INT 21 - VIRUS - "Murphy-2", "Patricia"/"Smack" - INSTALLATION CHECK
  4161.     AX = 4B4Dh
  4162. Return: CF clear if resident
  4163. SeeAlso: AX=4B4Ah,AX=4B50h
  4164. --------v-214B50-----------------------------
  4165. INT 21 - VIRUS - "Plastique-2576"/"AntiCad-2576" - INSTALLATION CHECK
  4166.     AX = 4B50h
  4167. Return: AX = 1234h if resident
  4168. SeeAlso: AX=4B4Dh,AX=4B53h,AX=4B60h
  4169. --------v-214B53-----------------------------
  4170. INT 21 - VIRUS - "Horse" - INSTALLATION CHECK
  4171.     AX = 4B53h
  4172. Return: CF clear if resident
  4173. SeeAlso: AX=4B50h,AX=4B55h
  4174. --------v-214B55-----------------------------
  4175. INT 21 - VIRUS - "Sparse" - INSTALLATION CHECK
  4176.     AX = 4B55h
  4177. Return: AX = 1231h if resident
  4178. SeeAlso: AX=4B53h,AX=4B59h
  4179. --------v-214B59-----------------------------
  4180. INT 21 - VIRUS - "Murphy-1", "Murphy-4" - INSTALLATION CHECK
  4181.     AX = 4B59h
  4182. Return: CF clear if resident
  4183. SeeAlso: AX=4B50h,AX=4B5Eh
  4184. --------v-214B5E-----------------------------
  4185. INT 21 - VIRUS - "Brothers" - INSTALLATION CHECK
  4186.     AX = 4B5Eh
  4187. Return: CF clear if resident
  4188. SeeAlso: AX=4B59h,AX=4B87h
  4189. --------v-214B60-----------------------------
  4190. INT 21 - VIRUS - "Plastique-2576"/"AntiCad-2576" - ???
  4191.     AX = 4B60h
  4192.     ???
  4193. Return: ???
  4194. SeeAlso: AX=4B50h
  4195. --------v-214B87-----------------------------
  4196. INT 21 - VIRUS - "Shirley" - INSTALLATION CHECK
  4197.     AX = 4B87h
  4198. Return: AX = 6663h if resident
  4199. SeeAlso: AX=4B5Eh,AX=4B95h
  4200. --------v-214B95-----------------------------
  4201. INT 21 - VIRUS - "Zherkov-1882" - INSTALLATION CHECK
  4202.     AX = 4B95h
  4203. Return: AX = 1973h if resident
  4204. SeeAlso: AX=4B87h,AX=4BA7h
  4205. --------v-214BA7-----------------------------
  4206. INT 21 - VIRUS - "1876"/"Dash-em" - INSTALLATION CHECK
  4207.     AX = 4BA7h
  4208. Return: AX = B459h if resident
  4209. SeeAlso: AX=4B95h,AX=4BAAh
  4210. --------v-214BAA-----------------------------
  4211. INT 21 - VIRUS - "Nomenklatura" - INSTALLATION CHECK
  4212.     AX = 4BAAh
  4213. Return: CF clear if resident
  4214. SeeAlso: AX=4BA7h,AX=4BAFh
  4215. --------v-214BAF-----------------------------
  4216. INT 21 - VIRUS - "948"/"Screenplus1", "Magnitogorsk" - INSTALLATION CHECK
  4217.     AX = 4BAFh
  4218. Return: AL = AFh if "Magnitogorsk" resident
  4219.     AL = FAh if "948"/"Screenplus1" resident
  4220. SeeAlso: AX=4BAAh,AX=4BDDh
  4221. --------v-214BDD-----------------------------
  4222. INT 21 - VIRUS - "Lozinsky"/"Zherkov" - INSTALLATION CHECK
  4223.     AX = 4BDDh
  4224. Return: AX = 1234h
  4225. SeeAlso: AX=4BAFh,AX=4BFEh
  4226. --------v-214BEE-----------------------------
  4227. INT 21 - F-DRIVER.SYS v1.14+ - GRAB INT 21
  4228.     AX = 4BEEh
  4229. Return: AX = 1234h if grab successful
  4230.        = 2345h if failed (INT 21 grabbed previously)
  4231. Notes:    F-DRIVER.SYS is part of the F-PROT virus/trojan protection package by
  4232.       Fridrik Skulason
  4233.     when called the first time, this function moves the INT 21 monitoring
  4234.       code from its original location in the INT 21 chain to be the first
  4235.       thing called by INT 21.  This is the mechanism used by F-NET.
  4236. SeeAlso: INT 2F/AX=4653h
  4237. --------k-214BF0-----------------------------
  4238. INT 21 - DIET v1.10+ (Overlay Mode) - INSTALLATION CHECK
  4239.     AX = 4BF0h
  4240. Return: CF clear if installed
  4241.         AX = 899Dh
  4242. Program: DIET is an executable-compression program by Teddy Matsumoto
  4243. SeeAlso: AX=37D0h,AX=4BF1h
  4244. --------k-214BF1-----------------------------
  4245. INT 21 - DIET v1.10+ (Overlay Mode) - EXPAND PROGRAM???
  4246.     AX = 4BF1h
  4247. Return: ???
  4248. SeeAlso: AX=37D0h,AX=4BF0h
  4249. --------v-214BFE-----------------------------
  4250. INT 21 - VIRUS - "Hitchcock", "Dark Avenger-1028", "1193" - INSTALLATION CHECK
  4251.     AX = 4BFEh
  4252. Return: AX = 1234h if "Hitchcock" resident
  4253.     AX = ABCDh if "1193"/"Copyright" resident
  4254.     DI = 55BBh if "Dark Avenger-1028" resident
  4255. SeeAlso: AX=4BDDh,AX=4BFFh"Justice"
  4256. --------v-214BFF-----------------------------
  4257. INT 21 - VIRUS - "USSR-707", "Justice", "Europe 92" - INSTALLATION CHECK
  4258.     AX = 4BFFh
  4259. Return: BL = FFh if "USSR-707" resident
  4260.     DI = 55AAh if "Justice" resident
  4261.     CF clear if "Europe 92" resident
  4262. SeeAlso: AX=4BFEh,AX=4BFFh"Cascade",AX=5252h
  4263. --------v-214BFFSI0000-----------------------
  4264. INT 21 - VIRUS - "Cascade" - INSTALLATION CHECK
  4265.     AX = 4BFFh
  4266.     SI = 0000h
  4267.     DI = 0000h
  4268. Return: DI = 55AAh if installed
  4269. SeeAlso: AX=4BFFh"Justice",AX=5252h
  4270. --------D-214C-------------------------------
  4271. INT 21 - DOS 2+ - "EXIT" - TERMINATE WITH RETURN CODE
  4272.     AH = 4Ch
  4273.     AL = return code
  4274. Return: never returns
  4275. Notes:    unless the process is its own parent (see AH=26h, offset 16h in PSP),
  4276.       all open files are closed and all memory belonging to the process
  4277.       is freed
  4278.     all network file locks should be removed before calling this function
  4279. SeeAlso: AH=00h,AH=26h,AH=4Bh,AH=4Dh,INT 15/AH=12h/BH=02h,INT 20,INT 22
  4280. SeeAlso: INT 60/DI=0601h
  4281. ----------214C57-----------------------------
  4282. INT 21 - Headroom - ???
  4283.     AX = 4C57h
  4284.     DS:DX -> target address
  4285. Note:    jumps to target address instead of terminating program
  4286. SeeAlso: AX=5758h
  4287. --------D-214D-------------------------------
  4288. INT 21 - DOS 2+ - GET RETURN CODE (ERRORLEVEL)
  4289.     AH = 4Dh
  4290. Return: AH = termination type
  4291.         00h normal (INT 20,INT 21/AH=00h, or INT 21/AH=4Ch)
  4292.         01h control-C abort
  4293.         02h critical error abort
  4294.         03h terminate and stay resident (INT 21/AH=31h or INT 27)
  4295.     AL = return code
  4296. Notes:    the word in which DOS stores the return code is cleared after being
  4297.       read by this function, so the return code can only be retrieved once
  4298.     COMMAND.COM stores the return code of the last external command it
  4299.       executed as ERRORLEVEL
  4300.     this call should not be used if the child was started with AX=4B04h;
  4301.       use AH=8Ah instead
  4302.     the following sequence will close a Virtual DOS Machine under OS/2 2.0:
  4303.       MOV    AH,4Dh
  4304.       INT    21h
  4305.       HLT
  4306.       DB    02h,0FDh
  4307.       This sequence is the only way to close a specific VDM which was
  4308.       booted from floppy or a disk image.
  4309. SeeAlso: AH=4Bh,AH=4Ch,AH=8Ah
  4310. --------D-214E-------------------------------
  4311. INT 21 - DOS 2+ - "FINDFIRST" - FIND FIRST MATCHING FILE
  4312.     AH = 4Eh
  4313.     AL = special flag for use by APPEND (see note below)
  4314.     CX = file attribute mask (see AX=4301h) (bits 0 and 5 ignored)
  4315.         0088h (Novell DOS 7) find first deleted file
  4316.     DS:DX -> ASCIZ file specification (may include path and wildcards)
  4317. Return: CF clear if successful
  4318.         [DTA] = FindFirst data block (see below)
  4319.     CF set on error
  4320.         AX = error code (02h,03h,12h) (see AH=59h)
  4321. Notes:    for search attributes other than 08h, all files with at MOST the
  4322.       specified combination of hidden, system, and directory attributes
  4323.       will be returned.  Under DOS 2.x, searching for attribute 08h
  4324.       (volume label) will also return normal files, while under DOS 3+
  4325.       only the volume label (if any) will be returned.
  4326.     this call also returns successfully if given the name of a character
  4327.       device without wildcards.  DOS 2.x returns attribute 00h, size 0,
  4328.       and the current date and time.  DOS 3+ returns attribute 40h and the
  4329.       current date and time.
  4330.     immediately after an INT 2F/AX=B711h (APPEND return found name), the
  4331.       name at DS:DX will be overwritten; if AL=00h on entry, the actual
  4332.       found pathname will be stored, otherwise, the actual found path
  4333.       will be prepended to the original filespec without a path.
  4334.     under LANtastic, this call may be used to obtain a list of a server's
  4335.       shared resources by searching for "\\SERVER\*.*"; a list of printer
  4336.       resources may be obtained by searching for "\\SERVER\@*.*"
  4337.     under the FlashTek X-32 DOS extender, the filespec pointer is in DS:EDX
  4338. BUGS:    under DOS 3.x and 4.x, the second and subsequent calls to this function
  4339.       with a character device name (no wildcards) and search attributes
  4340.       which include the volume-label bit (08h) will fail unless there is
  4341.       an intervening DOS call which implicitly or explicity performs a
  4342.       directory search without the volume-label bit.  Such implicit
  4343.       searches are performed by CREATE (AH=3Ch), OPEN (AH=3Dh), UNLINK
  4344.       (AH=41h), and RENAME (AH=56h)
  4345.     DR-DOS 3.41 and 5.0 return the Directory attribute for the volume label
  4346. SeeAlso: AH=11h,AH=4Fh,AX=4301h,INT 2F/AX=111Bh,INT 2F/AX=B711h
  4347.  
  4348. Format of FindFirst data block:
  4349. Offset    Size    Description
  4350. ---PC-DOS 3.10, PC-DOS 4.01, MS-DOS 3.2/3.3/5.0---
  4351.  00h    BYTE    drive letter (bits 0-6), remote if bit 7 set
  4352.  01h 11 BYTEs    search template
  4353.  0Ch    BYTE    search attributes
  4354. ---DOS 2.x (and some DOS 3.x???)---
  4355.  00h    BYTE    search attributes
  4356.  01h    BYTE    drive letter
  4357.  02h 11 BYTEs    search template
  4358. ---WILDUNIX.COM---
  4359.  00h 12 BYTEs    15-character wildcard search pattern and drive letter (packed)
  4360.  0Ch    BYTE    search attributes
  4361. ---DOS 2.x and most 3.x---
  4362.  0Dh    WORD    entry count within directory
  4363.  0Fh    DWORD    pointer to DTA???
  4364.  13h    WORD    cluster number of start of parent directory
  4365. ---PC-DOS 4.01, MS-DOS 3.2/3.3/5.0---
  4366.  0Dh    WORD    entry count within directory
  4367.  0Fh    WORD    cluster number of start of parent directory
  4368.  11h  4 BYTEs    reserved
  4369. ---all versions, documented fields---
  4370.  15h    BYTE    attribute of file found
  4371.  16h    WORD    file time
  4372.             bits 11-15: hour
  4373.             bits 5-10:    minute
  4374.             bits 0-4:    seconds/2
  4375.  18h    WORD    file date
  4376.             bits 9-15:    year-1980
  4377.             bits 5-8:    month
  4378.             bits 0-4:    day
  4379.  1Ah    DWORD    file size
  4380.  1Eh 13 BYTEs    ASCIZ filename+extension
  4381. --------f-214E-------------------------------
  4382. INT 21 - WILDUNIX.COM internal - INSTALLATION CHECK
  4383.     AH = 4Eh
  4384.     DS:DX = 0000h:0000h
  4385. Return: AH = 99h if installed
  4386. Program: WILDUNIX.COM is a resident Unix-style wildcard expander by Steve
  4387.       Hosgood and Terry Barnaby
  4388. --------D-214F-------------------------------
  4389. INT 21 - DOS 2+ - "FINDNEXT" - FIND NEXT MATCHING FILE
  4390.     AH = 4Fh
  4391.     [DTA] = data block from previous FindFirst or FindNext call
  4392. Return: CF clear if successful
  4393.     CF set on error
  4394.         AX = error code (12h) (see AH=59h)
  4395. Note:    under Novell DOS 7, if the FindFirst call (AH=4Eh) had CX=0088h, then
  4396.       the next matching deleted file will be returned
  4397. BUG:    DR-DOS 3.41 and 5.0 return the Directory attribute for the volume label
  4398. SeeAlso: AH=12h,AH=4Eh
  4399. --------D-2150-------------------------------
  4400. INT 21 - DOS 2+ internal - SET CURRENT PROCESS ID (SET PSP ADDRESS)
  4401.     AH = 50h
  4402.     BX = segment of PSP for new process
  4403. Notes:    DOS uses the current PSP address to determine which processes own files
  4404.       and memory; it corresponds to process identifiers used by other OSs
  4405.     under DOS 2.x, this function cannot be invoked inside an INT 28h
  4406.       handler without setting the Critical Error flag
  4407.     under MS-DOS 3+ and DR-DOS 3.41+, this function does not use any of
  4408.       the DOS-internal stacks and may thus be called at any time, even
  4409.       during another INT 21h call
  4410.     some Microsoft applications such as Quick C 2.51 use segments of 0000h
  4411.       and FFFFh and direct access to the SDA (see AX=5D06h) to test whether
  4412.       they are running under MS-DOS rather than a compatible OS; although
  4413.       one should only call this function with valid PSP addresses, any
  4414.       program hooking it should be prepared to handle invalid addresses
  4415.     supported by OS/2 compatibility box
  4416.     this call was undocumented prior to the release of DOS 5.0
  4417. SeeAlso: AH=26h,AH=51h,AH=62h
  4418. --------D-2151-------------------------------
  4419. INT 21 - DOS 2+ internal - GET CURRENT PROCESS ID (GET PSP ADDRESS)
  4420.     AH = 51h
  4421. Return: BX = segment of PSP for current process
  4422. Notes:    DOS uses the current PSP address to determine which processes own files
  4423.       and memory; it corresponds to process identifiers used by other OSs
  4424.     under DOS 2.x, this function cannot be invoked inside an INT 28h
  4425.       handler without setting the Critical Error flag
  4426.     under DOS 3+, this function does not use any of the DOS-internal stacks
  4427.       and may thus be called at any time, even during another INT 21h call
  4428.     supported by OS/2 compatibility box
  4429.     identical to the documented AH=62h
  4430.     this call was undocumented prior to the release of DOS 5.0
  4431. SeeAlso: AH=26h,AH=50h,AH=62h
  4432. --------D-2152-------------------------------
  4433. INT 21 U - DOS 2+ internal - "SYSVARS" - GET LIST OF LISTS
  4434.     AH = 52h
  4435. Return: ES:BX -> DOS list of lists
  4436. Notes:    partially supported by OS/2 v1.1 compatibility box (however, most
  4437.       pointers are FFFFh:FFFFh, LASTDRIVE is FFh, and the NUL header "next"
  4438.       pointer is FFFFh:FFFFh).
  4439.     on return, ES points at the DOS data segment (see also INT 2F/AX=1203h)
  4440. SeeAlso: INT 2F/AX=1203h
  4441.  
  4442. Format of List of Lists:
  4443. Offset    Size    Description
  4444.  -24    WORD    (DOS 3.1+) contents of CX from INT 21/AX=5E01h
  4445.  -22    WORD    (DOS ???+) LRU counter for FCB caching
  4446.  -20    WORD    (DOS ???+) LRU counter for FCB opens
  4447.  -18    DWORD    (DOS ???+) address of OEM function handler (see INT 21/AH=F8h)
  4448.             FFFFh:FFFFh if not installed or not available
  4449.  -14    WORD    (DOS ???+) offset in DOS CS of code to return from INT 21 call
  4450.  -12    WORD    (DOS 3.1+) sharing retry count (see AX=440Bh)
  4451.  -10    WORD    (DOS 3.1+) sharing retry delay (see AX=440Bh)
  4452.  -8    DWORD    (DOS 3+) pointer to current disk buffer
  4453.  -4    WORD    (DOS 3+) pointer in DOS data segment of unread CON input
  4454.         when CON is read via a handle, DOS reads an entire line,
  4455.           and returns the requested portion, buffering the rest
  4456.           for the next read.  0000h indicates no unread input
  4457.  -2    WORD    segment of first memory control block
  4458.  00h    DWORD    pointer to first Drive Parameter Block (see AH=32h)
  4459.  04h    DWORD    pointer to first System File Table (see below)
  4460.  08h    DWORD    pointer to active CLOCK$ device's header (most recently loaded
  4461.         driver with CLOCK bit set)
  4462.  0Ch    DWORD    pointer to active CON device's header (most recently loaded
  4463.         driver with STDIN bit set)
  4464. ---DOS 2.x---
  4465.  10h    BYTE    number of logical drives in system
  4466.  11h    WORD    maximum bytes/block of any block device
  4467.  13h    DWORD    pointer to first disk buffer (see below)
  4468.  17h 18 BYTEs    actual NUL device driver header (not a pointer!)
  4469.         NUL is always the first device on DOS's linked list of device
  4470.         drivers. (see below)
  4471. ---DOS 3.0---
  4472.  10h    BYTE    number of block devices
  4473.  11h    WORD    maximum bytes/block of any block device
  4474.  13h    DWORD    pointer to first disk buffer (see below)
  4475.  17h    DWORD    pointer to array of current directory structures (see below)
  4476.  1Bh    BYTE    value of LASTDRIVE command in CONFIG.SYS (default 5)
  4477.  1Ch    DWORD    pointer to STRING= workspace area
  4478.  20h    WORD    size of STRING area (the x in STRING=x from CONFIG.SYS)
  4479.  22h    DWORD    pointer to FCB table
  4480.  26h    WORD    the y in FCBS=x,y from CONFIG.SYS
  4481.  28h 18 BYTEs    actual NUL device driver header (not a pointer!)
  4482.         NUL is always the first device on DOS's linked list of device
  4483.         drivers. (see below)
  4484. ---DOS 3.1-3.3---
  4485.  10h    WORD    maximum bytes per sector of any block device
  4486.  12h    DWORD    pointer to first disk buffer in buffer chain (see below)
  4487.  16h    DWORD    pointer to array of current directory structures (see below)
  4488.  1Ah    DWORD    pointer to system FCB tables (see below)
  4489.  1Eh    WORD    number of protected FCBs (the y in the CONFIG.SYS FCBS=x,y)
  4490.  20h    BYTE    number of block devices installed
  4491.  21h    BYTE    number of available drive letters (largest of 5, installed
  4492.         block devices, and CONFIG.SYS LASTDRIVE=).  Also size of
  4493.         current directory structure array.
  4494.  22h 18 BYTEs    actual NUL device driver header (not a pointer!)
  4495.         NUL is always the first device on DOS's linked list of device
  4496.         drivers. (see below)
  4497.  34h    BYTE    number of JOIN'ed drives
  4498. ---DOS 4.x---
  4499.  10h    WORD    maximum bytes per sector of any block device
  4500.  12h    DWORD    pointer to disk buffer info record (see below)
  4501.  16h    DWORD    pointer to array of current directory structures (see below)
  4502.  1Ah    DWORD    pointer to system FCB tables (see below)
  4503.  1Eh    WORD    number of protected FCBs (the y in the CONFIG.SYS FCBS=x,y)
  4504.         (always 00h for DOS 5.0)
  4505.  20h    BYTE    number of block devices installed
  4506.  21h    BYTE    number of available drive letters (largest of 5, installed
  4507.         block devices, and CONFIG.SYS LASTDRIVE=).  Also size of
  4508.         current directory structure array.
  4509.  22h 18 BYTEs    actual NUL device driver header (not a pointer!)
  4510.         NUL is always the first device on DOS's linked list of device
  4511.         drivers. (see below)
  4512.  34h    BYTE    number of JOIN'ed drives
  4513.  35h    WORD    pointer within IBMDOS code segment to list of special program
  4514.         names (see below)
  4515.         (always 0000h for DOS 5.0)
  4516.  37h    DWORD    pointer to FAR routine for resident IFS utility functions
  4517.         (see below)
  4518.         may be called by any IFS driver which does not wish to
  4519.         service functions 20h or 24h-28h itself
  4520.  3Bh    DWORD    pointer to chain of IFS (installable file system) drivers
  4521.  3Fh    WORD    the x in BUFFERS x,y (rounded up to multiple of 30 if in EMS)
  4522.  41h    WORD    number of lookahead buffers (the y in BUFFERS x,y)
  4523.  43h    BYTE    boot drive (1=A:)
  4524.  44h    BYTE    flag: 01h to use DWORD moves (80386+), 00h otherwise
  4525.  45h    WORD    extended memory size in KB
  4526. ---DOS 5.0-6.0---
  4527.  10h 39 BYTEs    as for DOS 4.x (see above)
  4528.  37h    DWORD    pointer to SETVER program list or 0000h:0000h
  4529.  3Bh    WORD    (DOS=HIGH) offset in DOS CS of function to fix A20 control
  4530.         when executing special .COM format
  4531.  3Dh    WORD    PSP of most-recently EXECed program if DOS in HMA, 0000h if low
  4532.  3Fh  8 BYTEs    as for DOS 4.x (see above)
  4533.  
  4534. Format of memory control block (see also below):
  4535. Offset    Size    Description
  4536.  00h    BYTE    block type: 5Ah if last block in chain, otherwise 4Dh
  4537.  01h    WORD    PSP segment of owner or
  4538.         0000h if free
  4539.         0006h if DR-DOS XMS UMB
  4540.         0007h if DR-DOS excluded upper memory ("hole")
  4541.         0008h if belongs to DOS
  4542.         FFFAh if 386MAX UMB control block (see AX=4402h"386MAX")
  4543.         FFFDh if 386MAX locked-out memory
  4544.         FFFEh if 386MAX UMB (immediately follows its control block)
  4545.         FFFFh if 386MAX 6.01 device driver
  4546.  03h    WORD    size of memory block in paragraphs
  4547.  05h  3 BYTEs    unused by MS-DOS
  4548.         (386MAX) if locked-out block, region start/prev region end
  4549. ---DOS 2.x,3.x---
  4550.  08h  8 BYTEs    unused
  4551. ---DOS 4+ ---
  4552.  08h  8 BYTEs    ASCII program name if PSP memory block or DR-DOS UMB,
  4553.           else garbage
  4554.         null-terminated if less than 8 characters
  4555. Notes:    the next MCB is at segment (current + size + 1)
  4556.     under DOS 3.1+, the first memory block is the DOS data segment,
  4557.       containing installable drivers, buffers, etc.     Under DOS 4+ it is
  4558.       divided into subsegments, each with its own memory control block
  4559.       (see below), the first of which is at offset 0000h.
  4560.     for DOS 5+, blocks owned by DOS may have either "SC" or "SD" in bytes
  4561.       08h and 09h.    "SC" is system code or locked-out inter-UMB memory,
  4562.       "SD" is system data, device drivers, etc.
  4563.     Some versions of DR-DOS use only seven characters of the program name,
  4564.       placing a NUL in the eighth byte.
  4565.  
  4566. Format of MS-DOS 5+ UMB control block:
  4567. Offset    Size    Description
  4568.  00h    BYTE    type: 5Ah if last block in chain, 4Dh otherwise
  4569.  01h    WORD    first available paragraph in UMB if control block at start
  4570.         of UMB, 000Ah if control block at end of UMB
  4571.  03h    WORD    length in paragraphs of following UMB or locked-out region
  4572.  05h  3 BYTEs    unused
  4573.  08h  8 BYTEs    block type name: "UMB" if start block, "SM" if end block in UMB
  4574.  
  4575. Format of STARLITE (General Software's Embedded DOS) memory control block:
  4576. Offset    Size    Description
  4577.  00h    BYTE    block type: 5Ah if last block in chain, otherwise 4Dh
  4578.  01h    WORD    PSP segment of owner, 0000h if free, 0008h if belongs to DOS
  4579.  03h    WORD    size of memory block in paragraphs
  4580.  05h    BYTE    unused
  4581.  06h    WORD    segment address of next memory control block (0000h if last)
  4582.  08h    WORD    segment address of previous memory control block or 0000h
  4583.  0Ah  6 BYTEs    reserved
  4584.  
  4585. Format of DOS 4+ data segment subsegment control blocks:
  4586. Offset    Size    Description
  4587.  00h    BYTE    subsegment type (blocks typically appear in this order)
  4588.         "D"  device driver
  4589.         "E"  device driver appendage
  4590.         "I"  IFS (Installable File System) driver
  4591.         "F"  FILES=  control block storage area (for FILES>5)
  4592.         "X"  FCBS=   control block storage area, if present
  4593.         "C"  BUFFERS EMS workspace area (if BUFFERS /X option used)
  4594.         "B"  BUFFERS=  storage area
  4595.         "L"  LASTDRIVE=     current directory structure array storage area
  4596.         "S"  STACKS=  code and data area, if present (see below)
  4597.         "T"  INSTALL= transient code
  4598.  01h    WORD    paragraph of subsegment start (usually the next paragraph)
  4599.  03h    WORD    size of subsegment in paragraphs
  4600.  05h  3 BYTEs    unused
  4601.  08h  8 BYTEs    for types "D" and "I", base name of file from which the driver
  4602.           was loaded (unused for other types)
  4603.  
  4604. Format of data at start of STACKS code segment (if present):
  4605. Offset    Size    Description
  4606.  00h    WORD    ???
  4607.  02h    WORD    number of stacks (the x in STACKS=x,y)
  4608.  04h    WORD    size of stack control block array (should be 8*x)
  4609.  06h    WORD    size of each stack (the y in STACKS=x,y)
  4610.  08h    DWORD    pointer to STACKS data segment
  4611.  0Ch    WORD    offset in STACKS data segment of stack control block array
  4612.  0Eh    WORD    offset in STACKS data segment of last element of that array
  4613.  10h    WORD    offset in STACKS data segment of the entry in that array for
  4614.         the next stack to be allocated (initially same as value in 0Eh
  4615.         and works its way down in steps of 8 to the value in 0Ch as
  4616.         hardware interrupts pre-empt each other)
  4617. Note:    the STACKS code segment data may, if present, be located as follows:
  4618.     DOS 3.2:    The code segment data is at a paragraph boundary fairly early
  4619.         in the IBMBIO segment (seen at 0070:0190h)
  4620.     DOS 3.3:    The code segment is at a paragraph boundary in the DOS data
  4621.         segment, which may be determined by inspecting the segment
  4622.         pointers of the vectors for those of interrupts 02h, 08h-0Eh,
  4623.         70h, 72-77h which have not been redirected by device drivers or
  4624.         TSRs.
  4625.     DOS 4+    Identified by sub-segment control block type "S" within the DOS
  4626.         data segment.
  4627. SeeAlso: INT B4"STACKMAN"
  4628.  
  4629. Format of array elements in STACKS data segment:
  4630. Offset    Size    Description
  4631.  00h    BYTE    status: 00h=free, 01h=in use, 03h=corrupted by overflow of
  4632.         higher stack.
  4633.  01h    BYTE    not used
  4634.  02h    WORD    previous SP
  4635.  04h    WORD    previous SS
  4636.  06h    WORD    ptr to word at top of stack (new value for SP). The word at the
  4637.         top of the stack is preset to point back to this control block.
  4638.  
  4639. SHARE.EXE hooks (DOS 3.1-6.00):
  4640. (offsets from first system file table--pointed at by ListOfLists+04h)
  4641. Offset    Size    Description
  4642. -3Ch    DWORD    pointer to FAR routine for ???
  4643.         Note: not called by MS-DOS 3.3, set to 0000h:0000h by
  4644.             SHARE 3.3+
  4645. -38h    DWORD    pointer to FAR routine called on opening file
  4646.         on call, internal DOS location points at filename(see AX=5D06h)
  4647.         Return: CF clear if successful
  4648.             CF set on error
  4649.                 AX = DOS error code (24h) (see AH=59h)
  4650.         Note: SHARE directly accesses DOS-internal data to get name of
  4651.             file just opened
  4652. -34h    DWORD    pointer to FAR routine called on closing file
  4653.         ES:DI -> system file table
  4654.         Note: does something to every Record Lock Record for file
  4655. -30h    DWORD    pointer to FAR routine to close all files for given computer
  4656.         (called by AX=5D03h)
  4657. -2Ch    DWORD    pointer to FAR routine to close all files for given process
  4658.         (called by AX=5D04h)
  4659. -28h    DWORD    pointer to FAR routine to close file by name
  4660.         (called by AX=5D02h)
  4661.         DS:SI -> DOS parameter list (see AX=5D00h)
  4662.            DPL's DS:DX -> name of file to close
  4663.         Return: CF clear if successful
  4664.             CF set on error
  4665.                 AX = DOS error code (03h) (see AH=59h)
  4666. -24h    DWORD    pointer to FAR routine to lock region of file
  4667.         call with BX = file handle
  4668.               ---DOS 3.x---
  4669.               CX:DX = starting offset
  4670.               SI:AX = size
  4671.               ---DOS 4+---
  4672.               DS:DX -> lock range
  4673.                     DWORD start offset
  4674.                     DWORD size in bytes
  4675.         Return: CF set on error
  4676.                 AL = DOS error code (21h) (see AH=59h)
  4677.         Note: not called if file is marked as remote
  4678. -20h    DWORD    pointer to FAR routine to unlock region of file
  4679.         call with BX = file handle
  4680.               ---DOS 3.x---
  4681.               CX:DX = starting offset
  4682.               SI:AX = size
  4683.               ---DOS 4+---
  4684.               DS:DX -> lock range
  4685.                     DWORD start offset
  4686.                     DWORD size in bytes
  4687.         Return: CF set on error
  4688.                 AL = DOS error code (21h) (see AH=59h)
  4689.         Note: not called if file is marked as remote
  4690. -1Ch    DWORD    pointer to FAR routine to check if file region is locked
  4691.         call with ES:DI -> system file table entry for file
  4692.             CX = length of region from current position in file
  4693.         Return: CF set if any portion of region locked
  4694.                 AX = 0021h
  4695. -18h    DWORD    pointer to FAR routine to get open file list entry
  4696.         (called by AX=5D05h)
  4697.         call with DS:SI -> DOS parameter list (see AX=5D00h)
  4698.             DPL's BX = index of sharing record
  4699.             DPL's CX = index of SFT in SFT chain of sharing rec
  4700.         Return: CF set on error or not loaded
  4701.                 AX = DOS error code (12h) (see AH=59h)
  4702.             CF clear if successful
  4703.                 ES:DI -> filename
  4704.                 CX = number of locks owned by specified SFT
  4705.                 BX = network machine number
  4706.                 DX destroyed
  4707. -14h    DWORD    pointer to FAR routine for updating FCB from SFT???
  4708.         call with DS:SI -> unopened FCB
  4709.               ES:DI -> system file table entry
  4710.         Return: BL = C0h???
  4711.         Note: copies following fields from SFT to FCB:
  4712.            starting cluster of file      0Bh     1Ah
  4713.            sharing record offset      33h     1Ch
  4714.            file attribute          04h     1Eh
  4715. -10h    DWORD    pointer to FAR routine to get first cluster of FCB file ???
  4716.         call with ES:DI -> system file table entry
  4717.               DS:SI -> FCB
  4718.         Return: CF set if SFT closed or sharing record offsets
  4719.                 mismatched
  4720.             CF clear if successful
  4721.                 BX = starting cluster number from FCB
  4722. -0Ch    DWORD    pointer to FAR routine to close file if duplicate for process
  4723.         DS:SI -> system file table
  4724.         Return: AX = number of handle in JFT which already uses SFT
  4725.         Note: called during open/create of a file
  4726.         Note: if SFT was opened with inheritance enabled and sharing
  4727.             mode 111, does something to all other SFTs owned by
  4728.             same process which have the same file open mode and
  4729.             sharing record
  4730. -08h    DWORD    pointer to FAR routine for closing file
  4731.         Note: closes various handles referring to file most-recently
  4732.             opened
  4733. -04h    DWORD    pointer to FAR routine to update directory info in related SFT
  4734.           entries
  4735.         call with ES:DI -> system file table entry for file (see below)
  4736.               AX = subfunction (apply to each related SFT)
  4737.                 00h: update time stamp (offset 0Dh) and date
  4738.                      stamp (offset 0Fh)
  4739.                 01h: update file size (offset 11h) and starting
  4740.                      cluster (offset 0Bh).  Sets last-accessed
  4741.                      cluster fields to start of file if file
  4742.                      never accessed
  4743.                 02h: as function 01h, but last-accessed fields
  4744.                      always changed
  4745.                 03h: do both functions 00h and 02h
  4746.         Note: follows ptr at offset 2Bh in system file table entries
  4747.         Note: NOP if opened with no-inherit or via FCB
  4748. Notes:    most of the above hooks (except -04h, -14h, -18h, and -3Ch) assume
  4749.       either that SS=DOS DS or SS=DS=DOS DS and directly access
  4750.       DOS-internal data
  4751.     sharing hooks are not supported by DR-DOS 5-6; will reportedly be
  4752.       supported by Novell DOS 7
  4753.  
  4754. Format of sharing record:
  4755. Offset    Size    Description
  4756.  00h    BYTE    flag
  4757.         00h free block
  4758.         01h allocated block
  4759.         FFh end marker
  4760.  01h    WORD    size of block
  4761.  03h    BYTE    checksum of pathname (including NUL)
  4762.         if sum of ASCII values is N, checksum is (N/256 + N%256)
  4763.  04h    WORD    offset in SHARE's DS of first Record Lock Record (see below)
  4764.  06h    DWORD    pointer to start of system file table chain for file
  4765.  0Ah    WORD    unique sequence number
  4766.  0Ch    var    ASCIZ full pathname
  4767. Note:    not supported by DR-DOS SHARE 1.1 and 2.0; will reportedly be
  4768.       supported by Novell DOS 7
  4769.  
  4770. Format of Record Lock Record (SHARE.EXE):
  4771. Offset    Size    Description
  4772.  00h    WORD    offset in SHARE's DS of next lock table in list or 0000h
  4773.  02h    DWORD    offset in file of start of locked region
  4774.  06h    DWORD    offset in file of end of locked region
  4775.  0Ah    DWORD    pointer to System File Table entry for this file
  4776.  0Eh    WORD    PSP segment of lock's owner
  4777. ---DOS 5+ ---
  4778.  10h    WORD    lock type: (00h lock all, 01h lock writes only)
  4779.  
  4780. Format of DOS 2.x system file tables:
  4781. Offset    Size    Description
  4782.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  4783.  04h    WORD    number of files in this table
  4784.  06h  28h bytes per file
  4785.     Offset    Size    Description
  4786.      00h    BYTE    number of file handles referring to this file
  4787.      01h    BYTE    file open mode (see AH=3Dh)
  4788.      02h    BYTE    file attribute
  4789.      03h    BYTE    drive (0 = character device, 1 = A, 2 = B, etc)
  4790.      04h 11 BYTEs    filename in FCB format (no path,no period,blank-padded)
  4791.      0Fh    WORD    ???
  4792.      11h    WORD    ???
  4793.      13h    DWORD    file size???
  4794.      17h    WORD    file date in packed format (see AX=5700h)
  4795.      19h    WORD    file time in packed format (see AX=5700h)
  4796.      1Bh    BYTE    device attribute (see AX=4400h)
  4797.     ---character device---
  4798.      1Ch    DWORD    pointer to device driver
  4799.     ---block device---
  4800.      1Ch    WORD    starting cluster of file
  4801.      1Eh    WORD    relative cluster in file of last cluster accessed
  4802.     ------
  4803.      20h    WORD    absolute cluster number of current cluster
  4804.      22h    WORD    ???
  4805.      24h    DWORD    current file position???
  4806.  
  4807. Format of DOS 3.0 system file tables and FCB tables:
  4808. Offset    Size    Description
  4809.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  4810.  04h    WORD    number of files in this table
  4811.  06h  38h bytes per file
  4812.     Offset    Size    Description
  4813.      00h-1Eh as for DOS 3.1+ (see below)
  4814.      1Fh    WORD    byte offset of directory entry within sector
  4815.      21h 11 BYTEs    filename in FCB format (no path/period, blank-padded)
  4816.      2Ch    DWORD    (SHARE.EXE) pointer to previous SFT sharing same file
  4817.      30h    WORD    (SHARE.EXE) network machine number which opened file
  4818.             (Windows Enhanced mode DOSMGR uses the virtual machine
  4819.             ID as the machine number; see INT 2F/AX=1683h)
  4820.      32h    WORD    PSP segment of file's owner (first three entries for
  4821.             AUX/CON/PRN contain segment of IO.SYS startup code)
  4822.      34h    WORD    (SHARE.EXE) offset in SHARE code seg of share record
  4823.      36h    WORD    ??? apparently always 0000h
  4824.  
  4825. Format of DOS 3.1-3.3x, DR-DOS 5.0-6.0 system file tables and FCB tables:
  4826. Offset    Size    Description
  4827.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  4828.  04h    WORD    number of files in this table
  4829.  06h  35h bytes per file
  4830.     Offset    Size    Description
  4831.      00h    WORD    number of file handles referring to this file
  4832.      02h    WORD    file open mode (see AH=3Dh)
  4833.             bit 15 set if this file opened via FCB
  4834.      04h    BYTE    file attribute (see AX=4301h)
  4835.      05h    WORD    device info word (see AX=4400h)
  4836.             bit 15 set if remote file
  4837.             bit 14 set means do not set file date/time on closing
  4838.             bit 12 set means don't inherit on EXEC
  4839.             bits 5-0 drive number for disk files
  4840.      07h    DWORD    pointer to device driver header if character device
  4841.             else pointer to DOS Drive Parameter Block (see AH=32h)
  4842.      0Bh    WORD    starting cluster of file
  4843.      0Dh    WORD    file time in packed format (see AX=5700h)
  4844.             not used for character devices in DR-DOS
  4845.      0Fh    WORD    file date in packed format (see AX=5700h)
  4846.             not used for character devices in DR-DOS
  4847.      11h    DWORD    file size
  4848.     ---system file table---
  4849.      15h    DWORD    current offset in file (may be larger than size of
  4850.             file; INT 21/AH=42h does not check new position)
  4851.     ---FCB table---
  4852.      15h    WORD    counter for last I/O to FCB
  4853.      17h    WORD    counter for last open of FCB
  4854.             (these are separate to determine the times of the
  4855.             latest I/O and open)
  4856.     ---
  4857.      19h    WORD    relative cluster within file of last cluster accessed
  4858.      1Bh    WORD    absolute cluster number of last cluster accessed
  4859.             0000h if file never read or written???
  4860.      1Dh    WORD    number of sector containing directory entry
  4861.      1Fh    BYTE    number of dir entry within sector (byte offset/32)
  4862.      20h 11 BYTEs    filename in FCB format (no path/period, blank-padded)
  4863.      2Bh    DWORD    (SHARE.EXE) pointer to previous SFT sharing same file
  4864.      2Fh    WORD    (SHARE.EXE) network machine number which opened file
  4865.             (Windows Enhanced mode DOSMGR uses the virtual machine
  4866.             ID as the machine number; see INT 2F/AX=1683h)
  4867.      31h    WORD    PSP segment of file's owner (see AH=26h) (first three
  4868.             entries for AUX/CON/PRN contain segment of IO.SYS
  4869.             startup code)
  4870.      33h    WORD    offset within SHARE.EXE code segment of
  4871.             sharing record (see above)  0000h = none
  4872.  
  4873. Format of DOS 4.0-6.0 system file tables and FCB tables:
  4874. Offset    Size    Description
  4875.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  4876.  04h    WORD    number of files in this table
  4877.  06h  3Bh bytes per file
  4878.     Offset    Size    Description
  4879.      00h    WORD    number of file handles referring to this file
  4880.             FFFFh if in use but not referenced
  4881.      02h    WORD    file open mode (see AH=3Dh)
  4882.             bit 15 set if this file opened via FCB
  4883.      04h    BYTE    file attribute (see AX=4301h)
  4884.      05h    WORD    device info word (see also AX=4400h)
  4885.             bit 15 set if remote file
  4886.             bit 14 set means do not set file date/time on closing
  4887.             bit 13 set if named pipe
  4888.             bit 12 set if no inherit
  4889.             bit 11 set if network spooler
  4890.             bit 7  set if device, clear if file (only if local)
  4891.             bits 6-0 as for AX=4400h
  4892.      07h    DWORD    pointer to device driver header if character device
  4893.             else pointer to DOS Drive Parameter Block (see AH=32h)
  4894.             or REDIR data
  4895.      0Bh    WORD    starting cluster of file (local files only)
  4896.      0Dh    WORD    file time in packed format (see AX=5700h)
  4897.      0Fh    WORD    file date in packed format (see AX=5700h)
  4898.      11h    DWORD    file size
  4899.      15h    DWORD    current offset in file (SFT)
  4900.             LRU counters (FCB table, two WORDs)
  4901.     ---local file---
  4902.      19h    WORD    relative cluster within file of last cluster accessed
  4903.      1Bh    DWORD    number of sector containing directory entry
  4904.      1Fh    BYTE    number of dir entry within sector (byte offset/32)
  4905.     ---network redirector---
  4906.      19h    DWORD    pointer to REDIRIFS record
  4907.      1Dh  3 BYTEs    ???
  4908.     ------
  4909.      20h 11 BYTEs    filename in FCB format (no path/period, blank-padded)
  4910.      2Bh    DWORD    (SHARE.EXE) pointer to previous SFT sharing same file
  4911.      2Fh    WORD    (SHARE.EXE) network machine number which opened file
  4912.             (Windows Enhanced mode DOSMGR uses the virtual machine
  4913.             ID as the machine number; see INT 2F/AX=1683h)
  4914.      31h    WORD    PSP segment of file's owner (see AH=26h) (first three
  4915.             entries for AUX/CON/PRN contain segment of IO.SYS
  4916.             startup code)
  4917.      33h    WORD    offset within SHARE.EXE code segment of
  4918.             sharing record (see above)  0000h = none
  4919.      35h    WORD    (local) absolute cluster number of last clustr accessed
  4920.             (redirector) ???
  4921.      37h    DWORD    pointer to IFS driver for file, 0000000h if native DOS
  4922. Note:    the OS/2 2.0 DOS Boot Session does not properly fill in the filename
  4923.       field due to incomplete support for SFTs; the OS/2 2.0 DOS Window
  4924.       does not appear to support SFTs at all
  4925.  
  4926. Format of current directory structure (CDS) (array, LASTDRIVE entries):
  4927. Offset    Size    Description
  4928.  00h 67 BYTEs    ASCIZ path in form X:\PATH (local) or \\MACH\PATH (network)
  4929.  43h    WORD    drive attributes (see also note below and AX=5F07h)
  4930.         bit 15: uses network redirector     \ invalid if 00, installable
  4931.         bit 14: physical drive         / file system if 11
  4932.         bit 13: JOIN'ed      \ path above is true path that would be
  4933.         bit 12: SUBST'ed  / needed if not under SUBST or JOIN
  4934.         bit  7: remote drive hidden from redirector's assign-list and
  4935.               exempt from network connection make/break commands;
  4936.               set for CD-ROM drives
  4937.  45h    DWORD    pointer to Drive Parameter Block for drive (see AH=32h)
  4938. ---local drives---
  4939.  49h    WORD    starting cluster of current directory
  4940.         0000h = root, FFFFh = never accessed
  4941.  4Bh    WORD    ??? seems to be FFFFh always
  4942.  4Dh    WORD    ??? seems to be FFFFh always
  4943. ---network drives---
  4944.  49h    DWORD    pointer to redirector or REDIRIFS record, or FFFFh:FFFFh
  4945.         (DOS 4 only) available for use by IFS driver
  4946.  4Dh    WORD    stored user data from INT 21/AX=5F03h
  4947. ------
  4948.  4Fh    WORD    offset in current directory path of backslash corresponding to
  4949.           root directory for drive
  4950.         this value specifies how many characters to hide from the
  4951.           "CHDIR" and "GETDIR" calls; normally set to 2 to hide the
  4952.           drive letter and colon, SUBST, JOIN, and networks change it
  4953.           so that only the appropriate portion of the true path is
  4954.           visible to the user
  4955. ---DOS 4+ ---
  4956.  51h    BYTE    (DOS 4 only, remote drives) device type
  4957.         04h network drive
  4958.  52h    DWORD    pointer to IFS driver (DOS 4) or redirector block (DOS 5+) for
  4959.         this drive, 00000000h if native DOS
  4960.  56h    WORD    available for use by IFS driver
  4961. Notes:    the path for invalid drives is normally set to X:\, but may be empty
  4962.       after JOIN x: /D in DR-DOS 5.0 or NET USE x: /D in older LAN versions
  4963.     normally, only one of bits 13&12 may be set together with bit 14, but
  4964.       DR-DOS 5.0 uses other combinations for bits 15-12: 0111 JOIN,
  4965.       0001 SUBST, 0101 ASSIGN (see below)
  4966.  
  4967. Format of DR-DOS 5.0-6.0 current directory structure entry (array):
  4968. Offset    Size    Description
  4969.  00h 67 BYTEs    ASCIZ pathname of actual root directory for this logical drive
  4970.  43h    WORD    drive attributes
  4971.         1000h SUBSTed drive
  4972.         3000h??? JOINed drive
  4973.         4000h physical drive
  4974.         5000h ASSIGNed drive
  4975.         7000h JOINed drive
  4976.         8000h network drive
  4977.  45h    BYTE    physical drive number (0=A:) if this logical drive is valid
  4978.  46h    BYTE    ??? apparently flags for JOIN and ASSIGN
  4979.  47h    WORD    cluster number of start of parent directory (0000h = root)
  4980.  49h    WORD    entry number of current directory in parent directory
  4981.  4Bh    WORD    cluster number of start of current directory
  4982.  4Dh    WORD    used for media change detection (details not available)
  4983.  4Fh    WORD    cluster number of SUBST/JOIN "root" directory
  4984.         0000h if physical root directory
  4985.  
  4986. Format of device driver header:
  4987. Offset    Size    Description
  4988.  00h    DWORD    pointer to next driver, offset=FFFFh if last driver
  4989.  04h    WORD    device attributes
  4990.         Character device:
  4991.            bit 15 set (indicates character device)
  4992.            bit 14 IOCTL supported (see AH=44h)
  4993.            bit 13 (DOS 3+) output until busy supported
  4994.            bit 12 reserved
  4995.            bit 11 (DOS 3+) OPEN/CLOSE/RemMedia calls supported
  4996.            bits 10-8 reserved
  4997.            bit 7  (DOS 5+) Generic IOCTL check call supported (cmd 19h)
  4998.                 (see AX=4410h,AX=4411h)
  4999.            bit 6  (DOS 3.2+) Generic IOCTL call supported (command 13h)
  5000.                 (see AX=440Ch,AX=440Dh)
  5001.            bit 5  reserved
  5002.            bit 4  device is special (use INT 29 "fast console output")
  5003.            bit 3  device is CLOCK$ (all reads/writes use transfer
  5004.                 record described below)
  5005.            bit 2  device is NUL
  5006.            bit 1  device is standard output
  5007.            bit 0  device is standard input
  5008.         Block device:
  5009.            bit 15 clear (indicates block device)
  5010.            bit 14 IOCTL supported
  5011.            bit 13 non-IBM format
  5012.            bit 12 network device (device is remote)
  5013.            bit 11 (DOS 3+) OPEN/CLOSE/RemMedia calls supported
  5014.            bit 10 reserved
  5015.            bit 9  direct I/O not allowed???
  5016.               (set by DOS 3.3 DRIVER.SYS for "new" drives)
  5017.            bit 8  ??? set by DOS 3.3 DRIVER.SYS for "new" drives
  5018.            bit 7  (DOS 5+) Generic IOCTL check call supported (cmd 19h)
  5019.                 (see AX=4410h,AX=4411h)
  5020.            bit 6  (DOS 3.2+) Generic IOCTL call supported (command 13h)
  5021.                 implies support for commands 17h and 18h
  5022.                 (see AX=440Ch,AX=440Dh,AX=440Eh,AX=440Fh)
  5023.            bits 5-2 reserved
  5024.            bit 1   driver supports 32-bit sector addressing (DOS 3.31+)
  5025.            bit 0   reserved
  5026.         Note: for European MS-DOS 4.0, bit 11 also indicates that bits
  5027.             8-6 contain a version code (000 = DOS 3.0,3.1;
  5028.             001 = DOS 3.2, 010 = European DOS 4.0)
  5029.  06h    WORD    device strategy entry point
  5030.         call with ES:BX -> request header (see INT 2F/AX=0802h)
  5031.  08h    WORD    device interrupt entry point
  5032. ---character device---
  5033.  0Ah  8 BYTEs    blank-padded character device name
  5034. ---block device---
  5035.  0Ah    BYTE    number of subunits (drives) supported by driver
  5036.  0Bh  7 BYTEs    unused
  5037. ---
  5038.  12h    WORD    (CD-ROM driver) reserved, must be 0000h
  5039.         appears to be another device chain
  5040.  14h    BYTE    (CD-ROM driver) drive letter (must initially be 00h)
  5041.  15h    BYTE    (CD-ROM driver) number of units
  5042.  16h  6 BYTEs    (CD-ROM driver) signature 'MSCDnn' where 'nn' is version
  5043.             (currently '00')
  5044.  
  5045. Format of CLOCK$ transfer record:
  5046. Offset    Size    Description
  5047.  00h    WORD    number of days since 1-Jan-1980
  5048.  02h    BYTE    minutes
  5049.  03h    BYTE    hours
  5050.  04h    BYTE    hundredths of second
  5051.  05h    BYTE    seconds
  5052.  
  5053. Format of DOS 2.x disk buffer:
  5054. Offset    Size    Description
  5055.  00h    DWORD    pointer to next disk buffer, offset = FFFFh if last
  5056.         least-recently used buffer is first in chain
  5057.  04h    BYTE    drive (0=A, 1=B, etc), FFh if not in use
  5058.  05h  3 BYTEs    unused??? (seems always to be 00h 00h 01h)
  5059.  08h    WORD    logical sector number
  5060.  0Ah    BYTE    number of copies to write (1 for non-FAT sectors)
  5061.  0Bh    BYTE    sector offset between copies if multiple copies to be written
  5062.  0Ch    DWORD    pointer to DOS Drive Parameter Block (see AH=32h)
  5063.  10h        buffered data
  5064.  
  5065. Format of DOS 3.x disk buffer:
  5066. Offset    Size    Description
  5067.  00h    DWORD    pointer to next disk buffer, offset = FFFFh if last
  5068.         least-recently used buffer is first in chain
  5069.  04h    BYTE    drive (0=A,1=B, etc), FFh if not in use
  5070.  05h    BYTE    buffer flags
  5071.         bit 7: ???
  5072.         bit 6: buffer dirty
  5073.         bit 5: buffer has been referenced
  5074.         bit 4: ???
  5075.         bit 3: sector in data area
  5076.         bit 2: sector in a directory, either root or subdirectory
  5077.         bit 1: sector in FAT
  5078.         bit 0: boot sector??? (guess)
  5079.  06h    WORD    logical sector number
  5080.  08h    BYTE    number of copies to write (1 for non-FAT sectors)
  5081.  09h    BYTE    sector offset between copies if multiple copies to be written
  5082.  0Ah    DWORD    pointer to DOS Drive Parameter Block (see AH=32h)
  5083.  0Eh    WORD    unused??? (almost always 0)
  5084.  10h        buffered data
  5085.  
  5086. Format of DOS 4.00 (pre UR 25066) disk buffer info:
  5087. Offset    Size    Description
  5088.  00h    DWORD    pointer to array of disk buffer hash chain heads (see below)
  5089.  04h    WORD    number of disk buffer hash chains (referred to as NDBCH below)
  5090.  06h    DWORD    pointer to lookahead buffer, zero if not present
  5091.  0Ah    WORD    number of lookahead sectors, else zero (the y in BUFFERS=x,y)
  5092.  0Ch    BYTE    00h if buffers in EMS (/X), FFh if not
  5093.  0Dh    WORD    EMS handle for buffers, zero if not in EMS
  5094.  0Fh    WORD    EMS physical page number used for buffers (usually 255)
  5095.  11h    WORD    ??? seems always to be 0001h
  5096.  13h    WORD    segment of EMS physical page frame
  5097.  15h    WORD    ??? seems always to be zero
  5098.  17h  4 WORDs    EMS partial page mapping information???
  5099.  
  5100. Format of DOS 4.01 (from UR 25066 Corrctive Services Disk on) disk buffer info:
  5101. Offset    Size    Description
  5102.  00h    DWORD    pointer to array of disk buffer hash chain heads (see below)
  5103.  04h    WORD    number of disk buffer hash chains (referred to as NDBCH below)
  5104.  06h    DWORD    pointer to lookahead buffer, zero if not present
  5105.  0Ah    WORD    number of lookahead sectors, else zero (the y in BUFFERS=x,y)
  5106.  0Ch    BYTE    01h, possibly to distinguish from pre-UR 25066 format
  5107.  0Dh    WORD    ??? EMS segment for BUFFERS (only with /XD)
  5108.  0Fh    WORD    ??? EMS physical page number of EMS seg above (only with /XD)
  5109.  11h    WORD    ??? EMS segment for ??? (only with /XD)
  5110.  13h    WORD    ??? EMS physical page number of above (only with /XD)
  5111.  15h    BYTE    ??? number of EMS page frames present (only with /XD)
  5112.  16h    WORD    segment of one-sector workspace buffer allocated in main memory
  5113.           if BUFFERS/XS or /XD options in effect, possibly to avoid DMA
  5114.           into EMS
  5115.  18h    WORD    EMS handle for buffers, zero if not in EMS
  5116.  1Ah    WORD    EMS physical page number used for buffers (usually 255)
  5117.  1Ch    WORD    ??? appears always to be 0001h
  5118.  1Eh    WORD    segment of EMS physical page frame
  5119.  20h    WORD    ??? appears always to be zero
  5120.  22h    BYTE    00h if /XS, 01h if /XD, FFh if BUFFERS not in EMS
  5121.  
  5122. Format of DOS 4.x disk buffer hash chain head (array, one entry per chain):
  5123. Offset    Size    Description
  5124.  00h    WORD    EMS logical page number in which chain is resident, -1 if not
  5125.         in EMS
  5126.  02h    DWORD    pointer to least recently used buffer header.  All buffers on
  5127.         this chain are in the same segment.
  5128.  06h    BYTE    number of dirty buffers on this chain
  5129.  07h    BYTE    reserved (00h)
  5130. Notes:    buffered disk sectors are assigned to chain N where N is the sector's
  5131.       address modulo NDBCH,     0 <= N <= NDBCH-1
  5132.     each chain resides completely within one EMS page
  5133.     this structure is in main memory even if buffers are in EMS
  5134.  
  5135. Format of DOS 4.0-6.0 disk buffer:
  5136. Offset    Size    Description
  5137.  00h    WORD    forward ptr, offset only, to next least recently used buffer
  5138.  02h    WORD    backward ptr, offset only
  5139.  04h    BYTE    drive (0=A,1=B, etc) if bit 7 clear
  5140.         SFT index if bit 7 set
  5141.         FFh if not in use
  5142.  05h    BYTE    buffer flags
  5143.         bit 7: remote buffer
  5144.         bit 6: buffer dirty
  5145.         bit 5: buffer has been referenced (reserved in DOS 5+)
  5146.         bit 4: search data buffer (only valid if remote buffer)
  5147.         bit 3: sector in data area
  5148.         bit 2: sector in a directory, either root or subdirectory
  5149.         bit 1: sector in FAT
  5150.         bit 0: reserved
  5151.  06h    DWORD    logical sector number (local buffers only)
  5152.  0Ah    BYTE    number of copies to write
  5153.         for FAT sectors, same as number of FATs
  5154.         for data and directory sectors, usually 1
  5155.  0Bh    WORD    offset in sectors between copies to write for FAT sectors
  5156.  0Dh    DWORD    pointer to DOS Drive Parameter Block (see AH=32h)
  5157.  11h    WORD    size of data in buffer if remote buffer (see flags above)
  5158.  13h    BYTE    reserved (padding)
  5159.  14h        buffered data
  5160. Note:    for DOS 4.x, all buffered sectors which have the same hash value
  5161.       (computed as the sum of high and low words of the logical sector
  5162.       number divided by the number of disk buffer chains) are on the same
  5163.       doubly-linked circular chain; for DOS 5+, only a single circular
  5164.       chain exists.
  5165.     the links consist of offset addresses only, the segment being the same
  5166.       for all buffers in the chain.
  5167.  
  5168. Format of DOS 5.0-6.0 disk buffer info:
  5169. Offset    Size    Description
  5170.  00h    DWORD    pointer to least-recently-used buffer header (may be in HMA)
  5171.         (see above)
  5172.  04h    WORD    number of dirty disk buffers
  5173.  06h    DWORD    pointer to lookahead buffer, zero if not present
  5174.  0Ah    WORD    number of lookahead sectors, else zero (the y in BUFFERS=x,y)
  5175.  0Ch    BYTE    buffer location
  5176.         00h base memory, no workspace buffer
  5177.         01h HMA, workspace buffer in base memory
  5178.  0Dh    DWORD    pointer to one-segment workspace buffer in base memory
  5179.  11h  3 BYTEs    unused
  5180.  14h    WORD    ???
  5181.  16h    BYTE    flag: INT 24 fail while making an I/O status call
  5182.  17h    BYTE    temp storage for user memory allocation strategy during EXEC
  5183.  18h    BYTE    counter: number of INT 21 calls for which A20 is off
  5184.  19h    BYTE    bit flags
  5185.         bit 0: ???
  5186.         bit 1: SWITCHES=/W specified in CONFIG.SYS (don't load
  5187.             WINA20.SYS when MS Windows 3.0 starts)
  5188.         bit 2: in EXEC state (INT 21/AX=4B05h)
  5189.  1Ah    WORD    offset of unpack code start (used only during INT 21/AX=4B05h)
  5190.  1Ch    BYTE    bit 0 set iff UMB MCB chain linked to normal MCB chain
  5191.  1Dh    WORD    minimum paragraphs of memory required by program being EXECed
  5192.  1Fh    WORD    segment of first MCB in upper memory blocks or FFFFh if DOS
  5193.         memory chain in base 640K only (first UMB MCB usually at 9FFFh,
  5194.         locking out video memory with a DOS-owned memory block)
  5195.  21h    WORD    paragraph from which to start scanning during memory allocation
  5196.  
  5197. Format of IFS driver list:
  5198. Offset    Size    Description
  5199.  00h    DWORD    pointer to next driver header
  5200.  04h  8 BYTEs    IFS driver name (blank padded), as used by FILESYS command
  5201.  0Ch  4 BYTEs    ???
  5202.  10h    DWORD    pointer to IFS utility function entry point (see below)
  5203.         call with ES:BX -> IFS request (see below)
  5204.  14h    WORD    offset in header's segment of driver entry point
  5205.     ???
  5206.  
  5207. Call IFS utility function entry point with:
  5208.     AH = 20h miscellaneous functions
  5209.         AL = 00h get date
  5210.         Return: CX = year
  5211.             DH = month
  5212.             DL = day
  5213.         AL = 01h get process ID and computer ID
  5214.         Return: BX = current PSP segment
  5215.             DX = active network machine number
  5216.         AL = 05h get file system info
  5217.         ES:DI -> 16-byte info buffer
  5218.         Return: buffer filled
  5219.             Offset    Size    Description
  5220.              00h  2 BYTEs    unused
  5221.              02h    WORD    number of SFTs (actually counts only
  5222.                     the first two file table arrays)
  5223.              04h    WORD    number of FCB table entries
  5224.              06h    WORD    number of proctected FCBs
  5225.              08h  6 BYTEs    unused
  5226.              0Eh    WORD    largest sector size supported
  5227.         AL = 06h get machine name
  5228.         ES:DI -> 18-byte buffer for name
  5229.         Return: buffer filled with name starting at offset 02h
  5230.         AL = 08h get sharing retry count
  5231.         Return: BX = sharing retry count
  5232.         AL = other
  5233.         Return: CF set
  5234.     AH = 21h get redirection state
  5235.         BH = type (03h disk, 04h printer)
  5236.         Return: BH = state (00h off, 01h on)
  5237.     AH = 22h ??? some sort of time calculation
  5238.         AL = 00h ???
  5239.             nonzero ???
  5240.     AH = 23h ??? some sort of time calculation
  5241.     AH = 24h compare filenames
  5242.         DS:SI -> first ASCIZ filename
  5243.         ES:DI -> second ASCIZ filename
  5244.         Return: ZF set if files are same ignoring case and / vs \
  5245.     AH = 25h normalize filename
  5246.         DS:SI -> ASCIZ filename
  5247.         ES:DI -> buffer for result
  5248.         Return: filename uppercased, forward slashes changed to backslashes
  5249.     AH = 26h get DOS stack
  5250.         Return: DS:SI -> top of stack
  5251.             CX = size of stack in bytes
  5252.     AH = 27h increment InDOS flag
  5253.     AH = 28h decrement InDOS flag
  5254. Note:    IFS drivers which do not wish to implement functions 20h or 24h-28h may
  5255.       pass them on to the default handler pointed at by [LoL+37h]
  5256.  
  5257. Format of IFS request block:
  5258. Offset    Size    Description
  5259.  00h    WORD    total size in bytes of request
  5260.  02h    BYTE    class of request
  5261.         02h ???
  5262.         03h redirection
  5263.         04h ???
  5264.         05h file access
  5265.         06h convert error code to string
  5266.         07h ???
  5267.  03h    WORD    returned DOS error code
  5268.  05h    BYTE    IFS driver exit status
  5269.         00h success
  5270.         01h ???
  5271.         02h ???
  5272.         03h ???
  5273.         04h ???
  5274.         FFh internal failure
  5275.  06h 16 BYTEs    ???
  5276. ---request class 02h---
  5277.  16h    BYTE    function code
  5278.         04h ???
  5279.  17h    BYTE    unused???
  5280.  18h    DWORD    pointer to ???
  5281.  1Ch    DWORD    pointer to ???
  5282.  20h  2 BYTEs    ???
  5283. ---request class 03h---
  5284.  16h    BYTE    function code
  5285.  17h    BYTE    ???
  5286.  18h    DWORD    pointer to ???
  5287.  1Ch    DWORD    pointer to ???
  5288.  22h    WORD    returned ???
  5289.  24h    WORD    returned ???
  5290.  26h    WORD    returned ???
  5291.  28h    BYTE    returned ???
  5292.  29h    BYTE    unused???
  5293. ---request class 04h---
  5294.  16h    DWORD    pointer to ???
  5295.  1Ah    DWORD    pointer to ???
  5296. ---request class 05h---
  5297.  16h    BYTE    function code
  5298.         01h flush disk buffers
  5299.         02h get disk space
  5300.         03h MKDIR
  5301.         04h RMDIR
  5302.         05h CHDIR
  5303.         06h delete file
  5304.         07h rename file
  5305.         08h search directory
  5306.         09h file open/create
  5307.         0Ah LSEEK
  5308.         0Bh read from file
  5309.         0Ch write to file
  5310.         0Dh lock region of file
  5311.         0Eh commit/close file
  5312.         0Fh get/set file attributes
  5313.         10h printer control
  5314.         11h ???
  5315.         12h process termination
  5316.         13h ???
  5317.     ---class 05h function 01h---
  5318.      17h  7 BYTEs    ???
  5319.      1Eh    DWORD    pointer to ???
  5320.      22h  4 BYTEs    ???
  5321.      26h    BYTE    ???
  5322.      27h    BYTE    ???
  5323.     ---class 05h function 02h---
  5324.      17h  7 BYTEs    ???
  5325.      1Eh    DWORD    pointer to ???
  5326.      22h  4 BYTEs    ???
  5327.      26h    WORD    returned total clusters
  5328.      28h    WORD    returned sectors per cluster
  5329.      2Ah    WORD    returned bytes per sector
  5330.      2Ch    WORD    returned available clusters
  5331.      2Eh    BYTE    returned ???
  5332.      2Fh    BYTE    ???
  5333.     ---class 05h functions 03h,04h,05h---
  5334.      17h  7 BYTEs    ???
  5335.      1Eh    DWORD    pointer to ???
  5336.      22h  4 BYTEs    ???
  5337.      26h    DWORD    pointer to directory name
  5338.     ---class 05h function 06h---
  5339.      17h  7 BYTEs    ???
  5340.      1Eh    DWORD    pointer to ???
  5341.      22h  4 BYTEs    ???
  5342.      26h    WORD    attribute mask
  5343.      28h    DWORD    pointer to filename
  5344.     ---class 05h function 07h---
  5345.      17h  7 BYTEs    ???
  5346.      1Eh    DWORD    pointer to ???
  5347.      22h  4 BYTEs    ???
  5348.      26h    WORD    attribute mask
  5349.      28h    DWORD    pointer to source filespec
  5350.      2Ch    DWORD    pointer to destination filespec
  5351.     ---class 05h function 08h---
  5352.      17h  7 BYTEs    ???
  5353.      1Eh    DWORD    pointer to ???
  5354.      22h  4 BYTEs    ???
  5355.      26h    BYTE    00h FINDFIRST
  5356.             01h FINDNEXT
  5357.      28h    DWORD    pointer to FindFirst search data + 01h if FINDNEXT
  5358.      2Ch    WORD    search attribute if FINDFIRST
  5359.      2Eh    DWORD    pointer to filespec if FINDFIRST
  5360.     ---class 05h function 09h---
  5361.      17h  7 BYTEs    ???
  5362.      1Eh    DWORD    pointer to ???
  5363.      22h    DWORD    pointer to IFS open file structure (see below)
  5364.      26h    WORD    ???  \ together, specify open vs. create, whether or
  5365.      28h    WORD    ???  / not to truncate
  5366.      2Ah  4 BYTEs    ???
  5367.      2Eh    DWORD    pointer to filename
  5368.      32h  4 BYTEs    ???
  5369.      36h    WORD    file attributes on call
  5370.             returned ???
  5371.      38h    WORD    returned ???
  5372.     ---class 05h function 0Ah---
  5373.      17h  7 BYTEs    ???
  5374.      1Eh    DWORD    pointer to ???
  5375.      22h    DWORD    pointer to IFS open file structure (see below)
  5376.      26h    BYTE    seek type (02h = from end)
  5377.      28h    DWORD    offset on call
  5378.             returned new absolute position
  5379.     ---class 05h functions 0Bh,0Ch---
  5380.      17h  7 BYTEs    ???
  5381.      1Eh    DWORD    pointer to ???
  5382.      22h    DWORD    pointer to IFS open file structure (see below)
  5383.      28h    WORD    number of bytes to transfer
  5384.             returned bytes actually transferred
  5385.      2Ah    DWORD    transfer address
  5386.     ---class 05h function 0Dh---
  5387.      17h  7 BYTEs    ???
  5388.      1Eh    DWORD    pointer to ???
  5389.      22h    DWORD    pointer to IFS open file structure (see below)
  5390.      26h    BYTE    file handle???
  5391.      27h    BYTE    unused???
  5392.      28h    WORD    ???
  5393.      2Ah    WORD    ???
  5394.      2Ch    WORD    ???
  5395.      2Eh    WORD    ???
  5396.     ---class 05h function 0Eh---
  5397.      17h  7 BYTEs    ???
  5398.      1Eh    DWORD    pointer to ???
  5399.      22h    DWORD    pointer to IFS open file structure (see below)
  5400.      26h    BYTE    00h commit file
  5401.             01h close file
  5402.      27h    BYTE    unused???
  5403.     ---class 05h function 0Fh---
  5404.      17h  7 BYTEs    ???
  5405.      1Eh    DWORD    pointer to ???
  5406.      22h  4 BYTEs    ???
  5407.      26h    BYTE    02h GET attributes
  5408.             03h PUT attributes
  5409.      27h    BYTE    unused???
  5410.      28h 12 BYTEs    ???
  5411.      34h    WORD    search attributes???
  5412.      36h    DWORD    pointer to filename
  5413.      3Ah    WORD    (GET) returned ???
  5414.      3Ch    WORD    (GET) returned ???
  5415.      3Eh    WORD    (GET) returned ???
  5416.      40h    WORD    (GET) returned ???
  5417.      42h    WORD    (PUT) new attributes
  5418.             (GET) returned attributes
  5419.     ---class 05h function 10h---
  5420.      17h  7 BYTEs    ???
  5421.      1Eh    DWORD    pointer to ???
  5422.      22h    DWORD    pointer to IFS open file structure (see below)
  5423.      26h    WORD    ???
  5424.      28h    DWORD    pointer to ???
  5425.      2Ch    WORD    ???
  5426.      2Eh    BYTE    ???
  5427.      2Fh    BYTE    subfunction
  5428.             01h get printer setup
  5429.             03h ???
  5430.             04h ???
  5431.             05h ???
  5432.             06h ???
  5433.             07h ???
  5434.             21h set printer setup
  5435.     ---class 05h function 11h---
  5436.      17h  7 BYTEs    ???
  5437.      1Eh    DWORD    pointer to ???
  5438.      22h    DWORD    pointer to IFS open file structure (see below)
  5439.      26h    BYTE    subfunction
  5440.      27h    BYTE    unused???
  5441.      28h    WORD    ???
  5442.      2Ah    WORD    ???
  5443.      2Ch    WORD    ???
  5444.      2Eh    BYTE    ???
  5445.      2Fh    BYTE    ???
  5446.     ---class 05h function 12h---
  5447.      17h 15 BYTEs    unused???
  5448.      26h    WORD    PSP segment
  5449.      28h    BYTE    type of process termination
  5450.      29h    BYTE    unused???
  5451.     ---class 05h function 13h---
  5452.      17h 15 BYTEs    unused???
  5453.      26h    WORD    PSP segment
  5454. ---request class 06h---
  5455.  16h    DWORD    returned pointer to string corresponding to error code at 03h
  5456.  1Ah    BYTE    returned ???
  5457.  1Bh    BYTE    unused
  5458. ---request class 07h---
  5459.  16h    DWORD    pointer to IFS open file structure (see below)
  5460.  1Ah    BYTE    ???
  5461.  1Bh    BYTE    unused???
  5462.  
  5463. Format of IFS open file structure:
  5464. Offset    Size    Description
  5465.  00h    WORD    ???
  5466.  02h    WORD    device info word
  5467.  04h    WORD    file open mode
  5468.  06h    WORD    ???
  5469.  08h    WORD    file attributes
  5470.  0Ah    WORD    owner's network machine number
  5471.  0Ch    WORD    owner's PSP segment
  5472.  0Eh    DWORD    file size
  5473.  12h    DWORD    current offset in file
  5474.  16h    WORD    file time
  5475.  18h    WORD    file date
  5476.  1Ah 11 BYTEs    filename in FCB format
  5477.  25h    WORD    ???
  5478.  27h    WORD    hash value of SFT address
  5479.         (low word of linear address + segment&F000h)
  5480.  29h  3 WORDs    network info from SFT
  5481.  2Fh    WORD    ???
  5482.  
  5483. Format of one item in DOS 4+ list of special program names:
  5484. Offset    Size    Description
  5485.  00h    BYTE    length of name (00h = end of list)
  5486.  01h  N BYTEs    name in format name.ext
  5487.  N    2 BYTEs    DOS version to return for program (major,minor)
  5488.         (see AH=30h,INT 2F/AX=122Fh)
  5489. ---DOS 4 only---
  5490.  N+2    BYTE    number of times to return fake version number (FFh = always)
  5491. Note:    if the name of the executable for the program making the DOS "get
  5492.       version" call matches one of the names in this list, DOS returns the
  5493.       specified version rather than the true version number
  5494. --------v-215252-----------------------------
  5495. INT 21 - VIRUS - "516"/"Leapfrog" - INSTALLATION CHECK
  5496.     AX = 5252h
  5497. Return: BX = FFEEh if resident
  5498. SeeAlso: AX=4BFFh"Cascade",AX=58CCh
  5499. --------D-2153-------------------------------
  5500. INT 21 - DOS 2+ internal - TRANSLATE BIOS PARAMETER BLOCK TO DRIVE PARAM BLOCK
  5501.     AH = 53h
  5502.     DS:SI -> BIOS Parameter Block (see below)
  5503.     ES:BP -> buffer for Drive Parameter Block (see AH=32h for format)
  5504. Return: ES:BP buffer filled
  5505. Note:    for DOS 3+, the cluster at which to start searching is set to 0000h
  5506.       and the number of free clusters is set to FFFFh (unknown)
  5507.  
  5508. Format of BIOS Parameter Block:
  5509. Offset    Size    Description
  5510.  00h    WORD    number of bytes per sector
  5511.  02h    BYTE    number of sectors per cluster
  5512.  03h    WORD    number of reserved sectors at start of disk
  5513.  05h    BYTE    number of FATs
  5514.  06h    WORD    number of entries in root directory
  5515.  08h    WORD    total number of sectors
  5516.         for DOS 4+, set to zero if partition >32M, then set DWORD at
  5517.           15h to actual number of sectors
  5518.  0Ah    BYTE    media ID byte
  5519.  0Bh    WORD    number of sectors per FAT
  5520. ---DOS 3+---
  5521.  0Dh    WORD    number of sectors per track
  5522.  0Fh    WORD    number of heads
  5523.  11h    DWORD    number of hidden sectors
  5524.  15h 11 BYTEs    reserved
  5525. ---DOS 4+ ---
  5526.  15h    DWORD    total number of sectors if word at 08h contains zero
  5527.  19h  6 BYTEs    ???
  5528.  1Fh    WORD    number of cylinders
  5529.  21h    BYTE    device type
  5530.  22h    WORD    device attributes (removable or not, etc)
  5531. ---DR-DOS 5+ ---
  5532.  15h    DWORD    total number of sectors if word at 08h contains zero
  5533.  19h  6 BYTEs    reserved
  5534. ---European MS-DOS 4.00---
  5535.  15h    DWORD    total number of sectors if word at 08h contains zero
  5536.         (however, this DOS does not actually implement >32M partitions)
  5537. --------D-2154-------------------------------
  5538. INT 21 - DOS 2+ - GET VERIFY FLAG
  5539.     AH = 54h
  5540. Return: AL = verify flag
  5541.         00h off
  5542.         01h on (all disk writes verified after writing)
  5543. SeeAlso: AH=2Eh
  5544. --------D-2155-------------------------------
  5545. INT 21 - DOS 2+ internal - CREATE CHILD PSP
  5546.     AH = 55h
  5547.     DX = segment at which to create new PSP
  5548.     SI = (DOS 3+) value to place in memory size field at DX:[0002h]
  5549. Return: CF clear if successful
  5550.  
  5551. Notes:    creates a "child" PSP rather than making an exact copy of the current
  5552.       PSP; the new PSP's parent pointer is set to the current PSP and the
  5553.       reference count for each inherited file is incremented
  5554.     (DOS 2+) sets current PSP to DX
  5555.     (DOS 3+) marks "no inherit" file handles as closed in child PSP
  5556. SeeAlso: AH=26h,AH=50h
  5557. --------D-2156-------------------------------
  5558. INT 21 - DOS 2+ - "RENAME" - RENAME FILE
  5559.     AH = 56h
  5560.     DS:DX -> ASCIZ filename of existing file (no wildcards, but see below)
  5561.     ES:DI -> ASCIZ new filename (no wildcards)
  5562.     CL = attribute mask (server call only, see below)
  5563. Return: CF clear if successful
  5564.     CF set on error
  5565.         AX = error code (02h,03h,05h,11h) (see AH=59h)
  5566. Notes:    allows move between directories on same logical volume
  5567.     does not set the archive attribute (see AX=4300h), which results in
  5568.       incremental backups not backing up the file under its new name
  5569.     open files should not be renamed
  5570.     (DOS 3+) allows renaming of directories
  5571.     (DOS 3.1+) wildcards are allowed if invoked via AX=5D00h, in which case
  5572.       error 12h (no more files) is returned on success, and both source and
  5573.       destination specs must be canonical (as returned by AH=60h).
  5574.       Wildcards in the destination are replaced by the corresponding char
  5575.       of each source file being renamed.  Under DOS 3.x, the call will fail
  5576.       if the destination wildcard is *.* or equivalent; under DR-DOS 5.0,
  5577.       the call will fail if any wildcards are used.     When invoked via
  5578.       AX=5D00h, only those files matching the attribute mask in CL are
  5579.       renamed.
  5580.     under the FlashTek X-32 DOS extender, the old-name pointer is in DS:EDX
  5581.       and the new-name pointer is in ES:EDI (DS must equal ES)
  5582. BUG:    under DR-DOS 3.41, this function will generate a new directory entry
  5583.       with the new name (including any wildcards) which can only be removed
  5584.       with a sector editor when invoked via AX=5D00h
  5585. SeeAlso: AH=17h,AX=4301h,AH=60h,AX=5D00h
  5586. --------D-215700-----------------------------
  5587. INT 21 - DOS 2+ - GET FILE'S DATE AND TIME
  5588.     AX = 5700h
  5589.     BX = file handle
  5590. Return: CF clear if successful
  5591.         CX = file's time
  5592.         bits 15-11: hours (0-23)
  5593.              10-5:  minutes
  5594.               4-0:  seconds/2
  5595.         DX = file's date
  5596.         bits 15-9: year - 1980
  5597.               8-5: month
  5598.               4-0: day
  5599.     CF set on error
  5600.         AX = error code (01h,06h) (see AH=59h)
  5601. Note:    under DR-DOS 3.41 and 5.0, this function returns 0 (no date/time) for
  5602.       character devices; MS-DOS returns date and time of opening
  5603. SeeAlso: AX=5701h
  5604. --------D-215701-----------------------------
  5605. INT 21 - DOS 2+ - SET FILE'S DATE AND TIME
  5606.     AX = 5701h
  5607.     BX = file handle
  5608.     CX = new time (see AX=5700h)
  5609.     DX = new date (see AX=5700h)
  5610. Return: CF clear if successful
  5611.     CF set on error
  5612.         AX = error code (01h,06h) (see AH=59h)
  5613. SeeAlso: AX=5700h
  5614. --------D-215702-----------------------------
  5615. INT 21 - DOS 4.x only - GET EXTENDED ATTRIBUTES FOR FILE
  5616.     AX = 5702h
  5617.     BX = file handle
  5618.     CX = size of result buffer or 0000h
  5619.     DS:SI -> EAP list (see below)
  5620.     ES:DI -> buffer for returned EAV list (see below)
  5621. Return: CF clear if successful
  5622.         CX = size of returned data
  5623.     CF set on error
  5624.         AX = error code (see AH=59h)
  5625. Desc:    get the current value of one or more extended attributes
  5626. Notes:    if CX=0000h on entry, ES:DI is ignored and no data is actually
  5627.       returned, only the amount of data which is available
  5628.     the default DOS 4 behavior is to return a single word of 0000h (no
  5629.       structures) in the result buffer if CX>=0002h on entry
  5630. SeeAlso: AX=5703h,AX=5704h,AH=6Eh,INT 2F/AX=112Dh
  5631.  
  5632. Format of EAP (extended attribute properties) list:
  5633. Offset    Size    Description
  5634.  00h    WORD    number of EAP structures following
  5635.  02h    var    array of EAP structures (see below)
  5636.  
  5637. Format of EAP (extended attribute property) structure:
  5638. Offset    Size    Description
  5639.  00h    BYTE    attribute type
  5640.         01h boolean (either 00h or 01h)
  5641.         02h number (BYTE, WORD, or DWORD)
  5642.         03h string
  5643.         04h date stamp
  5644.         05h time stamp
  5645.  01h    WORD    EAP flags (see below)
  5646.  03h    BYTE    size of reference string (name)
  5647.  04h  N BYTEs    reference string
  5648.  
  5649. Bitfields for EAP flags:
  5650.  bit 12 unchangeable
  5651.  bit 13 ignore
  5652.  bit 14 unchangeable
  5653.  bit 15 used by COMMAND.COM for code page, but not understood by ATTRIB
  5654.  
  5655. Format of EAV (extended attribute value) list:
  5656. Offset    Size    Description
  5657.  00h    WORD    number of EAV structures following
  5658.  02h    var    array of Extended Attribute Value structures
  5659.  
  5660. Format of Extended Attribute Value structures:
  5661. Offset    Size    Description
  5662.  00h  4 BYTEs    ???
  5663.  04h    BYTE    size of reference string
  5664.  05h    WORD    size of value
  5665.  07h    var    reference string
  5666.     var    value
  5667. --------O-215702-----------------------------
  5668. INT 21 - OS/2 v1.1+ Family API - DosQFileInfo
  5669.     AX = 5702h
  5670.     BX = file handle
  5671.     CX = size of buffer for information
  5672.     DX = level of information
  5673.     ES:DI -> buffer for information
  5674. Return: CF clear if successful
  5675.     CF set on error
  5676.         AX = error code
  5677. SeeAlso: AX=5702h/BX=FFFFh,AX=5703h"OS/2"
  5678. --------O-215702BXFFFF-----------------------
  5679. INT 21 - OS/2 v1.1+ Compatibility Box Family API - DosQPathInfo
  5680.     AX = 5702h
  5681.     BX = FFFFh
  5682.     CX = size of buffer for information
  5683.     DX = level of information (0002h)
  5684.     DS:SI -> filename
  5685.     ES:DI -> buffer for information (see below)
  5686. Return: CF clear if successful
  5687.         AL = 00h
  5688.     CF set on error
  5689.         AX = error code
  5690. SeeAlso: AX=5702h"OS/2",AX=5703h/BX=FFFFh
  5691.  
  5692. Format of path information:
  5693. Offset    Size    Description
  5694.  00h 22 BYTEs    ???
  5695.  16h    DWORD    extended attribute size (none present if less than 5)
  5696. --------D-215703-----------------------------
  5697. INT 21 - DOS 4.x only - GET EXTENDED ATTRIBUTE PROPERTIES
  5698.     AX = 5703h
  5699.     BX = file handle
  5700.     CX = size of result buffer or 0000h
  5701.     ES:DI -> result buffer
  5702. Return: CF clear if successful
  5703.         CX = size of returned data
  5704.     CF set on error
  5705.         AX = error code (see AH=59h)
  5706.     ES:DI -> zero word (DOS 4.0) if CX >= 2 on entry
  5707. Desc:    get a list of the extended attributes which are defined for the
  5708.       specified file
  5709. Notes:    if CX=0000h on entry, ES:DI is ignored and no data is actually
  5710.       returned, only the amount of data which is available
  5711.     the default DOS 4 behavior is to return a trivial EAP list consisting
  5712.       of the single word 0000h (no EAP structures) if CX>=0002h on entry
  5713. SeeAlso: AX=5702h,AX=5704h,AH=6Eh,INT 2F/AX=112Dh
  5714. --------O-215703-----------------------------
  5715. INT 21 - OS/2 v1.1+ Family API - DosSetFileInfo
  5716.     AX = 5703h
  5717.     BX = file handle
  5718.     CX = size of information buffer
  5719.     DX = level of information
  5720.     ES:DI -> information buffer
  5721. Return: CF clear if successful
  5722.     CF set on error
  5723.         AX = error code
  5724. SeeAlso: AX=5702h"OS/2",AX=5703h/BX=FFFFh
  5725. --------O-215703BXFFFF-----------------------
  5726. INT 21 - OS/2 v1.1+ Family API - DosSetPathInfo
  5727.     AX = 5703h
  5728.     BX = FFFFh
  5729.     CX = size of information buffer
  5730.     DX = level of information
  5731.     DS:SI -> filename
  5732.     ES:DI -> information buffer
  5733. Return: CF clear if successful
  5734.     CF set on error
  5735.         AX = error code
  5736. SeeAlso: AX=5702h/BX=FFFFh,AX=5703h"OS/2"
  5737. --------D-215704-----------------------------
  5738. INT 21 - DOS 4.x only - SET EXTENDED ATTRIBUTES
  5739.     AX = 5704h
  5740.     BX = file handle
  5741.     ES:DI -> EAV list (see AX=5702h)
  5742. Return: CF clear if successful
  5743.     CF set on error
  5744.         AX = error code (see AH=59h)
  5745. Note:    the default DOS 4 behavior is to do nothing and return successfully
  5746. SeeAlso: AX=5702h,AX=5703h,INT 2F/AX=112Dh
  5747. ----------215757BX5757-----------------------
  5748. INT 21 U - IBM Genie - Resident Manager - INSTALLATION CHECK
  5749.     AX = 5757h
  5750.     BX = 5757h
  5751. Return: AX = 0000h if installed
  5752.         BX = ???
  5753.         DX = ???
  5754.         DS:SI -> list of 27 DWORD entry point addresses
  5755. Program: IBM Genie is a set of utility TSRs by Helix Software
  5756. Note:    other functions possible if BX <> 5757h, but details not yet available
  5757. ----------215758-----------------------------
  5758. INT 21 U - Headroom - API
  5759.     AX = 5758h
  5760.     BL = function
  5761.         00h ???
  5762.         01h get Headroom location
  5763.         Return: CF clear if installed
  5764.                 AX = PSP segment of Headroom TSR
  5765.                 BX = paragraphs of memory used by Headroom
  5766.             CF set if not (normal DOS return)
  5767.         Note:    this function is also used as an installation check
  5768.         02h get INT 21 handler
  5769.         Return: CF clear
  5770.             ES:BX -> Headroom's INT 21 handler
  5771.         Note: also sets unknown flag
  5772.         03h launch application???
  5773.         DS:SI -> 233-byte application record
  5774.         Return: ???
  5775.         04h ???
  5776.         ???
  5777.         Return: CF clear
  5778.         05h get swap directory
  5779.         Return: CF clear
  5780.             DX:AX -> ASCIZ swap directory name
  5781.         06h ???
  5782.         DX = ???
  5783.         Return: CF clear
  5784.         07h ???
  5785.         08h ???
  5786.         09h get current application
  5787.         Return: BX = application number
  5788.         0Ah ???
  5789.         DX = application number
  5790.         DS:SI = ???
  5791.         Return: ???
  5792.         0Bh ???
  5793.         0Ch ???
  5794.         DX = application number
  5795.         ???
  5796.         Return: ???
  5797.         0Dh ???
  5798.         DX = application number
  5799.         ???
  5800.         Return: ???
  5801.         0Eh get ???
  5802.         Return: CF clear
  5803.             AX = ???
  5804.         0Fh set ??? flag
  5805.         10h clear ??? flag
  5806.         11h find application by name
  5807.         DS:SI -> ASCIZ application name
  5808.         Return: CF clear
  5809.             AX = application number or FFFFh if not loaded
  5810.         12h ???
  5811.         DX = application number
  5812.         Return: CF clear
  5813.             ???
  5814.         13h ???
  5815.         Return: CF clear
  5816.         14h ???
  5817.         same as function 13h
  5818.         15h set ???
  5819.         DX = ???
  5820.         16h get ???
  5821.         Return: AX = ??? set by function 15h
  5822.         17h get ???
  5823.         Return: BX = ???
  5824.             CX = ??? (may be pointer in BX:CX)
  5825.         18h BUG: branches incorrectly due to fencepost error
  5826. Program: Headroom is a TSR/task switcher by Helix Software
  5827. SeeAlso: AX=4C57h,AX=5757h
  5828. --------D-2158-------------------------------
  5829. INT 21 - DOS 3+ - GET OR SET MEMORY ALLOCATION STRATEGY
  5830.     AH = 58h
  5831.     AL = subfunction
  5832.         00h get allocation strategy
  5833.         Return: AX = current strategy
  5834.                 00h low memory first fit
  5835.                 01h low memory best fit
  5836.                 02h low memory last fit
  5837.              ---DOS 5+ ---
  5838.                 40h high memory first fit
  5839.                 41h high memory best fit
  5840.                 42h high memory last fit
  5841.                 80h first fit, try high then low memory
  5842.                 81h best fit, try high then low memory
  5843.                 82h last fit, try high then low memory
  5844.         01h set allocation strategy
  5845.         BL = new allocation strategy (see above)
  5846.         BH = 00h (DOS 5+)
  5847. Return: CF clear if successful
  5848.     CF set on error
  5849.         AX = error code (01h) (see AH=59h)
  5850. Notes:    the Set subfunction accepts any value in BL for DOS 3.x and 4.x;
  5851.       2 or greater means last fit
  5852.     the Get subfunction returns the last value set
  5853.     setting an allocation strategy involving high memory does not
  5854.       automatically link in the UMB memory chain; this must be done
  5855.       explicitly with AX=5803h in order to actually allocate high memory
  5856.     a program which changes the allocation strategy should restore it
  5857.       before terminating
  5858.     Toshiba MS-DOS 2.11 supports subfunctions 00h and 01h
  5859.     DR-DOS 3.41 reportedly reverses subfunctions 00h and 01h
  5860. SeeAlso: AH=48h,AH=49h,AH=4Ah,INT 2F/AX=4310h,INT 67/AH=3Fh
  5861. --------D-2158-------------------------------
  5862. INT 21 - DOS 5+ - GET OR SET UMB LINK STATE
  5863.     AH = 58h
  5864.     AL = subfunction
  5865.         02h get UMB link state
  5866.         Return: AL = 00h UMBs not part of DOS memory chain
  5867.                = 01h UMBs in DOS memory chain
  5868.         03h set UMB link state
  5869.         BX = 0000h remove UMBs from DOS memory chain
  5870.            = 0001h add UMBs to DOS memory chain
  5871. Return: CF clear if successful
  5872.     CF set on error
  5873.         AX = error code (01h) (see AH=59h)
  5874. Note:    a program which changes the UMB link state should restore it before
  5875.       terminating
  5876. --------v-2158CC-----------------------------
  5877. INT 21 - VIRUS - "1067"/"Headcrash" - INSTALLATION CHECK
  5878.     AX = 58CCh
  5879. Return: CF clear if resident
  5880. SeeAlso: AX=5252h,AX=58DDh,AX=6969h
  5881. --------v-2158DD-----------------------------
  5882. INT 21 - VIRUS - "1067"/"Headcrash" - GET ORIGINAL INT 21h VECTOR
  5883.     AX = 58DDh
  5884. Return: CX = code segment of virus
  5885.     ES:BX = old INT 21h vector
  5886. SeeAlso: AX=5252h,AX=58CCh,AX=6969h
  5887. --------D-2159--BX0000-----------------------
  5888. INT 21 - DOS 3+ - GET EXTENDED ERROR INFORMATION
  5889.     AH = 59h
  5890.     BX = 0000h
  5891. Return: AX = extended error code (see below)
  5892.     BH = error class (see below)
  5893.     BL = recommended action (see below)
  5894.     CH = error locus (see below)
  5895.     ES:DI may be pointer (see error code list below)
  5896.     CL, DX, SI, BP, and DS destroyed
  5897. Notes:    functions available under DOS 2.x map the true DOS 3+ error code into
  5898.       one supported under DOS 2.x
  5899.     you should call this function to retrieve the true error code when an
  5900.       FCB or DOS 2.x call returns an error
  5901.     under DR-DOS 5.0, this function does not use any of the DOS-internal
  5902.       stacks and may thus be called at any time
  5903. SeeAlso: AH=59h/BX=0001h,AX=5D0Ah,INT 2F/AX=122Dh
  5904.  
  5905. Values for extended error code:
  5906.  00h (0)   no error
  5907.  01h (1)   function number invalid
  5908.  02h (2)   file not found
  5909.  03h (3)   path not found
  5910.  04h (4)   too many open files (no handles available)
  5911.  05h (5)   access denied
  5912.  06h (6)   invalid handle
  5913.  07h (7)   memory control block destroyed
  5914.  08h (8)   insufficient memory
  5915.  09h (9)   memory block address invalid
  5916.  0Ah (10)  environment invalid (usually >32K in length)
  5917.  0Bh (11)  format invalid
  5918.  0Ch (12)  access code invalid
  5919.  0Dh (13)  data invalid
  5920.  0Eh (14)  reserved
  5921.  0Fh (15)  invalid drive
  5922.  10h (16)  attempted to remove current directory
  5923.  11h (17)  not same device
  5924.  12h (18)  no more files
  5925. ---DOS 3+---
  5926.  13h (19)  disk write-protected
  5927.  14h (20)  unknown unit
  5928.  15h (21)  drive not ready
  5929.  16h (22)  unknown command
  5930.  17h (23)  data error (CRC)
  5931.  18h (24)  bad request structure length
  5932.  19h (25)  seek error
  5933.  1Ah (26)  unknown media type (non-DOS disk)
  5934.  1Bh (27)  sector not found
  5935.  1Ch (28)  printer out of paper
  5936.  1Dh (29)  write fault
  5937.  1Eh (30)  read fault
  5938.  1Fh (31)  general failure
  5939.  20h (32)  sharing violation
  5940.  21h (33)  lock violation
  5941.  22h (34)  disk change invalid
  5942.     ES:DI -> ASCIZ volume label of required disk
  5943.  23h (35)  FCB unavailable
  5944.  24h (36)  sharing buffer overflow
  5945.  25h (37)  (DOS 4+) code page mismatch
  5946.  26h (38)  (DOS 4+) cannot complete file operation (out of input)
  5947.  27h (39)  (DOS 4+) insufficient disk space
  5948.  28h-31h   reserved
  5949.  32h (50)  network request not supported
  5950.  33h (51)  remote computer not listening
  5951.  34h (52)  duplicate name on network
  5952.  35h (53)  network name not found
  5953.  36h (54)  network busy
  5954.  37h (55)  network device no longer exists
  5955.  38h (56)  network BIOS command limit exceeded
  5956.  39h (57)  network adapter hardware error
  5957.  3Ah (58)  incorrect response from network
  5958.  3Bh (59)  unexpected network error
  5959.  3Ch (60)  incompatible remote adapter
  5960.  3Dh (61)  print queue full
  5961.  3Eh (62)  queue not full
  5962.  3Fh (63)  not enough space to print file
  5963.  40h (64)  network name was deleted
  5964.  41h (65)  network: Access denied
  5965.  42h (66)  network device type incorrect
  5966.  43h (67)  network name not found
  5967.  44h (68)  network name limit exceeded
  5968.  45h (69)  network BIOS session limit exceeded
  5969.  46h (70)  temporarily paused
  5970.  47h (71)  network request not accepted
  5971.  48h (72)  network print/disk redirection paused
  5972.  49h (73)  network software not installed
  5973.        (LANtastic) invalid network version
  5974.  4Ah (74)  unexpected adapter close
  5975.        (LANtastic) account expired
  5976.  4Bh (75)  (LANtastic) password expired
  5977.  4Ch (76)  (LANtastic) login attempt invalid at this time
  5978.  4Dh (77)  (LANtastic v3+) disk limit exceeded on network node
  5979.  4Eh (78)  (LANtastic v3+) not logged in to network node
  5980.  4Fh (79)  reserved
  5981.  50h (80)  file exists
  5982.  51h (81)  reserved
  5983.  52h (82)  cannot make directory
  5984.  53h (83)  fail on INT 24h
  5985.  54h (84)  (DOS 3.3+) too many redirections
  5986.  55h (85)  (DOS 3.3+) duplicate redirection
  5987.  56h (86)  (DOS 3.3+) invalid password
  5988.  57h (87)  (DOS 3.3+) invalid parameter
  5989.  58h (88)  (DOS 3.3+) network write fault
  5990.  59h (89)  (DOS 4+) function not supported on network
  5991.  5Ah (90)  (DOS 4+) required system component not installed
  5992.  64h (100) (MSCDEX) unknown error
  5993.  65h (101) (MSCDEX) not ready
  5994.  66h (102) (MSCDEX) EMS memory no longer valid
  5995.  67h (103) (MSCDEX) not High Sierra or ISO-9660 format
  5996.  68h (104) (MSCDEX) door open
  5997.  
  5998. Values for Error Class:
  5999.  01h    out of resource (storage space or I/O channels)
  6000.  02h    temporary situation (file or record lock)
  6001.  03h    authorization (denied access)
  6002.  04h    internal (system software bug)
  6003.  05h    hardware failure
  6004.  06h    system failure (configuration file missing or incorrect)
  6005.  07h    application program error
  6006.  08h    not found
  6007.  09h    bad format
  6008.  0Ah    locked
  6009.  0Bh    media error
  6010.  0Ch    already exists
  6011.  0Dh    unknown
  6012.  
  6013. Values for Suggested Action:
  6014.  01h    retry
  6015.  02h    delayed retry
  6016.  03h    prompt user to reenter input
  6017.  04h    abort after cleanup
  6018.  05h    immediate abort
  6019.  06h    ignore
  6020.  07h    retry after user intervention
  6021.  
  6022. Values for Error Locus:
  6023.  01h    unknown or not appropriate
  6024.  02h    block device (disk error)
  6025.  03h    network related
  6026.  04h    serial device (timeout)
  6027.  05h    memory related
  6028. --------D-2159--BX0001-----------------------
  6029. INT 21 - European MS-DOS 4.0 - GET HARD ERROR INFORMATION
  6030.     AH = 59h
  6031.     BX = 0001h
  6032. Return: ES:DI -> hard error information packet (see below) for most recent
  6033.         hard (critical) error
  6034. SeeAlso: AH=59h/BX=0000h,AH=95h,INT 24
  6035.  
  6036. Format of hard error information packet:
  6037. Offset    Size    Description
  6038.  00h    WORD    contents of AX at system entry
  6039.  02h    WORD    Process ID which encountered error
  6040.  04h    WORD    contents of AX at time of error
  6041.  06h    BYTE    error type
  6042.         00h physical I/O error
  6043.         01h disk change request
  6044.         02h file sharing violation
  6045.         03h FCB problem
  6046.         04h file locking violation
  6047.         05h bad FAT
  6048.         06h network detected error
  6049.  07h    BYTE    INT 24 error code
  6050.  08h    WORD    extended error code (see AH=59h/BX=0000h)
  6051.  0Ah    DWORD    pointer to associated device
  6052. --------D-215A-------------------------------
  6053. INT 21 - DOS 3+ - CREATE TEMPORARY FILE
  6054.     AH = 5Ah
  6055.     CX = file attribute (see AX=4301h)
  6056.     DS:DX -> ASCIZ path ending with a '\' + 13 zero bytes to receive the
  6057.         generated filename
  6058. Return: CF clear if successful
  6059.         AX = file handle opened for read/write in compatibility mode
  6060.         DS:DX pathname extended with generated name for temporary file
  6061.     CF set on error
  6062.         AX = error code (03h,04h,05h) (see AH=59h)
  6063. Desc:    creates a file with a unique name which must be explicitly deleted
  6064. BUGS:    COMPAQ DOS 3.31 hangs if the pathname is at XXXXh:0000h; it apparently
  6065.       wraps around to the end of the segment
  6066.     MS-DOS 5.00 revisions A and B and PC-DOS 5.00 revision A reportedly
  6067.       hang the system if the specified path is the root directory and the
  6068.       root directory is full (no free directory entries)
  6069. Note:    under the FlashTek X-32 DOS extender, the path pointer is in DS:EDX
  6070. SeeAlso: AH=3Ch,AH=5Bh
  6071. --------D-215B-------------------------------
  6072. INT 21 - DOS 3+ - CREATE NEW FILE
  6073.     AH = 5Bh
  6074.     CX = file attribute (see AX=4301h)
  6075.     DS:DX -> ASCIZ filename
  6076. Return: CF clear if successful
  6077.         AX = file handle opened for read/write in compatibility mode
  6078.     CF set on error
  6079.         AX = error code (03h,04h,05h,50h) (see AH=59h)
  6080. Notes:    unlike AH=3Ch, this function will fail if the specified file exists
  6081.       rather than truncating it; this permits its use in creating semaphore
  6082.       files because it is an atomic "test and set" operation
  6083.     under the FlashTek X-32 DOS extender, the filename pointer is in DS:EDX
  6084. SeeAlso: AH=3Ch,AH=5Ah
  6085. --------D-215C-------------------------------
  6086. INT 21 - DOS 3+ - "FLOCK" - RECORD LOCKING
  6087.     AH = 5Ch
  6088.     AL = subfunction
  6089.         00h lock region of file
  6090.         01h unlock region of file
  6091.     BX = file handle
  6092.     CX:DX = start offset of region within file
  6093.     SI:DI = length of region in bytes
  6094. Return: CF clear if successful
  6095.     CF set on error
  6096.         AX = error code (01h,06h,21h,24h) (see AH=59h)
  6097. Notes:    error returned unless SHARE or network installed
  6098.     an unlock call must specify the same region as some prior lock call
  6099.     locked regions become entirely inaccessible to other processes
  6100.     duplicate handles created with AH=45h or AH=46h inherit locks, but
  6101.       handles inherited by child processes (see AH=4Bh) do not
  6102.     under DR-DOS 3.41 and 5.0, if a process opens a file without the no-
  6103.       inherit flag and then starts a child, any locks set by the parent
  6104.       are ignored, and the child will only get an error if it tries to
  6105.       lock an area previously locked by the parent process
  6106. SeeAlso: AX=440Bh,AH=BCh,AH=BEh,INT 2F/AX=110Ah,INT 2F/AX=110Bh
  6107. --------D-215D00-----------------------------
  6108. INT 21 U - DOS 3.1+ internal - SERVER FUNCTION CALL
  6109.     AX = 5D00h
  6110.     DS:DX -> DOS parameter list (see below)
  6111.     DPL contains all register values for a call to INT 21h
  6112. Return: as appropriate for function being called
  6113. Notes:    does not check AH.  Out of range values will crash the system
  6114.     executes using specified computer ID and process ID
  6115.     sharing delay loops skipped
  6116.     a special sharing mode is enabled to handle FCBs opened across network
  6117.     wildcards are enabled for DELETE (AH=41h) and RENAME (AH=56h) under
  6118.       MS-DOS; under DR-DOS 3.41, wildcards corrupt the filesystem; and
  6119.       under DR-DOS 5.0-6.0, the call returns error code 03h due to improper
  6120.       support for the server function call (see below)
  6121.     an extra file attribute parameter is enabled for OPEN (AH=3Dh),
  6122.       DELETE (AH=41h), and RENAME (AH=56h)
  6123.     functions which take filenames require canonical names (as returned
  6124.       by AH=60h); this is apparently to prevent multi-hop file forwarding
  6125. BUGS:    the OS/2 2.0 DOS Boot Session incorrectly maps DOS drive letters,
  6126.       seemingly ignoring HPFS drives
  6127.     DR-DOS 5.0-6.0 merely recursively call INT 21 after loading the
  6128.       registers from the DPL, leading to problems for peer-to-peer
  6129.       networks
  6130. SeeAlso: AH=3Dh,AH=41h,AH=56h,AH=60h
  6131.  
  6132. Format of DOS parameter list:
  6133. Offset    Size    Description
  6134.  00h    WORD    AX
  6135.  02h    WORD    BX
  6136.  04h    WORD    CX
  6137.  06h    WORD    DX
  6138.  08h    WORD    SI
  6139.  0Ah    WORD    DI
  6140.  0Ch    WORD    DS
  6141.  0Eh    WORD    ES
  6142.  10h    WORD    reserved (0)
  6143.  12h    WORD    computer ID (0 = current system)
  6144.  14h    WORD    process ID (PSP segment on specified computer)
  6145. Note:    under Windows Enhanced mode, the computer ID is normally the virtual
  6146.       machine ID (see INT 2F/AX=1683h), though this can reportedly be
  6147.       changed by setting UniqueDOSPSP= in SYSTEM.INI
  6148. --------D-215D01-----------------------------
  6149. INT 21 U - DOS 3.1+ internal - COMMIT ALL FILES FOR SPECIFIED COMPUTER/PROCESS
  6150.     AX = 5D01h
  6151.     DS:DX -> DOS parameter list (see AX=5D00h), only computer ID and
  6152.         process ID fields used
  6153. Return: CF set on error
  6154.         AX = error code (see AH=59h)
  6155.     CF clear if successful
  6156. Notes:    flushes buffers and updates directory entries for each file which has
  6157.       been written to; if remote file, calls INT 2F/AX=1107h
  6158.     the computer ID and process ID are stored but ignored under DOS 3.3
  6159.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  6160. SeeAlso: AH=0Dh,AH=68h,INT 2F/AX=1107h
  6161. --------D-215D02-----------------------------
  6162. INT 21 U - DOS 3.1+ internal - SHARE.EXE - CLOSE FILE BY NAME
  6163.     AX = 5D02h
  6164.     DS:DX -> DOS parameter list (see AX=5D00h), only fields DX, DS,
  6165.         computer ID, and process ID used
  6166.     DPL's DS:DX -> ASCIZ name of file to close
  6167. Return: CF set on error
  6168.         AX = error code (see AH=59h)
  6169.     CF clear if successful
  6170. Notes:    error unless SHARE is loaded (calls [SysFileTable-28h]) (see AH=52h)
  6171.     name must be canonical fully-qualified, such as returned by AH=60h
  6172.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  6173. SeeAlso: AX=5D03h,AX=5D04h,AH=3Eh,AH=60h
  6174. --------D-215D03-----------------------------
  6175. INT 21 U - DOS 3.1+ internal - SHARE.EXE - CLOSE ALL FILES FOR GIVEN COMPUTER
  6176.     AX = 5D03h
  6177.     DS:DX -> DOS parameter list (see AX=5D00h), only computer ID used
  6178. Return: CF set on error
  6179.         AX = error code (see AH=59h)
  6180.     CF clear if successful
  6181. Notes:    error unless SHARE is loaded (calls [SysFileTable-30h]) (see AH=52h)
  6182.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  6183. SeeAlso: AX=5D02h,AX=5D04h
  6184. --------D-215D04-----------------------------
  6185. INT 21 U - DOS 3.1+ internal - SHARE.EXE - CLOSE ALL FILES FOR GIVEN PROCESS
  6186.     AX = 5D04h
  6187.     DS:DX -> DOS parameter list (see AX=5D00h), only computer ID and
  6188.         process ID fields used
  6189. Return: CF set on error
  6190.         AX = error code (see AH=59h)
  6191.     CF clear if successful
  6192. Notes:    error unless SHARE is loaded (calls [SysFileTable-2Ch]) (see AH=52h)
  6193.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  6194. SeeAlso: AX=5D02h,AX=5D03h,INT 2F/AX=111Dh
  6195. --------D-215D05-----------------------------
  6196. INT 21 U - DOS 3.1+ internal - SHARE.EXE - GET OPEN FILE LIST ENTRY
  6197.     AX = 5D05h
  6198.     DS:DX -> DOS parameter list (see AX=5D00h)
  6199.     DPL's BX = index of sharing record (see AH=52h)
  6200.     DPL's CX = index of SFT in sharing record's SFT list
  6201. Return: CF clear if successful
  6202.         ES:DI -> ASCIZ filename
  6203.         BX = network machine number of SFT's owner
  6204.         CX = number of locks held by SFT's owner
  6205.     CF set if either index out of range
  6206.         AX = 0012h (no more files)
  6207. Notes:    error unless SHARE is loaded (calls [SysFileTable-18h]) (see AH=52h)
  6208.     names are always canonical fully-qualified, such as returned by AH=60h
  6209.     not supported by DR-DOS 3.41 and 5.0, but does not return an error
  6210. SeeAlso: AH=5Ch,AH=60h
  6211. --------D-215D06-----------------------------
  6212. INT 21 U - DOS 3.0+ internal - GET ADDRESS OF DOS SWAPPABLE DATA AREA
  6213.     AX = 5D06h
  6214. Return: CF set on error
  6215.        AX = error code (see AH=59h)
  6216.     CF clear if successful
  6217.         DS:SI -> nonreentrant data area (includes all three DOS stacks)
  6218.         (critical error flag is first byte)
  6219.         CX = size in bytes of area which must be swapped while in DOS
  6220.         DX = size in bytes of area which must always be swapped
  6221. Notes:    the Critical Error flag is used in conjunction with the InDOS flag
  6222.       (see AH=34h) to determine when it is safe to enter DOS from a TSR
  6223.     setting CritErr flag allows use of functions 50h/51h from INT 28h under
  6224.       DOS 2.x by forcing use of correct stack
  6225.     swapping the data area allows reentering DOS unless DOS is in a
  6226.       critical section delimited by INT 2A/AH=80h and INT 2A/AH=81h,82h
  6227.     under DOS 4.0, AX=5D0Bh should be used instead of this function
  6228.     SHARE and other DOS utilities consult the byte at offset 04h in the
  6229.       DOS data segment (see INT 2F/AX=1203h) to determine the SDA format
  6230.       in use: 00h = DOS 3.x, 01h = DOS 4.0-6.0, other = error.
  6231.     DR-DOS 3.41+ supports this function, but the SDA format beyond the
  6232.       first 18h bytes is completely different from MS-DOS
  6233. SeeAlso: AX=5D0Bh,INT 2A/AH=80h,INT 2A/AH=81h,INT 2A/AH=82h
  6234.  
  6235. Format of DOS 3.10-3.30 Swappable Data Area:
  6236. Offset    Size    Description
  6237.  -34    BYTE    (DOS 3.10+) printer echo flag (00h off, FFh active)
  6238.  -31    BYTE    (DOS 3.30) current switch character
  6239.  -28    BYTE    (DOS 3.30) incremented on each INT 21/AX=5E01h call
  6240.  -27 16 BYTEs    (DOS 3.30) machine name set by INT 21/AX=5E01h
  6241.  -11  5 WORDs    zero-terminated list of offsets which need to be patched to
  6242.         enable critical-section calls (see INT 2A/AH=80h)
  6243.  -1    BYTE    unused padding
  6244. ---start of actual SDA---
  6245.  00h    BYTE    critical error flag ("ErrorMode")
  6246.  01h    BYTE    InDOS flag (count of active INT 21 calls)
  6247.  02h    BYTE    drive on which current critical error occurred, or FFh
  6248.         (DR-DOS sets to drive number during INT 24, 00h otherwise)
  6249.  03h    BYTE    locus of last error
  6250.  04h    WORD    extended error code of last error
  6251.  06h    BYTE    suggested action for last error
  6252.  07h    BYTE    class of last error
  6253.  08h    DWORD    ES:DI pointer for last error
  6254.  0Ch    DWORD    current DTA
  6255.  10h    WORD    current PSP
  6256.  12h    WORD    stores SP across an INT 23
  6257.  14h    WORD    return code from last process termination (zerod after reading
  6258.         with AH=4Dh)
  6259.  16h    BYTE    current drive
  6260.  17h    BYTE    extended break flag
  6261. ---remainder need only be swapped if in DOS---
  6262.  18h    WORD    value of AX on call to INT 21
  6263.  1Ah    WORD    PSP segment for sharing/network
  6264.  1Ch    WORD    network machine number for sharing/network (0000h = us)
  6265.  1Eh    WORD    first usable memory block found when allocating memory
  6266.  20h    WORD    best usable memory block found when allocating memory
  6267.  22h    WORD    last usable memory block found when allocating memory
  6268.  24h    WORD    memory size in paragraphs (used only during initialization)
  6269.  26h    WORD    last entry checked during directory search
  6270.  28h    BYTE    flag: INT 24 returned Fail
  6271.  29h    BYTE    flags: allowable INT 24 actions (passed to INT 24 in AH)
  6272.  2Ah    BYTE    directory flag (00h directory, 01h file)
  6273.  2Bh    BYTE    flag: FFh if Ctrl-Break termination, 00h otherwise
  6274.  2Ch    BYTE    flag: allow embedded blanks in FCB
  6275.  2Dh    BYTE    padding (unused)
  6276.  2Eh    BYTE    day of month
  6277.  2Fh    BYTE    month
  6278.  30h    WORD    year - 1980
  6279.  32h    WORD    number of days since 1-1-1980
  6280.  34h    BYTE    day of week (0 = Sunday)
  6281.  35h    BYTE    flag: console swapped during read from device
  6282.  36h    BYTE    flag: safe to call INT 28 if nonzero
  6283.  37h    BYTE    flag: if nonzero, INT 24 Abort turned into INT 24 Fail
  6284.         (set only during process termination)
  6285.  38h 26 BYTEs    device driver request header (see INT 2F/AX=0802h)
  6286.  52h    DWORD    pointer to device driver entry point (used in calling driver)
  6287.  56h 22 BYTEs    device driver request header for I/O calls
  6288.  6Ch 14 BYTEs    device driver request header for disk status check
  6289.  7Ah    DWORD    pointer to device I/O buffer???
  6290.  7Eh    WORD    ???
  6291.  80h    WORD    ???
  6292.  82h    BYTE    type of PSP copy (00h=simple for INT 21/AH=26h, FFh=make child)
  6293.  83h    BYTE    padding (unused)
  6294.  84h  3 BYTEs    24-bit user number (see AH=30h)
  6295.  87h    BYTE    OEM number (see AH=30h)
  6296.  88h    WORD    offset to error code conversion table for INT 25/INT 26
  6297.  8Ah  6 BYTEs    CLOCK$ transfer record (see AH=52h)
  6298.  90h    BYTE    device I/O buffer for single-byte I/O functions
  6299.  91h    BYTE    padding??? (unused)
  6300.  92h 128 BYTEs    buffer for filename
  6301. 112h 128 BYTEs    buffer for filename
  6302. 192h 21 BYTEs    findfirst/findnext search data block (see AH=4Eh)
  6303. 1A7h 32 BYTEs    directory entry for found file (see AH=11h)
  6304. 1C7h 81 BYTEs    copy of current directory structure for drive being accessed
  6305. 218h 11 BYTEs    FCB-format filename for device name comparison
  6306. 223h    BYTE    terminating NUL for above filename
  6307. 224h 11 BYTEs    wildcard destination specification for rename (FCB format)
  6308. 22Fh    BYTE    terminating NUL for above spec
  6309. 230h    BYTE    ???
  6310. 231h    WORD    destination file/directory starting sector
  6311. 233h  5 BYTEs    ???
  6312. 238h    BYTE    extended FCB file attribute
  6313. 239h    BYTE    type of FCB (00h regular, FFh extended)
  6314. 23Ah    BYTE    directory search attributes
  6315. 23Bh    BYTE    file open/access mode
  6316. 23Ch    BYTE    file found/delete flag
  6317.         bit 0: file found
  6318.         bit 4: file deleted
  6319. 23Dh    BYTE    flag: device name found on rename, or file not found
  6320. 23Eh    BYTE    splice flag (file name and directory name together)
  6321. 23Fh    BYTE    flag indicating how DOS function was invoked
  6322.         (00h = direct INT 20/INT 21, FFh = server call AX=5D00h)
  6323. 240h    BYTE    sector position within cluster
  6324. 241h    BYTE    flag: translate sector/cluster (00h no, 01h yes)
  6325. 242h    BYTE    flag: 00h if read, 01h if write
  6326. 243h    BYTE    current working drive number
  6327. 244h    BYTE    cluster factor
  6328. 245h    BYTE    flag: cluster split mode
  6329. 246h    BYTE    line edit (AH=0Ah) insert mode flag (nonzero = on)
  6330. 247h    BYTE    canonicalized filename referred to existing file/dir if FFh
  6331. 248h    BYTE    volume ID flag
  6332. 249h    BYTE    type of process termination (00h-03h) (see AH=4Dh)
  6333. 24Ah    BYTE    file create flag (00h = no)
  6334. 24Bh    BYTE    value with which to replace first byte of deleted file's name
  6335.         (normally E5h, but 00h as described under INT 21/AH=13h)
  6336. 24Ch    DWORD    pointer to Drive Parameter Block for critical error invocation
  6337.         temp: used during process termination
  6338. 250h    DWORD    pointer to stack frame containing user registers on INT 21
  6339. 254h    WORD    stores SP across INT 24
  6340. 256h    DWORD    pointer to DOS Drive Parameter Block for ???
  6341. 25Ah    WORD    saving partial cluster number
  6342. 25Ch    WORD    temp: sector of work current cluster
  6343. 25Eh    WORD    high part of cluster number (only low byte referenced)
  6344. 260h    WORD    ??? temp
  6345. 262h    BYTE    Media ID byte returned by AH=1Bh,1Ch
  6346. 263h    BYTE    padding (unused)
  6347. 264h    DWORD    pointer to device header
  6348. 268h    DWORD    pointer to current SFT
  6349. 26Ch    DWORD    pointer to current directory structure for drive being accessed
  6350. 270h    DWORD    pointer to caller's FCB
  6351. 274h    WORD    number of SFT to which file being opened will refer
  6352. 276h    WORD    temporary storage for file handle
  6353. 278h    DWORD    pointer to a JFT entry in process handle table (see AH=26h)
  6354. 27Ch    WORD    offset in DOS DS of first filename argument
  6355. 27Eh    WORD    offset in DOS DS of second filename argument
  6356. 280h    WORD    offset of last component in pathname or FFFFh
  6357. 282h    WORD    offset of transfer address to add
  6358. 284h    WORD    last relative cluster within file being accessed
  6359. 286h    WORD    temp: absolute cluster number being accessed
  6360. 288h    WORD    directory sector number
  6361. 28Ah    WORD    ??? current cluster number
  6362. 28Ch    WORD    ??? current offset in file DIV bytes per sector
  6363. 28Eh    WORD    current sector number
  6364. 290h    WORD    current byte offset within sector
  6365. 292h    DWORD    current offset in file
  6366. 296h    DWORD    temp: file byte count
  6367. 29Ah    WORD    temp: file byte count
  6368. 29Ch    WORD    free file cluster entry
  6369. 29Eh    WORD    last file cluster entry
  6370. 2A0h    WORD    next file cluster number
  6371. 2A2h    DWORD    number of bytes appended to file
  6372. 2A6h    DWORD    pointer to current work disk buffer
  6373. 2AAh    DWORD    pointer to working SFT
  6374. 2AEh    WORD    used by INT 21 dispatcher to store caller's BX
  6375. 2B0h    WORD    used by INT 21 dispatcher to store caller's DS
  6376. 2B2h    WORD    temporary storage while saving/restoring caller's registers
  6377. 2B4h    DWORD    pointer to prev call frame (offset 250h) if INT 21 reentered
  6378.         also switched to for duration of INT 24
  6379. 2B8h 21 BYTEs    FindFirst search data for source file(s) of a rename operation
  6380.         (see AH=4Eh)
  6381. 2CDh 32 BYTEs    directory entry for file being renamed (see AH=11h for format)
  6382. 2EDh 331 BYTEs    critical error stack
  6383.    403h     35 BYTEs scratch SFT
  6384. 438h 384 BYTEs    disk stack (functions greater than 0Ch, INT 25,INT 26)
  6385. 5B8h 384 BYTEs    character I/O stack (functions 01h through 0Ch)
  6386. ---DOS 3.2,3.3x only---
  6387. 738h    BYTE    device driver lookahead flag (usually printer) (see AH=64h)
  6388. 739h    BYTE    volume change flag
  6389. 73Ah    BYTE    flag: virtual open
  6390. 73Bh    BYTE    ???
  6391. --------D-215D07-----------------------------
  6392. INT 21 U - DOS 3.1+ network - GET REDIRECTED PRINTER MODE
  6393.     AX = 5D07h
  6394. Return: DL = mode
  6395.         00h redirected output is combined
  6396.         01h redirected output in separate print jobs
  6397. SeeAlso: AX=5D08h,AX=5D09h,INT 2F/AX=1125h
  6398. --------D-215D08-----------------------------
  6399. INT 21 U - DOS 3.1+ network - SET REDIRECTED PRINTER MODE
  6400.     AX = 5D08h
  6401.     DL = mode
  6402.         00h redirected output is combined
  6403.         01h redirected output placed in separate jobs, start new print job
  6404.         now
  6405. SeeAlso: AX=5D07h,AX=5D09h,INT 2F/AX=1125h
  6406. --------D-215D09-----------------------------
  6407. INT 21 U - DOS 3.1+ network - FLUSH REDIRECTED PRINTER OUTPUT
  6408.     AX = 5D09h
  6409. Notes:    forces redirected printer output to be printed, and starts a new print
  6410.       job
  6411.     this function is also supported by 10Net, which calls it Terminate All
  6412.       Spool Jobs, and does not flush if in "combine" mode
  6413. SeeAlso: AX=5D07h,AX=5D08h,INT 2F/AX=1125h
  6414. --------D-215D0A-----------------------------
  6415. INT 21 - DOS 3.1+ - SET EXTENDED ERROR INFORMATION
  6416.     AX = 5D0Ah
  6417.     DS:DX -> 11-word DOS parameter list (see AX=5D00h)
  6418. Return: nothing.  next call to AH=59h will return values from fields AX,BX,CX,
  6419.       DX,DI, and ES in corresponding registers
  6420. Notes:    documented for DOS 5+, but undocumented in earlier versions
  6421.     the MS-DOS Programmer's Reference incorrectly states that this call was
  6422.       introduced in DOS 4, and fails to mention that the ERROR structure
  6423.       passed to this function is a DOS parameter list.
  6424. BUG:    DR-DOS 3.41 and 5.0 read the value for ES from the DS field of the DPL;
  6425.       fortunately, MS-DOS ignores the DS field, allowing a generic routine
  6426.       which sets both DS and ES fields to the same value
  6427. SeeAlso: AH=59h
  6428. --------D-215D0B-----------------------------
  6429. INT 21 OU - DOS 4.x only internal - GET DOS SWAPPABLE DATA AREAS
  6430.     AX = 5D0Bh
  6431. Return: CF set on error
  6432.         AX = error code (see AH=59h)
  6433.     CF clear if successful
  6434.         DS:SI -> swappable data area list (see below)
  6435. Notes:    copying and restoring the swappable data areas allows DOS to be
  6436.       reentered unless it is in a critical section delimited by calls to
  6437.       INT 2A/AH=80h and INT 2A/AH=81h,82h
  6438.     SHARE and other DOS utilities consult the byte at offset 04h in the
  6439.       DOS data segment (see INT 2F/AX=1203h) to determine the SDA format
  6440.       in use: 00h = DOS 3.x, 01h = DOS 4.0-6.0, other = error.
  6441.     DOS 5+ use the SDA format listed below, but revert back to the DOS 3.x
  6442.       call for finding the SDA (see AX=5D06h)
  6443. SeeAlso: AX=5D06h,INT 2A/AH=80h,INT 2A/AH=81h,INT 2A/AH=82h,INT 2F/AX=1203h
  6444.  
  6445. Format of DOS 4.x swappable data area list:
  6446. Offset    Size    Description
  6447.  00h    WORD    count of data areas
  6448.  02h  N BYTEs    "count" copies of data area record
  6449.         Offset    Size    Description
  6450.          00h    DWORD    address
  6451.          04h    WORD    length and type
  6452.                 bit 15 set if swap always, clear if swap in DOS
  6453.                 bits 14-0: length in bytes
  6454.  
  6455. Format of DOS 4.0-6.0 swappable data area:
  6456. Offset    Size    Description
  6457.  -34    BYTE    printer echo flag (00h off, FFh active)
  6458.  -31    BYTE    current switch character (ignored by DOS 5+)
  6459.  -28    BYTE    incremented on each INT 21/AX=5E01h call
  6460.  -27 16 BYTEs    machine name set by INT 21/AX=5E01h
  6461.  -11  5 WORDs    zero-terminated list of offsets which need to be patched to
  6462.         enable critical-section calls (see INT 2A/AH=80h)
  6463.         (all offsets are 0D0Ch, but this list is still present for
  6464.         DOS 3.x compatibility)
  6465.  -1    BYTE    unused padding
  6466. ---start of actual SDA---
  6467.  00h    BYTE    critical error flag ("ErrorMode")
  6468.  01h    BYTE    InDOS flag (count of active INT 21 calls)
  6469.  02h    BYTE    drive on which current critical error occurred or FFh
  6470.  03h    BYTE    locus of last error
  6471.  04h    WORD    extended error code of last error
  6472.  06h    BYTE    suggested action for last error
  6473.  07h    BYTE    class of last error
  6474.  08h    DWORD    ES:DI pointer for last error
  6475.  0Ch    DWORD    current DTA
  6476.  10h    WORD    current PSP
  6477.  12h    WORD    stores SP across an INT 23
  6478.  14h    WORD    return code from last process termination (zerod after reading
  6479.         with AH=4Dh)
  6480.  16h    BYTE    current drive
  6481.  17h    BYTE    extended break flag
  6482.  18h    BYTE    flag: code page switching
  6483.  19h    BYTE    flag: copy of previous byte in case of INT 24 Abort
  6484. ---remainder need only be swapped if in DOS---
  6485.  1Ah    WORD    value of AX on call to INT 21
  6486.  1Ch    WORD    PSP segment for sharing/network
  6487.  1Eh    WORD    network machine number for sharing/network (0000h = us)
  6488.  20h    WORD    first usable memory block found when allocating memory
  6489.  22h    WORD    best usable memory block found when allocating memory
  6490.  24h    WORD    last usable memory block found when allocating memory
  6491.  26h    WORD    memory size in paragraphs (used only during initialization)
  6492.  28h    WORD    last entry checked during directory search
  6493.  2Ah    BYTE    flag: nonzero if INT 24 Fail
  6494.  2Bh    BYTE    flags: allowable INT 24 responses (passed to INT 24 in AH)
  6495.  2Ch    BYTE    flag: do not set directory if nonzero
  6496.  2Dh    BYTE    flag: program aborted by ^C
  6497.  2Eh    BYTE    flag: allow embedded blanks in FCB
  6498.  2Fh    BYTE    padding (unused)
  6499.  30h    BYTE    day of month
  6500.  31h    BYTE    month
  6501.  32h    WORD    year - 1980
  6502.  34h    WORD    number of days since 1-1-1980
  6503.  36h    BYTE    day of week (0 = Sunday)
  6504.  37h    BYTE    flag: console swapped during read from device
  6505.  38h    BYTE    flag: safe to call INT 28 if nonzero
  6506.  39h    BYTE    flag: abort currently in progress, turn INT 24 Abort into Fail
  6507.  3Ah 30 BYTEs    device driver request header (see INT 2F/AX=0802h) for
  6508.         device calls
  6509.  58h    DWORD    pointer to device driver entry point (used in calling driver)
  6510.  5Ch 22 BYTEs    device driver request header for I/O calls
  6511.  72h 14 BYTEs    device driver request header for disk status check
  6512.  80h    DWORD    pointer to device I/O buffer
  6513.  84h    WORD    ???
  6514.  86h    WORD    ??? (0)
  6515.  88h    BYTE    type of PSP copy (00h=simple for INT 21/AH=26h, FFh=make child)
  6516.  89h    DWORD    start offset of file region to lock/unlock
  6517.  8Dh    DWORD    length of file region to lock/unlock
  6518.  91h    BYTE    padding (unused)
  6519.  92h  3 BYTEs    24-bit user number (see AH=30h)
  6520.  95h    BYTE    OEM number (see AH=30h)
  6521.  96h  6 BYTEs    CLOCK$ transfer record (see AH=52h)
  6522.  9Ch    BYTE    device I/O buffer for single-byte I/O functions???
  6523.  9Dh    BYTE    padding???
  6524.  9Eh 128 BYTEs    buffer for filename
  6525. 11Eh 128 BYTEs    buffer for filename
  6526. 19Eh 21 BYTEs    findfirst/findnext search data block (see AH=4Eh)
  6527. 1B3h 32 BYTEs    directory entry for found file (see AH=11h)
  6528. 1D3h 88 BYTEs    copy of current directory structure for drive being accessed
  6529. 22Bh 11 BYTEs    FCB-format filename for device name comparison
  6530. 236h    BYTE    terminating NUL for above filename
  6531. 237h 11 BYTEs    wildcard destination specification for rename (FCB format)
  6532. 242h    BYTE    terminating NUL for above spec
  6533. 243h    BYTE    ???
  6534. 244h    WORD    ???
  6535. 246h  5 BYTEs    ???
  6536. 24Bh    BYTE    extended FCB file attributes
  6537. 24Ch    BYTE    type of FCB (00h regular, FFh extended)
  6538. 24Dh    BYTE    directory search attributes
  6539. 24Eh    BYTE    file open/access mode
  6540. 24Fh    BYTE    ??? flag bits
  6541. 250h    BYTE    flag: device name found on rename, or file not found
  6542. 251h    BYTE    splice flag??? (file name and directory name together)
  6543. 252h    BYTE    flag indicating how DOS function was invoked
  6544.         (00h = direct INT 20/INT 21, FFh = server call AX=5D00h)
  6545. 253h    BYTE    ???
  6546. 254h    BYTE    ???
  6547. 255h    BYTE    ???
  6548. 256h    BYTE    ???
  6549. 257h    BYTE    ???
  6550. 258h    BYTE    ???
  6551. 259h    BYTE    ???
  6552. 25Ah    BYTE    canonicalized filename referred to existing file/dir if FFh
  6553. 25Bh    BYTE    ???
  6554. 25Ch    BYTE    type of process termination (00h-03h)
  6555. 25Dh    BYTE    ???
  6556. 25Eh    BYTE    ???
  6557. 25Fh    BYTE    ???
  6558. 260h    DWORD    pointer to Drive Parameter Block for critical error invocation
  6559. 264h    DWORD    pointer to stack frame containing user registers on INT 21
  6560. 268h    WORD    stores SP???
  6561. 26Ah    DWORD    pointer to DOS Drive Parameter Block for ???
  6562. 26Eh    WORD    segment of disk buffer
  6563. 270h    WORD    ???
  6564. 272h    WORD    ???
  6565. 274h    WORD    ???
  6566. 276h    WORD    ???
  6567. 278h    BYTE    Media ID byte returned by AH=1Bh,1Ch
  6568. 279h    BYTE    ??? (doesn't seem to be referenced)
  6569. 27Ah    DWORD    pointer to ???
  6570. 27Eh    DWORD    pointer to current SFT
  6571. 282h    DWORD    pointer to current directory structure for drive being accessed
  6572. 286h    DWORD    pointer to caller's FCB
  6573. 28Ah    WORD    SFT index to which file being opened will refer
  6574. 28Ch    WORD    temporary storage for file handle
  6575. 28Eh    DWORD    pointer to a JFT entry in process handle table (see AH=26h)
  6576. 292h    WORD    offset in DOS DS of first filename argument
  6577. 294h    WORD    offset in DOS DS of second filename argument
  6578. 296h    WORD    ???
  6579. 298h    WORD    ???
  6580. 29Ah    WORD    ???
  6581. 29Ch    WORD    ???
  6582. 29Eh    WORD    ???
  6583. 2A0h    WORD    ???
  6584. 2A2h    WORD    ??? directory cluster number???
  6585. 2A4h    DWORD    ???
  6586. 2A8h    DWORD    ???
  6587. 2ACh    WORD    ???
  6588. 2AEh    DWORD    offset in file???
  6589. 2B2h    WORD    ???
  6590. 2B4h    WORD    bytes in partial sector
  6591. 2B6h    WORD    number of sectors
  6592. 2B8h    WORD    ???
  6593. 2BAh    WORD    ???
  6594. 2BCh    WORD    ???
  6595. 2BEh    DWORD    number of bytes appended to file
  6596. 2C2h    DWORD    pointer to ??? disk buffer
  6597. 2C6h    DWORD    pointer to ??? SFT
  6598. 2CAh    WORD    used by INT 21 dispatcher to store caller's BX
  6599. 2CCh    WORD    used by INT 21 dispatcher to store caller's DS
  6600. 2CEh    WORD    temporary storage while saving/restoring caller's registers
  6601. 2D0h    DWORD    pointer to prev call frame (offset 264h) if INT 21 reentered
  6602.         also switched to for duration of INT 24
  6603. 2D4h    WORD    open mode/action for INT 21/AX=6C00h
  6604. 2D6h    BYTE    ??? (set to 00h by INT 21h dispatcher, 02h when a read is
  6605.         performed, and 01h or 03h by INT 21/AX=6C00h)
  6606. 2D7h    WORD    ??? apparently unused
  6607. 2D9h    DWORD    stored ES:DI for AX=6C00h
  6608. 2DDh    WORD    extended file open action code (see AX=6C00h)
  6609. 2DFh    WORD    extended file open attributes (see AX=6C00h)
  6610. 2E1h    WORD    extended file open file mode (see AX=6C00h)
  6611. 2E3h    DWORD    pointer to filename to open (see AX=6C00h)
  6612. 2E7h    WORD    ???
  6613. 2E9h    WORD    ???
  6614. 2EBh    BYTE    ???
  6615. 2ECh    WORD    stores DS during call to [List-of-Lists + 37h]
  6616. 2EEh    WORD    ???
  6617. 2F0h    BYTE    ???
  6618. 2F1h    WORD    ??? bit flags
  6619. 2F3h    DWORD    pointer to user-supplied filename
  6620. 2F7h    DWORD    pointer to ???
  6621. 2FBh    WORD    stores SS during call to [List-of-Lists + 37h]
  6622. 2FDh    WORD    stores SP during call to [List-of-Lists + 37h]
  6623. 2FFh    BYTE    flag, nonzero if stack switched in calling [List-of-Lists+37h]
  6624. 300h 21 BYTEs    FindFirst search data for source file(s) of a rename operation
  6625.         (see AH=4Eh)
  6626. 315h 32 BYTEs    directory entry for file being renamed (see AH=11h)
  6627. 335h 331 BYTEs    critical error stack
  6628. 480h 384 BYTEs    disk stack (functions greater than 0Ch, INT 25,INT 26)
  6629. 600h 384 BYTEs    character I/O stack (functions 01h through 0Ch)
  6630. 780h    BYTE    device driver lookahead flag (usually printer) (see AH=64h)
  6631. 781h    BYTE    volume change flag
  6632. 782h    BYTE    flag: virtual open
  6633. 783h    BYTE    ???
  6634. 784h    WORD    ???
  6635. 786h    WORD    ???
  6636. 788h    WORD    ???
  6637. 78Ah    WORD    ???
  6638. --------D-215E00-----------------------------
  6639. INT 21 - DOS 3.1+ network - GET MACHINE NAME
  6640.     AX = 5E00h
  6641.     DS:DX -> 16-byte buffer for ASCIZ machine name
  6642. Return: CF clear if successful
  6643.         CH = validity
  6644.         00h name invalid
  6645.         nonzero valid
  6646.             CL = NetBIOS number for machine name
  6647.             DS:DX buffer filled with blank-paded name
  6648.     CF set on error
  6649.         AX = error code (01h) (see AH=59h)
  6650. Note:    supported by OS/2 v1.3+ compatibility box, PC-NFS
  6651. SeeAlso: AX=5E01h
  6652. --------N-215E00-----------------------------
  6653. INT 21 - 10NET v5.0 - GET MACHINE NAME
  6654.     AX = 5E00h
  6655. Return: CL = redirector's NetBIOS name number
  6656.     ES:DI -> network node ID
  6657. SeeAlso: AX=5E01h"10NET"
  6658. --------D-215E01CH00-------------------------
  6659. INT 21 - DOS 3.1+ network - SET MACHINE NAME
  6660.     AX = 5E01h
  6661.     CH = 00h undefine name (make it invalid)
  6662.        <> 0     define name
  6663.     CL = name number
  6664.     DS:DX -> 15-character blank-padded ASCIZ name
  6665. SeeAlso: AX=5E00h
  6666. --------N-215E01-----------------------------
  6667. INT 21 - 10NET v5.0 - GET LOCAL 10NET CONFIGURATION TABLE
  6668.     AX = 5E01h
  6669.     CX = length of buffer
  6670.     DS:DX -> buffer for 10Net configuration table
  6671. SeeAlso: AX=5E00h"10NET",INT 6F/AH=02h,INT 6F/AH=03h
  6672.  
  6673. Format of 10Net Configuration Table:
  6674. Offset    Size    Description
  6675.  00h  8 BYTEs    user name
  6676.  08h 15 BYTEs    node ID
  6677.  17h  3 BYTEs    unique portion of Ethernet address
  6678.  1Ah    BYTE    Who group number
  6679.  1Bh    WORD    services mask (see below)
  6680.  1Dh    DWORD    serial number
  6681.  21h    BYTE    maximum concurrent users with same serial number allowed on net
  6682.  22h    BYTE    chat mask (see below)
  6683.  23h    BYTE    internal system bits (see below)
  6684.  24h  9 BYTEs    version number in format MM.mm.xxx
  6685.  2Dh    BYTE    flag: 01h if machine is a PS/2
  6686.  2Eh    BYTE    flag: 03h if 80386
  6687.  2Fh    BYTE    spool termination mode: 01h concatenate, 02h truncate
  6688.         (see AX=5D09h)
  6689.  30h    WORD    autospool timeout in clock ticks
  6690.  32h    WORD    monitor timeout in clock ticks
  6691.  34h    WORD    unused
  6692.  36h    WORD    chat timeout in clock ticks
  6693.  38h    WORD    netBIOS session timeout in half-seconds
  6694.  3Ah    WORD    datagram send timeout in seconds
  6695.  3Ch    WORD    keyboard value for initiating chat mode
  6696.  3Eh    WORD    Who timeout in clock ticks
  6697.  40h    BYTE    flag: 01h if server should process rom NetBIOS Post return
  6698.  41h    BYTE    flag: 01h if FCBs should be recycled
  6699.  42h  3 BYTEs    signature "DBG"
  6700.  45h    BYTE    last interrupt (21h or 6Fh)
  6701.  46h    BYTE    last INT 21 AH value
  6702.  47h    BYTE    last INT 6F AH value
  6703.  48h    WORD    last item posted
  6704.  4Ah    WORD    last item free-posted
  6705.  4Ch    WORD    last item handled by server
  6706.  4Eh    WORD    last redirector send NCB
  6707.  50h    WORD    last redirector receive NCB
  6708.  52h  4 BYTEs    signature "TABL"
  6709.  56h    WORD    offset of datagram buffer table header
  6710.  58h    WORD    offset of chat buffer table header
  6711.  5Ah    WORD    offset of Raw buffer table header
  6712.  5Ch    WORD    offset of Workstation buffer table header
  6713.  5Eh    WORD    offset of server receive-any table header
  6714.  60h    WORD    offset of Tiny buffer table header
  6715.  62h    WORD    offset of zero-length buffer table (NCBs)
  6716.  64h    WORD    offset of Rdr (Redirector Mount) table header
  6717.  66h    WORD    offset of Ntab (Redirector Session) table header
  6718.  68h    WORD    offset of FCB table header
  6719.  6Ah    WORD    offset of user file handle table header
  6720.  6Ch    WORD    offset of workstation printer RDR extension table header
  6721.  6Eh    WORD    offset of server shared device table header
  6722.  70h    WORD    offset of server connection table header
  6723.  72h    WORD    offset of server login table header
  6724.  74h    WORD    offset of server file table header
  6725.  76h    WORD    offset of server shared file table header
  6726.  78h    WORD    offset of server record lock table header
  6727.  7Ah    WORD    offset of remote printer claim table header
  6728.  7Ch    WORD    offset of remote printer device table header
  6729.  7Eh    WORD    offset of print server mount table header
  6730.  80h    WORD    offset of print server sessions table header
  6731.  82h    WORD    offset of print server print job structure table header
  6732.  84h    WORD    offset of print server pooled device table header
  6733.  86h    WORD    size of workstation buffer
  6734.  88h    WORD    size of server receive-any buffer
  6735.  8Ah    WORD    size of server raw I/O buffer
  6736.  8Ch  6 BYTEs    reserved
  6737.  92h    DWORD    pointer to profile pathname
  6738.  96h    BYTE    datagram retry count
  6739.  97h    BYTE    NetBIOS LAN adapter number
  6740.  98h  6 BYTEs    physical Ethernet address
  6741.  9Eh    BYTE    NetBIOS server name number
  6742.  9Fh    BYTE    NetBIOS redirector name number
  6743.  A0h    BYTE    10Net interrupt number
  6744.  A1h    BYTE    flag: chat is loaded
  6745.  A2h    BYTE    flag: INT 6F APIs permanently loaded
  6746.  A3h    BYTE    flag: file security present
  6747.  A4h    WORD    reserved
  6748.  A6h    BYTE    fixed mount bitmask for drives A:-H:
  6749.  A7h    BYTE    reserved
  6750.  A8h    WORD    10Net system flags (see below)
  6751.  AAh    BYTE    monitor flags (see below)
  6752.  ABh  5 BYTEs    reserved
  6753.  B0h    WORD    offset of monitor timer block
  6754.  B2h    WORD    offset of server timer block
  6755.  B4h    WORD    offset of chat timer block
  6756.  B6h    WORD    timer chain
  6757.  B8h  4 BYTEs    signature "TALS"
  6758.  BCh    WORD    number of 10Net sends
  6759.  BEh    WORD    number of 10Net receives
  6760.  C0h    WORD    number of no-buffer conditions
  6761.  C2h    WORD    number of dropped posted messages
  6762.  C4h    WORD    number of server NCB errors
  6763.  C6h    WORD    number of redirector NCB errors
  6764.  C8h    WORD    number of datagram send/receive errors
  6765.  CAh    WORD    number of dropped Whos
  6766.  CCh    WORD    number of dropped submits
  6767.  CEh    WORD    number of session aborts
  6768.  D0h    BYTE    number of NetBIOS interface-busy errors
  6769.  D1h    BYTE    last NetBIOS bad post command
  6770.  D2h    BYTE    last NetBIOS bad redirector command
  6771.  D3h    BYTE    do send datagram send/receive error command
  6772.  D4h    DWORD    -> DOS system parameter table
  6773.  D8h    WORD    number of DOS physical drives
  6774.  DAh    WORD    offset of DOS PSP field in DOS data segment
  6775.  DCh    WORD    offset of in-DOS flag in DOS data segment
  6776.  DEh    WORD    DOS data segment
  6777.  E0h    WORD    offset of DOS SFT in DOS data segment
  6778.  E2h    WORD    offset of number-of-physical-units field in DOS data segment
  6779.  E4h    WORD    10Net code segment
  6780.  E6h    WORD    10Net data segment
  6781.  E8h    WORD    10Net common server segment
  6782.  EAh    WORD    10Net file server segment
  6783.  ECh    WORD    10Net print server segment
  6784.  EEh    WORD    10Net remote printer segment
  6785. Note:    documentation lists field at offset D0h as a WORD, but all following
  6786.       offsets are as though it were a BYTE; if it is indeed a WORD, all
  6787.       offsets after D0h must be increased by one byte
  6788.  
  6789. Format of 10Net Table Header:
  6790. Offset    Size    Description
  6791.  -16  4 BYTEs    table identifier
  6792.  -12    WORD    peak number of tables allocated
  6793.  -10    WORD    number of tables currently in use
  6794.  -8    WORD    total number of tables
  6795.  -6    WORD    size of each table
  6796.  -4    WORD    offset of first allocated table
  6797.  -2    WORD    offset of first free table
  6798.  
  6799. Bitfields for services mask:
  6800.  bit 0    workstation
  6801.  bit 1    file server
  6802.  bit 2    print queue server
  6803.  bit 3    de-spool server
  6804.  
  6805. Bitfields for chat mask:
  6806.  bit 0    chat permitted
  6807.  bit 1    bell enabled
  6808.  bit 2    chat keyboard initiated
  6809.  bit 3    in INT 16 handler
  6810.  bit 4    in Get Input
  6811.  bit 5    display has timed out
  6812.  bit 6    chat is idle
  6813.  
  6814. Bitfields for internal system bits:
  6815.  bit 0    submit permitted
  6816.  bit 1    submit initiated
  6817.  bit 2    submit executing
  6818.  bit 3    internal client call/chat/spool/autospool
  6819.  bit 4    in spool termination
  6820.  bit 5    print permitted
  6821.  bit 6    waiting for keyboard input
  6822.  
  6823. Bitfields for 10Net System Flags:
  6824.  bit 0    in NetBIOS
  6825.  bit 1    processing INT 28
  6826.  bit 2    is server
  6827.  bit 3    in net user-DOS function
  6828.  bit 4    in DOS user-DOS function
  6829.  bit 5    in net for user non-DOS function
  6830.  bit 6    in server DOS function
  6831.  bit 7    in server non-DOS function
  6832.  bit 8    in terminate
  6833.  bit 10    in user on server request
  6834.  bit 13    in DOS for user on server
  6835.  bit 14    disable critical error handler
  6836.  
  6837. Bitfields for Monitor Flags:
  6838.  bit 0    waiting for monitor response
  6839.  bit 4    in monitor get-input routine
  6840.  bit 5    monitor display timeout
  6841.  bit 6    sensing for escape key
  6842. --------D-215E02-----------------------------
  6843. INT 21 - DOS 3.1+ network - SET NETWORK PRINTER SETUP STRING
  6844.     AX = 5E02h
  6845.     BX = redirection list index (see AX=5F02h)
  6846.     CX = length of setup string
  6847.     DS:SI -> setup string
  6848. Return: CF clear if successful
  6849.     CF set on error
  6850.         AX = error code (01h) (see AH=59h)
  6851. Note:    also supported by 10NET v5.0
  6852. SeeAlso: AX=5E03h,INT 2F/AX=111Fh
  6853. --------D-215E03-----------------------------
  6854. INT 21 - DOS 3.1+ network - GET NETWORK PRINTER SETUP STRING
  6855.     AX = 5E03h
  6856.     BX = redirection list index (see AX=5F02h)
  6857.     ES:DI -> 64-byte buffer for setup string
  6858. Return: CF clear if successful
  6859.         CX = length of setup string
  6860.         ES:DI buffer filled
  6861.     CF set on error
  6862.         AX = error code (01h) (see AH=59h)
  6863. Note:    also supported by 10NET v5.0, but 10NET is documented as using DS:SI
  6864.       instead of ES:DI
  6865. SeeAlso: AX=5E02h,INT 2F/AX=111Fh
  6866. --------D-215E04-----------------------------
  6867. INT 21 - DOS 3.1+ network - SET PRINTER MODE
  6868.     AX = 5E04h
  6869.     BX = redirection list index (see AX=5F02h)
  6870.     DX = mode
  6871.         bit 0: set if binary, clear if text (tabs expanded to blanks)
  6872. Return: CF set on error
  6873.         AX = error code (see AH=59h)
  6874.     CF clear if successful
  6875. Note:    calls INT 2F/AX=111Fh with 5E04h on stack
  6876. SeeAlso: AX=5E05h"DOS",INT 2F/AX=111Fh
  6877. --------N-215E04-----------------------------
  6878. INT 21 - 10NET v5.0 - INITIATE PRINT JOB
  6879.     AX = 5E04h
  6880.     BX = zero-based redirection list index (see AX=5F02h)
  6881.     DS:DX -> extended workstation printer setup structure (see below)
  6882. Return: CF clear if successful
  6883.     CF set on error
  6884.         AX = error code (see AH=59h)
  6885. SeeAlso: AX=5E05h"10NET",AX=5E06h"10NET"
  6886.  
  6887. Format of extended workstation printer setup structure:
  6888. Offset    Size    Description
  6889.  00h    BYTE    notification flags (see below)
  6890.  01h    BYTE    job control mask (see below)
  6891.  02h    WORD    days to retain file
  6892.  04h    WORD    test print length
  6893.  06h    BYTE    number of copies to print
  6894.  07h    BYTE    compression algorithm
  6895.  08h    BYTE    tab width (00h = don't expand)
  6896.  09h    BYTE    initiation type (00h normal, 01h non-spooled)
  6897.  0Ah 38 BYTEs    job start operation notification instructions
  6898.  30h 32 BYTEs    comment for job
  6899.  50h 64 BYTEs    output filename or non-spooled file
  6900.  
  6901. Bitfields for notification flags:
  6902.  bit 0    user at print start
  6903.  bit 1    operator at start, with reply
  6904.  bit 2    user at print completion
  6905.  bit 3    operator at completion, with reply
  6906.  bit 4    user on queue switch
  6907.  bit 5    operator on queue switch, with reply
  6908.  bit 6    user on print error
  6909.  
  6910. Bitfields for job control mask:
  6911.  bit 0    print banner page
  6912.  bit 1    eject page at end of job
  6913.  bit 2    mark as "held" (queue but don't print)
  6914.  bit 3    rush job (queue at top)
  6915.  bit 4    overwrite file with zeros before deletion
  6916.  bit 5    hyperspool if possible
  6917. --------D-215E05-----------------------------
  6918. INT 21 - DOS 3.1+ network - GET PRINTER MODE
  6919.     AX = 5E05h
  6920.     BX = redirection list index (see AX=5F02h)
  6921. Return: CF set on error
  6922.         AX = error code (see AH=59h)
  6923.     CF clear if successful
  6924.         DX = printer mode (see AX=5E04h)
  6925. Note:    calls INT 2F/AX=111Fh with 5E05h on stack
  6926. SeeAlso: AX=5E04h"DOS",INT 2F/AX=111Fh
  6927. --------N-215E05-----------------------------
  6928. INT 21 - 10NET v5.0 - TERMINATE PRINT JOB
  6929.     AX = 5E05h
  6930.     BX = zero-based redirection list index (see AX=5F02h)
  6931. Return: CF clear if successful
  6932.     CF set on error
  6933.         AX = error code (see AH=59h)
  6934. Note:    this call resets the spool termination mode to "truncate"
  6935.       (see AX=5D08h)
  6936. SeeAlso: AX=5E04h"10NET",AX=5E06h
  6937. --------N-215E06-----------------------------
  6938. INT 21 - 10NET v5.0 - GET/SET 10NET WORKSTATION PRINTER SETUP STRUCTURE
  6939.     AX = 5E06h
  6940.     BX = zero-based redirection list index (see AX=5F02h)
  6941.     CX = operation (06h set, 07h get)
  6942.     DS:DX -> buffer for setup structure (same as first nine bytes of
  6943.         workstation printer setup) (see AX=5E04h"10NET")
  6944. Return: CF clear if successful
  6945.         DS:DX buffer updated on get
  6946.     CF set on error
  6947.         AX = error code (see AH=59h)
  6948. SeeAlso: AX=5E04h"10NET",AX=5E05h"10NET"
  6949. --------D-215F00-----------------------------
  6950. INT 21 - DOS 3.1+ network - GET REDIRECTION MODE
  6951.     AX = 5F00h
  6952.     BL = redirection type
  6953.         03h printer
  6954.         04h disk drive
  6955. Return: CF set on error
  6956.         AX = error code (see AH=59h)
  6957.     CF clear if successful
  6958.         BH = redirection state
  6959.         00h off
  6960.         01h on
  6961. Note:    calls INT 2F/AX=111Eh with AX on top of the stack
  6962. SeeAlso: AX=5F01h,INT 2F/AX=111Eh
  6963. --------D-215F01-----------------------------
  6964. INT 21 - DOS 3.1+ network - SET REDIRECTION MODE
  6965.     AX = 5F01h
  6966.     BL = redirection type
  6967.         03h printer
  6968.         04h disk drive
  6969.     BH = redirection state
  6970.         00h off
  6971.         01h on
  6972. Return: CF set on error
  6973.         AX = error code (see AH=59h)
  6974.     CF clear if successful
  6975. Notes:    when redirection is off, the local device (if any) rather than the
  6976.       remote device is used
  6977.     calls INT 2F/AX=111Eh with AX on top of the stack
  6978. SeeAlso: AX=5F00h,INT 2F/AX=111Eh
  6979. --------D-215F02-----------------------------
  6980. INT 21 - DOS 3.1+ network - GET REDIRECTION LIST ENTRY
  6981.     AX = 5F02h
  6982.     BX = zero-based redirection list index
  6983.     CX = 0000h (LANtastic)
  6984.     DS:SI -> 16-byte buffer for ASCIZ local device name
  6985.     ES:DI -> 128-byte buffer for ASCIZ network name
  6986. Return: CF clear if successful
  6987.         BH = device status
  6988.         00h valid
  6989.         01h invalid
  6990.         BL = device type
  6991.         03h printer
  6992.         04h disk drive
  6993.         CX = user data previously set with AX=5F03h
  6994.         DS:SI and ES:DI buffers filled
  6995.         DX,BP destroyed
  6996.     CF set on error
  6997.         AX = error code (01h,12h) (see AH=59h)
  6998. Notes:    this function is passed through to INT 2F/AX=111Eh by the DOS kernel
  6999.     error code 12h is returned if BX is greater than the size of the list
  7000.     also supported by Banyan VINES, PC-NFS, LANtastic, and 10NET
  7001. SeeAlso: AX=5F03h,INT 2F/AX=111Eh
  7002. --------D-215F03-----------------------------
  7003. INT 21 - DOS 3.1+ network - REDIRECT DEVICE
  7004.     AX = 5F03h
  7005.     BL = device type
  7006.         03h printer
  7007.         04h disk drive
  7008.     CX = user data to save
  7009.         0000h for LANtastic
  7010.         4E57h ("NW") for NetWare 4.0 requester
  7011.     DS:SI -> ASCIZ local device name (16 bytes max)
  7012.     ES:DI -> ASCIZ network name + ASCIZ password (128 bytes max total)
  7013. Return: CF clear if successful
  7014.     CF set on error
  7015.         AX = error code (01h,03h,05h,08h,0Fh,12h) (see AH=59h)
  7016. Notes:    if device type is disk drive, DS:SI must point at either a null string
  7017.       or a string consisting the drive letter followed by a colon; if a
  7018.       null string, the network attempts to access the destination without
  7019.       redirecting a local drive
  7020.     the DOS kernel calls INT 2F/AX=111Eh with AX on top of the stack
  7021.     also supported by Banyan VINES, LANtastic, and 10NET
  7022. SeeAlso: AX=5F02h,AX=5F04h,INT 2F/AX=111Eh
  7023. --------D-215F04-----------------------------
  7024. INT 21 - DOS 3.1+ network - CANCEL REDIRECTION
  7025.     AX = 5F04h
  7026.     DS:SI -> ASCIZ local device name or path
  7027.     CX = 4E57h ("NW") for NetWare 4.0 requester
  7028. Return: CF clear if successful
  7029.     CF set on error
  7030.         AX = error code (01h,03h,05h,08h,0Fh,12h) (see AH=59h)
  7031. Notes:    the DS:SI string must be either a local device name, a drive letter
  7032.       followed by a colon, or a network directory beginning with two
  7033.       backslashes
  7034.     the DOS kernel calls INT 2F/AX=111Eh with AX on top of the stack
  7035.     also supported by Banyan VINES, LANtastic, and 10NET
  7036. SeeAlso: AX=5F03h,INT 2F/AX=111Eh
  7037. --------D-215F05-----------------------------
  7038. INT 21 - DOS 4+ network - GET EXTENDED REDIRECTION LIST ENTRY
  7039.     AX = 5F05h
  7040.     BX = redirection list index
  7041.     DS:SI -> buffer for ASCIZ source device name
  7042.     ES:DI -> buffer for destination ASCIZ network path
  7043. Return: CF set on error
  7044.         AX = error code (see AH=59h)
  7045.     CF clear if successful
  7046.         AX = server's network process ID handle (10NET)
  7047.         BH = device status flag (bit 0 clear if valid)
  7048.         BL = device type (03h if printer, 04h if drive)
  7049.         CX = stored parameter value (user data) from AX=5F03h
  7050.         BP = NETBIOS local session number
  7051.         DS:SI buffer filled
  7052.         ES:DI buffer filled
  7053. Notes:    the local session number allows sharing the redirector's session number
  7054.     if an error is caused on the NETBIOS LSN, the redirector may be unable
  7055.       to correctly recover from errors
  7056.     the DOS kernel calls INT 2F/AX=111Eh with AX on top of the stack
  7057.     supported by DR-DOS 5.0
  7058.     also supported by 10NET v5.0
  7059. SeeAlso: AX=5F06h"Network",INT 2F/AX=111Eh
  7060. --------O-215F05-----------------------------
  7061. INT 21 - STARLITE architecture - MAP LOCAL DRIVE LETTER TO REMOTE FILE SYSTEM
  7062.     AX = 5F05h
  7063.     DL = drive number (0=A:)
  7064.     DS:SI -> ASCIZ name of the object to map the drive to
  7065. Return: CF set on error
  7066.         AX = error code (see AH=59h)
  7067.     CF clear if successful
  7068. SeeAlso: AX=5F06h"STARLITE"
  7069. --------N-215F06-----------------------------
  7070. INT 21 U - Network - GET FULL REDIRECTION LIST
  7071.     AX = 5F06h
  7072.     ???
  7073. Return: ???
  7074. Notes:    similar to AX=5F02h and AX=5F05h, but also returns redirections
  7075.       excluded from those calls for various reasons
  7076.     calls INT 2F/AX=111Eh with AX on top of the stack
  7077. SeeAlso: AX=5F05h"DOS",INT 2F/AX=111Eh
  7078. --------O-215F06-----------------------------
  7079. INT 21 - STARLITE architecture - UNMAP DRIVE LETTER
  7080.     AX = 5F06h
  7081.     DL = drive to be unmapped (0=A:)
  7082. Return: CF set on error
  7083.         AX = error code (see AH=59h)
  7084.     CF clear if successful
  7085. SeeAlso: AX=5F05h"STARLITE"
  7086. --------D-215F07-----------------------------
  7087. INT 21 - DOS 5+ - ENABLE DRIVE
  7088.     AX = 5F07h
  7089.     DL = drive number (0=A:)
  7090. Return: CF clear if successful
  7091.     CF set on error
  7092.         AX = error code (0Fh) (see AH=59h)
  7093. Note:    simply sets the "valid" bit in the drive's CDS
  7094. SeeAlso: AH=52h,AX=5F08h"DOS"
  7095. --------O-215F07-----------------------------
  7096. INT 21 - STARLITE architecture - MAKE NAMED OBJECT AVAILABLE ON NETWORK
  7097.     AX = 5F07h
  7098.     DS:SI -> ASCIZ name of object to offer to network
  7099.     ES:DI -> ASCIZ name under which object will be known on the network
  7100.         MUST begin with three slashes
  7101. Return: CF set on error
  7102.         AX = error code (see AH=59h)
  7103.     CF clear if successful
  7104. SeeAlso: AX=5F08h"STARLITE"
  7105. --------D-215F08-----------------------------
  7106. INT 21 - DOS 5+ - DISABLE DRIVE
  7107.     AX = 5F08h
  7108.     DL = drive number (0=A:)
  7109. Return: CF clear if successful
  7110.     CF set on error
  7111.         AX = error code (0Fh) (see AH=59h)
  7112. Note:    simply clears the "valid" bit in the drive's CDS
  7113. SeeAlso: AH=52h,AX=5F07h"DOS"
  7114. --------O-215F08-----------------------------
  7115. INT 21 - STARLITE architecture - REMOVE GLOBAL NETWORK NAME OF OBJECT
  7116.     AX = 5F08h
  7117.     DS:SI -> ASCIZ network name (not local name) of object to unshare
  7118. Return: CF set on error
  7119.         AX = error code (see AH=59h)
  7120.     CF clear if successful
  7121. SeeAlso: AX=5F07h"STARLITE"
  7122. --------O-215F09-----------------------------
  7123. INT 21 - STARLITE architecture - BIND TO NETWORK DEVICE
  7124.     AX = 5F09h
  7125.     DS:DX -> ASCIZ name of the device driver to attach to
  7126. Return: CF set on error
  7127.         AX = error code (see AH=59h)
  7128.     CF clear if successful
  7129. Note:    the STARLITE distributed file system can attach to multiple networks
  7130.       simultaneously
  7131. SeeAlso: AX=5F0Ah
  7132. --------O-215F0A-----------------------------
  7133. INT 21 - STARLITE architecture - DETACH FROM NETWORK DEVICE
  7134.     AX = 5F0Ah
  7135.     DS:DX -> ASCIZ name of device driver to detach from
  7136. Return: CF set on error
  7137.         AX = error code (see AH=59h)
  7138.     CF clear if successful
  7139. SeeAlso: AX=5F09h
  7140. --------N-215F30-----------------------------
  7141. INT 21 U - LAN Manager Enhanced DOS - ???
  7142.     AX = 5F30h
  7143.     ???
  7144. Return: ???
  7145. --------N-215F32-----------------------------
  7146. INT 21 u - Named Pipes - LOCAL DosQNmPipeInfo
  7147.     AX = 5F32h
  7148.     BX = handle
  7149.     CX = size of _PIPEINFO structure
  7150.     DX = level (must be 0001h)
  7151.     DS:SI -> _PIPEINFO structure (see below)
  7152. Return: CF clear if successful
  7153.         _PIPEINFO structure filled in
  7154.     CF set on error
  7155.         AX = error code
  7156. Note:    this function was introduced by LAN Manager but is also supported by
  7157.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7158.       Machines, and others
  7159. SeeAlso: AX=5F33h,AX=5F34h
  7160.  
  7161. Format of _PIPEINFO structure:
  7162. Offset    Size    Description
  7163.  00h    WORD    size of outgoing buffer
  7164.  02h    WORD    size of incoming buffer
  7165.  04h    BYTE    maximum number of instances allowed
  7166.  05h    BYTE    current number of instances
  7167.  06h    BYTE    length of the name (including terminating NUL)
  7168.  07h  N BYTEs    name
  7169. --------N-215F33-----------------------------
  7170. INT 21 u - Named Pipes - LOCAL DosQNmPHandState
  7171.     AX = 5F33h
  7172.     BX = handle
  7173. Return: CF clear if successful
  7174.         AH = pipe mode bit mask (see below)
  7175.         AL = maximum number of instances
  7176.     CF set on error
  7177.         AX = error code
  7178. Note:    this function was introduced by LAN Manager but is also supported by
  7179.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7180.       Machines, and others
  7181. SeeAlso: AX=5F32h,AX=5F34h
  7182.  
  7183. Bitfields for pipe mode:
  7184.  bit 7    set if nonblocking, clear if blocking
  7185.  bit 6    set if server end, clear if client end
  7186.  bit 2    set if write in message mode, clear if write in byte mode
  7187.  bit 0    set if read in message mode, clear if read in byte mode
  7188. --------N-215F34-----------------------------
  7189. INT 21 u - Named Pipes - LOCAL DosSetNmPHandState
  7190.     AX = 5F34h
  7191.     BX = handle
  7192.     CX = pipe mode bit mask
  7193.         bit 15: set if nonblocking, clear if blocking
  7194.         bit     8: set if read in message mode, clear if read in byte mode
  7195. Return: CF clear if successful
  7196.     CF set if error
  7197.         AX = error code
  7198. Note:    this function was introduced by LAN Manager but is also supported by
  7199.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7200.       Machines, and others
  7201. SeeAlso: AX=5F32h,AX=5F33h,AX=5F36h
  7202. --------N-215F35-----------------------------
  7203. INT 21 u - Named Pipes - LOCAL DosPeekNmPipe
  7204.     AX = 5F35h
  7205.     BX = handle
  7206.     CX = buffer length
  7207.     DS:SI -> buffer
  7208. Return: CF clear if successful
  7209.         CX = bytes read
  7210.         SI = bytes left in the pipe
  7211.         DX = bytes left in the current message
  7212.         DI = pipe status
  7213.         0001h disconnected
  7214.         0002h listening
  7215.         0003h connected
  7216.         0004h closing
  7217.     CF set if error
  7218.         AX = error code
  7219. Note:    this function was introduced by LAN Manager but is also supported by
  7220.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7221.       Machines, and others
  7222. SeeAlso: AX=5F38h,AX=5F39h,AX=5F51h
  7223. --------N-215F36-----------------------------
  7224. INT 21 u - Named Pipes - LOCAL DosTransactNmPipe
  7225.     AX = 5F36h
  7226.     BX = handle
  7227.     CX = in buffer length
  7228.     DS:SI -> in buffer
  7229.     DX = out buffer length
  7230.     ES:DI -> out buffer
  7231. Return: CF clear if successful
  7232.         CX = bytes read
  7233.     CF set on error
  7234.         AX = error code
  7235. Note:    this function was introduced by LAN Manager but is also supported by
  7236.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7237.       Machines, and others
  7238. SeeAlso: AX=5F34h,AX=5F37h
  7239. --------N-215F37-----------------------------
  7240. INT 21 u - Named Pipes - DosCallNmPipe
  7241.     AX = 5F37h
  7242.     DS:SI -> DosCallNmPipe stack frame (see below)
  7243. Return: CF clear if successful
  7244.         CX = bytes read
  7245.     CF set on error
  7246.         AX = error code
  7247. Note:    this function was introduced by LAN Manager but is also supported by
  7248.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7249.       Machines, and others
  7250. SeeAlso: AX=5F36h,AX=5F38h
  7251.  
  7252. Format of DosCallNmPipe stack frame:
  7253. Offset    Size    Description
  7254.  00h    DWORD    timeout
  7255.  04h    DWORD    -> bytes read WORD (not used!!)
  7256.  08h    WORD    out buffer length
  7257.  0Ah    DWORD    address of out buffer
  7258.  0Eh    WORD    in buffer length
  7259.  10h    DWORD    address of in buffer
  7260.  14h    DWORD    address of pipe name
  7261. --------N-215F38-----------------------------
  7262. INT 21 u - Named Pipes - LOCAL DosWaitNmPipe - AWAIT AVAIL. OF PIPE INSTANCE
  7263.     AX = 5F38h
  7264.     DS:DX -> pipe name
  7265.     BX:CX = timeout value
  7266. Return: CF clear if successful
  7267.     CF set if error
  7268.         AX = error code
  7269. Notes:    when a client gets a return code of ERROR_PIPE_BUSY on attempting to
  7270.       open a pipe, it should issue this call to wait until the pipe
  7271.       instance becomes available again; on return from this call, the
  7272.       client must attempt to open the pipe once again
  7273.     this function was introduced by LAN Manager but is also supported by
  7274.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7275.       Machines, and others
  7276. SeeAlso: AX=5F37h,AX=5F39h
  7277. --------N-215F39-----------------------------
  7278. INT 21 U - Named Pipes - LOCAL DosRawReadNmPipe
  7279.     AX = 5F39h
  7280.     BX = handle
  7281.     CX = buffer length
  7282.     DS:DX -> buffer
  7283. Return: CF clear if successful
  7284.         CX = bytes read
  7285.     CF set if error
  7286.         AX = error code
  7287. Notes:    this function was introduced by LAN Manager but is also supported by
  7288.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7289.       Machines, and others
  7290.     not documented in the LAN Manager Toolkit
  7291. SeeAlso: AX=5F35h,AX=5F3Ah,INT 2F/AX=1186h
  7292. --------N-215F3A-----------------------------
  7293. INT 21 U - Named Pipes - LOCAL DosRawWriteNmPipe
  7294.     AX = 5F3Ah
  7295.     BX = handle
  7296.     CX = buffer length
  7297.     DS:DX -> buffer
  7298. Return: CF clear if successful
  7299.         CX = bytes written
  7300.     CF set if error
  7301.         AX = error code
  7302. Notes:    this function was introduced by LAN Manager but is also supported by
  7303.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7304.       Machines, and others
  7305.     not documented in the LAN Manager Toolkit
  7306. SeeAlso: AX=5F39h,AX=5F3Bh,INT 2F/AX=118Fh
  7307. --------N-215F3B-----------------------------
  7308. INT 21 u - LAN Manager Enhanced DOS - NetHandleSetInfo
  7309.     AX = 5F3Bh
  7310.     BX = handle
  7311.     CX = handle_info_1 structure length or sizeof DWORD
  7312.     DI = parameter number to set
  7313.         0000h all
  7314.         0001h number of milliseconds
  7315.         0002h number of characters
  7316.     DS:DX -> handle_info_1 structure (DI=0000h) (see below)
  7317.         or DWORD (DI=0001h or 0002h)
  7318.     SI = level of information (0001h)
  7319. Return: CF clear if successful
  7320.         CX = total bytes available
  7321.     CF set if error
  7322.         AX = error code
  7323. SeeAlso: AX=5F3Ch
  7324.  
  7325. Format of handle_info_1 structure:
  7326. Offset    Size    Description
  7327.  00h    DWORD    number of milliseconds which workstation collects data before
  7328.         it sends the data to the named pipe
  7329.  04h    DWORD    number of characters which workstation collects before it
  7330.         sends the data to the named pipe
  7331. --------N-215F3C-----------------------------
  7332. INT 21 u - LAN Manager Enhanced DOS - NetHandleGetInfo
  7333.     AX = 5F3Ch
  7334.     BX = handle
  7335.     CX = length of handle_info_1 structure
  7336.     DS:DX -> handle_info_1 structure (see AX=5F3Bh)
  7337.     SI = level of information (must be 0001h)
  7338. Return: CF clear if successful
  7339.         CX = total bytes available
  7340.     CF set if error
  7341.         AX = error code
  7342. SeeAlso: AX=5F3Bh
  7343. --------N-215F3D-----------------------------
  7344. INT 21 U - LAN Manager Enhanced DOS - WRITE MAILSLOT???
  7345.     AX = 5F3Dh
  7346.     ???
  7347. Return: ???
  7348. --------N-215F3E-----------------------------
  7349. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetSpecialSMB
  7350.     AX = 5F3Eh
  7351.     ???
  7352. Return: ???
  7353. Note:    This function is not documented anywhere in the LAN Manager 2.x Toolkit
  7354.       but was documented in LAN Manager 1.x manuals.
  7355. --------N-215F3F-----------------------------
  7356. INT 21 U - LAN Manager Enhanced DOS - REMOTE API CALL
  7357.     AX = 5F3Fh
  7358.     CX = api number
  7359.     ES:DI -> data descriptor
  7360.     ES:SI -> parameter descriptor
  7361.     ES:DX -> auxiliary descriptor (if DX <> 0)
  7362.     ???
  7363. Return: ???
  7364. --------N-215F40-----------------------------
  7365. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetMessageBufferSend
  7366.     AX = 5F40h
  7367.     DS:DX -> NetMessageBufferSend parameter structure (see below)
  7368. Return: AX = error code
  7369.  
  7370. Format of NetMessageBufferSend parameter structure:
  7371. Offset    Size    Description
  7372.  00h    DWORD    -> recipient name (name for specific user, name* for domain
  7373.             name wide, * for broadcast)
  7374.  04h    DWORD    -> buffer
  7375.  08h    WORD    length of buffer
  7376. --------N-215F41-----------------------------
  7377. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetServiceEnum
  7378.     AX = 5F41h
  7379.     BL = level of detail (0000h, 0001h or 0002h)
  7380.     CX = buffer length
  7381.     ES:DI -> buffer of service_info_0, service_info_1, or service_info_2
  7382.         (see below)
  7383. Return: CF clear if successful
  7384.         CX = entries read
  7385.         DX = total available
  7386.     CF set on error
  7387.         AX = error code
  7388.  
  7389. Format of service_info_0 structure:
  7390. Offset    Size    Description
  7391.  00h 16 BYTEs    name
  7392.  
  7393. Format of service_info_1 structure:
  7394. Offset    Size    Description
  7395.  00h 16 BYTEs    name
  7396.  10h    WORD    status bitmask (see below)
  7397.  12h    DWORD    status code (see below)
  7398.         (also see Microsoft LAN Manager Programmer's Reference)
  7399.  16h    WORD    process id
  7400.  
  7401. Format of service_info_2 structure:
  7402. Offset    Size    Description
  7403.  00h 16 BYTEs    name
  7404.  10h    WORD    status bitmask (see below)
  7405.  12h    DWORD    status code (see below)
  7406.  16h    WORD    process id
  7407.  18h 64 BYTEs    text
  7408.  
  7409. Bitfields for status bitmask:
  7410.  bits 0,1    00 uninstall
  7411.         01 install pending
  7412.         10 uninstall pending
  7413.         11 installed
  7414.  bits 2,3    00 active
  7415.         01 Continue pending
  7416.         10 Pause pending
  7417.         11 paused
  7418.  bit 4    uninstallable
  7419.  bit 5    pausable
  7420.  bit 8    disk redirector paused
  7421.  bit 9    spooled device redirector paused (printing)
  7422.  bit 10 communication device redirector paused
  7423.  
  7424. Values for status code:
  7425.  high word
  7426.     3051 Bad parameter value
  7427.     3052 A parameter is missing
  7428.     3053 An unknown parameter was specified
  7429.     3054 The resource is insufficient
  7430.     3055 Configuration is faulty
  7431.     3056 An MS-DOS or MS OS/2 error occured
  7432.     3057 An internal error occured
  7433.     3058 An ambiguous parameter name was given
  7434.     3059 A duplicate parameter exists
  7435.     3060 The service was terminated by NetSeviceControl when it did not respond
  7436.     3061 The service program file could not be executed
  7437.     3062 The subservice failed to start
  7438.     3063 There is a conflict in the value or use of these parameters
  7439.     3064 There is a problem with the file
  7440.  low word
  7441.     3070 There is insufficient memory
  7442.     3071 There is insufficeient disk space
  7443.     3072 Unable to create thread
  7444.     3073 Unable to create process
  7445.     3074 A security failure occured
  7446.     3075 There is bad or missing default path
  7447.     3076 Network software is not installed
  7448.     3077 Server software is not installed
  7449.     3078 The server could not access the UAS database
  7450.     3079 The action requires user-level security
  7451.     3080 The log directory is invalid
  7452.     3081 The LAN group specificed could not be used
  7453.     3082 The computername is being used as a message alias on another computer
  7454.     3083 The workstation failed to announce the servername
  7455.     3084 The user accounts system is not configured properly
  7456. --------N-215F42-----------------------------
  7457. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetServiceControl
  7458.     AX = 5F42h
  7459.     DH = opcode
  7460.         00h interrogate status
  7461.         01h pause
  7462.         02h continue
  7463.         03h uninstall
  7464.     DL = argument
  7465.         01h disk resource
  7466.         02h print resource
  7467.         04h communications resource (not implemented for DOS)
  7468.     ES:BX -> NetServiceControl parameter structure (see below)
  7469. Return: CF clear if successful
  7470.     CF set on error
  7471.         AX = error code
  7472.  
  7473. Format of NetServiceControl parameter structure:
  7474. Offset    Size    Description
  7475.  00h    DWORD    -> service name
  7476.  04h    WORD    result buffer size
  7477.  06h    DWORD    -> result buffer as service_info_2 structure
  7478. --------N-215F43-----------------------------
  7479. INT 21 u - LAN Manager Enhanced DOS - LOCAL DosPrintJobGetId
  7480.     AX = 5F43h
  7481.     BX = handle of remote print job
  7482.     CX = size of PRIDINFO struture
  7483.     ES:DI -> PRIDINFO structure (see below)
  7484. Return: CF clear if successful
  7485.         PRIDINFO filled in
  7486.     CF set on error
  7487.         AX = error code
  7488.  
  7489. Format of PRIDINFO structure:
  7490. Offset    Size    Description
  7491.  00h    WORD    job id
  7492.  02h 16 BYTEs    server name
  7493.  12h 13 BYTEs    queue name
  7494.  1Fh  1 BYTE    pad
  7495. --------N-215F44-----------------------------
  7496. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetWkstaGetInfo
  7497.     AX = 5F44h
  7498.     BX = information level (00h, 01h, or 0Ah)
  7499.     CX = buffer size
  7500.     ES:DI -> buffer in which to store info
  7501. Return: AX = error code
  7502.     DX = amount of buffer used (or required)
  7503. SeeAlso: AX=5F45h,AX=5F49h
  7504. --------N-215F45-----------------------------
  7505. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetWkstaSetInfo
  7506.     AX = 5F45h
  7507.     BX = level (0000h or 0001h)
  7508.     CX = buffer size
  7509.     DX = parameter to set
  7510.     ES:DI -> buffer
  7511. Return: CF clear if successful
  7512.     CF set if error
  7513.         AX = error code
  7514. SeeAlso: AX=5F44h
  7515. --------N-215F46-----------------------------
  7516. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetUseEnum
  7517.     AX = 5F46h
  7518.     BX = level (0000h or 0001h)
  7519.     CX = size of buffer
  7520.     ES:DI -> buffer of use_info_0 or use_info_1 structures (see below)
  7521. Return: CF clear if successful
  7522.         CX = entries read
  7523.         DX = total available entries
  7524.     CF set if error
  7525.         AX = error code
  7526. SeeAlso: AX=5F47h,AX=5F48h,AX=5F4Ch
  7527.  
  7528. Format of use_info_0 structure:
  7529. Offset    Size    Description
  7530.  00h  9 BYTEs    local device name
  7531.  09h    BYTE    padding
  7532.  0Ah    DWORD    -> remote device name in UNC form \\server\share
  7533.  
  7534. Format of use_info_1 structure:
  7535. Offset    Size    Description
  7536.  00h  9 BYTEs    Local device name
  7537.  09h    BYTE    padding
  7538.  0Ah    DWORD    -> remote device name in UNC form \\server\share
  7539.  0Eh    DWORD    -> password
  7540.  12h    WORD    ignored
  7541.  14h    WORD    use type (-1 wildcard, 0 disk, 1 print, 2 com, 3 ipc)
  7542.  16h    WORD    ignored
  7543.  18h    WORD    ignored
  7544. --------N-215F47-----------------------------
  7545. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetUseAdd
  7546.     AX = 5F47h
  7547.     BX = level (0001h)
  7548.     CX = size of use_info_1 structure
  7549.     ES:DI -> use_info_1 structure (see AX=5F46h)
  7550. Return: CF clear on success
  7551.     CF set on error
  7552.         AX = error code
  7553. SeeAlso: AX=5F46h,AX=5F48h
  7554. --------N-215F48-----------------------------
  7555. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetUseDel
  7556.     AX = 5F48h
  7557.     BX = force level
  7558.         0000h no force
  7559.         0001h force
  7560.         0002h lots of force
  7561.     ES:DI -> buffer as either the local device name or UNC remote name
  7562. Return: CF clear on success
  7563.     CF set on error
  7564.         AX = error code
  7565. SeeAlso: AX=5F46h,AX=5F48h,AX=5F49h
  7566. --------N-215F49-----------------------------
  7567. INT 21 u - LAN Manager Enhanced DOS - NetUseGetInfo
  7568.     AX = 5F49h
  7569.     DS:DX -> NetUseGetInfo parameter structure
  7570. Return: CF clear on success
  7571.         DX = total available
  7572.     CF set on error
  7573.         AX = error code
  7574. SeeAlso: AX=5F44h,AX=5F47h
  7575.  
  7576. Format of NetUseGetInfo parameter structure:
  7577. Offset    Size    Description
  7578.  00h    DWORD    pointer to either the local device name or UNC remote name
  7579.  04h    WORD    level of information (0000h or 0001h)
  7580.  06h    DWORD    pointer to buffer of use_info_0 or use_info_1 structures
  7581.  0Ah    WORD    length of buffer
  7582. --------N-215F4A-----------------------------
  7583. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetRemoteCopy
  7584.     AX = 5F4Ah
  7585.     DS:DX -> NetRemoteCopy parameter structure
  7586. Return: CF clear if successful
  7587.     CF set on error
  7588.         AX = error code
  7589. SeeAlso: AX=5F4Bh
  7590.  
  7591. Format of NetRemoteCopy parameter structure:
  7592. Offset    Size    Description
  7593.  00h    DWORD    -> source name as UNC
  7594.  04h    DWORD    -> destination name as UNC
  7595.  08h    DWORD    -> source password
  7596.  0Ch    DWORD    -> destination password
  7597.  10h    WORD    destination open bitmap
  7598.         if destination path exists
  7599.             0000h open fails
  7600.             0001h file is appended
  7601.             0002h file is overwritten
  7602.         if destination path doesn't exist
  7603.             0000h open fails
  7604.             0010h file is created
  7605.  12h    WORD    copy control bitmap (see below)
  7606.  14h    DWORD    -> copy_info buffer
  7607.  18h    WORD    length of copy_info buffer
  7608.  
  7609. Bitfields for copy control:
  7610.  bit 0    destination must be a file
  7611.  bit 1    destination must be a directory
  7612.  bit 2    destination is opened in ascii mode instead of binary
  7613.  bit 3    source is opened in ascii mode instead of binary
  7614.  bit 4    verify all write operations
  7615. --------N-215F4B-----------------------------
  7616. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetRemoteMove
  7617.     AX = 5F4Bh
  7618.     DS:DX -> NetRemoteMove parameter structure
  7619. Return: CF clear if successful
  7620.     CF set on error
  7621.         AX = error code
  7622. SeeAlso: AX=5F4Ah
  7623.  
  7624. Format of NetRemoteMove parameter structure:
  7625. Offset    Size    Description
  7626.  00h    DWORD    -> source name as UNC
  7627.  04h    DWORD    -> destination name as UNC
  7628.  08h    DWORD    -> source password
  7629.  0Ch    DWORD    -> destination password
  7630.  10h    WORD    destination open bitmap
  7631.         if destination path exists
  7632.             0000h open fails
  7633.             0001h file is appended
  7634.             0002h file is overwritten
  7635.         if destination path doesn't exist
  7636.             0000h open fails
  7637.             0010h file is created
  7638.  12h    WORD    move control bitmap
  7639.             0001h destination must be a file
  7640.             0002h destination must be a directory
  7641.  14h    DWORD    -> move_info buffer
  7642.  18h    WORD    length of move_info buffer
  7643. --------N-215F4C-----------------------------
  7644. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetServerEnum
  7645.     AX = 5F4Ch
  7646.     BX = level (0000h or 0001h)
  7647.     CX = buffer length
  7648.     ES:DI -> buffer in which to store information
  7649. Return: CF clear if successful
  7650.         ES:DI -> server_info_X structures (depending on level) (see below)
  7651.         BX = entries read
  7652.         CX = total entries available
  7653.     CF set on error
  7654.         AX = error code
  7655. Notes:    this function is also supported by the Novell DOS Named Pipe Extender
  7656.     this function has been obseleted by NetServerEnum2
  7657. SeeAlso: AX=5F53h
  7658.  
  7659. Format of server_info_0 structure:
  7660. Offset    Size    Description
  7661.  00h 16 BYTEs    name
  7662.  
  7663. Format of server_info_1 structure:
  7664. Offset    Size    Description
  7665.  00h 16 BYTEs    name
  7666.  10h    BYTE    major version in lower nibble
  7667.  11h    BYTE    minor version
  7668.  12h    DWORD    server type bitmask (see below)
  7669.  16h    DWORD    -> comment string
  7670.  
  7671. Bitfields for server type:
  7672.  bit 0    workstation
  7673.  bit 1    server
  7674.  bit 2    SQL server
  7675.  bit 3    primary domain controller
  7676.  bit 4    backup domain controller
  7677.  bit 5    time server
  7678.  bit 6    Apple File Protocol (AFP) server
  7679.  bit 7    Novell server
  7680.  bit 8    Domain Member (v2.1+)
  7681.  bit 9    Print Queue server (v2.1+)
  7682.  bit 10 Dialin server (v2.1+)
  7683.  bit 11 Unix server (v2.1+)
  7684. --------N-215F4D-----------------------------
  7685. INT 21 u - LAN Manager Enhanced DOS - DosMakeMailslot
  7686.     AX = 5F4Dh
  7687.     BX = message size
  7688.     CX = mailslot size (must be bigger than message size by at least 1)
  7689.                (minimum 1000h, maximum FFF6h)
  7690.                (buffer must be 9 bytes bigger than this)
  7691.     DS:SI -> name
  7692.     ES:DI -> memory buffer
  7693. Return: CF clear if successful
  7694.         AX = handle
  7695.     CF set on error
  7696.         AX = error code
  7697. SeeAlso: AX=5F4Eh,AX=5F4Fh,AX=5F50h,AX=5F51h
  7698. --------N-215F4E-----------------------------
  7699. INT 21 u - LAN Manager Enhanced DOS - DosDeleteMailslot
  7700.     AX = 5F4Eh
  7701.     BX = handle
  7702. Return: CF clear if successful
  7703.         ES:DI -> memory to be freed (allocated during DosMakeMailslot)
  7704.     CF set on error
  7705.         AX = error code
  7706. SeeAlso: AX=5F4Dh,AX=5F4Fh
  7707. --------N-215F4F-----------------------------
  7708. INT 21 u - LAN Manager Enhanced DOS - DosMailslotInfo
  7709.     AX = 5F4Fh
  7710.     BX = handle
  7711. Return: CF clear if successful
  7712.         AX = max message size
  7713.         BX = mailslot size
  7714.         CX = next message size
  7715.         DX = next message priority
  7716.         SI = number of messages waiting
  7717.     CF set on error
  7718.         AX = error code
  7719. SeeAlso: AX=5F4Dh,AX=5F4Eh,AX=5F50h
  7720. --------N-215F50-----------------------------
  7721. INT 21 u - LAN Manager Enhanced DOS - DosReadMailslot
  7722.     AX = 5F50h
  7723.     BX = handle
  7724.     DX:CX = timeout
  7725.     ES:DI -> buffer
  7726. Return: CF clear if successful
  7727.         AX = bytes read
  7728.         CX = next item's size
  7729.         DX = next item's priority
  7730.     CF set on error
  7731.         AX = error code
  7732. SeeAlso: AX=5F4Dh,AX=5F4Fh,AX=5F51h,AX=5F52h
  7733. --------N-215F51-----------------------------
  7734. INT 21 u - LAN Manager Enhanced DOS - DosPeekMailslot
  7735.     AX = 5F51h
  7736.     BX = handle
  7737.     ES:DI -> buffer
  7738. Return: CF clear if successful
  7739.         AX = bytes read
  7740.         CX = next item's size
  7741.         DX = next item's priority
  7742.     CF set on error
  7743.         AX = error code
  7744. SeeAlso: AX=5F35h,AX=5F4Fh,AX=5F50h,AX=5F52h
  7745. --------N-215F52-----------------------------
  7746. INT 21 u - LAN Manager Enhanced DOS - DosWriteMailslot
  7747.     AX = 5F52h
  7748.     BX = class
  7749.     CX = length of buffer
  7750.     DX = priority
  7751.     ES:DI -> DosWriteMailslot parameter structure (see below)
  7752.     DS:SI -> mailslot name
  7753. Return: CF clear if successful
  7754.     CF set on error
  7755.         AX = error code
  7756. SeeAlso: AX=5F4Fh,AX=5F50h,AX=5F51h
  7757.  
  7758. Format of DosWriteMailslot parameter structure:
  7759. Offset    Size    Description
  7760.  00h    DWORD    timeout
  7761.  04h    DWORD    -> buffer
  7762. --------N-215F53-----------------------------
  7763. INT 21 u - LAN Manager Enhanced DOS - NetServerEnum2
  7764.     AX = 5F53h
  7765.     DS:SI -> NetServerEnum2 parameter structure (see below)
  7766. Return: CF clear if successful
  7767.         BX = entries read
  7768.         CX = total entries available
  7769.     CF set on error
  7770.         AX = error code
  7771. SeeAlso: AX=5F4Ch
  7772.  
  7773. Format of NetServerEnum2 parameter structure:
  7774. Offset    Size    Description
  7775.  00h    WORD    level (0000h or 0001h)
  7776.  02h    DWORD    -> buffer as array of server_info_??? structures
  7777.  06h    WORD    length of buffer
  7778.  08h    DWORD    server type bitmask (see below)
  7779.  0Ch    DWORD    -> Domain name (may be 0000h:0000h for all local domains)
  7780.  
  7781. Bitfields for server type:
  7782.  bit 0    workstation
  7783.  bit 1    server
  7784.  bit 2    SQL server
  7785.  bit 3    primary domain controller
  7786.  bit 4    backup domain controller
  7787.  bit 5    time server
  7788.  bit 6    Apple File Protocol (AFP) server
  7789.  bit 7    Novell server
  7790.  bit 8    Domain Member (v2.1+)
  7791.  bit 9    Print Queue server (v2.1+)
  7792.  bit 10 Dialin server (v2.1+)
  7793.  bit 11 Unix server (v2.1+)
  7794. Note:    set all bits (FFFFFFFFh) for All Types
  7795.  
  7796. Format of server_info_0 structure:
  7797. Offset    Size    Description
  7798.  00h 16 BYTEs    name
  7799.  
  7800. Format of server_info_1 structure:
  7801. Offset    Size    Description
  7802.  00h 16 BYTEs    name
  7803.  10h    BYTE    major version in lower nibble
  7804.  11h    BYTE    minor version
  7805.  12h    DWORD    server type (bits 0-11) (see above)
  7806.  16h    DWORD    -> comment string
  7807. --------N-215F55----------------------------
  7808. INT 21 U - LAN Manager Enhanced DOS - KILL ALL CONNECTIONS???
  7809.     AX = 5F55h
  7810.     BX = ???
  7811. Return: CF clear if successful
  7812.     CF set on error
  7813.         AX = error code
  7814. --------N-215F80-----------------------------
  7815. INT 21 - LANtastic - GET LOGIN ENTRY
  7816.     AX = 5F80h
  7817.     BX = login entry index (0-based)
  7818.     ES:DI -> 16-byte buffer for machine name
  7819. Return: CF clear if successful
  7820.         buffer filled with machine name ("\\" prefix removed)
  7821.         DL = adapter number (v3+)
  7822.     CF set on error
  7823.         AX = error code
  7824. Note:    the login entry index corresponds to the value BX used in AX=5F83h
  7825. SeeAlso: AX=5F83h
  7826. --------N-215F81-----------------------------
  7827. INT 21 - LANtastic - LOGIN TO SERVER
  7828.     AX = 5F81h
  7829.     ES:DI -> ASCIZ login path followed immediately by ASCIZ password
  7830.     BL = adapter number
  7831.         FFh try all valid adapters
  7832.         00h-07h try only specified adapter
  7833. Return: CF clear if successful
  7834.     CF set on error
  7835.         AX = error code
  7836. Notes:    login path is of form "\\machine\username"
  7837.     if no password is used, the string at ES:DI must be terminated with
  7838.       three NULs for compatibility with LANtastic v3.0.
  7839. SeeAlso: AX=5F82h,AX=5F84h
  7840. --------N-215F82-----------------------------
  7841. INT 21 - LANtastic - LOGOUT FROM SERVER
  7842.     AX = 5F82h
  7843.     ES:DI -> ASCIZ server name (in form "\\machine")
  7844. Return: CF clear if successful
  7845.     CF set on error
  7846.         AX = error code
  7847. SeeAlso: AX=5F81h,AX=5F88h,AX=5FCBh
  7848. --------N-215F83-----------------------------
  7849. INT 21 - LANtastic - GET USERNAME ENTRY
  7850.     AX = 5F83h
  7851.     BX = login entry index (0-based)
  7852.     ES:DI -> 16-byte buffer for username currently logged into
  7853. Return: CF clear if successful
  7854.         DL = adapter number (v3+)
  7855.     CF set on error
  7856.         AX = error code
  7857. Note:    the login entry index corresponds to the value BX used in AX=5F80h
  7858. SeeAlso: AX=5F80h
  7859. --------N-215F84-----------------------------
  7860. INT 21 - LANtastic - GET INACTIVE SERVER ENTRY
  7861.     AX = 5F84h
  7862.     BX = server index not currently logged into
  7863.     ES:DI -> 16-byte buffer for server name which is available for logging
  7864.         in to ("\\" prefix omitted)
  7865. Return: CF clear if successful
  7866.         DL = adapter number to non-logged in server is on
  7867.     CF set on error
  7868.         AX = error code
  7869. SeeAlso: AX=5F81h
  7870. --------N-215F85-----------------------------
  7871. INT 21 - LANtastic - CHANGE PASSWORD
  7872.     AX = 5F85h
  7873.     ES:DI -> buffer containing "\\machine\oldpassword" 00h "newpassword"00h
  7874. Return: CF clear if successful
  7875.     CF set on error
  7876.         AX = error code
  7877. Notes:    must be logged into the named machine
  7878.     this function is illegal for group accounts
  7879. --------N-215F86-----------------------------
  7880. INT 21 - LANtastic - DISABLE ACCOUNT
  7881.     AX = 5F86h
  7882.     ES:DI -> ASCIZ machine name and password in form "\\machine\password"
  7883. Return: CF clear if successful
  7884.     CF set on error
  7885.         AX = error code
  7886. Note:    must be logged into the named machine and concurrent logins set to 1
  7887.       by NET_MGR.  Requires system manager to re-enable account.
  7888. --------N-215F87-----------------------------
  7889. INT 21 - LANtastic v3+ - GET ACCOUNT
  7890.     AX = 5F87h
  7891.     DS:SI -> 128-byte buffer for account information (see below)
  7892.     ES:DI -> ASCIZ machine name in form "\\machine"
  7893. Return: CF clear if successful
  7894.     CF set on error
  7895.         AX = error code
  7896.     BX destroyed
  7897. Note:    must be logged into the specified machine
  7898.  
  7899. Format of user account structure:
  7900. Offset    Size    Description
  7901.  00h 16 BYTEs    blank-padded username (zero-padded for v4.x)
  7902.  10h 16 BYTEs    reserved (00h)
  7903.  20h 32 BYTEs    user description
  7904.  40h    BYTE    privilege bits (see below)
  7905.  41h    BYTE    maximum concurrent users
  7906.  42h 42 BYTEs    bit map for disallowed half hours, beginning on Sunday
  7907.         (bit set if half-hour not an allowed time)
  7908.  6Ch    WORD    internal (0002h)
  7909.  6Eh  2 WORDs    last login time
  7910.  72h  2 WORDs    account expiration date (MS-DOS-format year/month:day)
  7911.  76h  2 WORDs    password expiration date (0 = none)
  7912.  7Ah    BYTE    number of days to extend password after change (1-31)
  7913.         00h if no extension required
  7914. ---v3.x---
  7915.  7Bh  5 BYTEs    reserved
  7916. ---v4.x---
  7917.  7Bh    BYTE    storage for first letter of user name when deleted (first
  7918.         character is changed to 00h when deleting account)
  7919.  7Ch    BYTE    extended privileges
  7920.  7Dh  3 BYTEs    reserved
  7921.  
  7922. Bitfields for privilege bits:
  7923.  bit 7    bypass access control lists
  7924.  bit 6    bypass queue protection
  7925.  bit 5    treat as local process
  7926.  bit 4    bypass mail protection
  7927.  bit 3    allow audit entry creation
  7928.  bit 2    system manager
  7929.  bit 0    user cannot change password
  7930. --------N-215F88-----------------------------
  7931. INT 21 - LANtastic v4.0+ - LOGOUT FROM ALL SERVERS
  7932.     AX = 5F88h
  7933. Return: CF clear if successful
  7934.     CF set on error
  7935.         AX = error code
  7936. SeeAlso: AX=5F82h
  7937. --------N-215F97-----------------------------
  7938. INT 21 - LANtastic - COPY FILE
  7939.     AX = 5F97h
  7940.     CX:DX = number of bytes to copy (FFFFFFFFh = entire file)
  7941.     SI = source file handle
  7942.     DI = destination file handle
  7943. Return: CF clear if successful
  7944.         DX:AX = number of bytes copied
  7945.     CF set on error
  7946.         AX = error code
  7947. Note:    copy is performed by server
  7948. --------N-215F98-----------------------------
  7949. INT 21 - LANtastic - SEND UNSOLICITED MESSAGE
  7950.     AX = 5F98h
  7951.     DS:SI -> message buffer (see below)
  7952. Return: CF clear if successful
  7953.     CF set on error
  7954.         AX = error code
  7955. Note:    v4.1- return no errors
  7956. SeeAlso: AX=5F99h
  7957.  
  7958. Format of message buffer:
  7959. Offset    Size    Description
  7960.  00h    BYTE    reserved
  7961.  01h    BYTE    message type
  7962.         00h general
  7963.         01h server warning
  7964.         02h-7Fh reserved
  7965.         80h-FFh user-defined
  7966.  02h 16 BYTEs    ASCIZ destination machine name
  7967.  12h 16 BYTEs    ASCIZ server name which user must be logged into
  7968.  22h 16 BYTEs    ASCIZ user name
  7969.  32h 16 BYTEs    ASCIZ originating machine name (filled in when received)
  7970.  42h 80 BYTEs    message text
  7971. --------N-215F99-----------------------------
  7972. INT 21 - LANtastic - GET LAST RECEIVED UNSOLICITED MESSAGE
  7973.     AX = 5F99h
  7974.     ES:DI -> messsage buffer (see AX=5F98h for format)
  7975. Return: CF clear if successful
  7976.     CF set on error
  7977.         AX = error code
  7978. SeeAlso: AX=5F98h
  7979. --------N-215F9A-----------------------------
  7980. INT 21 - LANtastic - GET MESSAGE PROCESSING FLAGS
  7981.     AX = 5F9Ah
  7982. Return: CF clear if successful
  7983.         DL = bits describing processing for received unsolicited messages
  7984.         bit 0: beep before message is delivered
  7985.         bit 1: deliver message to message service
  7986.         bit 2: pop up message automatically (v3+)
  7987.     CF set on error
  7988.         AX = error code
  7989. SeeAlso: AX=5F9Bh,AX=5F9Ch,AX=5F9Dh
  7990. --------N-215F9B-----------------------------
  7991. INT 21 - LANtastic - SET MESSAGE PROCESSING FLAGS
  7992.     AX = 5F9Bh
  7993.     DL = bits describing processing for received unsolicited messages
  7994.          (see AX=5F9Ah)
  7995. Return: CF clear if successful
  7996.     CF set on error
  7997.         AX = error code
  7998. SeeAlso: AX=5F9Ah,AX=5F9Eh
  7999. --------N-215F9C-----------------------------
  8000. INT 21 - LANtastic v3+ - POP UP LAST RECEIVED MESSAGE
  8001.     AX = 5F9Ch
  8002.     CX = time to leave on screen in clock ticks
  8003.     DH = 0-based screen line on which to place message
  8004. Return: CF clear if successful
  8005.     CF set on error
  8006.         AX = error code (0Bh)
  8007. Notes:    the original screen contents are restored when the message is removed
  8008.     the message will not appear, and an error will be returned, if the
  8009.       screen is in a graphics mode
  8010. SeeAlso: AX=5F9Ah
  8011. --------N-215F9D-----------------------------
  8012. INT 21 - LANtastic v4.1+ - GET REDIRECTOR CONTROL BITS
  8013.     AX = 5F9Dh
  8014. Return: DL = redirector control bits
  8015.         bit 7: set to notify on print job completion
  8016. SeeAlso: AX=5F9Ah,AX=5F9Eh
  8017. --------N-215F9E-----------------------------
  8018. INT 21 - LANtastic v4.1+ - SET REDIRECTOR CONTROL BITS
  8019.     AX = 5F9Eh
  8020.     DL = redirector control bits (see AX=5F9Dh)
  8021. Return: nothing
  8022. SeeAlso: AX=5F9Bh,AX=5F9Dh
  8023. --------N-215FA0-----------------------------
  8024. INT 21 - LANtastic - GET QUEUE ENTRY
  8025.     AX = 5FA0h
  8026.     BX = queue entry index (0000h is first entry)
  8027.     DS:SI -> buffer for queue entry (see below)
  8028.     ES:DI -> ASCIZ server name in form "\\name"
  8029. Return: CF clear if successful
  8030.     CF set on error
  8031.         AX = error code
  8032.     BX = entry index for next queue entry (BX-1 is current index)
  8033. SeeAlso: AX=5FA1h,AX=5FA2h
  8034.  
  8035. Values for status of entry:
  8036.  00h    empty
  8037.  01h    being updated
  8038.  02h    being held
  8039.  03h    waiting for despool
  8040.  04h    being despooled
  8041.  05h    canceled
  8042.  06h    spooled file could not be accessed
  8043.  07h    destination could not be accessed
  8044.  08h    rush job
  8045.  
  8046. Values for type of entry:
  8047.  00h    printer queue file
  8048.  01h    message
  8049.  02h    local file
  8050.  03h    remote file
  8051.  04h    to remote modem
  8052.  05h    batch processor file
  8053.  
  8054. Format of queue entry:
  8055. Offset    Size    Description
  8056.  00h    BYTE    status of entry (see above)
  8057.  01h    DWORD    size of spooled file
  8058.  05h    BYTE    type of entry (see above)
  8059.  06h    BYTE    output control
  8060.         bit 6: don't delete (for mail)
  8061.         bit 5: mail file contains voice mail (v3+)
  8062.         bit 4: mail message has been read
  8063.         bit 3: response has been requested for this mail
  8064.  07h    WORD    number of copies
  8065.  09h    DWORD    sequence number of queue entry
  8066.  0Dh 48 BYTEs    pathname of spooled file
  8067.  3Dh 16 BYTEs    user who spooled file
  8068.  4Dh 16 BYTEs    name of machine from which file was spooled
  8069.  5Dh    WORD    date file was spooled (see AX=5700h)
  8070.  5Fh    WORD    time file was spooled (see AX=5700h)
  8071.  61h 17 BYTEs    ASCIZ destination device or user name
  8072.  72h 48 BYTEs    comment field
  8073. --------N-215FA1-----------------------------
  8074. INT 21 - LANtastic - SET QUEUE ENTRY
  8075.     AX = 5FA1h
  8076.     BX = handle of opened queue entry
  8077.     DS:SI -> queue entry (see AX=5FA0h)
  8078. Return: CF clear if successful
  8079.     CF set on error
  8080.         AX = error code
  8081. Notes:    the only queue entry fields which may be changed are output control,
  8082.       number of copies, destination device, and comment
  8083.     the handle in BX is that from a create or open (INT 21/AH=3Ch,3Dh)
  8084.       call on the file "\\server\\@MAIL" or "\\server\@name" (for
  8085.       printer queue entries)
  8086. SeeAlso: AX=5FA0h,AX=5FA2h,AX=5FA9h
  8087. --------N-215FA2-----------------------------
  8088. INT 21 - LANtastic - CONTROL QUEUE
  8089.     AX = 5FA2h
  8090.     BL = control command
  8091.         00h start despooling (privileged)
  8092.         01h halt despooling (privileged)
  8093.         02h halt despooling at end of job (privileged)
  8094.         03h pause despooler at end of job (privileged)
  8095.         04h print single job (privileged)
  8096.         05h restart current job (privileged)
  8097.         06h cancel the current job
  8098.         07h hold queue entry
  8099.         08h release a held queue entry
  8100.         09h make queue entry a rushed job (privileged)
  8101.     CX:DX = sequence number to control (commands 06h-09h)
  8102.     DX = physical printer number (commands 00h-05h)
  8103.         00h-02h LPT1-LPT3
  8104.         03h,04h COM1,COM2
  8105.         other    all printers
  8106.     ES:DI -> ASCIZ server name in form "\\machine"
  8107. Return: CF clear if successful
  8108.     CF set on error
  8109.         AX = error code
  8110. --------N-215FA3-----------------------------
  8111. INT 21 - LANtastic v3+ - GET PRINTER STATUS
  8112.     AX = 5FA3h
  8113.     BX = physical printer number (00h-02h = LPT1-LPT3, 03h-04h = COM1-COM2)
  8114.     DS:SI -> buffer for printer status (see below)
  8115.     ES:DI -> ASCIZ server name in form "\\machine"
  8116. Return: CF clear if successful
  8117.     CF set on error
  8118.         AX = error code
  8119.     BX = next physical printer number
  8120. Note:    you must be logged in to the specified server
  8121.  
  8122. Format of printer status:
  8123. Offset    Size    Description
  8124.  00h    BYTE    printer state
  8125.         bit 7: printer paused
  8126.         bits 0-6: 0 printer disabled
  8127.               1 will stop at end of job
  8128.               2 print multiple jobs
  8129.  01h    WORD    queue index of print job being despooled
  8130.         FFFFh if not despooling--ignore all following fields
  8131.  03h    WORD    actual characters per second being output
  8132.  05h    DWORD    number of characters actually output so far
  8133.  09h    DWORD    number of bytes read from spooled file so far
  8134.  0Dh    WORD    copies remaining to print
  8135. --------N-215FA4-----------------------------
  8136. INT 21 - LANtastic v3+ - GET STREAM INFO
  8137.     AX = 5FA4h
  8138.     BX = 0-based stream index number
  8139.     DS:SI -> buffer for stream information (see below)
  8140.     ES:DI -> ASCIZ machine name in form "\\machine"
  8141. Return: CF clear if successful
  8142.     CF set on error
  8143.         AX = error code
  8144.     BX = next stream number
  8145. SeeAlso: AX=5FA5h
  8146.  
  8147. Format of stream information:
  8148. Offset    Size    Description
  8149.  00h    BYTE    queueing of jobs for logical printer (0=disabled,other=enabled)
  8150.  01h 11 BYTEs    logical printer resource template (may contain ? wildcards)
  8151. --------N-215FA5-----------------------------
  8152. INT 21 - LANtastic v3+ - SET STREAM INFO
  8153.     AX = 5FA5h
  8154.     BX = 0-based stream index number
  8155.     DS:SI -> buffer containing stream information (see AX=5FA4h)
  8156.     ES:DI -> ASCIZ machine name in form "\\machine"
  8157. Return: CF clear if successful
  8158.     CF set on error
  8159.         AX = error code
  8160. SeeAlso: AX=5FA4h
  8161. --------N-215FA7-----------------------------
  8162. INT 21 - LANtastic - CREATE USER AUDIT ENTRY
  8163.     AX = 5FA7h
  8164.     DS:DX -> ASCIZ reason code (max 8 bytes)
  8165.     DS:SI -> ASCIZ variable reason string (max 128 bytes)
  8166.     ES:DI -> ASCIZ machine name in form "\\machine"
  8167. Return: CF clear if successful
  8168.     CF set on error
  8169.         AX = error code
  8170. Note:    you must be logged in to the specified server and have the "U"
  8171.       privilege to execute this call
  8172. --------N-215FA9-----------------------------
  8173. INT 21 - LANtastic v4.1+ - SET EXTENDED QUEUE ENTRY
  8174.     AX = 5FA9h
  8175.     BX = handle of opened queue entry
  8176.     DS:SI -> queue entry (see AX=5FA0h)
  8177. Return: CF clear if successful
  8178.     CF set on error
  8179.         AX = error code
  8180. Note:    functions exactly the same as AX=5FA1h except the spooled filename is
  8181.       also set.  This call supports direct despooling.
  8182. SeeAlso: AX=5FA1h
  8183. --------N-215FB0-----------------------------
  8184. INT 21 - LANtastic - GET ACTIVE USER INFORMATION
  8185.     AX = 5FB0h
  8186.     BX = server login entry index
  8187.     DS:SI -> buffer for active user entry (see below)
  8188.     ES:DI -> ASCIZ machine name in form "\\server"
  8189. Return: CF clear if successful
  8190.     CF set on error
  8191.         AX = error code
  8192.     BX = next login index
  8193. SeeAlso: AX=5FB2h
  8194.  
  8195. Format of active user entry:
  8196. Offset    Size    Description
  8197.  00h    WORD    virtual circuit number
  8198.  02h    BYTE    login state (see below)
  8199.  03h    BYTE    last command issued (see below)
  8200.  04h  5 BYTEs    number of I/O bytes (40-bit unsigned number)
  8201.  09h  3 BYTEs    number of server requests (24-bit unsigned)
  8202.  0Ch 16 BYTEs    name of user who is logged in
  8203.  1Ch 16 BYTEs    name of remote logged in machine
  8204.  2Ch    BYTE    extended privileges (v4+???)
  8205.         bit 0: user cannot change his password
  8206.  2Dh    WORD    time left in minutes (0000h = unlimited) (v4+???)
  8207.  
  8208. Bitfields for login state:
  8209.  bit 0    fully logged in
  8210.  bit 1    remote program load login
  8211.  bit 2    user has system manager privileges
  8212.  bit 3    user can create audit entries
  8213.  bit 4    bypass mail protection
  8214.  bit 5    treat as local process
  8215.  bit 6    bypass queue protection
  8216.  bit 7    bypass access control lists
  8217.  
  8218. Values for last command:
  8219.  00h    login
  8220.  01h    process termination
  8221.  02h    open file
  8222.  03h    close file
  8223.  04h    create file
  8224.  05h    create new file
  8225.  06h    create unique file
  8226.  07h    commit data to disk
  8227.  08h    read file
  8228.  09h    write file
  8229.  0Ah    delete file
  8230.  0Bh    set file attributes
  8231.  0Ch    lock byte range
  8232.  0Dh    unlock byte range
  8233.  0Eh    create subdirectory
  8234.  0Fh    remove subdirectory
  8235.  10h    rename file
  8236.  11h    find first matching file
  8237.  12h    find next matching file
  8238.  13h    get disk free space
  8239.  14h    get a queue entry
  8240.  15h    set a queue entry
  8241.  16h    control the queue
  8242.  17h    return login information
  8243.  18h    return link description
  8244.  19h    seek on file
  8245.  1Ah    get server's time
  8246.  1Bh    create audit entry
  8247.  1Ch    open file in multitude of modes
  8248.  1Dh    change password
  8249.  1Eh    disable account
  8250.  1Fh    local server file copy
  8251. ---v3+---
  8252.  20h    get username from account file
  8253.  21h    translate server's logical path
  8254.  22h    make indirect file
  8255.  23h    get indirect file contents
  8256.  24h    get physical printer status
  8257.  25h    get logical print stream info
  8258.  26h    set logical print stream info
  8259.  27h    get user's account record
  8260. ---v4+---
  8261.  28h    request server shutdown
  8262.  29h    cancel server shutdown
  8263.  2Ah    stuff server's keyboard
  8264.  2Bh    write then commit data to disk
  8265.  2Ch    set extended queue entry
  8266.  2Dh    terminate user from server
  8267.  2Eh    enable/disable logins
  8268.  2Fh    flush server caches
  8269.  30h    change username
  8270.  31h    get extended queue entry
  8271.     (same as get queue, but can return named fields blanked)
  8272. --------N-215FB1-----------------------------
  8273. INT 21 - LANtastic - GET SHARED DIRECTORY INFORMATION
  8274.     AX = 5FB1h
  8275.     DS:SI -> 64-byte buffer for link description
  8276.     ES:DI -> ASCIZ machine and shared directory name in form
  8277.          "\\machine\shared-resource"
  8278. Return: CF clear if successful
  8279.         CX = access control list privileges for requesting user (see below)
  8280.     CF set on error
  8281.         AX = error code
  8282.  
  8283. Bitfields for access control list:
  8284.  bit 4    (I) allow expansion of indirect files
  8285.  bit 5    (A) allow attribute changing
  8286.  bit 6    (P) allow physical access to device
  8287.  bit 7    (E) allow program execution
  8288.  bit 8    (N) allow file renaming
  8289.  bit 9    (K) allow directory deletion
  8290.  bit 10 (D) allow file deletion
  8291.  bit 11 (L) allow file/directory lookups
  8292.  bit 12 (M) allow directory creation
  8293.  bit 13 (C) allow file creation
  8294.  bit 14 (W) allow open for write and writing
  8295.  bit 15 (R) allow open for read and reading
  8296. --------N-215FB2-----------------------------
  8297. INT 21 - LANtastic v3+ - GET USERNAME FROM ACCOUNT FILE
  8298.     AX = 5FB2h
  8299.     BX = username entry index (0 for first)
  8300.     DS:SI -> 16-byte buffer for username
  8301.     ES:DI -> ASCIZ server name in form "\\machine"
  8302. Return: CF clear if successful
  8303.     CF set on error
  8304.         AX = error code
  8305.     BX = next queue entry index
  8306. SeeAlso: AX=5FB0h
  8307. --------N-215FB3-----------------------------
  8308. INT 21 - LANtastic v3+ - TRANSLATE PATH
  8309.     AX = 5FB3h
  8310.     DS:SI -> 128-byte buffer for ASCIZ result
  8311.     ES:DI -> full ASCIZ path, including server name
  8312.     DX = types of translation to be performed
  8313.         bit 0: expand last component as indirect file
  8314.         bit 1: return actual path relative to server's physical disk
  8315. Return: CF clear if successful
  8316.     CF set on error
  8317.         AX = error code
  8318. Note:    always expands any indirect files along the path
  8319. SeeALso: AX=5FB4h,INT 21/AH=60h
  8320. --------N-215FB4-----------------------------
  8321. INT 21 - LANtastic v3+ - CREATE INDIRECT FILE
  8322.     AX = 5FB4h
  8323.     DS:SI -> 128-byte buffer containing ASCIZ contents of indirect file
  8324.     ES:DI -> full ASCIZ path of indirect file to create, incl machine name
  8325. Return: CF clear if successful
  8326.     CF set on error
  8327.         AX = error code
  8328. Note:    the contents of the indirect file may be any valid server-relative path
  8329. SeeAlso: AX=5FB3h,AX=5FB5h
  8330. --------N-215FB5-----------------------------
  8331. INT 21 - LANtastic v3+ - GET INDIRECT FILE CONTENTS
  8332.     AX = 5FB5h
  8333.     DS:SI -> 128-byte buffer for ASCIZ indirect file contents
  8334.     ES:DI -> full ASCIZ path of indirect file
  8335. Return: CF clear if successful
  8336.     CF set on error
  8337.         AX = error code
  8338. SeeAlso: AX=5FB4h
  8339. --------N-215FB6-----------------------------
  8340. INT 21 - LANtastic v4.1+ - SET AUTO-LOGIN DEFAULTS
  8341.     AX = 5FB6h
  8342.     ES:DI -> pointer to ASCIZ default user name, immediately followed by
  8343.         ASCIZ password
  8344.     BL = adapter number to use for default login attempt
  8345.         FFh try all valid adapters
  8346.         00h-05h try adapter 0-5 explicitly
  8347. Return: CF clear if successful
  8348.     CF set on error
  8349.         AX = error code
  8350. Notes:    call with ES:DI -> two nulls to disable auto-login
  8351. SeeAlso: AX=5FB7h
  8352. --------N-215FB7-----------------------------
  8353. INT 21 - LANtastic v4.1+ - GET AUTO-LOGIN DEFAULTS
  8354.     AX = 5FB7h
  8355.     ES:DI -> pointer to 16-byte buffer to store ASCIZ auto-login user name
  8356. Return: CF clear if successful
  8357.         DL = adapter number used for default login attempt
  8358.         FFh all valid adapters will be tried
  8359.         00h-05h specified adapter will be tried explicitly
  8360.     CF set on error
  8361.         AX = error code
  8362. SeeAlso: AX=5F81h,AX=5FB6h
  8363. --------N-215FC0-----------------------------
  8364. INT 21 - LANtastic - GET TIME FROM SERVER
  8365.     AX = 5FC0h
  8366.     DS:SI -> time block (see below)
  8367.     ES:DI -> ASCIZ server name to get time from
  8368. Return: CF clear if successful
  8369.     CF set on error
  8370.         AX = error code
  8371. SeeAlso: AH=E7h
  8372.  
  8373. Format of time block:
  8374. Offset    Size    Description
  8375.  00h    WORD    year
  8376.  02h    BYTE    day
  8377.  03h    BYTE    month
  8378.  04h    BYTE    minutes
  8379.  05h    BYTE    hour
  8380.  06h    BYTE    hundredths of second
  8381.  07h    BYTE    second
  8382. --------N-215FC8-----------------------------
  8383. INT 21 - LANtastic v4.0+ - SCHEDULE SERVER SHUTDOWN
  8384.     AX = 5FC8h
  8385.     ES:DI -> ASCIZ server name in form "\\machine"
  8386.     DS:SI -> ASCIZ reason string (80 characters)
  8387.     CX = number of minutes until shutdown (0 = immediate)
  8388.     DX = option flags (see below)
  8389. Return: CF clear if successful
  8390.     CF set on error
  8391.         AX = error code
  8392. SeeAlso: AX=5FC9h
  8393.  
  8394. Bitfields for option flags:
  8395.  bit 0    auto reboot
  8396.  bit 1    do not notify users
  8397.  bit 2    halt after shutdown
  8398.  bit 3    shutdown due to power fail (used by UPS)
  8399.  bits 4-7    reserved
  8400.  bits 8-14    user definable
  8401.  bit 15 reserved
  8402. --------N-215FC9-----------------------------
  8403. INT 21 - LANtastic v4.0+ - CANCEL SERVER SHUTDOWN
  8404.     AX = 5FC9h
  8405.     ES:DI -> ASCIZ server name in form "\\machine"
  8406. Return: CF clear if successful
  8407.     CF set on error
  8408.         AX = error code
  8409. Note:    you must have the "S" privilege to use this call
  8410. SeeAlso: AX=5FC8h
  8411. --------N-215FCA-----------------------------
  8412. INT 21 - LANtastic v4.0+ - STUFF SERVER KEYBOARD BUFFER
  8413.     AX = 5FCAh
  8414.     ES:DI -> ASCIZ server name in form "\\machine"
  8415.     DS:SI -> ASCIZ string to stuff (128 bytes)
  8416. Return: CF clear if successful
  8417.     CF set on error
  8418.         AX = error code
  8419. Note:    you must have the "S" privilege to use this call
  8420.     maximum number of characters that can be stuffed is determined by the
  8421.       server's RUN BUFFER SIZE.
  8422. SeeAlso: INT 16/AH=05h
  8423. --------N-215FCB-----------------------------
  8424. INT 21 - LANtastic v4.1+ - TERMINATE USER
  8425.     AX = 5FCBh
  8426.     ES:DI -> ASCIZ server name in form "\\machine"
  8427.     DS:SI -> blank-padded username.     A null char = wildcard.
  8428.     DS:DX -> blank-padded machine name.  A null char = wildcard.
  8429.     CX = minutes until termination (0 = immediate)
  8430. Return: CF clear if successful
  8431.     CF set on error
  8432.         AX = error code
  8433. Note:    you must have the "S" privilege to use this call
  8434.     you cannot log yourself out using this call
  8435. SeeAlso: AX=5F82h
  8436. --------N-215FCC-----------------------------
  8437. INT 21 - LANtastic v4.1+ - GET/SET SERVER CONTROL BITS
  8438.     AX = 5FCCh
  8439.     ES:DI -> ASCIZ server name in form "\\machine"
  8440.     CX = bit values (value of bits you want to set) (see below)
  8441.     DX = bit mask (bits you are interested in, 0 = get only) (see below)
  8442. Return: CF clear if successful
  8443.         CX = control bits after call
  8444.         bit 0: disable logins
  8445.     CF set on error
  8446.         AX = error code
  8447. Note:    you must have the "S" privilege to SET, anyone can GET.
  8448. --------N-215FCD-----------------------------
  8449. INT 21 - LANtastic v4.1+ - FLUSH SERVER CACHES
  8450.     AX = 5FCDh
  8451.     ES:DI -> ASCIZ server name in form "\\machine"
  8452. Return: CF clear if successful
  8453.     CF set on error
  8454.         AX = error code
  8455. Note:    you must have the "S" privilege to use this call.
  8456. --------N-215FD0-----------------------------
  8457. INT 21 - LANtastic - GET REDIRECTED PRINTER TIMEOUT
  8458.     AX = 5FD0h
  8459. Return: CF clear if successful
  8460.         CX = redirected printer timeout in clock ticks of 55ms
  8461.         0000h if timeout disabled
  8462.     CF set on error
  8463.         AX = error code
  8464. SeeAlso: AX=5FD1h
  8465. --------N-215FD1-----------------------------
  8466. INT 21 - LANtastic - SET REDIRECTED PRINTER TIMEOUT
  8467.     AX = 5FD1h
  8468.     CX = printer timeout in clock ticks of 55ms, 0000h to disable timeouts
  8469. Return: CF clear if successful
  8470.     CF set on error
  8471.         AX = error code
  8472. SeeAlso: AX=5FD0h
  8473. --------N-215FE0-----------------------------
  8474. INT 21 C - LANtastic - GET DOS SERVICE VECTOR
  8475.     AX = 5FE0h
  8476. Return: CF clear if successful
  8477.         ES:BX -> current FAR service routine
  8478.     CF set on error
  8479.         AX = error code
  8480. Note:    the service routine is called by the LANtastic redirector whenever DOS
  8481.       may safely be called, permitting external TSRs and drivers to hook
  8482.       into LANtastic's DOS busy flag checking
  8483. SeeAlso: AX=5FE1h,INT 28,INT 2A/AH=84h
  8484. --------N-215FE1-----------------------------
  8485. INT 21 - LANtastic - SET DOS SERVICE VECTOR
  8486.     AX = 5FE1h
  8487.     ES:BX -> FAR routine to call when DOS services are available
  8488. Return: CF clear if successful
  8489.     CF set on error
  8490.         AX = error code
  8491. Note:    new handler must chain to previous handler as its first action
  8492. SeeAlso: AX=5FE0h
  8493. --------N-215FE2-----------------------------
  8494. INT 21 - LANtastic - GET MESSAGE SERVICE VECTOR
  8495.     AX = 5FE2h
  8496. Return: CF clear if successful
  8497.         ES:BX -> current FAR message service routine
  8498.     CF set on error
  8499.         AX = error code
  8500. SeeAlso: AX=5FE0h,AX=5FE3h
  8501. --------N-215FE3-----------------------------
  8502. INT 21 - LANtastic - SET MESSAGE SERVICE VECTOR
  8503.     AX = 5FE3h
  8504.     ES:BX -> FAR routine for processing network messages
  8505. Return: CF clear if successful
  8506.     CF set on error
  8507.         AX = error code
  8508. Notes:    handler must chain to previous handler as its first action
  8509.     on invocation, ES:BX -> just-received message
  8510. SeeAlso: AX=5FE2h
  8511. --------D-2160-------------------------------
  8512. INT 21 - DOS 3.0+ - "TRUENAME" - CANONICALIZE FILENAME OR PATH
  8513.     AH = 60h
  8514.     DS:SI -> ASCIZ filename or path
  8515.     ES:DI -> 128-byte buffer for canonicalized name
  8516. Return: CF set on error
  8517.         AX = error code
  8518.         02h invalid component in directory path or drive letter only
  8519.         03h malformed path or invalid drive letter
  8520.         ES:DI buffer unchanged
  8521.     CF clear if successful
  8522.         AH = 00h
  8523.         AL = destroyed (00h or 5Ch or last char of current dir on drive)
  8524.         buffer filled with qualified name of form D:\PATH\FILE.EXT or
  8525.           \\MACHINE\PATH\FILE.EXT
  8526. Desc:    determine the canonical name of the specified filename or path,
  8527.       corresponding to the undocumented TRUENAME command in COMMAND.COM
  8528. Notes:    the input path need not actually exist
  8529.     letters are uppercased, forward slashes converted to backslashes,
  8530.       asterisks converted to appropriate number of question marks, and
  8531.       file and directory names are truncated to 8.3 if necessary.  (DR-DOS
  8532.       3.41 and 5.0 do not expand asterisks)
  8533.     '.' and '..' in the path are resolved
  8534.     filespecs on local drives always start with "d:", those on network
  8535.       drives always start with "\\"
  8536.     if path string is on a JOINed drive, the returned name is the one that
  8537.       would be needed if the drive were not JOINed; similarly for a
  8538.       SUBSTed, ASSIGNed, or network drive letter.    Because of this, it is
  8539.       possible to get a qualified name that is not legal under the current
  8540.       combination of SUBSTs, ASSIGNs, JOINs, and network redirections
  8541.     under DOS 3.3 through 6.00, a device name is translated differently if
  8542.       the device name does not have an explicit directory or the directory
  8543.       is \DEV (relative directory DEV from the root directory works
  8544.       correctly).  In these cases, the returned string consists of the
  8545.       unchanged device name and extension appended to the string X:/
  8546.       (forward slash instead of backward slash as in all other cases) where
  8547.       X is the default or explicit drive letter.
  8548.     functions which take pathnames require canonical paths if invoked via
  8549.       INT 21/AX=5D00h
  8550.     supported by OS/2 v1.1 compatibility box
  8551.     NetWare 2.1x does not support characters with the high bit set; early
  8552.       versions of NetWare 386 support such characters except in this call.
  8553.       In addition, NetWare returns error code 3 for the path "X:\"; one
  8554.       should use "X:\." instead.
  8555.     for DOS 3.3-6.0, the input and output buffers may be the same, as the
  8556.       canonicalized name is built in an internal buffer and copied to the
  8557.       specified output buffer as the very last step
  8558.     for DR DOS 6.0, this function is not automatically called when on a
  8559.       network.  Device drivers reportedly cannot make this call from their
  8560.       INIT function.  Using the same pointer for both input and output
  8561.       buffers is not supported in the April 1992 and earlier versions of
  8562.       DR DOS
  8563. SeeAlso: AX=5FB3h,INT 2F/AX=1123h,INT 2F/AX=1221h
  8564. --------D-2161-------------------------------
  8565. INT 21 - DOS 3+ - UNUSED
  8566.     AH = 61h
  8567. Return: AL = 00h
  8568. Note:    this function does nothing and returns immediately
  8569. --------O-2161--BP6467-----------------------
  8570. INT 21 U - OS/2 v1.x FAPI - OS/2 FILE SYSTEM JOIN/SUBST
  8571.     AH = 61h
  8572.     BP = 6467h ("dg")
  8573.     AL = function
  8574.         00h list
  8575.         01h add
  8576.         02h delete
  8577.     BX = drive number
  8578.     CX = size of buffer
  8579.     SI = type (0002h JOIN, 0003h SUBST)
  8580.     ES:DI -> buffer
  8581. Return: ???
  8582. Notes:    used by JOIN and SUBST to communicate with the OS/2 file system
  8583.     also supported by OS/2 v2.0+ Virtual DOS Machines
  8584. --------D-2162-------------------------------
  8585. INT 21 - DOS 3+ - GET CURRENT PSP ADDRESS
  8586.     AH = 62h
  8587. Return: BX = segment of PSP for current process
  8588. Notes:    under DOS 3+, this function does not use any of the DOS-internal stacks
  8589.       and may thus be called at any time, even during another INT 21h call
  8590.     the current PSP is not necessarily the caller's PSP
  8591.     identical to the undocumented AH=51h
  8592. SeeAlso: AH=50h,AH=51h
  8593. --------D-216300-----------------------------
  8594. INT 21 - DOS 2.25 only - GET LEAD BYTE TABLE ADDRESS
  8595.     AX = 6300h
  8596. Return: CF clear if successful
  8597.         DS:SI -> lead byte table (see below)
  8598.     CF set on error
  8599.         AX = error code (01h) (see AH=59h)
  8600. Notes:    does not preserve any registers other than SS:SP
  8601.     the US version of MS-DOS 3.30 treats this as an unused function,
  8602.       setting AL=00h and returning immediately
  8603. SeeAlso: AX=6301h,AH=07h,AH=08h,AH=0Bh
  8604.  
  8605. Format of lead byte table entry:
  8606. Offset    Size    Description
  8607.  00h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  8608.  02h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  8609.     ...
  8610.   N   2 BYTEs    00h,00h end flag
  8611. --------D-216300-----------------------------
  8612. INT 21 - Far East DOS 3.2+ - GET DOUBLE BYTE CHARACTER SET LEAD-BYTE TABLE
  8613.     AX = 6300h
  8614. Return: AL = error code
  8615.         00h successful
  8616.         DS:SI -> DBCS table (see below)
  8617.         all other registers except CS:IP and SS:SP destroyed
  8618.         FFh not supported
  8619. Notes:    probably identical to AH=63h/AL=00h for DOS 2.25
  8620.     the US version of MS-DOS 3.30 treats this as an unused function,
  8621.       setting AL=00h and returning immediately
  8622.     the US version of DOS 4.0+ accepts this function, but returns an empty
  8623.       list
  8624. SeeAlso: AX=6300h"DOS 2.25"
  8625.  
  8626. Format of DBCS table:
  8627. Offset    Size    Description
  8628.  00h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  8629.  02h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  8630.     ...
  8631.   N   2 BYTEs    00h,00h end flag
  8632. --------D-216301-----------------------------
  8633. INT 21 - DOS 2.25, Far East DOS 3.2+ - SET KOREAN (HANGEUL) INPUT MODE
  8634.     AX = 6301h
  8635.     DL = new mode
  8636.         00h return only full characters on DOS keyboard input functions
  8637.         01h return partially-formed (interim) characters also
  8638. Return: AL = status
  8639.         00h successful
  8640.         FFh invalid mode
  8641. SeeAlso: AH=07h,AH=08h,AH=0Bh,AH=63h,AX=6302h
  8642. --------D-216302-----------------------------
  8643. INT 21 - DOS 2.25, Far East DOS 3.2+ - GET KOREAN (HANGEUL) INPUT MODE
  8644.     AX = 6302h
  8645. Return: AL = status
  8646.         00h successful
  8647.         DL = current input mode
  8648.             00h return only full characters (clears interim flag)
  8649.             01h return partial characters (sets interim flag)
  8650.         FFh not supported
  8651. SeeAlso: AH=07h,AH=08h,AH=0Bh,AH=63h,AX=6301h
  8652. --------D-2164-------------------------------
  8653. INT 21 - DOS 3.2+ internal - SET DEVICE DRIVER LOOKAHEAD FLAG
  8654.     AH = 64h
  8655.     AL = flag
  8656.         00h (default) call device driver function 5 (non-dest read)
  8657.             before INT 21/AH=01h,08h,0Ah
  8658.         nonzero don't call driver function 5
  8659. Return: nothing (MS-DOS)
  8660.     CF set, AX=error code??? (DR-DOS 5.0, which does not support this call)
  8661. Notes:    this function is called by the DOS 3.3+ PRINT.COM
  8662.     under MS-DOS, this function does not use any of the DOS-internal stacks
  8663.       and may thus be called at any time, even during another DOS call
  8664. SeeAlso: AH=01h,AH=08h,AH=0Ah,AX=5D06h
  8665. --------O-2164--DX0000-----------------------
  8666. INT 21 U - OS/2 v2.0+ Virtual DOS Machine - ENABLE AUTOMATIC TITLE SWITCH
  8667.     AH = 64h
  8668.     DX = 0000h (function number)
  8669.     CX = 636Ch (magic value, "cl")
  8670.     BX = 0000h (indicates special request)
  8671. Note:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8672.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8673. SeeAlso: AH=64h/BX=0001h,INT 21/AH=4Bh
  8674. --------O-2164--DX0001-----------------------
  8675. INT 21 U - OS/2 v2.0+ Virtual DOS Machine - SET SESSION TITLE
  8676.     AH = 64h
  8677.     DX = 0001h (function number)
  8678.     CX = 636Ch (magic value, "cl")
  8679.     BX = 0000h (indicates special request)
  8680.     ES:DI -> new ASCIZ title (max 12 char) or "" to restore default title
  8681. Note:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8682.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8683. SeeAlso: AH=64h/BX=0000h,AH=64h/BX=0002h,INT 15/AH=12h/BH=05h
  8684. --------O-2164--DX0002-----------------------
  8685. INT 21 U - OS/2 v2.0+ Virtual DOS Machine - GET SESSION TITLE
  8686.     AH = 64h
  8687.     DX = 0002h (function number)
  8688.     CX = 636Ch (magic value, "cl")
  8689.     BX = 0000h (indicates special request)
  8690.     ES:DI -> 13-byte buffer for current title
  8691. Return: buffer filled (single 00h if title never changed)
  8692. Note:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8693.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8694. SeeAlso: AH=64h/BX=0000h,AH=64h/BX=0001h,INT 15/AH=12h/BH=05h
  8695. --------O-2164--DX0003-----------------------
  8696. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET LASTDRIVE
  8697.     AH = 64h
  8698.     DX = 0003h (function number)
  8699.     CX = 636Ch (magic value, "cl")
  8700.     BX = 0000h (indicates special request)
  8701. Return: AL = highest drive supported
  8702. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8703.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8704.     used by WinOS2
  8705. --------O-2164--DX0004-----------------------
  8706. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET SIZE OF PTDA JFT
  8707.     AH = 64h
  8708.     DX = 0004h (function number)
  8709.     CX = 636Ch (magic value, "cl")
  8710.     BX = 0000h (indicates special request)
  8711. Return: AX = number of entries in OS/2 JFT for VDM
  8712. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8713.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8714.     in an OS/2 VDM, the DOS Job File Table in the PSP contains an index
  8715.       into the OS/2 JFT in the Per-Task Data Area rather than an SFT index
  8716.       because the OS/2 SFT can contain more than 255 entries
  8717. --------O-2164--DX0005-----------------------
  8718. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET SECOND SFT FLAGS WORD
  8719.     AH = 64h
  8720.     DX = 0005h (function number)
  8721.     CX = 636Ch (magic value, "cl")
  8722.     BX = 0000h (indicates special request)
  8723.     DI = DOS file handle
  8724. Return: AX = value of second flags word from OS/2 SFT entry for file
  8725. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8726.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8727.     the OS/2 SFT has two flags words rather than DOS's one word, and this
  8728.       function provides access to the word which is not present in DOS
  8729. --------O-2164--DX0006-----------------------
  8730. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - UNLOAD DOSKRNL SYMBOLS & LOAD PROGR
  8731.     AH = 64h
  8732.     DX = 0006h (function number)
  8733.     CX = 636Ch (magic value, "cl")
  8734.     BX = 0000h (indicates special request)
  8735.     ES:DI -> ASCIZ filespec
  8736.     DS = base address for loading
  8737. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8738.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8739.     this function is only supported by the kernel debugging version of
  8740.       OS2KRNL
  8741. --------O-2164--DX0007-----------------------
  8742. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET WinOS2 CALL GATE ADDRESS
  8743.     AH = 64h
  8744.     DX = 0007h (function number)
  8745.     CX = 636Ch (magic value, "cl")
  8746.     BX = 0000h (indicates special request)
  8747. Return: AX = call gate address
  8748. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8749.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8750.     used by WinOS2 to make direct calls to OS2KRNL, bypassing the overhead
  8751.       of DOSKRNL
  8752. --------O-2164--DX0008-----------------------
  8753. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET LOADING MESSAGE
  8754.     AH = 64h
  8755.     DX = 0008h (function number)
  8756.     CX = 636Ch (magic value, "cl")
  8757.     BX = 0000h (indicates special request)
  8758. Return: DS:DX -> '$'-terminated message "Loading.  Please wait."
  8759. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8760.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8761.     this function permits National Language Support for the initial message
  8762.       displayed while WinOS2 starts a full-screen session
  8763. --------O-2164--CX636C-----------------------
  8764. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - OS/2 API support
  8765.     AH = 64h
  8766.     CX = 636Ch ("cl")
  8767.     BX = API ordinal (see below)
  8768.     other registers as appropriate for API call
  8769.       if ordinal 0025h:
  8770.         DS:SI -> STARTDATA structure (see below)
  8771. Return: as appropriate for API call
  8772.       if ordinal 0025h:
  8773.         AX = return code
  8774.  
  8775. Values for API ordinal:
  8776.  0025h    DOS32StartSession
  8777.  0082h    DosGetCP
  8778.  00A7h    DosQFSAttach
  8779.  00BFh    DosEditName
  8780.  00CBh    DosForceDelete
  8781.  0144h    Dos32CreateEventSem
  8782.  0145h    Dos32OpenEvenSem
  8783.  0146h    Dos32CloseEventSem
  8784.  0147h    Dos32ResetEventSem
  8785.  0148h    Dos32PostEventSem
  8786.  0149h    Dos32WaitEventSem
  8787.  014Ah    Dos32QueryEventSem
  8788.  014Bh    Dos32CreateMutexSem
  8789.  014Ch    Dos32OpenMutexSem
  8790.  014Dh    Dos32CloseMutexSem
  8791.  014Eh    Dos32RequestMutexSem
  8792.  014Fh    Dos32ReleaseMutexSem
  8793.  0150h    Dos32QueryMutexSem
  8794.  0151h    Dos32CreateMuxWaitSem
  8795.  0152h    Dos32OpenMuxWaitSem
  8796.  0153h    Dos32CloseMuxWaitSem
  8797.  0154h    Dos32WaitMuxWaitSem
  8798.  0155h    Dos32AddMuxWaitSem
  8799.  0156h    Dos32DeleteMuxWaitSem
  8800.  0157h    Dos32QueryMuxWaitSem
  8801.  
  8802. Format of STARTDATA structure:
  8803. Offset    Size    Description
  8804.  00h    WORD    length of structure (must be 0018h,001Eh,0020h,0032h,or 003Ch)
  8805.  02h    WORD    relation of new process to caller (00h independent, 01h child)
  8806.  04h    WORD    fore/background (00h foreground, 01h background)
  8807.  06h    WORD    trace options (00h-02h, 00h = no trace)
  8808.  08h    DWORD    pointer to ASCIZ program title (max 62 chars) or 0000h:0000h
  8809.  0Ch    DWORD    pointer to ASCIZ program name (max 128 chars) or 0000h:0000h
  8810.  10h    DWORD    pointer to ASCIZ program args (max 144 chars) or 0000h:0000h
  8811.  14h    DWORD    "TermQ" (currently reserved, must be 00000000h)
  8812.  18h    DWORD    pointer to environment (max 486 bytes) or 0000h:0000h
  8813.  1Ch    WORD    inheritance (00h or 01h)
  8814.  1Eh    WORD    session type
  8815.         00h OS/2 session manager determines type (default)
  8816.         01h OS/2 full-screen
  8817.         02h OS/2 window
  8818.         03h PM
  8819.         04h VDM full-screen
  8820.         07h VDM window
  8821.  20h    DWORD    pointer to ASCIZ icon filename (max 128 chars) or 0000h:0000h
  8822.  24h    DWORD    "PgmHandle" (currently reserved, must be 00000000h)
  8823.  28h    WORD    "PgmControl"
  8824.  2Ah    WORD    initial column
  8825.  2Ch    WORD    initial row
  8826.  2Eh    WORD    initial width
  8827.  30h    WORD    initial height
  8828.  32h    WORD    reserved (0)
  8829.  34h    DWORD    "ObjectBuffer" (currently reserved, must be 00000000h)
  8830.  38h    DWORD    "ObjectBufferLen" (currently reserved, must be 00000000h)
  8831. --------D-2165-------------------------------
  8832. INT 21 - DOS 3.3+ - GET EXTENDED COUNTRY INFORMATION
  8833.     AH = 65h
  8834.     AL = info ID
  8835.         01h get general internationalization info
  8836.         02h get pointer to uppercase table
  8837.         04h get pointer to filename uppercase table
  8838.         05h get pointer to filename terminator table
  8839.         06h get pointer to collating sequence table
  8840.         07h (DOS 4+) get pointer to Double-Byte Character Set table
  8841.     BX = code page (FFFFh=global code page)
  8842.     DX = country ID (FFFFh=current country)
  8843.     ES:DI -> country information buffer (see below)
  8844.     CX = size of buffer (>= 5)
  8845. Return: CF set on error
  8846.         AX = error code (see AH=59h)
  8847.     CF clear if successful
  8848.         CX = size of country information returned
  8849.         ES:DI -> country information
  8850. Notes:    AL=05h appears to return same info for all countries and codepages; it
  8851.       has been documented for DOS 5+, but was undocumented in ealier
  8852.       versions
  8853.     NLSFUNC must be installed to get info for countries other than the
  8854.       default
  8855.     subfunctions 02h and 04h are identical under OS/2
  8856. SeeAlso: AH=38h,INT 2F/AX=1401h,INT 2F/AX=1402h,INT 2F/AX=14FEh
  8857.  
  8858. Format of country information:
  8859. Offset    Size    Description
  8860.  00h    BYTE    info ID
  8861. ---if info ID = 01h---
  8862.  01h    WORD    size
  8863.  03h    WORD    country ID
  8864.  05h    WORD    code page
  8865.  07h 34 BYTEs    country-dependent info (see AH=38h)
  8866. ---if info ID = 02h---
  8867.  01h    DWORD    pointer to uppercase table (see below)
  8868. ---if info ID = 04h---
  8869.  01h    DWORD    pointer to filename uppercase table (see below)
  8870. ---if info ID = 05h---
  8871.  01h    DWORD    pointer to filename character table (see below)
  8872. ---if info ID = 06h---
  8873.  01h    DWORD    pointer to collating table (see below)
  8874. ---if info ID = 07h (DOS 4+)---
  8875.  01h    DWORD    pointer to DBCS lead byte table (see below)
  8876.  
  8877. Format of uppercase table:
  8878. Offset    Size    Description
  8879.  00h    WORD    table size
  8880.  02h 128 BYTEs    uppercase equivalents (if any) of chars 80h to FFh
  8881.  
  8882. Format of collating table:
  8883. Offset    Size    Description
  8884.  00h    WORD    table size
  8885.  02h 256 BYTEs    values used to sort characters 00h to FFh
  8886.  
  8887. Format of filename terminator table:
  8888. Offset    Size    Description
  8889.  00h    WORD    table size (not counting this word)
  8890.  02h    BYTE    ??? (01h for MS-DOS 3.30-6.00)
  8891.  03h    BYTE    lowest permissible character value for filename
  8892.  04h    BYTE    highest permissible character value for filename
  8893.  05h    BYTE    ??? (00h for MS-DOS 3.30-6.00)
  8894.  06h    BYTE    first excluded character in range \ all characters in this
  8895.  07h    BYTE    last excluded character in range  / range are illegal
  8896.  08h    BYTE    ??? (02h for MS-DOS 3.30-6.00)
  8897.  09h    BYTE    number of illegal (terminator) characters
  8898.  0Ah  N BYTEs    characters which terminate a filename:    ."/\[]:|<>+=;,
  8899. Note:    partially documented for DOS 5+, but undocumented for earlier versions
  8900.  
  8901. Format of filename uppercase table:
  8902. Offset    Size    Description
  8903.  00h    WORD    table size
  8904.  02h 128 BYTEs    uppercase equivalents (if any) of chars 80h to FFh
  8905.  
  8906. Format of DBCS lead byte table:
  8907. Offset    Size    Description
  8908.  00h    WORD    length
  8909.  02h 2N BYTEs    start/end for N lead byte ranges
  8910.     WORD    0000h    (end of table)
  8911. --------D-2165-------------------------------
  8912. INT 21 - DOS 4+ - COUNTRY-DEPENDENT CHARACTER CAPITALIZATION
  8913.     AH = 65h
  8914.     AL = function
  8915.         20h capitalize character
  8916.         DL = character to capitalize
  8917.         Return: DL = capitalized character
  8918.         21h capitalize string
  8919.         DS:DX -> string to capitalize
  8920.         CX = length of string
  8921.         22h capitalize ASCIZ string
  8922.         DS:DX -> ASCIZ string to capitalize
  8923. Return: CF set on error
  8924.         AX = error code (see AH=59h)
  8925.     CF clear if successful
  8926. Note:    these calls have been documented for DOS 5+, but were undocumented in
  8927.       DOS 4.x.
  8928. --------D-216523-----------------------------
  8929. INT 21 U - DOS 4+ internal - DETERMINE IF CHARACTER REPRESENTS YES/NO RESPONSE
  8930.     AX = 6523h
  8931.     DL = character
  8932.     DH = second character of double-byte character (if applicable)
  8933. Return: CF set on error
  8934.     CF clear if successful
  8935.         AX = type
  8936.         00h no
  8937.         01h yes
  8938.         02h neither yes nor no
  8939. --------D-2165-------------------------------
  8940. INT 21 U - DOS 4+ internal - COUNTRY-DEPENDENT FILENAME CAPITALIZATION
  8941.     AH = 65h
  8942.     AL = function
  8943.         A0h capitalize filename character
  8944.         DL = character to capitalize
  8945.         Return: DL = capitalized character
  8946.         A1h capitalize counted filename string
  8947.         DS:DX -> filename string to capitalize
  8948.         CX = length of string
  8949.         A2h capitalize ASCIZ filename
  8950.         DS:DX -> ASCIZ filename to capitalize
  8951. Return: CF set on error
  8952.         AX = error code (see AH=59h)
  8953.     CF clear if successful
  8954. Note:    nonfunctional in DOS 4.00 through 6.00 due to a bug (the code sets a
  8955.       pointer depending on the high bit of AL, but doesn't clear the
  8956.       bit before branching by function number).
  8957. --------D-216601-----------------------------
  8958. INT 21 - DOS 3.3+ - GET GLOBAL CODE PAGE TABLE
  8959.     AX = 6601h
  8960. Return: CF set on error
  8961.         AX = error code (see AH=59h)
  8962.     CF clear if successful
  8963.         BX = active code page (see AX=6602h)
  8964.         DX = system code page
  8965. SeeAlso: AX=6602h
  8966. --------D-216602-----------------------------
  8967. INT 21 - DOS 3.3+ - SET GLOBAL CODE PAGE TABLE
  8968.     AX = 6602h
  8969.     BX = active code page (see below)
  8970.     DX = system code page (active page at boot time)
  8971. Return: CF set on error
  8972.         AX = error code (see AH=59h)
  8973.     CF clear if successful
  8974. SeeAlso: AX=6601h,INT 2F/AX=14FFh
  8975.  
  8976. Values for code page:
  8977.  437    US
  8978.  850    Multilingual
  8979.  852    Slavic/Latin II (DOS 5+)
  8980.  857    Turkish
  8981.  860    Portugal
  8982.  861    Iceland
  8983.  863    Canada (French)
  8984.  865    Norway/Denmark
  8985. --------D-2167-------------------------------
  8986. INT 21 - DOS 3.3+ - SET HANDLE COUNT
  8987.     AH = 67h
  8988.     BX = size of new file handle table for process
  8989. Return: CF clear if successful
  8990.     CF set on error
  8991.         AX = error code (see AH=59h)
  8992. Desc:    adjust the size of the per-process open file table, thus raising or
  8993.       lowering the limit on the number of files the caller can open
  8994.       simultaneously
  8995. Notes:    if BX <= 20, no action is taken if the handle limit has not yet been
  8996.       increased, and the table is copied back into the PSP if the limit
  8997.       is currently > 20 handles
  8998.     for file handle tables of > 20 handles, DOS 3.30 never reuses the
  8999.       same memory block, even if the limit is being reduced; this can lead
  9000.       to memory fragmentation as a new block is allocated and the existing
  9001.       one freed
  9002.     only the first 20 handles are copied to child processes in DOS 3.3-6.0
  9003.     increasing the file handles here will not, in general, increase the
  9004.       number of files that can be opened using the runtime library of a
  9005.       high-level language such as C
  9006. BUGS:    the original release of DOS 3.30 allocates a full 64K for the handle
  9007.       table on requests for an even number of handles
  9008.     DR-DOS 3.41 and 5.0 will lose track of any open file handles beyond
  9009.       the portion of the JFT retained after the call; MS-DOS will indicate
  9010.       error 04h if any of the JFT entries to be removed are open
  9011. SeeAlso: AH=26h,AH=86h
  9012. --------D-2168-------------------------------
  9013. INT 21 - DOS 3.3+ - "FFLUSH" - COMMIT FILE
  9014.     AH = 68h
  9015.     BX = file handle
  9016. Return: CF clear if successful
  9017.         all data still in DOS disk buffers is written to disk immediately,
  9018.           and the file's directory entry is updated
  9019.     CF set on error
  9020.         AX = error code (see AH=59h)
  9021. SeeAlso: AX=5D01h,AH=6Ah,INT 2F/AX=1107h
  9022. --------D-2169-------------------------------
  9023. INT 21 U - DOS 4+ internal - GET/SET DISK SERIAL NUMBER
  9024.     AH = 69h
  9025.     AL = subfunction
  9026.         00h get serial number
  9027.         01h set serial number
  9028.     BL = drive (0=default, 1=A, 2=B, etc)
  9029.     DS:DX -> disk info (see below)
  9030. Return: CF set on error
  9031.         AX = error code (see AH=59h)
  9032.     CF clear if successful
  9033.         AX destroyed
  9034.         (AL = 00h) buffer filled with appropriate values from extended BPB
  9035.         (AL = 01h) extended BPB on disk set to values from buffer
  9036. Notes:    does not generate a critical error; all errors are returned in AX
  9037.     error 0005h given if no extended BPB on disk
  9038.     does not work on network drives (error 0001h)
  9039.     buffer after first two bytes is exact copy of bytes 27h thru 3Dh of
  9040.       extended BPB on disk
  9041.     this function is supported under Novell NetWare versions 2.0A through
  9042.       3.11; the returned serial number is the one a DIR would display,
  9043.       the volume label is the NetWare volume label, and the file system
  9044.       is set to "FAT16".
  9045.     the serial number is computed from the current date and time when the
  9046.       disk is created; the first part is the sum of the seconds/hundredths
  9047.       and month/day, the second part is the sum of the hours/minutes and
  9048.       year
  9049.     the volume label which is read or set is the one stored in the extended
  9050.       BPB on disks formatted with DOS 4.0+, rather than the special root
  9051.       directory entry used by the DIR command in COMMAND.COM (use AH=11h
  9052.       to find that volume label)
  9053. SeeAlso: AX=440Dh
  9054.  
  9055. Format of disk info:
  9056. Offset    Size    Description
  9057.  00h    WORD    info level (zero)
  9058.  02h    DWORD    disk serial number (binary)
  9059.  06h 11 BYTEs    volume label or "NO NAME    " if none present
  9060.  11h  8 BYTEs    (AL=00h only) filesystem type--string "FAT12   " or "FAT16   "
  9061. --------O-2169-------------------------------
  9062. INT 21 - DR-DOS 5.0 - NULL FUNCTION
  9063.     AH = 69h
  9064. Return: AL = 00h
  9065. SeeAlso: AH=18h
  9066. --------v-216969-----------------------------
  9067. INT 21 - VIRUS - "Rape-747" - INSTALLATION CHECK
  9068.     AX = 6969h
  9069. Return: AX = 0666h if resident
  9070. SeeAlso: AX=58CCh,AH=76h"VIRUS"
  9071. --------d-2169FFDX0000-----------------------
  9072. INT 21 U - CUBIT v4.00 - GET CUBIT INT 21 HANDLER
  9073.     AX = 69FFh
  9074.     DX = 0000h
  9075.     BX = CB00h (magic value)
  9076. Return: ES:BX -> CUBITR.EXE handler for INT 21
  9077. Note:    the installation check consists of testing that the first eight bytes
  9078.       at the returned interrupt handler are EBh 07h "CUBITR" (a short
  9079.       jump around the signature followed by the signature); the byte
  9080.       following the signature (i.e. ES:[BX+8]) indicates whether CUBITR
  9081.       is active (01h) or disabled (00h)
  9082. SeeAlso: AX=69FFh/DX=CFBFh
  9083. Index:    installation check;CUBIT
  9084. --------d-2169FFDXCFBF-----------------------
  9085. INT 21 U - CUBIT v4.00 - UNINSTALL
  9086.     AX = 69FFh
  9087.     DX = CFBFh
  9088.     CX = EFCFh
  9089.     BX = CB00h (magic value)
  9090. Return: ES:BX -> CUBITR.EXE handler for INT 21
  9091.     CX = status
  9092.         2020h successful
  9093.         2222h failed
  9094. Note:    if DX is neither 0000h nor CFBFh on entry, some other code is executed
  9095. SeeAlso: AX=69FFh/DX=0000h
  9096. --------D-216A-------------------------------
  9097. INT 21 U - DOS 4+ - COMMIT FILE
  9098.     AH = 6Ah
  9099.     BX = file handle
  9100. Return: CF clear if successful
  9101.         AH = 68h
  9102.     CF set on error
  9103.         AX = error code (06h) (see AH=59h)
  9104. Note:    identical to AH=68h in DOS 5.0-6.0; not known whether this is the case
  9105.       in DOS 4.x
  9106. SeeAlso: AH=68h
  9107. --------D-216B-------------------------------
  9108. INT 21 U - DOS 4.0 internal - IFS IOCTL
  9109.     AH = 6Bh
  9110.     AL = subfunction
  9111.         00h ???
  9112.         DS:SI -> Current Directory Structure???
  9113.         CL = drive (1=A:)
  9114.         01h ???
  9115.         DS:SI -> ???
  9116.         CL = file handle???
  9117.         02h ???
  9118.         DS:SI -> Current Directory Structure???
  9119.         DI = ???
  9120.         CX = drive (1=A:)
  9121. Return: CF set on error
  9122.         AX = error code (see INT 21/AH=59h)
  9123.     CF clear if successful
  9124. Note:    passed through to INT 2F/AX=112Fh with AX on top of stack
  9125. SeeAlso: AH=6Bh"DOS 5",INT 2F/AX=112Fh
  9126. --------D-216B-------------------------------
  9127. INT 21 U - DOS 5+ - NULL FUNCTION
  9128.     AH = 6Bh
  9129. Return: AL = 00h
  9130. Note:    this function does nothing and returns immediately
  9131. SeeAlso: AH=6Bh"DOS 4"
  9132. --------D-216C00-----------------------------
  9133. INT 21 - DOS 4+ - EXTENDED OPEN/CREATE
  9134.     AX = 6C00h
  9135.     BL = open mode as in AL for normal open (see INT 21/AH=3Dh)
  9136.         bit 7: inheritance
  9137.         bits 4-6: sharing mode
  9138.         bit 3 reserved
  9139.         bits 0-2: access mode
  9140.     BH = flags
  9141.         bit 6 = auto commit on every write (see also AH=68h)
  9142.         bit 5 = return error rather than doing INT 24h
  9143.     CX = create attribute
  9144.         bits 6-15 reserved
  9145.         bit 5: archive
  9146.         bit 4: reserved
  9147.         bit 3: volume label
  9148.         bit 2: system
  9149.         bit 1: hidden
  9150.         bit 0: readonly
  9151.     DL = action if file exists/does not exist
  9152.         bits 7-4 action if file does not exist
  9153.             0000 fail
  9154.             0001 create
  9155.         bits 3-0 action if file exists
  9156.             0000 fail
  9157.             0001 open
  9158.             0010 replace/open
  9159.     DH = 00h (reserved)
  9160.     DS:SI -> ASCIZ file name
  9161. Return: CF set on error
  9162.        AX = error code (see AH=59h)
  9163.     CF clear if successful
  9164.        AX = file handle
  9165.        CX = status
  9166.         1 file opened
  9167.         2 file created
  9168.         3 file replaced
  9169. Note:    the PC LAN Program only supports DL=01h, DL=10h/sharing=compatibility,
  9170.       and DL=12h
  9171. SeeAlso: AH=3Ch,AH=3Dh,AX=6C01h
  9172. --------O-216C01-----------------------------
  9173. INT 21 U - OS/2 v2.0 - "DosOpen2"
  9174.     AX = 6C01h
  9175.     ???
  9176. Return: ???
  9177. Note:    this function is similar to AX=6C00h, but supports OS/2's extended
  9178.       attributes
  9179. SeeAlso: AX=5704h,AX=6C00h,AH=6Fh"OS/2"
  9180. --------D-216D-------------------------------
  9181. INT 21 U - DOS 5+ ROM - FIND FIRST ROM PROGRAM
  9182.     AH = 6Dh
  9183.     DS:DX -> ASCIZ program name
  9184. Return: CF clear if found
  9185.         [DTA] = ASCIZ name found
  9186.     CF set if not found
  9187. SeeAlso: AH=6Eh,AH=6Fh
  9188. --------O-216D-------------------------------
  9189. INT 21 U - OS/2 v1.x FAPI - "DosMkDir2"
  9190.     AH = 6Dh
  9191.     ???
  9192. Return: ???
  9193. Note:    also supported by OS/2 v2.0+ Virtual DOS Machines
  9194. SeeAlso: AH=39h
  9195. --------D-216E-------------------------------
  9196. INT 21 U - DOS 5+ ROM - FIND NEXT ROM PROGRAM
  9197.     AH = 6Eh
  9198.     [DTA] = result of previous FindFirst ROM
  9199. Return: CF clear if found
  9200.         [DTA] = ASCIZ name found
  9201.     CF set if not found
  9202. SeeAlso: AH=6Dh
  9203. --------O-216E-------------------------------
  9204. INT 21 U - OS/2 v1.x FAPI - "DosENumAttrib"
  9205.     AH = 6Eh
  9206.     ???
  9207. Return: ???
  9208. Note:    also supported by OS/2 v2.0+ Virtual DOS Machines
  9209. SeeAlso: AX=5703h,AH=6Fh"OS/2",INT 2F/AX=112Dh
  9210. --------O-216F-------------------------------
  9211. INT 21 U - OS/2 v1.x FAPI - "DosQMaxEASize" - GET MAXIMUM SIZE OF EXTENDED ATTR
  9212.     AH = 6Fh
  9213.     ???
  9214. Return: ???
  9215. Note:    also supported by OS/2 v2.0+ Virtual DOS Machines
  9216. SeeAlso: AX=5703h,AX=6C01h,AH=6Eh"OS/2"
  9217. --------D-216F00-----------------------------
  9218. INT 21 U - DOS 5+ ROM - GET ROM SCAN START ADDRESS
  9219.     AX = 6F00h
  9220. Return: BX = current ROM scan starting segment
  9221. SeeAlso: AH=6Dh,AX=6F01h,AX=6F02h
  9222. --------D-216F01-----------------------------
  9223. INT 21 U - DOS 5+ ROM - SET ROM SCAN START ADDRESS
  9224.     AX = 6F01h
  9225.     BX = new ROM scan starting address
  9226. SeeAlso: AX=6F00h,AX=6F03h
  9227. --------D-216F02-----------------------------
  9228. INT 21 U - DOS 5+ ROM - GET EXCLUSION REGION LIST
  9229.     AX = 6F02h
  9230.     ES:BX -> buffer for exclusion region list (see below)
  9231. Return: ES:BX = 0000h:0000h on error, unchanged if buffer filled
  9232. SeeAlso: AX=6F00h,AX=6F03h
  9233.  
  9234. Format of exclusion region list:
  9235. Offset    Size    Description
  9236.  00h    WORD    number of entries
  9237.  02h 2N WORDs    start/end segments of N excluded regions
  9238. --------D-216F03-----------------------------
  9239. INT 21 U - DOS 5+ ROM - SET EXCLUSION REGION LIST
  9240.     AX = 6F03h
  9241.     DS:DX -> new exclusion region list (see AX=6F02h)
  9242. Note:    DOS saves only the pointer and assumes that the contents of the list
  9243.       are never changed, and that regions do not overlap
  9244. SeeAlso: AX=6F01h,AX=6F02h
  9245. ----------217070BX6060-----------------------
  9246. INT 21 - PCW Weather Card interface - GET DATA SEGMENT
  9247.     AX = 7070h
  9248.     BX = 6060h
  9249.     CX = 7070h
  9250.     DX = 7070h
  9251.     SI = 7070h
  9252.     DI = 7070h
  9253. Return: AX = segment of data structure
  9254. Notes:    the data structure is at offset 516 from this segment.
  9255.     the update byte is at offset 514 from this segment.  Updates are
  9256.       once per second while this byte is nonzero and it is decremented
  9257.       once per second.  While this byte is 0 updates are once per minute.
  9258. SeeAlso: AX=7070h/BX=7070h
  9259.  
  9260. Format of data structure:
  9261. Offset    Type    Description
  9262.  00h    WORD    hour
  9263.  02h    WORD    minute
  9264.  04h    WORD    second
  9265.  06h    WORD    day
  9266.  08h    WORD    month
  9267.  0Ah    WORD    year
  9268.  0Ch    WORD    ???
  9269.  0Eh    WORD    relative barometric pressure (in 1/100 inches)
  9270.  10h    WORD    ???
  9271.  12h    WORD    ???
  9272.  14h    WORD    temperature 1 (in 1/10 degrees F)
  9273.  16h    WORD    temperature 1 lowest (in 1/10 degrees F)
  9274.  18h    WORD    temperature 1 highest (in 1/10 degrees F)
  9275.  1Ah    WORD    temperature 2 (in 1/10 degrees F)
  9276.  1Ch    WORD    temperature 2 lowest (in 1/10 degrees F)
  9277.  1Eh    WORD    temperature 2 highest (in 1/10 degrees F)
  9278.  20h    WORD    wind speed (in MPH)
  9279.  22h    WORD    average of 60 wind speed samples (in MPH)
  9280.  24h    WORD    highest wind speed (in MPH)
  9281.  26h    WORD    wind chill factor  (in 1/10 degrees F)
  9282.  28h    WORD    lowest wind chill factor (in 1/10 degrees F)
  9283.  2Ah    WORD    ???
  9284.  2Ch    WORD    wind direction (in degrees)
  9285.  2Eh    WORD    accumulated daily rainfall (in 1/10 inches)
  9286.  30h    WORD    accumulated annual rainfall (in 1/10 inches)
  9287. ----------217070BX7070-----------------------
  9288. INT 21 - PCW Weather Card interface - INSTALLATION CHECK
  9289.     AX = 7070h
  9290.     BX = 7070h
  9291.     CX = 7070h
  9292.     DX = 7070h
  9293.     SI = 7070h
  9294.     DI = 7070h
  9295. Return: AX = 0070h
  9296.     BX = 0070h
  9297.     CX = 0070h
  9298.     DX = 0070h
  9299.     SI = 0070h
  9300.     DI = 0070h
  9301. SeeAlso: AX=7070h/BX=6060h,AX=8080h
  9302. --------v-2176-------------------------------
  9303. INT 21 - VIRUS - "Klaeren"/"Hate" - INSTALLATION CHECK
  9304.     AH = 76h
  9305. Return: AL = 48h if resident
  9306. SeeAlso: AX=6969h,AX=7700h"VIRUS"
  9307. --------v-217700-----------------------------
  9308. INT 21 - VIRUS - "Growing Block" - INSTALLATION CHECK
  9309.     AX = 7700h
  9310. Return: AX = 0920h if resident
  9311. SeeAlso: AH=76h,AH=7Fh
  9312. --------V-217734-----------------------------
  9313. INT 21 U - SCROLLit v1.7 - INSTALLATION CHECK
  9314.     AX = 7734h
  9315. Return: DX = 3477h if installed
  9316.         AX = segment of resident code
  9317. Program: ScrollIt is a shareware backscroll utility by Bromfield Software
  9318.       Products
  9319. --------U-217761-----------------------------
  9320. INT 21 - WATCH.COM v3.2+ - INSTALLATION CHECK
  9321.     AX = 7761h ('wa')
  9322. Return: AX = 6177h
  9323. Note:    WATCH.COM is part of the "TSR" package by TurboPower Software
  9324. SeeAlso: INT 16/AX=7761h
  9325. --------v-217F-------------------------------
  9326. INT 21 - VIRUS - "Squeaker" - INSTALLATION CHECK
  9327.     AH = 7Fh
  9328. Return: AH = 80h if resident
  9329. SeeAlso: AX=7700h,AH=83h"VIRUS"
  9330. --------!------------------------------------
  9331.