home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / sys_util / inter37a.zip / INTERRUP.D < prev    next >
Text File  |  1993-10-03  |  345KB  |  9,260 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. ----------214380-----------------------------
  201. INT 21 - Novell DOS 7 - UNDELETE PENDING DELETE FILE
  202.     AX = 4380h
  203.     ???
  204. Return: ???
  205. SeeAlso: AH=41h,AX=4381h
  206. ----------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 - 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 ??? flags
  1260.         BX = bitmask of bits of ??? flags (word at state+10h) to toggle
  1261.         Return: AH = 00h (successful)
  1262.         Note:    enables A20 first
  1263.     AH = 0Ah toggle ??? flags
  1264.         BX = bitmask of bits of ??? (word at state+32h) to toggle
  1265.         Return: AH = 00h (successful)
  1266.         Notes:    enabled A20 first
  1267.             does ??? if bit 3 on after specified bits are toggled
  1268.     AH = 0Bh toggle ??? flags
  1269.         BX = bitmask of bits of ??? (word at state+34h) to toggle
  1270.         Return: AH = 00h (successful)
  1271.         Note:    enables A20 first
  1272.     AH = 0Ch toggle ??? flags
  1273.         BX = bitmask of bits of ??? (word at state+40h) to toggle
  1274.         Return: AH = 00h (successful)
  1275.         Note:    enables A20 first
  1276.     AH = 0Dh specify 386MAX high-memory location
  1277.         BX = segment address of high-memory real-mode portion of 386MAX
  1278.         CX = current segment of real-mode stub???
  1279.         Return: AH = status (00h successful)
  1280.             ???
  1281.     AH = 0Eh CRT controller register virtualization
  1282.         AL = subfunction
  1283.             00h allow access to CRTC I/O ports 03B4h/03B5h, 03D4h/03D5h
  1284.             01h trap accesses to CRTC I/O ports
  1285.     AH = 0Fh reboot system
  1286.         Return: never
  1287.     AH = 11h get high memory information
  1288.         ES:DI -> 96-byte buffer for high memory info
  1289.         Return: AH = 00h (successful)
  1290.             ES:DI buffer filled
  1291.         Notes:    each byte in buffer contains bit flags for a 4K page in
  1292.               the A000h-FFFFh region
  1293.                 bit 0: ???
  1294.                 bit 1: physical address same as linear address
  1295.                 bit 2: EMS page frame
  1296.                 bit 6: ???
  1297.             this function can take over a second to execute,
  1298.               because it also tests the memory
  1299.     AH = 12h ???
  1300.         AL = subfunction
  1301.             00h ???
  1302.             01h ???
  1303.         ???
  1304.         Return: AH = 00h (successful) if AL=00h or 01h
  1305.             AH = 8Fh otherwise
  1306.     AH = 13h page protection???
  1307.         AL = subfunction
  1308.             00h set all ??? 4K pages to read-only???
  1309.             01h set all ??? 4K pages to read-write???
  1310.         ???
  1311.         Return: AH = 00h (successful) if AL=00h or 01h
  1312.             AH = 8Fh otherwise
  1313.     AH = 14h ???
  1314.         ES:DI -> 54-byte buffer for ???
  1315.         Return: AH = 00h if successful
  1316.             AH = A4h on error
  1317.     AH = 15h ???
  1318.         ???
  1319.         Return: ???
  1320.     AH = 16h get 386MAX memory usage screen
  1321.         ES:DI -> buffer for memory info display
  1322.         CX = size of buffer in bytes
  1323.         Return:    ES:DI buffer filled with '$'-terminated string (if
  1324.                 large enough to hold entire usage screen)
  1325.         Note:    the screen is 0303h bytes in v7.00
  1326.     AH = 17h Windows 3 startup/termination
  1327.         AL = subfunction
  1328.             00h Windows3 initializing
  1329.             DX (on stack) = Windows startup flags
  1330.             DI = Windows version number (major in upper byte)
  1331.             ES:BX = 0000h:0000h
  1332.             DS:SI = 0000h:0000h
  1333.             Return: CX = 0000h if OK for Windows to load
  1334.                    <> 0 if Windows should not load
  1335.                 ES:BX -> startup info structure
  1336.                 DS:SI -> Virtual86 mode enable/disable callback
  1337.             01h Windows3 terminating
  1338.             ES:BX -> ???
  1339.             DX (on stack) = Windows exit flags
  1340.             Return: ???
  1341.     AH = 18h QPMS (Qualitas Protected Memory Services)
  1342.         AL = subfunction
  1343.             00h get QPMS configuration
  1344.             Return: BX = starting segment of QPMS memory window
  1345.                 CX = number of 4K pages reserved for QPMS???
  1346.                 DX = number of 4K pages in QPMS window???
  1347.             01h map QPMS memory page???
  1348.             BX = 4K page number within memory reserved for QPMS???
  1349.             CL = 4K page number within QPMS memory window???
  1350.             02h mark all QPMS memory read-only
  1351.             03h mark all QPMS memory read-write
  1352.         Return: AH = status (00h,8Ah,8Bh,8Fh)
  1353.     AH = 19h get linear address for physical address
  1354.         EDX = physical address (low word on stack)
  1355.         Return: AH = status
  1356.                 00h successful
  1357.                 EDX = linear address at which physical address
  1358.                     may be accessed
  1359.                 8Bh physical address currently not addressable
  1360.         Note:    enables A20 first
  1361.     AH = 1Ah set page table entry???
  1362.         EDX = new page table entry??? (low word on stack)
  1363.         ESI = linear address of page???
  1364.         Return: AH = status (00h,8Bh)
  1365.         Note:    enables A20 first
  1366.     AH = 1Bh get ???
  1367.         Return: AH = status
  1368.             BX = ???
  1369.             CX = ???
  1370.             EDX = physical address of ???
  1371.     AH = 1Ch get original interrupt vector
  1372.         AL = interrupt vector (00h-7Fh)
  1373.         Return: AH = 00h (successful)
  1374.             EDX = original vector before 386MAX loaded (segment in
  1375.                 high word, offset in low word)
  1376.         Note:    no range checking is performed; requests for INTs 80h-
  1377.               FFh will return random values
  1378.     AH = 1Dh display string???
  1379.         SI = ???
  1380.         Return: AH = 00h (successful)
  1381.             ???
  1382.     AH = 1Eh get memory info
  1383.         ES:DI -> memory info (see below)
  1384.         Return: ???
  1385.     AH = 1Fh get DPMI host information
  1386.         Return: AX = 0000h if successful
  1387.             BX = DPMI flags (see INT 31/AX=0400h)
  1388.             CL = CPU type (02h = 80286, 03h = 80386, etc.)
  1389.             DX = DPMI ver supported (DH=major, DL=2-digit minor)
  1390.             SI = ???
  1391.             ES???:DI -> ???
  1392.         Note:    NOP if NODPMI switch specified
  1393.     AH = 20h (v7.00) ???
  1394.         AL = ???
  1395.         Return: EDX = ??? for ??? AL
  1396.     AH = 21h (v7.00) STACKS support
  1397.         AL = 00h get STACKS parameters
  1398.         Return: BX = ???
  1399.             CX = number of stacks for hardware interrupts
  1400.             DX = size of each stack in bytes
  1401.             SI = ???
  1402.             DI = ???
  1403.         AL = 01h set ??? "EMM2_DSTKS"
  1404.         EBX = ???
  1405.         ECX = ???
  1406.         DS = ???
  1407.         AL = 02h ???
  1408.         BL = ??? (00h-03h)
  1409.         ???
  1410.     AH = 22h (v7.00)
  1411.         AL = 00h ???
  1412.         AL = nonzero ???
  1413.         ???
  1414.     AH = 23h (v7.00) ???
  1415.         AL = 00h set ???
  1416.         ???
  1417.         AL = 01h ???
  1418.         ???
  1419.         AL = 02h get ???
  1420.         CX = size of buffer
  1421.         ES:DI -> buffer for ???
  1422.         Return: CX = number of bytes actually returned
  1423.         AL = 03h set ???
  1424.         ES:DI -> buffer containing ASCIZ ???
  1425.         AL = 04h get ???
  1426.         ES:DI -> buffer for ASCIZ ???
  1427.     AH = 24h (v7.00) ???
  1428.         AL = 00h get ???
  1429.         Return: BX = current state of ??? (0/1)
  1430.         AL = 01h set ???
  1431.         BX = new state of ??? (0/1)
  1432.         AL = other ???
  1433.     AH = 25h (v7.00) ???
  1434.     AH = 26h (v7.00) ???
  1435.         Return: BX = ???
  1436.             CX = ???
  1437.     AH = 27h (v7.00) ???
  1438.         AL = 00h get ???
  1439.         Return: BX = ???
  1440.         AL = 01h ???
  1441.         BX = ???
  1442.         ES??? = ???
  1443.         AL = 02h ???
  1444.         ???
  1445.         AL = 03h ???
  1446.         CX = ???
  1447.         DX = ???
  1448.         ES??? = ???
  1449.         Return: ???
  1450.     AH = 28h (v7.00) get ???
  1451.         Return: CX = ???
  1452.             DX = ???
  1453.     AH = 29h (v7.00) get ???
  1454.         Return: AX = ???
  1455.     AH = 40h-5Dh EMS services (see INT 67/AH=40h etc)
  1456.     AH = DEh VCPI services (see INT 67/AX=DE00h etc)
  1457. Return: AH = status (as for EMS INT 67 calls)
  1458.         00h successful
  1459.         80h internal error
  1460.         81h hardware malfunction
  1461.         83h invalid handle
  1462.         84h    undefined function
  1463.         8Ah invalid logical page nuber
  1464.         8Bh illegal physical page number
  1465.         8Fh undefined subfunction
  1466.         A4h access denied
  1467.         etc.
  1468.     STACK popped (value placed in DX if no specific return value for DX)
  1469.  
  1470. Format of memory speed record:
  1471. Offset    Size    Description
  1472.  00h    DWORD    page table entry for 4K page
  1473.  04h    WORD    number of microticks (840ns units) required for REP LODSD of
  1474.         entire 4K page
  1475.  
  1476. Format of memory info [array]:
  1477. Offset    Size    Description
  1478.  00h    DWORD    ???
  1479.  04h    DWORD    ???
  1480.  08h  2 BYTEs    ???
  1481.  0Ah    BYTE    type??? (03h = conventional???)
  1482.  0Bh    BYTE    ???
  1483. --------V-214402-----------------------------
  1484. INT 21 - PGS1600.DEV - IOCTL - GET CONFIGURATION INFO
  1485.     AX = 4402h
  1486.     BX = file handle for device "PGS1600$"
  1487.     CX = 0018h (size of buffer)
  1488.     DS:DX -> configuration buffer (see below)
  1489. Return: CF clear if successful
  1490.         buffer filled
  1491.         AX = number of bytes actually copied
  1492.     CF set on error
  1493.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1494. Program: PGS1600.DEV is a device driver for the Cornerstone Technology PG1600
  1495.       display adapter, which provides a 1600x1200 monochrome display as
  1496.       well as one of two emulations, MDA or CGA.
  1497. SeeAlso: AX=4403h"PGS1600"
  1498.  
  1499. Format of configuration information:
  1500. Offset    Size    Description
  1501.  00h    WORD    version (high byte = major, low byte = minor)
  1502.  02h    WORD    board initialisation mode
  1503.  04h    WORD    board I/O address
  1504.         03D0h CGA emulation
  1505.         03B0h MDA emulation
  1506.         0390h no emulation
  1507.         0350h no emulation, alternate
  1508.  06h    WORD    emulation buffer segment
  1509.         B800h    CGA emulation
  1510.         B000h    MDA emulation
  1511.         0000h    no emulation
  1512.  08h    WORD    PG1600 graphics buffer segment
  1513.  0Ah    WORD    number of bytes between consecutive graphic rows
  1514.  0Ch    WORD    horizontal pixel size
  1515.  0Eh    WORD    vertical pixel size
  1516.  10h    WORD    horizontal dots per inch
  1517.  12h    WORD    vertical dots per inch
  1518.  14h    WORD    graphics buffer bits per pixel
  1519.  16h    WORD    monitor bits per pixel
  1520. --------N-214402-----------------------------
  1521. INT 21 - PC/TCP IPCUST.SYS - RESET CONFIGURATION DATA READ POINTER
  1522.     AX = 4402h
  1523.     BX = file handle referencing device "$IPCUST"
  1524.     CX, DS:DX ignored
  1525. Return: CF clear if successful
  1526.         AX destroyed
  1527.     CF set on error
  1528.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1529. Notes:    there are a total of 378h bytes of configuration data for IPCUST.SYS
  1530.       version 2.05.     If less than the entire data is read or written,
  1531.       the next read/write continues where the previous one ended; this
  1532.       call and AX=4403h both reset the location at which the next
  1533.       operation starts to zero
  1534.     v2.1+ uses a new configuration method, but allows the installation
  1535.       of IPCUST.SYS for backward compatibility with other software which
  1536.       must read the PC/TCP configuration
  1537. SeeAlso: AH=3Fh"IPCUST",AH=40h"IPCUST",AX=4403h"IPCUST"
  1538. --------N-214402-----------------------------
  1539. INT 21 - WORKGRP.SYS - GET API ENTRY POINT
  1540.     AX = 4402h
  1541.     BX = file handle for device "NET$HLP$"
  1542.     CX = 0008h
  1543.     DS:DX -> buffer for entry point record
  1544. Return: CF clear if successful
  1545.         AX = number of bytes actually read
  1546.     CF set on error
  1547.         AX = error code
  1548. Program: WORKGRP.SYS is distributed with MS-DOS 6.0 to permit communication
  1549.       with PCs running Windows for Workgroups or LAN Manager
  1550. SeeAlso: AH=3Fh"WORKGRP.SYS"
  1551.  
  1552. Format of entry point record:
  1553. Offset    Size    Description
  1554.  00h    WORD    3633h  \ signature???
  1555.  02h    WORD    EF6Fh  /
  1556.  04h    DWORD    address of entry point
  1557. Note:    first four bytes of buffer must be 6Fh E9h 33h 36h on entry when using
  1558.       IOCTL rather than READ to get the entry point record
  1559.  
  1560. Call WORKGRP entry point with:
  1561.     STACK:    WORD    function number (0000h-0009h)
  1562. Return: STACK unchanged
  1563.  
  1564. Call WORKGRP function 00h with:
  1565.     STACK:    WORD    0000h (function "get ???")
  1566. Return: DX:AX -> data table
  1567.  
  1568. Call WORKGRP function 01h with:
  1569.     STACK:    WORD    0001h (function "hook ???")
  1570. Return: STACK:    DWORD    pointer to ???
  1571.         WORD    0001h (function number)
  1572.  
  1573. Call WORKGRP function 02h with:
  1574.     STACK:    WORD    0002h (function "unhook ???")
  1575.     ???
  1576. Return: ???
  1577.  
  1578. Call WORKGRP function 03h with:
  1579.     STACK:    WORD    0003h (function "reenable printer port")
  1580.         WORD    LPT port number
  1581. Return: ???
  1582.  
  1583. Call WORKGRP function 04h with:
  1584.     STACK:    WORD    0004h (function "disable printer port")
  1585.         WORD    LPT port number
  1586. Return: ???
  1587.  
  1588. Call WORKGRP function 05h with:
  1589.     STACK:    WORD    0005h (function "???")
  1590.         ???
  1591. Return: ???
  1592.  
  1593. Call WORKGRP function 06h with:
  1594.     STACK:    WORD    0006h (function "???")
  1595. Return: STACK unchanged
  1596.     AX = 0000h
  1597.     DX = 0000h
  1598.  
  1599. Call WORKGRP functions 07h-09h with:
  1600.     STACK:    WORD    0007h-0009h (NOP functions)
  1601. Return: STACK unchanged
  1602.     AX = 0001h
  1603.     DX = 0000h
  1604. --------N-214402-----------------------------
  1605. INT 21 - 10NET v5.0 - 10BEUI.DOS - API
  1606.     AX = 4402h
  1607.     BX = file handle referencing device "10BEUI$"
  1608.     DS:DX -> parameter record (see below)
  1609.     CX ignored
  1610. Return: CF clear if successful
  1611.         AX destroyed
  1612.     CF set on error
  1613.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1614. SeeAlso: AX=4402h"10MEMMGR",INT 6F/AH=00h"10NET"
  1615.  
  1616. Format of parameter record:
  1617. Offset    Size    Description
  1618.  00h    WORD    000Ah (function number???)
  1619.  02h    WORD    ???
  1620.  04h    DWORD    pointer to buffer for ???
  1621.  08h  4 BYTEs    ???
  1622.  0Ch    WORD    transfer size
  1623. --------N-214402-----------------------------
  1624. INT 21 - 10NET v5.0 - 10MEMMGR.SYS - API
  1625.     AX = 4402h
  1626.     BX = file handle referencing device "MEMMGR0$"
  1627.     DS:DX -> 6-byte buffer for interface info (see below)
  1628.     CX ignored
  1629. Return: CF clear if successful
  1630.         AX destroyed
  1631.     CF set on error
  1632.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1633. SeeAlso: AX=4402h"10BEUI",INT 6F/AH=00h"10NET"
  1634.  
  1635. Format of interface info:
  1636. Offset    Size    Description
  1637.  00h    DWORD    address of entry point (see below)
  1638.  04h    WORD    version (0500h for v5.00)
  1639.  
  1640. Call entry point with:
  1641.     AL = 01h ???
  1642.         BX = ???
  1643.         Return: CF clear if successful
  1644.             CF set on error
  1645.             AX = error code
  1646.     AL = 02h ???
  1647.         ???
  1648.     AL = 03h ???
  1649.         ???
  1650.     AL = 04h set/restore memory allocation strategy
  1651.         BX = subfunction
  1652.         0000h set strategy
  1653.         0001h restore strategy
  1654.         Return: CF clear if successful
  1655.             CF set on error (if function disabled)
  1656.             various registers destroyed
  1657.     AL = other
  1658.         Return: CF set
  1659.             AX = 0000h
  1660.             BL = 01h
  1661. --------m-214402SF00-------------------------
  1662. INT 21 U - Memory Managers - GET API ENTRY POINT
  1663.     AX = 4402h subfn 00h
  1664.     BX = file handle for device "EMMXXXX0"
  1665.     CX = 0006h (size of buffer in bytes)
  1666.     DS:DX -> buffer for API entry point record (see below)
  1667.         first byte must be 00h on entry
  1668. Return: CF clear if successful
  1669.         buffer filled (see INT 67/AH=3Fh function 1B00h)
  1670.     CF set on error
  1671.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1672. Notes:    this function is supported by Microsoft EMM386.EXE v4.45+ and
  1673.       CEMM v5.10+, and is intended for use by MS Windows as it starts up
  1674.     if no other program has hooked INT 67, an alternate installation
  1675.       check for CEMM is testing for the string
  1676.       "COMPAQ EXPANDED MEMORY MANAGER 386" at offset 14h in the INT 67
  1677.       handler's segment; if present, the word at offset 12h contains the
  1678.       offset of the API entry point
  1679. SeeAlso: AX=4402h/SF=01h,AX=4402h/SF=02h,AX=4402h"EMM386",INT 67/AH=3Fh
  1680.  
  1681. Format of API entry point record:
  1682. Offset    Size    Description
  1683.  00h    WORD    ??? (0022h for CEMM 5.11, 0025h for MS EMM386 v4.45)
  1684.  02h    DWORD    manager's private API entry point (see below,INT 67/AX=FFA5h)
  1685.  
  1686. Call CEMM v5.10+ entry point with:
  1687.     AH = 00h get memory manager's state
  1688.         Return: AH = state
  1689.             bit 0: turned OFF
  1690.             bit 1: AUTO mode enabled
  1691.     AH = 01h set memory manager's state
  1692.         AL = new state (00h ON, 01h OFF, 02h AUTO)
  1693.         Return: CF clear if successful
  1694.             CF set on error
  1695.     AH = 02h Weitek coprocessor support
  1696.         AL = subfunction
  1697.         00h get Weitek support state
  1698.             Return: AL = status
  1699.                 bit 0: Weitek coprocessor is present
  1700.                 bit 1: Weitek support is enabled
  1701.         01h turn on Weitek support
  1702.         02h turn off Weitek support
  1703.         Return: CF clear if successful
  1704.             CF set on error
  1705.             AH = error code (01h invalid subfunc, 02h no Weitek)
  1706.     AH = 05h get statistics
  1707.         ???
  1708.     AH > 06h
  1709.         Return: CF set
  1710.             AH = 01h (invalid function)
  1711. Notes:    AH=03h,04h,06h are NOPs which return CF clear, presumably for backwards
  1712.       compatibility with earlier versions of CEMM
  1713.     in v5.11, AH=05h merely prints an error message (using INT 21/AH=09h)
  1714.       stating that a different version of CEMM is installed and it is
  1715.       therefore not possible to display the statistics
  1716. --------m-214402SF01-------------------------
  1717. INT 21 U - Memory Managers - GET EMM IMPORT STRUCTURE ADDRESS
  1718.     AX = 4402h subfn 01h
  1719.     BX = file handle for device "EMMXXXX0"
  1720.     CX = 0006h (size of buffer in bytes)
  1721.     DS:DX -> buffer for EMM import structure record (see below)
  1722.         first byte must be 01h on entry
  1723. Return: CF clear if successful
  1724.         buffer filled (see INT 67/AH=3Fh function 1B00h)
  1725.     CF set on error
  1726.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1727. Notes:    this function is supported by Microsoft EMM386.EXE v4.45+,
  1728.       QEMM-386 v6+, and CEMM v5.10+, and is intended for use by MS Windows
  1729.       as it starts up
  1730.     for QEMM-386, this call always returns an error if Windows3 support
  1731.       has been disabled with the NW3 switch
  1732. SeeAlso: AX=4402h/SF=00h,AX=4402h"EMM386",INT 2F/AX=D201h/BX=5145h
  1733. SeeAlso: INT 67/AH=3Fh
  1734.  
  1735. Format of EMM import structure record:
  1736. Offset    Size    Description
  1737.  00h    DWORD    physical address of EMM import structure
  1738.  04h    BYTE    EMM import structure major version
  1739.  05h    BYTE    EMM import structure minor version
  1740. --------m-214402SF02-------------------------
  1741. INT 21 U - Memory Managers - GET MEMORY MANAGER VERSION
  1742.     AX = 4402h subfn 02h
  1743.     BX = file handle for device "EMMXXXX0"
  1744.     CX = 0002h (size of buffer in bytes)
  1745.     DS:DX -> buffer for memory manager version (see below)
  1746.         first byte must be 02h on entry
  1747. Return: CF clear if successful
  1748.         buffer filled
  1749.     CF set on error
  1750.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1751. Note:    this function is supported by Microsoft EMM386.EXE v4.45+ and
  1752.       CEMM v5.10+, and is intended for use by MS Windows as it starts up
  1753. SeeAlso: AX=4402h/SF=00h,AX=4402h"EMM386",INT 67/AH=3Fh
  1754.  
  1755. Format of memory manager version:
  1756. Offset    Size    Description
  1757.  00h    BYTE    major version
  1758.  01h    BYTE    minor version (binary)
  1759. --------m-214402-----------------------------
  1760. INT 21 U - Microsoft EMM386.EXE v4.45 - GET MEMORY MANAGER INFORMATION
  1761.     AX = 4402h
  1762.     BX = file handle for device "EMMXXXX0"
  1763.     CX = size of buffer in bytes (varies, see below)
  1764.     DS:DX -> buffer for returned data (see below)
  1765.         first byte must be set on entry to indicate desired data
  1766. Return: CF clear if successful
  1767.         buffer filled
  1768.     CF set on error
  1769.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1770. Notes:    an error is returned if the number of bytes to be read does not match
  1771.       the number of bytes returned for the specified data item
  1772.     this function is part of the interface which allows MS Windows to
  1773.       cooperate with memory managers
  1774. SeeAlso: AX=4402h/SF=00h,AX=4402h/SF=01h,AX=4402h/SF=02h,INT 67/AX=FFA5h
  1775.  
  1776. Format of data buffer:
  1777. Offset    Size    Description
  1778.  00h    BYTE    (call) function
  1779.         03h get ???
  1780.         04h get ???
  1781. ---function 03h---
  1782.  00h    WORD    ???
  1783.  02h    WORD    ???
  1784. ---function 04h---
  1785.  00h    WORD    segment of UMB containing EMM386 code/data
  1786.  02h    WORD    number of paragraphs of EMM386 code/data in UMB
  1787.  04h    WORD    ???
  1788. --------V-214402-----------------------------
  1789. INT 21 - Compaq AG1024.SYS - RGDI - GET DRIVER LOCATION
  1790.     AX = 4402h
  1791.     BX = file handle for device "$$$$RGDI"
  1792.     CX = 0006h (size of returned data)
  1793.     DS:DX -> location record (see below)
  1794. Return: CF clear if successful
  1795.         buffer filled
  1796.     CF set on error
  1797.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1798. Program: AG1024.SYS is a device driver for the Advanced Graphics 1024 adapter
  1799. SeeAlso: AX=4403h"RGDI"
  1800.  
  1801. Format of location record:
  1802. Offset    Size    Description
  1803.  00h    WORD    signature 55AAh
  1804.  02h    WORD    segment of ???
  1805.  04h    WORD    segment of device driver's code
  1806. --------N-214402-----------------------------
  1807. INT 21 - FTPSOFT.DOS v3.1 - GET ???
  1808.     AX = 4402h
  1809.     BX = file handle for device "FTPSOFT$"
  1810.     CX = size of buffer
  1811.     DS:DX -> buffer for data (see below)
  1812. Return: CF clear if successful
  1813.         buffer filled
  1814.     CF set on error
  1815.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1816. Program: FTPSOFT.DOS is a device driver for Protocol Manager support from
  1817.        FTP Software, Inc.
  1818. SeeAlso: AH=3Fh"PC/TCP",AX=4402h"NDIS"
  1819.  
  1820. Format of data:
  1821. Offset    Size    Description
  1822.  00h    WORD    (call) BA98h (if different, no data returned)
  1823.  02h    DWORD    -> NDIS common characteristics table (see AX=4402h"NDIS")
  1824.  06h    DWORD    (call) -> new dispatch table (see AX=4402h"NDIS")
  1825.  0Ah    DWORD    -> 28-byte buffer for ??? data
  1826.  0Eh    DWORD    ???
  1827.  12h    DWORD    -> FAR function to reset dispatch jump table to defaults
  1828.  16h    BYTE    ???
  1829. Note:    the addresses in the new dispatch table are copied into an internal
  1830.       jump table which may be reset by calling the function pointed at by
  1831.       offset 12h
  1832. ----------214402-----------------------------
  1833. INT 21 U - PenDOS PENDEV.SYS - GET ENTRY POINTS
  1834.     AX = 4402h
  1835.     BX = file handle for device "$$PENDOS" or "$$PD_REG"
  1836.     CX = size of buffer (4 for $$PENDOS and a 4,8,12, or 16 for $$PD_REG)
  1837.     DS:DX -> buffer for entry point record (see below)
  1838. Return: CF clear if successful
  1839.         buffer filled
  1840.     CF set on error
  1841.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1842. Program: A limited version of PenDOS by Communication Intelligence Corporation,
  1843.       which provides pen capability to keyboard-based programs, is bundled
  1844.       with IBM DOS 6.1
  1845. SeeAlso: AX=4403h"PENDEV.SYS"
  1846.  
  1847. Format of entry point record:
  1848. Offset    Size    Description
  1849.  00h    DWORD    -> array of jumps
  1850.  04h    WORD    offset of function to retrieve entry point
  1851.  06h  2 BYTEs    signature "Pe"
  1852.  08h    WORD    offset of function to set entry point
  1853.  0Ah  2 BYTEs    signature "nD"
  1854.  0Ch    WORD    offset of function to clear entry point
  1855.  0Eh    WORD    signature "OS"
  1856.  
  1857. Call function to retrieve entry point with:
  1858.     AX = index of entry point (0-9)
  1859. Return: CF clear if successful
  1860.         DX:AX -> desired entry point
  1861.     CF set on error (AX out of range)
  1862.  
  1863. Call function to set entry point with:
  1864.     AX = index of entry point (0-9)
  1865.     DX:SI -> new handler
  1866. Return: CF clear if successful
  1867.     CF set on error (AX out of range)
  1868.  
  1869. Call function to clear entry point with:
  1870.     AX = index of entry point (0-9)
  1871. Return: CF clear if successful
  1872.     CF set on error (AX out of range)
  1873. Note:    resets the jump at the specified entry point to its default target,
  1874.       which simply returns
  1875. --------D-214403-----------------------------
  1876. INT 21 - DOS 2+ - IOCTL - WRITE TO CHARACTER DEVICE CONTROL CHANNEL
  1877.     AX = 4403h
  1878.     BX = file handle referencing character device
  1879.     CX = number of bytes to write
  1880.     DS:DX -> data to write
  1881. Return: CF clear if successful
  1882.         AX = number of bytes actually written
  1883.     CF set on error
  1884.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1885. Notes:    format of data is driver-specific (see below for some specific cases)
  1886.     if the file handle refers to "4DOSSTAK", the 4DOS (v2.x-3.03)
  1887.       KEYSTACK.SYS driver will push the specified characters on the
  1888.       keyboard stack; similarly for "NDOSSTAK", the NDOS KEYSTACK.SYS
  1889.       driver will push the characters onto the keyboard stack
  1890. SeeAlso: AX=4400h,AX=4402h,AX=4405h,INT 2F/AX=122Bh,INT 2F/AX=D44Dh
  1891. SeeAlso: INT 2F/AX=D44Fh
  1892. --------c-214403-----------------------------
  1893. INT 21 - SMARTDRV.SYS - IOCTL - CACHE CONTROL
  1894.     AX = 4403h
  1895.     BX = handle for device "SMARTAAR"
  1896.     CX = number of bytes to write
  1897.     DS:DX -> SMARTDRV control block (see below)
  1898. Return: CF clear if successful
  1899.         AX = number of bytes actually written
  1900.            = 0000h if control block too small for given command
  1901.     CF set on error
  1902.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1903. SeeAlso: AX=4402h"SMARTDRV",INT 2F/AX=4A10h/BX=0000h
  1904.  
  1905. Format of SMARTDRV control block:
  1906. Offset    Size    Description
  1907.  00h    BYTE    function code
  1908.         00h flush cache
  1909.         01h flush and discard cache
  1910.         02h disable caching (flushes and discards cache first)
  1911.         03h enable caching
  1912.         04h control write caching
  1913.         05h set flushing tick count
  1914.         06h lock cache contents
  1915.         07h unlock cache contents
  1916.         08h set flush-on-reboot flag
  1917.         09h unused
  1918.         0Ah control full-track caching
  1919.         0Bh reduce cache size
  1920.         0Ch increase cache size
  1921.         0Dh set INT 13 chain address
  1922. ---function 04h---
  1923.  01h    BYTE    write caching control action
  1924.         00h turn off write-through
  1925.         01h turn on write-through
  1926.         02h turn off write buffering (also flushes cache)
  1927.         03h turn on write buffering (also flushes cache)
  1928. ---function 05h---
  1929.  01h    WORD    number of timer ticks between cache flushes
  1930. ---function 08h---
  1931.  01h    BYTE    new flush-on-reboot flag (00h off, 01h on)
  1932. ---function 0Ah---
  1933.  01h    BYTE    full-track writes are
  1934.         00h not cached
  1935.         01h cached
  1936. ---functions 0Bh,0Ch---
  1937.  01h    WORD    number of 16K pages by which to increase/reduce cache size
  1938. ---function 0Dh---
  1939.  01h    DWORD    new address to which to chain on INT 13
  1940. Note:    the previous address is not preserved
  1941. --------d-214403-----------------------------
  1942. INT 21 - CD-ROM device driver - IOCTL OUTPUT
  1943.     AX = 4403h
  1944.     BX = file handle referencing character device for CD-ROM driver
  1945.     CX = number of bytes to write
  1946.     DS:DX -> control block (see below)
  1947. Return: CF clear if successful
  1948.         AX = number of bytes actually written
  1949.     CF set on error
  1950.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1951. SeeAlso: AX=4402h"CD-ROM",INT 2F/AX=0802h
  1952.  
  1953. Format of control block:
  1954. Offset    Size    Description
  1955.  00h    BYTE    function code
  1956.         00h eject disk
  1957.         01h lock/unlock door
  1958.         02h reset drive
  1959.         03h control audio channel
  1960.         04h write device control string
  1961.         05h close tray
  1962. ---functions 00h,02h,05h---
  1963.  no further fields
  1964. ---function 01h---
  1965.  01h    BYTE    lock function
  1966.         00h unlock door
  1967.         01h lock door
  1968. ---function 03h---
  1969.  01h    BYTE    input channel (0-3) for output channel 0
  1970.  02h    BYTE    volume for output channel 0
  1971.  03h    BYTE    input channel (0-3) for output channel 1
  1972.  04h    BYTE    volume for output channel 1
  1973.  05h    BYTE    input channel (0-3) for output channel 2
  1974.  06h    BYTE    volume for output channel 2
  1975.  07h    BYTE    input channel (0-3) for output channel 3
  1976.  08h    BYTE    volume for output channel 3
  1977. Note:    output channels 0 and 1 are left and right, 2 and 3 are left prime and
  1978.       right prime; a volume of 00h is off
  1979. ---function 04h---
  1980.  01h  N BYTEs    bytes to send directly to the CD-ROM drive without
  1981.         interpretation
  1982. --------d-214403-----------------------------
  1983. INT 21 - Brian Antoine Seagate ST-01 SCSI.SYS - IOCTL - EXECUTE COMMANDS
  1984.     AX = 4403h
  1985.     BX = handle for device "SCSITAPE"
  1986.     CX = number of bytes to write
  1987.     DS:DX -> SCSITAPE control block (see below)
  1988. Return: CF clear if successful
  1989.         AX = number of bytes actually written
  1990.     CF set on error
  1991.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  1992. SeeAlso: AX=4405h"ST-01",INT 78/AH=10h
  1993.  
  1994. Format of SCSITAPE control block:
  1995. Offset    Size    Description
  1996.  00h    WORD    command type
  1997.         'F' Format (argument 1 = interleave, argument 2 = format type)
  1998.         'E' Erase
  1999.         'R' Rewind
  2000.         'L' Load
  2001.         'N' No Load
  2002.         'S' Space (argument 1 = count, argument 2 = type)
  2003.         'M' File Mark (argument 1 = count)
  2004.         'A' Reassign
  2005.  02h    WORD    argument 1
  2006.  04h    WORD    argument 2
  2007.  06h    WORD    segment of command buffer
  2008.  08h    WORD    offset of command buffer
  2009.  0Ah    WORD    length of command buffer
  2010. --------E-214403-----------------------------
  2011. INT 21 U - AI Architects - OS/x86??? - API
  2012.     AX = 4403h
  2013.     BX = handle for device "AIA_OS"
  2014.     CX = number of bytes to write (ignored)
  2015.     DS:DX -> 12-byte buffer, first byte is command:
  2016.             81h installation check
  2017.             82h get API entry point
  2018.             84h uninstall
  2019. Return: CF clear if successful
  2020.         AX = number of bytes actually written
  2021.     CF set on error
  2022.         AX = error code (01h,05h,06h,0Ch,0Dh) (see AH=59h)
  2023. Notes:    these functions are only available if the DOS extender was loaded as a
  2024.       device driver in CONFIG.SYS
  2025.     called by TKERNEL (a licensed version of AI Architects/Ergo OS/x86)
  2026. SeeAlso: INT 2F/AX=FBA1h/BX=0081h,INT 2F/AX=FBA1h/BX=0082h
  2027. Index:    installation check;OS/x86|entry point;OS/x86|uninstall;OS/x86
  2028.  
  2029. Format of buffer on return:
  2030. Offset    Size    Description
  2031.  00h  4 BYTEs    signature "IABH"
  2032. ---if func 81h---
  2033.  (no additional fields)
  2034. ---if func 82h---
  2035.  04h    DWORD    pointer to API entry point (see INT 2F/AX=FBA1h/BX=0082h)
  2036. ---if func 84h---
  2037.  04h    WORD    success indicator
  2038.  06h    WORD    segment of ???
  2039.  08h    WORD    segment of ??? memory block to free if nonzero
  2040.  0Ah    WORD    segment of ??? memory block to free if nonzero
  2041. --------V-214403-----------------------------
  2042. INT 21 - PGS1600.DEV - IOCTL - SET CONFIGURATION???
  2043.     AX = 4403h
  2044.     BX = file handle for device "PGS1600$"
  2045.     CX = 0018h (size of buffer)
  2046.     DS:DX -> configuration buffer (see AX=4402h"PGS1600")
  2047. Return: CF clear if successful
  2048.         AX = number of bytes actually written
  2049.     CF set on error
  2050.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2051. Program: PGS1600.DEV is a device driver for the Cornerstone Technology PG1600
  2052.       display adapter, which provides a 1600x1200 monochrome display as
  2053.       well as one of two emulations, MDA or CGA.
  2054. SeeAlso: AX=4402h"PGS1600"
  2055. --------N-214403-----------------------------
  2056. INT 21 - PC/TCP IPCUST.SYS - RESET CONFIGURATION DATA READ POINTER
  2057.     AX = 4403h
  2058.     BX = file handle referencing device "$IPCUST"
  2059.     CX, DS:DX ignored
  2060. Return: CF clear if successful
  2061.         AX destroyed
  2062.     CF set on error
  2063.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2064. Notes:    there are a total of 378h bytes of configuration data for IPCUST.SYS
  2065.       version 2.05.     If less than the entire data is read or written,
  2066.       the next read/write continues where the previous one ended; this
  2067.       call and AX=4402h both reset the location at which the next
  2068.       operation starts to zero
  2069.     v2.1+ uses a new configuration method, but allows the installation
  2070.       of IPCUST.SYS for backward compatibility with other software which
  2071.       must read the PC/TCP configuration
  2072. SeeAlso: AH=3Fh"IPCUST",AH=40h"IPCUST",AX=4402h"IPCUST"
  2073. --------V-214403-----------------------------
  2074. INT 21 - Compaq AG1024.SYS - CPQ_MGES - IOCTL OUTPUT
  2075.     AX = 4403h
  2076.     BX = file handle referencing device "CPQ_MGES"
  2077.     DS:DX -> request packet (see below)
  2078.     CX ignored
  2079. Return: CF clear if successful
  2080.         AX destroyed
  2081.         data buffer filled (if applicable)
  2082.         first word of request packet set to number of bytes of data
  2083.           available (amount returned is smaller of this and requested
  2084.           amount)
  2085.     CF set on error
  2086.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2087. Program: AG1024.SYS is a device driver for the Advanced Graphics 1024 adapter
  2088. SeeAlso: AX=4403h"RGDI"
  2089.  
  2090. Format of request packet:
  2091. Offset    Size    Description
  2092.  00h    WORD    function
  2093.         0000h get ??? (26h bytes)
  2094.         0001h get ??? (36h bytes)
  2095.         0002h set ??? (same as returned by function 0001h)
  2096.         0003h get ??? (6 bytes)
  2097.         0004h get ???
  2098.         0005h get ???
  2099.         0006h get ??? (10h bytes)
  2100.         0007h set ??? (same as returned by function 0006h)
  2101. ---functions 00h-03h,06h,07h---
  2102.  02h    WORD    size of data buffer
  2103.  04h    DWORD    -> buffer for function's data
  2104.  ---functions 04h,05h---
  2105.  02h    WORD    ???
  2106.  04h    WORD    size of data buffer
  2107.  06h    DWORD    -> buffer to receive data
  2108. --------V-214403-----------------------------
  2109. INT 21 - Compaq AG1024.SYS - RGDI - IOCTL OUTPUT
  2110.     AX = 4403h
  2111.     BX = file handle referencing device "$$$$RGDI"
  2112.     DS:DX -> request packet (see below)
  2113.     CX ignored
  2114. Return: CF clear if successful
  2115.         AX destroyed
  2116.         data buffer filled (if applicable)
  2117.         first word of request packet set to number of bytes of data
  2118.           available (amount returned is smaller of this and requested
  2119.           amount)
  2120.     CF set on error
  2121.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2122. Program: AG1024.SYS is a device driver for the Advanced Graphics 1024 adapter
  2123. SeeAlso: AX=4402h"RGDI",AX=4403h"CPQ_MGES"
  2124.  
  2125. Format of request packet:
  2126. Offset    Size    Description
  2127.  00h    WORD    function
  2128.         0000h get entry points
  2129.         0001h get ???
  2130.  02h    DWORD    address of buffer for returned data
  2131. ----------214403SF01-------------------------
  2132. INT 21 U - Qualitas 386MAX v6.01+ - TURN 386MAX OFF
  2133.     AX = 4403h subfn 01h
  2134.     BX = handle for device "386MAX$$"
  2135.     DS:DX -> BYTE 01h
  2136.     CX ignored
  2137. Return: DS:DX -> BYTE status (00h = successful)
  2138.     CF clear if successful
  2139.         AX destroyed
  2140.     CF set on error
  2141.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2142. Note:    this function will fail if any EMS or UMBs are in use
  2143. SeeAlso: AX=4403h/SF=02h,AX=4403h/SF=03h,AX=4403h/SF=05h
  2144. ----------214403SF02-------------------------
  2145. INT 21 U - Qualitas 386MAX v6.01+ - TURN 386MAX ON
  2146.     AX = 4403h subfn 02h
  2147.     BX = handle for device "386MAX$$"
  2148.     DS:DX -> BYTE 02h
  2149.     CX ignored
  2150. Return: DS:DX -> BYTE status (00h = successful)
  2151.     CF clear if successful
  2152.         AX destroyed
  2153.     CF set on error
  2154.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2155. SeeAlso: AX=4403h/SF=01h,AX=4403h/SF=03h,AX=4403h/SF=05h
  2156. --------m-214403SF03-------------------------
  2157. INT 21 U - Qualitas 386MAX v6.01+ - SET STATE
  2158.     AX = 4403h subfn 03h
  2159.     BX = handle for device "386MAX$$"
  2160.     CX = number of bytes to copy (up to size of state buffer)
  2161.     DS:DX -> BYTE 03h followed by state buffer (see AX=4402h"386MAX")
  2162. Return: CF clear if successful
  2163.         AX = number of bytes actually written
  2164.     CF set on error
  2165.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2166. Note:    the first byte of the buffer must be either 01h, 02h, or 03h
  2167.       (specifying the version of the state record) and the buffer must
  2168.       contain CX bytes AFTER the initial byte
  2169. SeeAlso: AX=4402h"386MAX"
  2170. ----------214403SF05-------------------------
  2171. INT 21 U - Qualitas 386MAX v7.00+ - LIMIT AUTOMATIC ACTIVATION TO STD EMS CALLS
  2172.     AX = 4403h subfn 05h
  2173.     BX = handle for device "386MAX$$"
  2174.     DS:DX -> BYTE 05h
  2175.     CX ignored
  2176. Return: CF clear if successful
  2177.         AX destroyed
  2178.     CF set on error
  2179.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2180. Desc:    specifies that 386MAX will only shift from AUTO to ON mode on standard
  2181.       EMS calls INT 67/AH=40h-5Dh
  2182. SeeAlso: AX=4403h/SF=02h,AX=4403h/SF=03h,AX=4403h/SF=06h
  2183. ----------214403SF06-------------------------
  2184. INT 21 U - Qualitas 386MAX v7.00+ - ALLOW AUTOMATIC ACTIVATION ON ANY INT 67
  2185.     AX = 4403h subfn 06h
  2186.     BX = handle for device "386MAX$$"
  2187.     DS:DX -> BYTE 06h
  2188.     CX ignored
  2189. Return: CF clear if successful
  2190.         AX destroyed
  2191.     CF set on error
  2192.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2193. Desc:    specified that 386MAX should shift from AUTO to ON mode on any INT 67
  2194.       call other than INT 67/AH=3Fh
  2195. SeeAlso: AX=4403h/SF=01h,AX=4403h/SF=03h,AX=4403h/SF=05h
  2196. ----------214403-----------------------------
  2197. INT 21 U - PenDOS PENDEV.SYS - ???
  2198.     AX = 4403h
  2199.     BX = file handle for device "$$PENDOS" or "$$PD_REG"
  2200.     CX = size of buffer
  2201.     DS:DX -> buffer containing ???
  2202. Return: CF clear if successful
  2203.         buffer filled
  2204.     CF set on error
  2205.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2206. Program: A limited version of PenDOS by Communication Intelligence Corporation,
  2207.       which provides pen capability to keyboard-based programs, is bundled
  2208.       with IBM DOS 6.1
  2209. Note:    this call sets the WORD at offset 1Ah into the device driver request
  2210.       header used to call the driver to 0000h.
  2211. SeeAlso: AX=4402h"PENDEV.SYS"
  2212. --------D-214404-----------------------------
  2213. INT 21 - DOS 2+ - IOCTL - READ FROM BLOCK DEVICE CONTROL CHANNEL
  2214.     AX = 4404h
  2215.     BL = drive number (00h = default, 01h = A:, etc.)
  2216.     CX = number of bytes to read
  2217.     DS:DX -> buffer
  2218. Return: CF clear if successful
  2219.         AX = number of bytes actually read
  2220.     CF set on error
  2221.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2222. Note:    format of data is driver-specific
  2223. SeeAlso: AX=4402h,AX=4405h,INT 2F/AX=122Bh
  2224. --------d-214404-----------------------------
  2225. INT 21 - Stacker - GET DEVICE DRIVER ADDRESS AND SET VOLUME NUMBER
  2226.     AX = 4404h
  2227.     BL = drive number (00h = default, 01h = A:, etc.)
  2228.     CX = 0004h
  2229.     DS:DX -> DWORD buffer to receive device driver address
  2230. Note:    In addition to returning the address of the Stacker device driver,
  2231.       this call also sets the volume number at offset 3Eh in the device
  2232.       driver (see INT 25/AX=CDCDh)
  2233. SeeAlso: INT 25/AX=CDCDh
  2234. --------d-214404-----------------------------
  2235. INT 21 - Stacker - GET STACVOL FILE SECTORS
  2236.     AX = 4404h
  2237.     BL = drive number (0 is current drive)
  2238.     CX = byte count (i.e., 200h = 1 sector)
  2239.     DS:DX -> buffer (see below)
  2240. Return: Data Buffer contains the number of sectors requested from the
  2241.       STACVOL physical file for the drive specified.
  2242.  
  2243. Format of stacker buffer:
  2244. Offset    Size    Description
  2245.  00h    WORD    01CDh
  2246.  02h    WORD    sector count
  2247.  04h    DWORD    number of starting sector
  2248.  08h    DWORD    far pointer to Data Buffer
  2249. --------d-214404-----------------------------
  2250. INT 21 - DUBLDISK.SYS v2.6 - GET INFO
  2251.     AX = 4404h
  2252.     BL = drive number of DoubleDisk drive (00h = default, 01h = A:, etc.)
  2253.     CX = number of bytes (000Ah-0014h, call ignored otherwise)
  2254.     DS:DX -> data record (see below)
  2255. Return: CF clear if successful
  2256.         AX = number of bytes read
  2257.     CF set on error
  2258.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2259. Program: DUBLDISK.SYS is the device driver portion of DoubleDisk, a disk
  2260.       expander by Vertisoft Systems, Inc.
  2261. Note:    the installation check consists of scanning memory for the signature
  2262.       "FAT 2.6  byte:", which is immediately followed by a data table
  2263. SeeAlso: AX=440Dh
  2264. Index:    installation check;DUBLDISK.SYS
  2265.  
  2266. Format of data record:
  2267. Offset    Size    Description
  2268.  00h    WORD    (call) signature 4444h
  2269.  02h    BYTE    (call) function
  2270.             00h ???
  2271.             01h ???
  2272. ---function 00h---
  2273.  02h    BYTE    (return) ???
  2274.  03h    BYTE    (return) ???
  2275. ---function 01h---
  2276.  02h    WORD    (return) 4444h
  2277.  04h    WORD    allocation unit size???
  2278.  06h    WORD    ???
  2279.  08h    WORD    ???
  2280.  0Ah    BYTE    ???
  2281.  
  2282. Format of signature data table:
  2283. Offset    Size    Description
  2284.  00h  5 BYTEs    ???
  2285.  05h    BYTE    first drive number
  2286.  06h    BYTE    number of drives
  2287.  07h    ???
  2288. --------d-214404-----------------------------
  2289. INT 21 - DBLSPACE.BIN - IOCTL - FLUSH OR INVALIDATE INTERNAL CACHES
  2290.     AX = 4404h
  2291.     BL = drive number (00h = default, 01h = A:, etc)
  2292.     CX = 000Ah (size of DSPACKET structure)
  2293.     DS:DX -> DSPACKET structure (see below)
  2294. Return: CF clear if IOCTL successful -- check DSPACKET for actual status
  2295.         AX = number of bytes actually transferred
  2296.     CF set on error
  2297.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2298. SeeAlso: AX=4405h"DBLSPACE",INT 2F/AX=4A11h/BX=0000h
  2299.  
  2300. Format of DSPACKET structure:
  2301. Offset    Size    Description
  2302.  00h    WORD    signature 444Dh ("DM")
  2303.  02h    BYTE    command code
  2304.         46h ('F') flush internal caches
  2305.         49h ('I') flush and invalidate internal caches
  2306.  03h    WORD    result code
  2307.         (return) 4F4Bh ("OK") if successful, else unchanged
  2308.  05h  5 BYTEs    padding
  2309. --------d-214404-----------------------------
  2310. INT 21 U - xDISK v3.31 - CONFIGURE
  2311.     AX = 4404h
  2312.     BL = drive number (00h = default, 01h = A:, etc)
  2313.     CX = 0047h (length of version string)
  2314.     DS:DX -> 79-byte buffer for version string and ???
  2315.     DS:0081h = commandline containing new switches for driver
  2316. Return: CF clear if successful
  2317.         AX = number of bytes actually transferred
  2318.     CF set on error
  2319.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2320. Program: xDISK is a shareware resizeable EMS RAMdisk by FM de Monasterio
  2321. SeeAlso: AX=4405h"xDISK",INT 2F/AH=DDh"xDISK"
  2322. ----------214404-----------------------------
  2323. INT 21 - COMBI-disk v1.13 - GET DATA RECORD
  2324.     AX = 4404h
  2325.     BL = drive number (00h = default, 01h = A:, etc)
  2326.     CX =  (length of data packet)
  2327.     DS:DX -> buffer for data packet (see below)
  2328. Return: CF clear if successful
  2329.         AX = number of bytes actually transferred
  2330.     CF set on error
  2331.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2332. Program: COMBI-disk is a shareware combination cache and RAMdisk sharing a
  2333.       single pool of memory by Vadim V. Vlasov
  2334. Note:    the installation check consists of scanning the valid drives for one
  2335.       which returns a correctly-sized data packet with the proper
  2336.       signature in the first field
  2337. SeeAlso: AX=4405h"COMBI"
  2338. Index:    installation check;COMBI-disk
  2339.  
  2340. Format of data packet:
  2341. Offset    Size    Description
  2342.  00h  6 BYTEs    ASCIZ signature "COMBI"
  2343.  06h    WORD    version (high byte = major, low = decimal minor version)
  2344.  08h    BYTE    current options (see below)
  2345.  09h    BYTE    sectors per allocation block
  2346.  0Ah    WORD    maximum buffer in KB
  2347.  0Ch    WORD    current buffer in KB (less than max if XMS memory being lent)
  2348.  0Eh    WORD    total number of allocation blocks
  2349.  10h    WORD    current number of allocation blocks
  2350.  12h    WORD    number of blocks being used by RAM disk
  2351.  14h    WORD    number of blocks being used by cache or unused
  2352.  16h    WORD    number of dirty cache blocks
  2353.  18h    WORD    number of blocks which could not be written out due to errors
  2354.  1Ah    WORD    total number of read requests
  2355.  1Ch    WORD    total number of sectors read
  2356.  1Eh    WORD    number of BIOS read requests (cache misses)
  2357.  20h    WORD    number of sectors read via BIOS (cache misses)
  2358.  22h    WORD    total number of write requests
  2359.  24h    WORD    total number of sectors written
  2360.  26h    WORD    number of BIOS write requests
  2361.  28h    WORD    number of sectors written via BIOS
  2362.  2Ah    WORD    number of RAM disk read requests
  2363.  2Ch    WORD    number of sectors read from RAM disk
  2364.  2Eh    WORD    number of RAM disk write requests
  2365.  30h    WORD    number of sectors written to RAM disk
  2366. --------D-214405-----------------------------
  2367. INT 21 - DOS 2+ - IOCTL - WRITE TO BLOCK DEVICE CONTROL CHANNEL
  2368.     AX = 4405h
  2369.     BL = drive number (00h = default, 01h = A:, etc)
  2370.     CX = number of bytes to write
  2371.     DS:DX -> data to write
  2372. Return: CF clear if successful
  2373.         AX = number of bytes actually written
  2374.     CF set on error
  2375.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2376. Note:    format of data is driver-specific
  2377. SeeAlso: AX=4403h,AX=4404h,INT 2F/AX=122Bh
  2378. --------d-214405-----------------------------
  2379. INT 21 - Brian Antoine Seagate ST-01 SCSI.SYS - IOCTL - EXECUTE COMMANDS
  2380.     AX = 4405h
  2381.     BX = drive number (00h = default, 01h = A:, etc)
  2382.     CX = number of bytes to write
  2383.     DS:DX -> SCSIDISK control block (see AX=4403h"ST-01")
  2384. Return: CF clear if successful
  2385.         AX = number of bytes actually written
  2386.     CF set on error
  2387.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2388. SeeAlso: AX=4403h"ST-01"
  2389. --------d-214405-----------------------------
  2390. INT 21 U - DBLSPACE.BIN - IOCTL - FLUSH OR INVALIDATE INTERNAL CACHES
  2391.     AX = 4405h
  2392.     BL = drive number (00h = default, 01h = A:, etc)
  2393.     CX = 000Ah (size of DSPACKET structure)
  2394.     DS:DX -> DSPACKET structure (see below)
  2395. Return: CF clear if IOCTL successful -- check DSPACKET for actual status
  2396.         AX = number of bytes actually transferred
  2397.     CF set on error
  2398.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2399. Note:    this call is identical to the documented AX=4404h
  2400. SeeAlso: AX=4404h"DBLSPACE",INT 2F/AX=4A11h/BX=0000h
  2401.  
  2402. Format of DSPACKET structure:
  2403. Offset    Size    Description
  2404.  00h    WORD    signature 444Dh ("DM")
  2405.  02h    BYTE    command code
  2406.         46h ('F') flush internal caches
  2407.         49h ('I') flush and invalidate internal caches
  2408.  03h    WORD    result code
  2409.         (return) 4F4Bh ("OK") if successful, else unchanged
  2410.  05h  5 BYTEs    padding
  2411. --------d-214405-----------------------------
  2412. INT 21 U - xDISK v3.31 - ???
  2413.     AX = 4405h
  2414.     BL = drive number (00h = default, 01h = A:, etc)
  2415.     CX = number of bytes to write
  2416.     DS:DX -> buffer containing version string
  2417.     ???
  2418. Return: CF clear if successful
  2419.         AX = number of bytes actually transferred
  2420.     CF set on error
  2421.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2422. Program: xDISK is a shareware resizeable EMS RAMdisk by FM de Monasterio
  2423. SeeAlso: AX=4404h"xDISK",INT 2F/AH=DDh"xDISK"
  2424. --------d-214405-----------------------------
  2425. INT 21 - COMBI-disk v1.13 - CONTROL COMBI-disk
  2426.     AX = 4405h
  2427.     BL = drive number (00h = default, 01h = A:, etc) for RAM disk
  2428.     CX = number of bytes to write
  2429.     DS:DX -> buffer containing command packet (see below)
  2430. Return: CF clear if successful
  2431.         AX = number of bytes actually transferred
  2432.     CF set on error
  2433.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2434. SeeAlso: AX=4404h"COMBI"
  2435.  
  2436. Format of command packet:
  2437. Offset    Size    Description
  2438.  00h    WORD    version
  2439.  02h    BYTE    command code
  2440.         80h flush cache
  2441.         81h change options byte
  2442.         82h shrink memory
  2443.         83h expand memory
  2444.         84h get dirty block information
  2445.         85h reset write errors
  2446.         86h reset counters
  2447. ---command code 81h---
  2448.  03h    BYTE    new options byte (see below)
  2449. ---command code 82h---
  2450.  03h    WORD    number of KB to release
  2451. ---command code 83h---
  2452.  03h    WORD    number of KB to expand
  2453. ---command code 84h---
  2454.  03h    DWORD    -> buffer for block info (see below)
  2455. ---command code 85h---
  2456.  03h    DWORD    block ID
  2457. ---command code 86h---
  2458.  03h    BYTE    which counters to reset
  2459.         bit 0: hard disk read counts
  2460.         bit 1: hard disk write counts
  2461.         bit 2: RAM disk read/write counts
  2462. Note:    multiple commands may be placed in a single packet by stringing
  2463.       together as many command/argument pairs as desired
  2464.  
  2465. Bitfields for options byte:
  2466.  bit 0    cache off
  2467.  bit 1    cache frozen
  2468.  bit 2    write caching enabled
  2469.  bit 3    delayed writing disabled
  2470.  bit 5    fix memory allocation (no XMS lending)
  2471.  bit 6    no 'sector not found' error
  2472.  
  2473. Format of block info:
  2474. Offset    Size    Description
  2475.  00h    DWORD    block ID
  2476.  04h    BYTE    bitmask of valid sectors in block
  2477.  05h    BYTE    bitmask of dirty sectors in block
  2478.  06h    BYTE    last error returned by BIOS
  2479.  07h    BYTE    number of errors
  2480. --------D-214406-----------------------------
  2481. INT 21 - DOS 2+ - IOCTL - GET INPUT STATUS
  2482.     AX = 4406h
  2483.     BX = file handle
  2484. Return: CF clear if successful
  2485.         AL = input status
  2486.         00h not ready (device) or at EOF (file)
  2487.         FFh ready
  2488.     CF set on error
  2489.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2490. Note:    files may not register as being at EOF if positioned there by AH=42h
  2491. SeeAlso: AX=4407h,INT 2F/AX=122Bh
  2492. --------D-214407-----------------------------
  2493. INT 21 - DOS 2+ - IOCTL - GET OUTPUT STATUS
  2494.     AX = 4407h
  2495.     BX = file handle
  2496. Return: CF clear if successful
  2497.         AL = input status
  2498.         00h not ready
  2499.         FFh ready
  2500.     CF set on error
  2501.         AX = error code (01h,05h,06h,0Dh) (see AH=59h)
  2502. Note:    for DOS 2+, files are always ready for output, even if the disk is
  2503.       full or no media is in the drive
  2504. SeeAlso: AX=4406h,INT 2F/AX=122Bh
  2505. --------D-214408-----------------------------
  2506. INT 21 - DOS 3.0+ - IOCTL - CHECK IF BLOCK DEVICE REMOVABLE
  2507.     AX = 4408h
  2508.     BL = drive number (00h = default, 01h = A:, etc)
  2509. Return: CF clear if successful
  2510.         AX = 0000h if removable
  2511.            = 0001h if fixed
  2512.     CF set on error
  2513.         AX = error code (01h,0Fh) (see AH=59h)
  2514. SeeAlso: AX=4400h,AX=4409h,INT 2F/AX=122Bh
  2515. --------D-214409-----------------------------
  2516. INT 21 - DOS 3.1+ - IOCTL - CHECK IF BLOCK DEVICE REMOTE
  2517.     AX = 4409h
  2518.     BL = drive number (00h = default, 01h = A:, etc)
  2519. Return: CF clear if successful
  2520.         DX = device attribute word
  2521.         bit 15: drive is SUBSTituted
  2522.         bit 12: drive is remote
  2523.         bit  9: direct I/O not allowed
  2524.     CF set on error
  2525.         AX = error code (01h,0Fh) (see AH=59h)
  2526. Note:    on local drives, DX bits not listed above are the attribute word from
  2527.       the device driver header (see AH=52h); for remote drives, the other
  2528.       bits appear to be undefined for DOS versions prior to 5.0 (they are
  2529.       all cleared in DOS 5+)
  2530. SeeAlso: AX=4400h,AX=4408h,AX=440Ah,INT 2F/AX=122Bh
  2531. --------D-21440A-----------------------------
  2532. INT 21 - DOS 3.1+ - IOCTL - CHECK IF HANDLE IS REMOTE
  2533.     AX = 440Ah
  2534.     BX = handle
  2535. Return: CF clear if successful
  2536.         DX = attribute word (as stored in SFT)
  2537.         bit 15: set if remote
  2538.         bit 14: date/time not set on close
  2539.     CF set on error
  2540.         AX = error code (01h,06h) (see AH=59h)
  2541. Notes:    if file is remote, Novell Advanced NetWare 2.0 returns the number of
  2542.       the file server on which the handle is located in CX
  2543.     DR-DOS 3.41 and 5.0 clear all bits of DX except bit 15
  2544. SeeAlso: AX=4400h,AX=4409h,AH=52h,INT 2F/AX=122Bh
  2545. --------D-21440B-----------------------------
  2546. INT 21 - DOS 3.1+ - IOCTL - SET SHARING RETRY COUNT
  2547.     AX = 440Bh
  2548.     CX = pause between retries (default 1)
  2549.     DX = number of retries (default 3)
  2550. Return: CF clear if successful
  2551.     CF set on error
  2552.         AX = error code (01h) (see AH=59h)
  2553. Notes:    delay is dependent on processor speed (value in CX specifies number of
  2554.       64K-iteration empty loops to execute)
  2555.     if DX=0000h on entry, the retry count is left unchanged
  2556. SeeAlso: AH=52h,INT 2F/AX=1224h,INT 2F/AX=122Bh
  2557. --------D-21440C-----------------------------
  2558. INT 21 - DOS 3.2+ - IOCTL - GENERIC CHARACTER DEVICE REQUEST
  2559.     AX = 440Ch
  2560.     BX = device handle
  2561.     CH = category code
  2562.         00h unknown (DOS 3.3+)
  2563.         01h COMn: (DOS 3.3+)
  2564.         03h CON (DOS 3.3+)
  2565.         05h LPTn:
  2566.         9Eh Media Access Control driver (STARLITE)
  2567.         00h-7Fh reserved for Microsoft
  2568.         80h-FFh reserved for OEM/user-defined
  2569.     CL = function
  2570.         00h MAC driver Bind (STARLITE)
  2571.         45h set iteration (retry) count
  2572.         4Ah select code page
  2573.         4Ch start code-page preparation
  2574.         4Dh end code-page preparation
  2575.         5Fh set display information (DOS 4+)
  2576.         65h get iteration (retry) count
  2577.         6Ah query selected code page
  2578.         6Bh query prepare list
  2579.         7Fh get display information (DOS 4+)
  2580.     DS:DX -> parameter block (see below)
  2581.     SI = parameter to pass to driver (European MS-DOS 4.0, OS/2 comp box)
  2582.     DI = parameter to pass to driver (European MS-DOS 4.0, OS/2 comp box)
  2583. Return: CF set on error
  2584.         AX = error code (see AH=59h)
  2585.     CF clear if successful
  2586.         DS:DX -> iteration count if CL=65h
  2587.         SI = returned value (European MS-DOS 4.0, OS/2 comp box)
  2588.         DI = returned value (European MS-DOS 4.0, OS/2 comp box)
  2589. Notes:    bit assignments for function code in CL:
  2590.         bit 7: set to ignore if unsupported, clear to return error
  2591.         bit 6: set if passed to driver, clear if intercepted by DOS
  2592.         bit 5: set if queries data from device, clear if sends command
  2593.         bits 4-0: subfunction
  2594.     DR-DOS 3.41 and 5.0 return error code 16h on CL=45h,65h if the device
  2595.       does not support a retry counter
  2596. SeeAlso: AX=440Dh,INT 2F/AX=0802h,INT 2F/AX=122Bh,INT 2F/AX=14FFh
  2597. SeeAlso: INT 2F/AX=1A01h
  2598.  
  2599. Format of parameter block for function 00h:
  2600. Offset    Size    Description
  2601.  00h  8 BYTEs    ASCIZ signature "STARMAC"
  2602.  08h    WORD    version
  2603.  0Ah    WORD    flags
  2604.         bit 0: media requires connect or listen request before use
  2605.         bit 1: network is a LAN (broadcast/multicast supported)
  2606.         bit 2: point-to-point network
  2607.  0Ch    WORD    handle for use with MAC driver's private interface (filled in
  2608.         by MAC driver)
  2609.  0Eh    WORD    context
  2610.  10h    WORD    approximate speed in KB/sec (filled in by MAC driver)
  2611.  12h    WORD    approximate cost in cents per hour (filled in by MAC driver)
  2612.  14h    WORD    maximum packet size in bytes (filled in by MAC driver)
  2613.  16h    WORD    addressing format (filled in by MAC driver)
  2614.         0000h general addressing
  2615.         0001h Ethernet addressing
  2616.         0002h Token Ring addressing
  2617.         0003h Token Bus addressing
  2618.  18h    DWORD    Send entry point (filled in by MAC driver)
  2619.  1Ch    DWORD    RegisterEventHandler entry point (filled in by MAC driver)
  2620.  20h    DWORD    SetPacketFilter entry point (filled in by MAC driver)
  2621.  24h    DWORD    UnBind entry point (filled in by MAC driver)
  2622.  
  2623. Format of parameter block for function 45h:
  2624. Offset    Size    Description
  2625.  00h    WORD    number of times output is attempted before driver assumes
  2626.         device is busy
  2627.  
  2628. Format of parameter block for functions 4Ah and 6Ah:
  2629. Offset    Size    Description
  2630.  00h    WORD    length of data
  2631.  02h    WORD    code page ID
  2632.  04h 2N BYTEs    DCBS (double byte character set) lead byte range
  2633.           start/end for each of N ranges (DOS 4.0)
  2634.     WORD    0000h  end of data (DOS 4.0)
  2635.  
  2636. Format of parameter block for function 4Ch:
  2637. Offset    Size    Description
  2638.  00h    WORD    flags
  2639.         DISPLAY.SYS = 0000h
  2640.         PRINTER.SYS bit 0 clear to prepare downloaded font, set to
  2641.             prepare cartridge selection
  2642.  02h    WORD    length of remainder of parameter block
  2643.  04h    WORD    number of code pages following
  2644.  06h  N WORDs    code page 1,...,N
  2645.  
  2646. Format of parameter block for function 4Dh:
  2647. Offset    Size    Description
  2648.  00h    WORD    length of data
  2649.  02h    WORD    code page ID
  2650.  
  2651. Format of parameter block for functions 5Fh and 7Fh:
  2652. Offset    Size    Description
  2653.  00h    BYTE    level (0 for DOS 4.x-6.0)
  2654.  01h    BYTE    reserved (0)
  2655.  02h    WORD    length of following data (14)
  2656.  04h    WORD    control flags
  2657.           bit 0 set for blink, clear for intensity
  2658.           bits 1 to 15 reserved
  2659.  06h    BYTE    mode type (1=text, 2=graphics)
  2660.  07h    BYTE    reserved (0)
  2661.  08h    WORD    colors
  2662.            0 = monochrome
  2663.            else N bits per pixel
  2664.  0Ah    WORD    pixel columns
  2665.  0Ch    WORD    pixel rows
  2666.  0Eh    WORD    character columns
  2667.  10h    WORD    character rows
  2668.  
  2669. Format of parameter block for function 6Bh:
  2670. Offset    Size    Description
  2671.  00h    WORD    length of following data
  2672.  02h    WORD    number of hardware code pages
  2673.  04h  N WORDs    hardware code pages 1,...,N
  2674.     WORD    number of prepared code pages
  2675.       N WORDs    prepared code pages 1,...,N
  2676. --------d-21440C-----------------------------
  2677. INT 21 - Greg Shenaut ASPITAPE.SYS - INTERFACE
  2678.     AX = 440Ch
  2679.     BX = device handle
  2680.     CH = category code
  2681.         07h tape (ASPITAPE.SYS)
  2682.     CL = function
  2683.         01h "mtop" - perform tape operation
  2684.         02h "mtget" - get tape status
  2685.         03h ignore end-of-tape errors
  2686.         04h enable end-of-tape errors
  2687.     DS:DX -> parameter block (see below)
  2688. Return: CF set on error
  2689.         AX = error code (see AH=59h)
  2690.     CF clear if successful
  2691.         DS:DX -> data block
  2692. Notes:    This device driver is a simple DOS interface to the Adaptec Advanced
  2693.       SCSI Programming Interface (ASPI).  It provides the following device
  2694.       names as access to the SCSI tape, 'RMTx' (rewind on close) and
  2695.       'NRMTx' (NO rewind on close) where x can go from 0 to 3.  There may
  2696.       also be the following names 'MTx' and 'NMTx' which default to 1024
  2697.       byte blocks.    The names may also have a '$' appended to try and make
  2698.       them unique from file names of 'RMT0' etc.
  2699.     once opend these devices must be put into RAW mode
  2700. SeeAlso: AX=4402h"ASPI"
  2701.  
  2702. Format of mtop parameter block:
  2703. Offset    Size    Description
  2704.  00h    WORD    operation code
  2705.         00h "MTWEOF" - write an end-of-file record
  2706.         01h "MTFSF" - forward space file
  2707.         02h "MTBSF" - backward space file
  2708.         03h "MTFSR" - forward space record
  2709.         04h "MTBSR" - backward space record
  2710.         05h "MTREW" - rewind
  2711.         06h "MTOFFL" - rewind and unload
  2712.         07h "MTNOP" - perform TEST UNIT READY
  2713.  02h    DWORD    repetition count
  2714.  
  2715. Format of mtget parameter block:
  2716. Offset    Size    Description
  2717.  00h    BYTE    ASPI host ID
  2718.  01h    BYTE    SCSI target ID
  2719.  02h    BYTE    SCSI logical unit number
  2720.  03h    BYTE    device parameters
  2721.         bit 0: drive must use fixed-block read and write
  2722.         bit 7: drive is an ASPI device
  2723.  04h    BYTE    current device state (see below)
  2724.  05h    BYTE    unit number within driver
  2725.  06h    WORD    fixed block blocksize
  2726.  08h    BYTE    last SCSI status
  2727.  09h    BYTE    last SCSI sense key
  2728.  0Ah    WORD    last SCSI opcode (packed)
  2729.         bits 0-7: SCSI operation (SCSI packet byte 0)
  2730.         bits 8-10: SCSI flags (SCSI packet byte 1)
  2731.         bits 11-12: ASPI "Direction Bits" (ASPI SRB byte 3)
  2732.  0Ch    WORD    residual bytes from SCSI opcode
  2733.  
  2734. Bitfields for current device state:
  2735.  bit 0    device currently opened in buffered mode
  2736.  bit 1    drive currently opened in nonbuffered mode
  2737.  bit 2    rewind drive on last close
  2738.  bit 3    drive has been written on
  2739.  bit 4    drive has been read from
  2740.  bit 5    next read will return 0 bytes
  2741.  bit 6    EOM will resemble EOF
  2742.  bit 7    drive may be busy rewinding
  2743. --------D-21440D-----------------------------
  2744. INT 21 - DOS 3.2+ - IOCTL - GENERIC BLOCK DEVICE REQUEST
  2745.     AX = 440Dh
  2746.     BL = drive number (00h=default,01h=A:,etc)
  2747.     CH = category code
  2748.         08h disk drive
  2749.         00h-7Fh reserved for Microsoft
  2750.         80h-FFh reserved for OEM/user-defined
  2751.     CL = minor code (function) (see below)
  2752.     DS:DX -> (DOS) parameter block (see below)
  2753.     SI:DI -> (OS/2 comp box) parameter block (see below)
  2754. Return: CF set on error
  2755.         AX = error code (01h,02h) (see AH=59h)
  2756.     CF clear if successful
  2757.         DS:DX -> data block if CL=60h or CL=61h
  2758. Notes:    DOS 4.01 seems to ignore the high byte of the number of directory
  2759.       entries in the BPB for diskettes.
  2760.     functions 46h and 66h undocumented in DOS 4.x, documented for DOS 5+
  2761.     the DUBLDISK.SYS v2.6 driver only supports minor codes 60h and 67h
  2762.     DR-DOS 3.41-6.0 only support minor codes 40h-42h and 60h-62h; all
  2763.       other minor codes return error code 16h
  2764. SeeAlso: AX=440Ch,AH=69h,INT 2F/AX=0802h,INT 2F/AX=122Bh
  2765.  
  2766. Values for minor code:
  2767.  00h    (OS/2)    \ used to lock/unlock a drive
  2768.  01h    (OS/2)    /
  2769.  40h    set device parameters
  2770.  41h    write logical device track
  2771.  42h    format and verify logical device track
  2772.  46h    (DOS 4+) set volume serial number (see also AH=69h)
  2773.  47h    (DOS 4+) set access flag
  2774.  50h    (PCMCIA) attribute memory write
  2775.  51h    (PCMCIA) common memory write
  2776.  52h    (PCMCIA) force media change
  2777.  53h    (PCMCIA) erase drive
  2778.  54h    (PCMCIA) erase media
  2779.  56h    (PCMCIA) set erase status callback
  2780.  57h    (PCMCIA) append Card Information Structure (CIS) tuple
  2781.  58h    (PCMCIA) erase CIS tuples
  2782.  60h    get device parameters
  2783.  61h    read logical device track
  2784.  62h    verify logical device track
  2785.  66h    (DOS 4+) get volume serial number (see also AH=69h)
  2786.  67h    (DOS 4+) get access flag
  2787.  68h    (DOS 5+) sense media type
  2788.  70h    (PCMCIA) attribute memory read
  2789.  73h    (PCMCIA) get memory media information
  2790.  76h    (PCMCIA) get erase status callback
  2791.  77h    (PCMCIA) get first Card Information Structure (CIS) tuple
  2792.  78h    (PCMCIA) get next CIS tuple
  2793.  
  2794. Format of parameter block for functions 40h, 60h:
  2795. Offset    Size    Description
  2796.  00h    BYTE    special functions
  2797.         bit 0 set if function to use current BPB, clear if Device
  2798.             BIOS Parameter Block field contains new default BPB
  2799.         bit 1 set if function to use track layout fields only
  2800.             must be clear if CL=60h
  2801.         bit 2 set if all sectors in track same size (should be set)
  2802.         bits 3-7 reserved
  2803.  01h    BYTE    device type (see below)
  2804.  02h    WORD    device attributes
  2805.         bit 0 set if nonremovable medium
  2806.         bit 1 set if door lock ("changeline") supported
  2807.         bits 2-15 reserved
  2808.  04h    WORD    number of cylinders
  2809.  06h    BYTE    media type
  2810.         for 1.2M drive
  2811.             00h 1.2M disk (default)
  2812.             01h 320K/360K disk
  2813.         F8h for DUBLDISK.SYS v2.6 expanded drives
  2814.         always 00h for other drive types
  2815.  07h 31 BYTEs    device BPB (see AH=53h), bytes after BPB offset 1Eh omitted
  2816. ---function 40h only---
  2817.  26h    WORD    number of sectors per track (start of track layout field)
  2818.         max 63
  2819.  28h  N word pairs: number,size of each sector in track
  2820.  
  2821. Values for device type:
  2822.  00h    320K/360K disk
  2823.  01h    1.2M disk
  2824.  02h    720K disk
  2825.  03h    single-density 8-inch disk
  2826.  04h    double-density 8-inch disk
  2827.  05h    fixed disk
  2828.  06h    tape drive
  2829.  07h    (DOS 3.3+) other type of block device, normally 1.44M floppy
  2830.  08h    read/write optical disk
  2831.  09h    (DOS 5+) 2.88M floppy
  2832.  
  2833. Format of parameter block for functions 41h, 61h:
  2834. Offset    Size    Description
  2835.  00h    BYTE    special functions (reserved, must be zero)
  2836.  01h    WORD    number of disk head
  2837.  03h    WORD    number of disk cylinder
  2838.  05h    WORD    number of first sector to read/write
  2839.  07h    WORD    number of sectors
  2840.  09h    DWORD    transfer address
  2841.  
  2842. Format of parameter block for function 42h:
  2843. Offset    Size    Description
  2844.  00h    BYTE    reserved, must be zero (DOS <3.2)
  2845.           bit 0=0: format/verify track
  2846.             1: format status call (DOS 3.2+), don't actually format
  2847.           bits 1-7 reserved, must be zero
  2848.         on return (DOS 4.x):
  2849.           bit 0: set if specified tracks, sectors/track supported
  2850.           bit 1: set if function not supported by BIOS
  2851.           bit 2: set if specified tracks, sectors/track not supported
  2852.           bit 3: set if no disk in drive
  2853.  01h    WORD    number of disk head
  2854.  03h    WORD    number of disk cylinder
  2855.  
  2856. Format of parameter block for function 62h:
  2857. Offset    Size    Description
  2858.  00h    BYTE    reserved, must be zero (DOS <3.2)
  2859.           bit 0=0: verify single track
  2860.             1: verify multiple tracks
  2861.           bits 1-7 reserved, must be zero
  2862.         on return (DOS 4.x):
  2863.           bit 0: set if specified tracks, sectors/track supported
  2864.           bit 1: set if function not supported by BIOS
  2865.           bit 2: set if specified tracks, sectors/track not supported
  2866.           bit 3: set if no disk in drive
  2867.  01h    WORD    number of disk head
  2868.  03h    WORD    number of disk cylinder
  2869.  05h    WORD    number of tracks to verify (equivalent to 255 or fewer sectors)
  2870.  
  2871. Format of parameter block for functions 46h, 66h:
  2872. Offset    Size    Description
  2873.  00h    WORD    (call) info level (should be 0000h)
  2874.  02h    DWORD    disk serial number (binary)
  2875.  06h 11 BYTEs    volume label or "NO NAME    "
  2876.  11h  8 BYTEs    filesystem type "FAT12     " or "FAT16   " (CL=66h only)
  2877.  
  2878. Format of parameter block for functions 47h, 67h:
  2879. Offset    Size    Description
  2880.  00h    BYTE    special-function field (must be zero)
  2881.  01h    BYTE    disk-access flag, nonzero if access allowed by driver
  2882.  
  2883. Format of parameter block for function 68h:
  2884. Offset    Size    Description
  2885.  00h    BYTE    01h for default media type, 00h for any other media type
  2886.         (see also INT 13/AH=20h)
  2887.  01h    BYTE    02h for 720K, 07h for 1.44M, 09h for 2.88M
  2888. --------D-21440E-----------------------------
  2889. INT 21 - DOS 3.2+ - IOCTL - GET LOGICAL DRIVE MAP
  2890.     AX = 440Eh
  2891.     BL = drive number (00h=default,01h=A:,etc)
  2892. Return: CF set on error
  2893.         AX = error code (01h,0Fh) (see AH=59h)
  2894.     CF clear if successful
  2895.         AL = 00h block device has only one logical drive assigned
  2896.          1..26 the last letter used to reference the drive (1=A:,etc)
  2897. Note:    DR-DOS 3.41-5.0 DRIVER.SYS does not support drive mapping and thus
  2898.       always returns AL=00h
  2899. SeeAlso: AX=440Fh,INT 2F/AX=122Bh
  2900. --------D-21440F-----------------------------
  2901. INT 21 - DOS 3.2+ - IOCTL - SET LOGICAL DRIVE MAP
  2902.     AX = 440Fh
  2903.     BL = physical drive number (00h=default,01h=A:,etc))
  2904. Return: CF set on error
  2905.         AX = error code (01h,0Fh) (see AH=59h)
  2906.     CF clear if successful
  2907.         drive now responds to next logical drive number
  2908. Notes:    maps logical drives to physical drives, similar to DOS's treatment of
  2909.       a single physical floppy drive as both A: and B:
  2910.     DR-DOS 3.41-5.0 DRIVER.SYS does not support drive mapping and thus
  2911.       always returns an error on this function
  2912. SeeAlso: AX=440Eh,INT 2F/AX=122Bh
  2913. --------D-214410-----------------------------
  2914. INT 21 - DOS 5+ - IOCTL - QUERY GENERIC IOCTL CAPABILITY (HANDLE)
  2915.     AX = 4410h
  2916.     BX = handle for device
  2917.     CH = category code (see AX=440Ch)
  2918.     CL = function code
  2919. Return: CF clear if successful
  2920.         AX = 0000h    specified IOCTL function is supported
  2921.     CF set on error
  2922.         AL = 01h    IOCTL capability not available
  2923. Note:    a program which wishes to use Generic IOCTL calls beyond those in the
  2924.       standard DOS 3.2 set may use this call first to see whether a
  2925.       particular call is supported
  2926. SeeAlso: AX=440Ch,AX=440Dh,AX=4411h
  2927. --------d-214410BXFFFF-----------------------
  2928. INT 21 U - NewSpace - ENABLE DRIVER
  2929.     AX = 4410h
  2930.     BX = FFFFh
  2931. Program: NewSpace is a TSR by Isogon Corporation which automatically compresses
  2932.       all files as they are written and decompresses them as they are read
  2933. Note:    compressed files are not accessible unless the driver is enabled
  2934. SeeAlso: AX=4411h/BX=FFFFh
  2935. --------D-214411-----------------------------
  2936. INT 21 - DOS 5+ - IOCTL - QUERY GENERIC IOCTL CAPABILITY (DRIVE)
  2937.     AX = 4411h
  2938.     BL = drive number
  2939.     CH = category code (see AX=440Dh)
  2940.     CL = function code
  2941. Return: CF clear if successful
  2942.         AX = 0000h    specified IOCTL function is supported
  2943.     CF set on error
  2944.         AL = 01h    IOCTL capability not available
  2945. Note:    a program which wishes to use Generic IOCTL calls beyond those in the
  2946.       standard DOS 3.2 set may use this call first to see whether a
  2947.       particular call is supported
  2948. SeeAlso: AX=440Ch,AX=440Dh,AX=4410h
  2949. --------d-214411BXFFFF-----------------------
  2950. INT 21 U - NewSpace - DISABLE DRIVER
  2951.     AX = 4411h
  2952.     BX = FFFFh
  2953. Program: NewSpace is a TSR by Isogon Corporation which automatically compresses
  2954.       all files as they are written and decompresses them as they are read
  2955. Note:    compressed files are not accessible unless the driver is enabled
  2956. SeeAlso: AX=4410h/BX=FFFFh
  2957. --------O-214412-----------------------------
  2958. INT 21 - DR-DOS 5+ - DETERMINE DOS TYPE
  2959.     AX = 4412h
  2960.     CF set
  2961. Return: CF set if not DR-DOS
  2962.         AX = error code (see AH=59h)
  2963.     CF clear if DR-DOS
  2964.         DX = AX = version code (see AX=4452h)
  2965. Note:    this obsolete call which will not be supported in future versions of
  2966.       DR-DOS is identical to AX=4452h
  2967. SeeAlso: AX=4452h
  2968. --------d-214412BXFFFF-----------------------
  2969. INT 21 U - NewSpace - INSTALLATION CHECK???
  2970.     AX = 4412h
  2971.     BX = FFFFh
  2972. Return: AX = PSP segment of NewRes (resident driver for NewSpace)
  2973.     BX:DX -> ???
  2974.     CX = ???
  2975. SeeAlso: AX=4411h/BX=FFFFh
  2976. --------d-214413BXFFFF-----------------------
  2977. INT 21 U - NewSpace - GET ???
  2978.     AX = 4413h
  2979.     BX = FFFFh
  2980. Return: AX = code segment of NewRes (resident driver for NewSpace)
  2981.     BX = offset of ???
  2982. SeeAlso: AX=4412h/BX=FFFFh
  2983. --------O-214414-----------------------------
  2984. INT 21 U - DR-DOS 5.0 - SET GLOBAL PASSWORD
  2985.     AX = 4414h
  2986.     DS:DX -> password string (blank-padded to 8 characters)
  2987. Desc:    Specify the master password for accessing files.
  2988. Note:    this obsolete call which will not be supported in future versions of
  2989.       DR-DOS is identical to AX=4452h
  2990. SeeAlso: AX=4454h
  2991. --------d-214414BXFFFF-----------------------
  2992. INT 21 U - NewSpace - DEBUGGING DUMP
  2993.     AX = 4414h
  2994.     BX = FFFFh
  2995. Return: debugging dump written to X:\NEWSPACE.SMP
  2996. SeeAlso: AX=4413h/BX=FFFFh,AX=44FFh/BX=FFFFh
  2997. --------O-2144-------------------------------
  2998. INT 21 U - DR-DOS 5.0 - HISTORY BUFFER, SHARE, AND HILOAD CONTROL
  2999.     AH = 44h
  3000.     AL = 16h to 18h
  3001. Note:    these obsolete subfunctions (which will not be supported in future
  3002.       versions of DR-DOS) are identical to AX=4456h through 4458h
  3003. SeeAlso: AX=4456h,AX=4457h,AX=4458h
  3004. --------O-214451-----------------------------
  3005. INT 21 - Concurrent DOS v3.2+ - INSTALLATION CHECK
  3006.     AX = 4451h
  3007. Return: CF set if not Concurrent DOS
  3008.         AX = error code (see AH=59h)
  3009.     CF clear if successful
  3010.         AH = single-user/multiuser nature
  3011.         10h single-user
  3012.             AL = operating system version ID (see AX=4452h)
  3013.         14h multiuser
  3014.             AL = operating system version ID (see below)
  3015. Notes:    as of Concurrent DOS/XM 5.0 (possibly earlier), the version is stored
  3016.       in the environment variable VER
  3017.     use this function if you are looking for multiuser capabilities,
  3018.       AX=4452h for single-user
  3019.     this function should never return the single-user values
  3020. SeeAlso: AX=4452h,AX=4459h
  3021.  
  3022. Values for operating system version ID:
  3023.  32h    Concurrent PC DOS 3.2
  3024.  41h    Concurrent DOS 4.1
  3025.  50h    Concurrent DOS/XM 5.0 or Concurrent DOS/386 1.1
  3026.  60h    Concurrent DOS/XM 6.0 or Concurrent DOS/386 2.0
  3027.  62h    Concurrent DOS/XM 6.2 or Concurrent DOS/386 3.0
  3028.  66h    DR Multiuser DOS 5.1
  3029.  67h    Concurrent DOS 5.1
  3030. --------O-214452-----------------------------
  3031. INT 21 - DR-DOS 3.41+ - DETERMINE DOS TYPE/GET DR-DOS VERSION
  3032.     AX = 4452h ("DR")
  3033.     CF set
  3034. Return: CF set if not DR-DOS
  3035.         AX = error code (see AH=59h)
  3036.     CF clear if DR-DOS
  3037.         DX = AX = version code
  3038.         AH = single-user/multiuser nature
  3039.         10h single-user
  3040.             AL = operating system version ID (see below)
  3041.         14h multiuser
  3042.             AL = operating system version ID (see AX=4451h)
  3043. Notes:    the DR-DOS version is stored in the environment variable VER
  3044.     use this function if looking for single-user capabilities, AX=4451h
  3045.       if looking for multiuser; this call should never return multiuser
  3046.       values
  3047. SeeAlso: AX=4412h,AX=4451h,AX=4459h
  3048.  
  3049. Values for operating system version ID:
  3050.  60h    DOS Plus
  3051.  63h    DR-DOS 3.41
  3052.  64h    DR-DOS 3.42
  3053.  65h    DR-DOS 5.00
  3054.  67h    DR-DOS 6.00
  3055.  70h    PalmDOS
  3056.  71h    DR-DOS 6.0 March 1993 "business update"
  3057.  72h    Novell DOS 7.0
  3058. --------O-214454-----------------------------
  3059. INT 21 U - DR-DOS 3.41+ - SET GLOBAL PASSWORD
  3060.     AX = 4454h
  3061.     DS:DX -> password string (blank-padded to 8 characters)
  3062. Desc:    Specify the master password for accessing files.
  3063. SeeAlso: AX=4303h,AX=4414h
  3064. --------O-214456-----------------------------
  3065. INT 21 U - DR-DOS 5.0+ - HISTORY BUFFER CONTROL
  3066.     AX = 4456h
  3067.     DL = flag
  3068.         bit 0: 1 = COMMAND.COM history buffers
  3069.            0 = set to application
  3070. Return: AL = ??? (20h if DL bit 0 set, A0h if clear (DR-DOS 6.0))
  3071. Note:    This was seen called by COMMAND.COM of DR-DOS 6.0
  3072. --------O-214457-----------------------------
  3073. INT 21 U - DR-DOS 5.0+ - SHARE/HILOAD CONTROL
  3074.     AX = 4457h
  3075.     DH = subfunction
  3076.         00h enable/disable SHARE
  3077.         DL = 00h disable
  3078.            = 01h enable
  3079.            else Return: AX = ???
  3080.         01h get HILOAD status
  3081.         Return: AX = status
  3082.                 0000h off
  3083.                 0001h on
  3084.         02h set HILOAD status
  3085.         DL = new state (00h off, 01h on)
  3086.         Return: AX = ???
  3087.         other
  3088.         Return: AX = ???
  3089. Note:    This was seen called by COMMAND.COM of DR-DOS 6.0
  3090. SeeAlso: AX=4457h/DX=FFFFh
  3091. --------O-214457DXFFFF-----------------------
  3092. INT 21 U - DR-DOS 6.0 - GET SHARE STATUS
  3093.     AX = 4457h
  3094.     DX = FFFFh
  3095. Return: AX = SHARE status
  3096. SeeAlso: INT 2F/AX=1000h
  3097. --------O-214458-----------------------------
  3098. INT 21 U - DR-DOS 5.0+ internal - GET POINTER TO INTERNAL VARIABLE TABLE
  3099.     AX = 4458h
  3100. Return: ES:BX -> internal variable table (see below)
  3101.     AX = ??? (0B50h for DR-DOS 5.0, 0A56h for DR-DOS 6.0)
  3102. SeeAlso: AX=4452h
  3103.  
  3104. Format of internal variable table:
  3105. Offset    Size    Description
  3106.  00h    WORD    ???
  3107.  02h    WORD    segment of ???
  3108.  04h  7 BYTEs    ???
  3109.  0Bh    WORD    KB of extended memory at startup
  3110.  0Dh    BYTE    number of far jump entry points
  3111.  0Eh    WORD    segment containing far jumps to DR-DOS entry points (see below)
  3112.  10h    WORD    (only if kernel loaded in HMA) offset in HMA of first free HMA
  3113.         memory block (see below) or 0000h if none; segment is FFFFh
  3114.  12h    WORD    pointer to segment of environment variables set in CONFIG,
  3115.         or 0000h if already used
  3116. ---DR-DOS 6.0---
  3117.  14h    WORD    (only if kernel loaded in HMA) offset in HMA of first used HMA
  3118.         memory block (see below) or 0000h if none; segment is FFFFh
  3119. Note:    the segment used for the DR-DOS 6.0 CONFIG environment variables
  3120.       (excluding COMSPEC, VER and OS) is only useful for programs/drivers
  3121.       called from CONFIG.SYS. The word is set to zero later when the area
  3122.       is copied to the COMMAND.COM environment space.  This allows
  3123.       CONFIG.SYS to pass information to AUTOEXEC.BAT.
  3124.  
  3125. Format of kernel entry jump table for DR-DOS 5.0-6.0:
  3126. Offset    Size    Description
  3127.  00h  5 BYTEs    far jump to kernel entry point for CP/M CALL 5
  3128.  05h  5 BYTEs    far jump to kernel entry point for INT 20
  3129.  0Ah  5 BYTEs    far jump to kernel entry point for INT 21
  3130.  0Fh  5 BYTEs    far jump to kernel entry point for INT 22 (RETF)
  3131.  14h  5 BYTEs    far jump to kernel entry point for INT 23 (RETF)
  3132.  19h  5 BYTEs    far jump to kernel entry point for INT 24
  3133.  1Eh  5 BYTEs    far jump to kernel entry point for INT 25
  3134.  23h  5 BYTEs    far jump to kernel entry point for INT 26
  3135.  28h  5 BYTEs    far jump to kernel entry point for INT 27
  3136.  2Dh  5 BYTEs    far jump to kernel entry point for INT 28
  3137.  32h  5 BYTEs    far jump to kernel entry point for INT 2A (IRET)
  3138.  37h  5 BYTEs    far jump to kernel entry point for INT 2B (IRET)
  3139.  3Ch  5 BYTEs    far jump to kernel entry point for INT 2C (IRET)
  3140.  41h  5 BYTEs    far jump to kernel entry point for INT 2D (IRET)
  3141.  46h  5 BYTEs    far jump to kernel entry point for INT 2E (IRET)
  3142.  4Bh  5 BYTEs    far jump to kernel entry point for INT 2F
  3143. Notes:    all of these entry points are indirected through this jump table
  3144.       to allow the kernel to be relocated into high memory while leaving
  3145.       the actual entry addresses in low memory for maximum compatibility
  3146.     some of these entry points (22h,23h,24h,2Eh,2Fh) are replaced as soon
  3147.       as COMMAND.COM is loaded, and return immediately to the caller, some
  3148.       returning an error code (the original handler for INT 2F returns
  3149.       AL=03h [fail]).
  3150.  
  3151. Format of HMA Memory Block (DR-DOS 6.0 kernel loaded in HMA):
  3152. Offset    Size    Description
  3153.  00h    WORD    offset of next HMA Memory Block (0000h if last block)
  3154.  02h    WORD    size of this block in bytes (at least 10h)
  3155.  04h    BYTE    type of HMA Memory Block (interpreted by MEM)
  3156.         00h system
  3157.         01h KEYB
  3158.         02h NLSFUNC
  3159.         03h SHARE
  3160.         04h TaskMAX
  3161.         05h COMMAND
  3162.  05h    var    TSR (or system) code and data. DR-DOS TSR's, such as KEYB,
  3163.         hooks interrupts using segment FFFEh instead FFFFh.
  3164. --------O-214459-----------------------------
  3165. INT 21 - DR MultiUser DOS 5.0 - API
  3166.     AX = 4459h
  3167.     CL = function (see INT E0"CP/M")
  3168.     DS,DX = parameters
  3169. Notes:    DR-DOS 5.0 returns CF set and AX=0001h
  3170.     this API is also available on INT E0
  3171. SeeAlso: AX=4452h,INT E0"CP/M"
  3172. --------N-2144E0-----------------------------
  3173. INT 21 U - Sun PC-NFS - API???
  3174.     AX = 44E0h
  3175.     DS:DX -> ???
  3176.     SS:BP -> stack frame (see below)
  3177. Return: ???
  3178. Note:    this function is also supported by Beame&Whiteside's BWPCNFS shim; the
  3179.       description presented here was derived from that shim
  3180.  
  3181. Format of stack frame:
  3182. Offset    Size    Description
  3183.  00h    WORD    -> previous stack frame
  3184.  02h    DWORD    return address
  3185. --------d-2144FFBXFFFF-----------------------
  3186. INT 21 U - NewSpace - ???
  3187.     AX = 44FFh
  3188.     BX = FFFFh
  3189.     DX = ???
  3190. Program: NewSpace is a TSR by Isogon Corporation which automatically compresses
  3191.       all files as they are written and decompresses them as they are read
  3192. SeeAlso: AX=4414h/BX=FFFFh
  3193. --------D-2145-------------------------------
  3194. INT 21 - DOS 2+ - "DUP" - DUPLICATE FILE HANDLE
  3195.     AH = 45h
  3196.     BX = file handle
  3197. Return: CF clear if successful
  3198.         AX = new handle
  3199.     CF set on error
  3200.         AX = error code (04h,06h) (see AH=59h)
  3201. Notes:    moving file pointer for either handle will also move it for the other,
  3202.       because both will refer to the same system file table
  3203.     for DOS versions prior to 3.3, file writes may be forced to disk by
  3204.       duplicating the file handle and closing the duplicate
  3205. SeeAlso: AH=3Dh,AH=46h
  3206. --------D-2146-------------------------------
  3207. INT 21 - DOS 2+ - "DUP2", "FORCEDUP" - FORCE DUPLICATE FILE HANDLE
  3208.     AH = 46h
  3209.     BX = file handle
  3210.     CX = file handle to become duplicate of first handle
  3211. Return: CF clear if successful
  3212.     CF set on error
  3213.         AX = error code (04h,06h) (see AH=59h)
  3214. Notes:    closes file with handle CX if it is still open
  3215.     DOS 3.30 hangs if BX=CX on entry
  3216.     moving file pointer for either handle will also move it for the other,
  3217.       because both will refer to the same system file table
  3218. SeeAlso: AH=3Dh,AH=45h
  3219. --------D-2147-------------------------------
  3220. INT 21 - DOS 2+ - "CWD" - GET CURRENT DIRECTORY
  3221.     AH = 47h
  3222.     DL = drive number (00h = default, 01h = A:, etc)
  3223.     DS:SI -> 64-byte buffer for ASCIZ pathname
  3224. Return: CF clear if successful
  3225.         AX = 0100h (undocumented)
  3226.     CF set on error
  3227.         AX = error code (0Fh) (see AH=59h)
  3228. Notes:    the returned path does not include a drive or the initial backslash
  3229.     many Microsoft products for Windows rely on AX being 0100h on success
  3230.     under the FlashTek X-32 DOS extender, the buffer pointer is in DS:ESI
  3231. SeeAlso: AH=19h,AH=3Bh,INT 15/AX=DE25h
  3232. --------D-2148-------------------------------
  3233. INT 21 - DOS 2+ - ALLOCATE MEMORY
  3234.     AH = 48h
  3235.     BX = number of paragraphs to allocate
  3236. Return: CF clear if successful
  3237.         AX = segment of allocated block
  3238.     CF set on error
  3239.         AX = error code (07h,08h) (see AH=59h)
  3240.         BX = size of largest available block
  3241. Notes:    DOS 2.1-6.0 coalesces free blocks while scanning for a block to
  3242.       allocate
  3243.     .COM programs are initially allocated the largest available memory
  3244.       block, and should free some memory with AH=49h before attempting any
  3245.       allocations
  3246.     under the FlashTek X-32 DOS extender, EBX contains a protected-mode
  3247.       near pointer to the allocated block on a successful return
  3248. SeeAlso: AH=49h,AH=4Ah,AH=58h,AH=83h
  3249. --------D-2149-------------------------------
  3250. INT 21 - DOS 2+ - FREE MEMORY
  3251.     AH = 49h
  3252.     ES = segment of block to free
  3253. Return: CF clear if successful
  3254.     CF set on error
  3255.         AX = error code (07h,09h) (see AH=59h)
  3256. Notes:    apparently never returns an error 07h, despite official docs; DOS 3.30
  3257.       code contains only an error 09h exit
  3258.     DOS 2.1-6.0 does not coalesce adjacent free blocks when a block is
  3259.       freed, only when a block is allocated or resized
  3260.     the code for this function is identical in DOS 2.1-6.0 except for
  3261.       calls to start/end a critical section in DOS 3+
  3262. SeeAlso: AH=48h,AH=4Ah
  3263. --------D-214A-------------------------------
  3264. INT 21 - DOS 2+ - RESIZE MEMORY BLOCK
  3265.     AH = 4Ah
  3266.     BX = new size in paragraphs
  3267.     ES = segment of block to resize
  3268. Return: CF clear if successful
  3269.     CF set on error
  3270.         AX = error code (07h,08h,09h) (see AH=59h)
  3271.         BX = maximum paragraphs available for specified memory block
  3272. Notes:    under DOS 2.1-6.0, if there is insufficient memory to expand the block
  3273.       as much as requested, the block will be made as large as possible
  3274.     DOS 2.1-6.0 coalesces any free blocks immediately following the block
  3275.       to be resized
  3276. SeeAlso: AH=48h,AH=49h,AH=83h
  3277. --------D-214B-------------------------------
  3278. INT 21 - DOS 2+ - "EXEC" - LOAD AND/OR EXECUTE PROGRAM
  3279.     AH = 4Bh
  3280.     AL = type of load
  3281.         00h load and execute
  3282.         01h load but do not execute
  3283.         03h load overlay
  3284.         04h load and execute in background (European MS-DOS 4.0 only)
  3285.         "Exec & Go" (see also AH=80h)
  3286.     DS:DX -> ASCIZ program name (must include extension)
  3287.     ES:BX -> parameter block (see below)
  3288.     CX = mode (subfunction 04h only)
  3289.         0000h child placed in zombie mode after termination
  3290.         0001h child's return code discarded on termination
  3291. Return: CF clear if successful
  3292.         BX,DX destroyed
  3293.         if subfunction 01h, process ID set to new program's PSP; get with
  3294.         INT 21/AH=62h
  3295.     CF set on error
  3296.         AX = error code (01h,02h,05h,08h,0Ah,0Bh) (see AH=59h)
  3297. Notes:    DOS 2.x destroys all registers, including SS:SP
  3298.     under ROM-based DOS, if no disk path characters (colons or slashes)
  3299.       are included in the program name, the name is searched for in the
  3300.       ROM module headers (see below) before searching on disk
  3301.     for functions 00h and 01h, the calling process must ensure that there
  3302.       is enough unallocated memory available; if necessary, by releasing
  3303.       memory with AH=49h or AH=4Ah
  3304.     for function 01h, the AX value to be passed to the child program is put
  3305.       on top of the child's stack
  3306.     for function 03h, DOS assumes that the overlay is being loaded into
  3307.       memory allocated by the caller
  3308.     function 01h was undocumented prior to the release of DOS 5.0
  3309.     some versions (such as DR-DOS 6.0) check the parameters and parameter
  3310.       block and return an error if an invalid value (such as an offset of
  3311.       FFFFh) is found
  3312.     background programs under European MS-DOS 4.0 must use the new
  3313.       executable format
  3314.     new executables begin running with the following register values
  3315.         AX = environment segment
  3316.         BX = offset of command tail in environment segment
  3317.         CX = size of automatic data segment (0000h = 64K)
  3318.         ES,BP = 0000h
  3319.         DS = automatic data segment
  3320.         SS:SP = initial stack
  3321.       the command tail corresponds to an old executable's PSP:0081h and
  3322.       following, except that the 0Dh is turned into a NUL (00h); new
  3323.       format executables have no PSP
  3324.     under the FlashTek X-32 DOS extender, only function 00h is supported
  3325.       and the pointers are passed in DS:EDX and ES:EBX
  3326.     DR-DOS 6 always loads .EXE-format programs with no fixups above the
  3327.       64K mark to avoid the EXEPACK bug
  3328.     names for the various executable type understood by various
  3329.       environments:
  3330.         MZ  old-style DOS executable
  3331.         NE  Windows or OS/2 1.x segmented ("new") executable
  3332.         LE  Windows virtual device driver (VxD) linear executable
  3333.         LX  variant of LE used in OS/2 2.x
  3334.         W3  Windows WIN386.EXE file; a collection of LE files
  3335.         PE  Win32 (Windows NT and Win32s) portable executable based on
  3336.             Unix COFF
  3337. BUGS:    DOS 2.00 assumes that DS points at the current program's PSP
  3338.     Load Overlay (subfunction 03h) loads up to 512 bytes too many if the
  3339.       file contains additional data after the actual overlay
  3340. SeeAlso: AX=4B05h,AH=4Ch,AH=4Dh,AH=64h"OS/2",AH=8Ah,INT 2E
  3341.  
  3342. Format of EXEC parameter block for AL=00h,01h,04h:
  3343. Offset    Size    Description
  3344.  00h    WORD    segment of environment to copy for child process (copy caller's
  3345.         environment if 0000h)
  3346.  02h    DWORD    pointer to command tail to be copied into child's PSP
  3347.  06h    DWORD    pointer to first FCB to be copied into child's PSP
  3348.  0Ah    DWORD    pointer to second FCB to be copied into child's PSP
  3349.  0Eh    DWORD    (AL=01h) will hold subprogram's initial SS:SP on return
  3350.  12h    DWORD    (AL=01h) will hold entry point (CS:IP) on return
  3351.  
  3352. Format of EXEC parameter block for AL=03h:
  3353. Offset    Size    Description
  3354.  00h    WORD    segment at which to load overlay
  3355.  02h    WORD    relocation factor to apply to overlay if in .EXE format
  3356.  
  3357. Format of EXEC parameter block for FlashTek X-32:
  3358. Offset    Size    Description
  3359.  00h    PWORD    48-bit far pointer to environment string
  3360.  06h    PWORD    48-bit far pointer to command tail string
  3361.  
  3362. Format of .EXE file header:
  3363. Offset    Size    Description
  3364.  00h  2 BYTEs    .EXE signature, either "MZ" or "ZM" (5A4Dh or 4D5Ah)
  3365.  02h    WORD    number of bytes in last 512-byte page of executable
  3366.  04h    WORD    total number of 512-byte pages in executable (includes any
  3367.         partial last page)
  3368.  06h    WORD    number of relocation entries
  3369.  08h    WORD    header size in paragraphs
  3370.  0Ah    WORD    minimum paragraphs of memory to allocation in addition to
  3371.         executable's size
  3372.  0Ch    WORD    maximum paragraphs to allocate in addition to executable's size
  3373.  0Eh    WORD    initial SS relative to start of executable
  3374.  10h    WORD    initial SP
  3375.  12h    WORD    checksum (one's complement of sum of all words in executable)
  3376.  14h    DWORD    initial CS:IP relative to start of executable
  3377.  18h    WORD    offset within header of relocation table
  3378.         40h or greater for new-format (NE,LE,LX,W3,PE,etc.) executable
  3379.  1Ah    WORD    overlay number (normally 0000h = main program)
  3380. ---new executable---
  3381.  1Ch  4 BYTEs    ???
  3382.  20h    WORD    behavior bits
  3383.  22h 26 BYTEs    reserved for additional behavior info
  3384.  3Ch    DWORD    offset of new executable (NE,LE,etc) header within disk file,
  3385.         or 00000000h if plain MZ executable
  3386. ---Borland TLINK---
  3387.  1Ch  2 BYTEs    ??? (apparently always 01h 00h)
  3388.  1Eh    BYTE    signature FBh
  3389.  1Fh    BYTE    TLINK version (major in high nybble, minor in low nybble)
  3390.  20h  2 BYTEs    ??? (v2.0 apparently always 72h 6Ah, v3.0+ seems always 6Ah 72h)
  3391. ---ARJ self-extracting archive---
  3392.  1Ch  4 BYTEs    signature "RJSX" (older versions, new signature is "aRJsfX" in
  3393.         the first 1000 bytes of the file)
  3394. ---LZEXE 0.90 compressed executable---
  3395.  1Ch  4 BYTEs    signature "LZ09"
  3396. ---LZEXE 0.91 compressed executable---
  3397.  1Ch  4 BYTEs    signature "LZ91"
  3398. ---PKLITE compressed executable---
  3399.  1Ch    BYTE    minor version number
  3400.  1Dh    BYTE    bits 0-3: major version
  3401.         bit 4: extra compression
  3402.         bit 5: huge (multi-segment) file
  3403.  1Eh  6 BYTEs    signature "PKLITE" (followed by copyright message)
  3404. ---LHarc 1.x self-extracting archive---
  3405.  1Ch  4 BYTEs    unused???
  3406.  20h  3 BYTEs    jump to start of extraction code
  3407.  23h  2 BYTEs    ???
  3408.  25h 12 BYTEs    signature "LHarc's SFX "
  3409. ---LHA 2.x self-extracting archive---
  3410.  1Ch  8 BYTEs    ???
  3411.  24h 10 BYTEs    signature "LHa's SFX " (v2.10) or "LHA's SFX " (v2.13)
  3412. ---TopSpeed C 3.0 CRUNCH compressed file---
  3413.  1Ch    DWORD    018A0001h
  3414.  20h    WORD    1565h
  3415. ---PKARCK 3.5 self-extracting archive---
  3416.  1Ch    DWORD    00020001h
  3417.  20h    WORD    0700h
  3418. ---BSA (Soviet archiver) self-extracting archive---
  3419.  1Ch    WORD    000Fh
  3420.  1Eh    BYTE    A7h
  3421. ---LARC self-extracting archive---
  3422.  1Ch  4 BYTEs    ???
  3423.  20h 11 BYTEs    "SFX by LARC "
  3424. ---LH self-extracting archive---
  3425.  1Ch  8 BYTEs    ???
  3426.  24h  8 BYTEs    "LH's SFX "
  3427. ---other linkers---
  3428.  1Ch    var    optional information
  3429. ---
  3430.   N   N DWORDs    relocation items
  3431. Notes:    if word at offset 02h is 4, it should be treated as 00h, since pre-1.10
  3432.       versions of the MS linker set it that way
  3433.     if both minimum and maximum allocation (offset 0Ah/0Ch) are zero, the
  3434.       program is loaded as high in memory as possible
  3435.     the maximum allocation is set to FFFFh by default
  3436.  
  3437. Format of ROM Module Header:
  3438. Offset    Size    Description
  3439.  00h  2 BYTEs    ROM signature 55h, AAh
  3440.  02h    BYTE    size of ROM in 512-byte blocks
  3441.  03h  3 BYTEs    POST initialization entry point (near JMP instruction)
  3442.  06h    ROM Program Name List [array]
  3443.     Offset    Size    Description
  3444.      00h    BYTE    length of ROM program's name (00h if end of name list)
  3445.      01h  N BYTEs    program name
  3446.      N+1  3 BYTEs    program entry point (near JMP instruction)
  3447.  
  3448. Format of new executable header:
  3449. Offset    Size    Description
  3450.  00h  2 BYTEs    "NE" (4Eh 45h) signature
  3451.  02h  2 BYTEs    linker version (major, then minor)
  3452.  04h    WORD    offset from start of this header to entry table (see below)
  3453.  06h    WORD    length of entry table in bytes
  3454.  08h    DWORD    file load CRC (0 in Borland's TPW)
  3455.  0Ch    BYTE    program flags
  3456.         bits 0-1 DGROUP type
  3457.           0 = none
  3458.           1 = single shared
  3459.           2 = multiple (unshared)
  3460.           3 = (null)
  3461.         bit 2:    global initialization
  3462.         bit 3:    protected mode only
  3463.         bit 4:    8086 instructions
  3464.         bit 5:    80286 instructions
  3465.         bit 6:    80386 instructions
  3466.         bit 7:    80x87 instructions
  3467.  0Dh    BYTE    application flags
  3468.         bits 0-2: application type
  3469.             001 full screen (not aware of Windows/P.M. API)
  3470.             010 compatible with Windows/P.M. API
  3471.             011 uses Windows/P.M. API
  3472.         bit 3: is a Family Application (OS/2)
  3473.         bit 5: 0=executable, 1=errors in image
  3474.         bit 6: non-conforming program (valid stack is not maintained)
  3475.         bit 7: DLL or driver rather than application
  3476.             (SS:SP info invalid, CS:IP points at FAR init routine
  3477.              called with AX=module handle which returns AX=0000h
  3478.              on failure, AX nonzero on successful initialization)
  3479.  0Eh    WORD    auto data segment index
  3480.  10h    WORD    initial local heap size
  3481.  12h    WORD    initial stack size (added to data seg, 0000h if SS <> DS)
  3482.  14h    DWORD    program entry point (CS:IP), "CS" is index into segment table
  3483.  18h    DWORD    initial stack pointer (SS:SP), "SS" is segment index
  3484.         if SS=automatic data segment and SP=0000h, the stack pointer is
  3485.           set to the top of the automatic data segment, just below the
  3486.           local heap
  3487.  1Ch    WORD    segment count
  3488.  1Eh    WORD    module reference count
  3489.  20h    WORD    length of nonresident names table in bytes
  3490.  22h    WORD    offset from start of this header to segment table (see below)
  3491.  24h    WORD    offset from start of this header to resource table
  3492.  26h    WORD    offset from start of this header to resident names table
  3493.  28h    WORD    offset from start of this header to module reference table
  3494.  2Ah    WORD    offset from start of this header to imported names table
  3495.         (array of counted strings, terminated with a string of length
  3496.          00h)
  3497.  2Ch    DWORD    offset from start of file to nonresident names table
  3498.  30h    WORD    count of moveable entry point listed in entry table
  3499.  32h    WORD    file alignment size shift count
  3500.         0 is equivalent to 9 (default 512-byte pages)
  3501.  34h    WORD    number of resource table entries
  3502.  36h    BYTE    target operating system
  3503.         00h unknown
  3504.         01h OS/2
  3505.         02h Windows
  3506.         03h European MS-DOS 4.x
  3507.         04h Windows 386
  3508.         05h BOSS (Borland Operating System Services)
  3509.  37h    BYTE    other EXE flags
  3510.         bit 0: supports long filenames
  3511.         bit 1: 2.X protected mode
  3512.         bit 2: 2.X proportional font
  3513.         bit 3: gangload area
  3514.  38h    WORD    offset to return thunks or start of gangload area
  3515.  3Ah    WORD    offset to segment reference thunks or length of gangload area
  3516.  3Ch    WORD    minimum code swap area size
  3517.  3Eh  2 BYTEs    expected Windows version (minor version first)
  3518. Note:    this header is documented in detail in the Windows 3.1 SDK Programmer's
  3519.       Reference, Vol 4.
  3520.  
  3521. Format of Codeview trailer (at end of executable):
  3522. Offset    Size    Description
  3523.  00h    WORD    signature 4E42h ('NB')
  3524.  02h    WORD    Microsoft debug info version number
  3525.  04h    DWORD    Codeview header offset
  3526.  
  3527. Format of new executable segment table record:
  3528.  00h    WORD    offset in file (shift left by alignment shift to get byte offs)
  3529.  02h    WORD    length of image in file (0000h = 64K)
  3530.  04h    WORD    segment attributes (see below)
  3531.  06h    WORD    number of bytes to allocate for segment (0000h = 64K)
  3532. Note:    the first segment table entry is entry number 1
  3533.  
  3534. Bitfields for segment attributes:
  3535.  bit 0    data segment rather than code segment
  3536.  bit 1    unused???
  3537.  bit 2    real mode
  3538.  bit 3    iterated
  3539.  bit 4    movable
  3540.  bit 5    sharable
  3541.  bit 6    preloaded rather than demand-loaded
  3542.  bit 7    execute-only (code) or read-only (data)
  3543.  bit 8    relocations (directly following code for this segment)
  3544.  bit 9    debug info present
  3545.  bits 10,11    80286 DPL bits
  3546.  bit 12        discardable
  3547.  bits 13-15    discard priority
  3548.  
  3549. Format of new executable entry table item (list):
  3550. Offset    Size    Description
  3551.  00h    BYTE    number of entry points (00h if end of entry table list)
  3552.  01h    BYTE    segment number (00h if end of entry table list)
  3553.  02h 3N BYTEs    entry records
  3554.         Offset    Size    Description
  3555.          00h    BYTE    flags
  3556.                 bit 0: exported
  3557.                 bit 1: single data
  3558.                 bits 2-7: unused???
  3559.          01h    WORD    offset within segment
  3560.  
  3561. Format of new executable relocation data (immediately follows segment image):
  3562. Offset    Size    Description
  3563.  00h    WORD    number of relocation items
  3564.  02h 8N BYTEs    relocation items
  3565.         Offset    Size    Description
  3566.          00h    BYTE    relocation type
  3567.                 00h LOBYTE
  3568.                 02h BASE
  3569.                 03h PTR
  3570.                 05h OFFS
  3571.                 0Bh PTR48
  3572.                 0Dh OFFS32
  3573.          01h    BYTE    flags
  3574.                 bit 2: additive
  3575.          02h    WORD    offset within segment
  3576.          04h    WORD    target address segment
  3577.          06h    WORD    target address offset
  3578.  
  3579. Format of new executable resource data:
  3580. Offset    Size    Description
  3581.  00h    WORD    alignment shift count for resource data
  3582.  02h  N RECORDs resources
  3583.     Format of resource record:
  3584.     Offset    Size    Description
  3585.      00h    WORD    type ID
  3586.             0000h if end of resource records
  3587.             >= 8000h if integer type
  3588.             else offset from start of resource table to type string
  3589.      02h    WORD    number of resources of this type
  3590.      04h    DWORD    reserved for runtime use
  3591.      08h  N Resources (see below)
  3592. Note:    resource type and name strings are stored immediately following the
  3593.       resource table, and are not null-terminated
  3594.  
  3595. Format of new executable resource entry:
  3596. Offset    Size    Description
  3597.  00h    WORD    offset in alignment units from start of file to contents of
  3598.         the resource data
  3599.  02h    WORD    length of resource image in bytes
  3600.  04h    WORD    flags
  3601.         bit 4: moveable
  3602.         bit 5: shareable
  3603.         bit 6: preloaded
  3604.  06h    WORD    resource ID
  3605.         >= 8000h if integer resource
  3606.         else offset from start of resource table to resource string
  3607.  08h    DWORD    reserved for runtime use
  3608. Notes:    resource type and name strings are stored immediately following the
  3609.       resource table, and are not null-terminated
  3610.     strings are counted strings, with a string of length 0 indicating the
  3611.       end of the resource table
  3612.  
  3613. Format of new executable module reference table [one bundle of entries]:
  3614. Offset    Size    Description
  3615.  00h    BYTE    number of records in this bundle (00h if end of table)
  3616.  01h    BYTE    segment indicator
  3617.         00h unused
  3618.         FFh movable segment, segment number is in entry
  3619.         else segment number of fixed segment
  3620.  02h  N RECORDs
  3621.     Format of segment record
  3622.     Offset    Size    Description
  3623.      00h    BYTE    flags
  3624.             bit 0: entry is exported
  3625.             bit 1: entry uses global (shared) data
  3626.             bits 7-3: number of parameter words
  3627.     ---fixed segment---
  3628.      01h    WORD    offset
  3629.     ---moveable segment---
  3630.      01h  2 BYTEs    INT 3F instruction (CDh 3Fh)
  3631.      03h    BYTE    segment number
  3632.      05h    WORD    offset
  3633. Note:    table entries are numbered starting from 1
  3634.  
  3635. Format of new executable resident/nonresident name table entry:
  3636. Offset    Size    Description
  3637.  00h    BYTE    length of string (00h if end of table)
  3638.  01h  N BYTEs    ASCII text of string
  3639.  N+1    WORD    ordinal number (index into entry table)
  3640. Notes:    the first string in the resident name table is the module name; the
  3641.       first entry in the nonresident name table is the module description
  3642.     the strings are case-sensitive; if the executable was linked with
  3643.       /IGNORECASE, all strings are in uppercase
  3644.  
  3645. Format of Linear Executable (enhanced mode executable) header:
  3646. Offset    Size    Description
  3647.  00h  2 BYTEs    "LE" (4Ch 45h) signature (Windows)
  3648.         "LX" (4Ch 58h) signature (OS/2)
  3649.  02h    BYTE    byte order (00h = little-endian, nonzero = big-endian)
  3650.  03h    BYTE    word order (00h = little-endian, nonzero = big-endian)
  3651.  04h    DWORD    executable format level
  3652.  08h    WORD    CPU type (see also INT 15/AH=C9h)
  3653.         01h Intel 80286 or upwardly compatible
  3654.         02h Intel 80386 or upwardly compatible
  3655.         03h Intel 80486 or upwardly compatible
  3656.         04h Intel Pentium (80586) or upwardly compatible
  3657.         20h Intel i860 (N10) or compatible
  3658.         21h Intel "N11" or compatible
  3659.         40h MIPS Mark I (R2000, R3000) or compatible
  3660.         41h MIPS Mark II (R6000) or compatible
  3661.         42h MIPS Mark III (R4000) or compatible
  3662.  0Ah    WORD    target operating system
  3663.         01h OS/2
  3664.         02h Windows
  3665.         03h European DOS 4.0
  3666.         04h Windows 386
  3667.  0Ch    DWORD    module version
  3668.  10h    DWORD    module type
  3669.         bit 2: initialization (only for DLLs)
  3670.             0 = global
  3671.             1 = per-process
  3672.         bit 4: no internal fixups in executable image
  3673.         bit 5: no external fixups in executable image
  3674.         bits 8,9,10:
  3675.             0 = unknown
  3676.             1 = incompatible with PM windowing \
  3677.             2 = compatible with PM windowing    > (only for
  3678.             3 = uses PM windowing API       /    programs)
  3679.         bit 13: module not loadable (only for programs)
  3680.         bits 17,16,15: module type
  3681.             000 program
  3682.             001 library (DLL)
  3683.             011 protected memory library module
  3684.             100 physical device driver
  3685.             110 virtual device driver
  3686.         bit 30: per-process library termination
  3687.             (requires valid CS:EIP, can't be set for .EXE)
  3688.  14h    DWORD    number of memory pages
  3689.  18h    Initial CS:EIP
  3690.     DWORD    object number
  3691.     DWORD    offset
  3692.  20h    Initial SS:ESP
  3693.     DWORD    object number
  3694.     DWORD    offset
  3695.  28h    DWORD    memory page size
  3696.  2Ch    DWORD    (Windows LE) bytes on last page
  3697.         (OS/2 LX) page offset shift count
  3698.  30h    DWORD    fixup section size
  3699.  34h    DWORD    fixup section checksum
  3700.  38h    DWORD    loader section size
  3701.  3Ch    DWORD    loader section checksum
  3702.  40h    DWORD    offset of object table (see below)
  3703.  44h    DWORD    object table entries
  3704.  48h    DWORD    object page map table offset
  3705.  4CH    DWORD    object iterate data map offset
  3706.  50h    DWORD    resource table offset
  3707.  54h    DWORD    resource table entries
  3708.  58h    DWORD    resident names table offset
  3709.  5Ch    DWORD    entry table offset
  3710.  60h    DWORD    module directives table offset
  3711.  64h    DWORD    Module Directives entries
  3712.  68h    DWORD    Fixup page table offset
  3713.  6Ch    DWORD    Fixup record table offset
  3714.  70h    DWORD    imported modules name table offset
  3715.  74h    DWORD    imported modules count
  3716.  78h    DWORD    imported procedures name table offset
  3717.  7Ch    DWORD    per-page checksum table offset
  3718.  80h    DWORD    data pages offset
  3719.  84h    DWORD    preload page count
  3720.  88h    DWORD    non-resident names table offset
  3721.  8Ch    DWORD    non-resident names table length
  3722.  90h    DWORD    non-resident names checksum
  3723.  94h    DWORD    automatic data object
  3724.  98h    DWORD    debug information offset
  3725.  9Ch    DWORD    debug information length
  3726.  A0h    DWORD    preload instance pages number
  3727.  A4h    DWORD    demand instance pages number
  3728.  A8h    DWORD    extra heap allocation
  3729.  ACh 20 BYTEs    reserved
  3730.  C0h    WORD    device ID (MS-Windows VxD only)
  3731.  C2h    WORD    DDK version (MS-Windows VxD only)
  3732. Note:    used by EMM386.EXE, QEMM, and Windows 3.0 Enhanced Mode drivers
  3733.  
  3734. Format of object table entry:
  3735. Offset    Size    Description
  3736.  00h    DWORD    virtual size in bytes
  3737.  04h    DWORD    relocation base address
  3738.  08h    DWORD    object flags (see below)
  3739.  0Ch    DWORD    page map index
  3740.  10h    DWORD    page map entries
  3741.  14h  4 BYTEs    reserved??? (apparently always zeros)
  3742.  
  3743. Bitfields for object flags:
  3744.  bit 0    readable
  3745.  bit 1    writable
  3746.  bit 2    executable
  3747.  bit 3    resource
  3748.  bit 4    discardable
  3749.  bit 5    shared
  3750.  bit 6    preloaded
  3751.  bit 7    invalid
  3752.  bit 8-9 type
  3753.     00 normal
  3754.     01 zero-filled
  3755.     10 resident
  3756.     11 resident and contiguous
  3757.  bit 10 resident and long-lockable
  3758.  bit 11 reserved
  3759.  bit 12 16:16 alias required
  3760.  bit 13 "BIG" (Huge: 32-bit)
  3761.  bit 14 conforming
  3762.  bit 15 "OBJECT_I/O_PRIVILEGE_LEVEL"
  3763.  bits 16-31 reserved
  3764.  
  3765. Format of object page map table entry:
  3766. Offset    Size    Description
  3767.  00h    BYTE    ??? (usually 00h)
  3768.  01h    WORD    (big-endian) index to fixup table
  3769.         0000h if no relocation info
  3770.  03h    BYTE    type (00h hard copy in file, 03h some relocation needed)
  3771.  
  3772. Format of resident names table entry:
  3773. Offset    Size    Description
  3774.  00h    BYTE    length of name
  3775.  01h  N BYTEs    name
  3776.  N+1  3 BYTEs    ???
  3777.  
  3778. Format of LE linear executable entry table:
  3779. Offset    Size    Description
  3780.  00h    BYTE    number of entries in table
  3781.  01h 10 BYTEs per entry
  3782.         Offset    Size    Description
  3783.          00h    BYTE    bit flags
  3784.                 bit 0: non-empty bundle
  3785.                 bit 1: 32-bit entry
  3786.          01h    WORD    object number
  3787.          03h    BYTE    entry type flags
  3788.                 bit 0: exported
  3789.                 bit 1: uses single data rather than instance
  3790.                 bit 2: reserved
  3791.                 bits 3-7: number of stack parameters
  3792.          04h    DWORD    offset of entry point
  3793.          08h  2 BYTEs    ???
  3794. Note:    empty bundles (bit flags at 00h = 00h) are used to skip unused indices,
  3795.       and do not contain the remaining nine bytes
  3796.  
  3797. Format of LX linear executable entry table [array]:
  3798. Offset    Size    Description
  3799.  00h    BYTE    number of bundles following (00h = end of entry table)
  3800.  01h    BYTE    bundle type
  3801.         00h empty
  3802.         01h 16-bit entry
  3803.         02h 286 callgate entry
  3804.         03h 32-bit entry
  3805.         04h forwarder entry
  3806.         bit 7 set if additional parameter typing information is present
  3807. ---bundle type 00h---
  3808.  no additional fields
  3809. ---bundle type 01h---
  3810.  02h    WORD    object number
  3811.  04h    BYTE    entry flags
  3812.         bit 0: exported
  3813.         bits 7-3: number of stack parameters
  3814.  05h    WORD    offset of entry point in object (shifted by page size shift)
  3815. ---bundle type 02h---
  3816.  02h    WORD    object number
  3817.  04h    BYTE    entry flags
  3818.         bit 0: exported
  3819.         bits 7-3: number of stack parameters
  3820.  05h    WORD    offset of entry point in object
  3821.  07h    WORD    reserved for callgate selector (used by loader)
  3822. ---bundle type 03h---
  3823.  02h    WORD    object number
  3824.  04h    BYTE    entry flags
  3825.         bit 0: exported
  3826.         bits 7-3: number of stack parameters
  3827.  05h    DWORD    offset of entry point in object
  3828. ---bundle type 04h---
  3829.  02h    WORD    reserved
  3830.  04h    BYTE    forwarder flags
  3831.         bit 0: import by ordinal
  3832.         bits 7-1 reserved
  3833.  05h    WORD    module ordinal
  3834.         (forwarder's index into Import Module Name table)
  3835.  07h    DWORD    procedure name offset or import ordinal number
  3836. Note:    all fields after the first two bytes are repeated N times
  3837.  
  3838. Bitfields for linear executable fixup type:
  3839.  bit 7    ordinal is BYTE rather than WORD
  3840.  bit 6    16-bit rather than 8-bit object number/module ordinal
  3841.  bit 5    addition with DWORD rather than WORD
  3842.  bit 4    relocation info has size with new two bytes at end
  3843.  bit 3    reserved (0)
  3844.  bit 2    set if add to destination, clear to replace destination
  3845.  bits 1-0    type
  3846.         00 internal fixup
  3847.         01 external fixup, imported by ordinal
  3848.         10 external fixup, imported by name
  3849.         11 internal fixup via entry table
  3850.  
  3851. Format of linear executable fixup record:
  3852. Offset    Size    Description
  3853.  00h    BYTE    type
  3854.         bits 7-4: modifier (0001 single, 0011 multiple)
  3855.         bits 3-0: type
  3856.             0000 byte offset
  3857.             0010 word segment
  3858.             0011 16-bit far pointer (DWORD)
  3859.             0101 16-bit offset
  3860.             0110 32-bit far pointer (PWORD)
  3861.             0111 32-bit offset
  3862.             1000 near call or jump, WORD/DWORD based on seg attrib
  3863.  01h    BYTE    linear executable fixup type (see above)
  3864. ---if single type---
  3865.  02h    WORD    offset within page
  3866.  04h    relocation information
  3867.     ---internal fixup---
  3868.     BYTE    object number
  3869.     ---external,ordinal---
  3870.     BYTE    one-based module number in Import Module table
  3871.     BYTE/WORD ordinal number
  3872.     WORD/DWORD value to add (only present if modifier bit 4 set)
  3873.     ---external,name---
  3874.     BYTE    one-based module number in Import Module table
  3875.     WORD    offset in Import Procedure names
  3876.     WORD/DWORD value to add (only present if modifier bit 4 set)
  3877. ---if multiple type---
  3878.  02h    BYTE    number of items
  3879.  03h    var    relocation info as for "single" type (see above)
  3880.       N WORDs    offsets of items to relocate
  3881.  
  3882. Format of old Phar Lap .EXP file header:
  3883. Offset    Size    Description
  3884.  00h  2 BYTEs    "MP" (4Dh 50h) signature
  3885.  02h    WORD    remainder of image size / page size (page size = 512h)
  3886.  04h    WORD    size of image in pages
  3887.  06h    WORD    number of relocation items
  3888.  08h    WORD    header size in paragraphs
  3889.  0Ah    WORD    minimum number of extra 4K pages to be allocated at the end
  3890.         of program, when it is loaded
  3891.  0Ch    WORD    maximum number of extra 4K pages to be allocated at the end
  3892.         of program, when it is loaded
  3893.  0Eh    DWORD    initial ESP
  3894.  12h    WORD    word checksum of file
  3895.  14h    DWORD    initial EIP
  3896.  18h    WORD    offset of first relocation item
  3897.  1Ah    WORD    overlay number
  3898.  1Ch    WORD    ??? (wants to be 1)
  3899.  
  3900. Format of new Phar Lap .EXP file header:
  3901. Offset    Size    Description
  3902.  00h  2 BYTEs    signature ("P2" for 286 .EXP executable, "P3" for 386 .EXP)
  3903.  02h    WORD    level (01h flat-model file, 02h multisegmented file)
  3904.  04h    WORD    header size
  3905.  06h    DWORD    file size in bytes
  3906.  0Ah    WORD    checksum
  3907.  0Ch    DWORD    offset of run-time parameters within file
  3908.  10h    DWORD    size of run-time parameters in bytes
  3909.  14h    DWORD    offset of relocation table within file
  3910.  18h    DWORD    size of relocation table in bytes
  3911.  1Ch    DWORD    offset of segment information table within file
  3912.  20h    DWORD    size of segment information table in bytes
  3913.  24h    WORD    size of segment information table entry in bytes
  3914.  26h    DWORD    offset of load image within file
  3915.  2Ah    DWORD    size of load image on disk
  3916.  2Eh    DWORD    offset of symbol table within file
  3917.  32h    DWORD    size of symbol table in bytes
  3918.  36h    DWORD    offset of GDT within load image
  3919.  3Ah    DWORD    size of GDT in bytes
  3920.  3Eh    DWORD    offset of LDT within load image
  3921.  42h    DWORD    size of LDT in bytes
  3922.  46h    DWORD    offset of IDT within load image
  3923.  4Ah    DWORD    size of IDT in bytes
  3924.  4Eh    DWORD    offset of TSS within load image
  3925.  52h    DWORD    size of TSS in bytes
  3926.  56h    DWORD    minimum number of extra bytes to be allocated at end of program
  3927.         (level 1 executables only)
  3928.  5Ah    DWORD    maximum number of extra bytes to be allocated at end of program
  3929.         (level 1 executables only)
  3930.  5Eh    DWORD    base load offset (level 1 executables only)
  3931.  62h    DWORD    initial ESP
  3932.  66h    WORD    initial SS
  3933.  68h    DWORD    initial EIP
  3934.  6Ch    WORD    initial CS
  3935.  6Eh    WORD    initial LDT
  3936.  70h    WORD    initial TSS
  3937.  72h    WORD    flags
  3938.         bit 0: load image is packed
  3939.         bit 1: 32-bit checksum is present
  3940.         bits 4-2: type of relocation table
  3941.  74h    DWORD    memory requirements for load image
  3942.  78h    DWORD    32-bit checksum (optional)
  3943.  7Ch    DWORD    size of stack segment in bytes
  3944.  80h 256 BYTEs    reserved (0)
  3945.  
  3946. Format of Phar Lap segment information table entry:
  3947. Offset    Size    Description
  3948.  00h    WORD    selector number
  3949.  02h    WORD    flags
  3950.  04h    DWORD    base offset of selector
  3951.  08h    DWORD    minimum number of extra bytes to be allocated to the segment
  3952.  
  3953. Format of 386|DOS-Extender run-time parameters:
  3954. Offset    Size    Description
  3955.  00h  2 BYTEs    signature "DX" (44h 58h)
  3956.  02h    WORD    minimum number of real-mode params to leave free at run time
  3957.  04h    WORD    maximum number of real-mode params to leave free at run time
  3958.  06h    WORD    minimum interrupt buffer size in KB
  3959.  08h    WORD    maximum interrupt buffer size in KB
  3960.  0Ah    WORD    number of interrupt stacks
  3961.  0Ch    WORD    size in KB of each interrupt stack
  3962.  0Eh    DWORD    offset of byte past end of real-mode code and data
  3963.  12h    WORD    size in KB of call buffers
  3964.  14h    WORD    flags
  3965.         bit 0: file is virtual memory manager
  3966.         bit 1: file is a debugger
  3967.  16h    WORD    unprivileged flag (if nonzero, executes at ring 1, 2, or 3)
  3968.  18h 104 BYTEs    reserved (0)
  3969.  
  3970. Format of Phar Lap repeat block header:
  3971. Offset    Size    Description
  3972.  00h    WORD    byte count
  3973.  02h    BYTE    repeat string length
  3974.  
  3975. Format of Borland debugging information header (following load image):
  3976. Offset    Size    Description
  3977.  00h    WORD    signature 52FBh
  3978.  02h    WORD    version ID
  3979.  04h    DWORD    size of name pool in bytes
  3980.  08h    WORD    number of names in namem pool
  3981.  0Ah    WORD    number of type entries
  3982.  0Ch    WORD    number of structure members
  3983.  0Eh    WORD    number of symbols
  3984.  10h    WORD    number of global symbols
  3985.  12h    WORD    number of modules
  3986.  14h    WORD    number of locals (optional)
  3987.  16h    WORD    number of scopes in table
  3988.  18h    WORD    number of line-number entries
  3989.  1Ah    WORD    number of include files
  3990.  1Ch    WORD    number of segment records
  3991.  1Eh    WORD    number of segment/file correlations
  3992.  20h    DWORD    size of load image after removing uninitialized data and debug
  3993.         info
  3994.  24h    DWORD    debugger hook; pointer into debugged program whose meaning
  3995.         depends on program flags
  3996.  28h    BYTE    program flags
  3997.         bit 0: case-sensitive link
  3998.         bit 1: pascal overlay program
  3999.  29h    WORD    no longer used
  4000.  2Bh    WORD    size of data pool in bytes
  4001.  2Dh    BYTE    padding
  4002.  2Eh    WORD    size of following header extension (currently 00h, 10h, or 20h)
  4003.  30h    WORD    number of classes
  4004.  32h    WORD    number of parents
  4005.  34h    WORD    number of global classes (currently unused)
  4006.  36h    WORD    number of overloads (currently unused)
  4007.  38h    WORD    number of scope classes
  4008.  3Ah    WORD    number of module classes
  4009.  3Ch    WORD    number of coverage offsets
  4010.  3Eh    DWORD    offset relative to symbol base of name pool
  4011.  42h    WORD    number of browser information records
  4012.  44h    WORD    number of optimized symbol records
  4013.  46h    WORD    debugging flags
  4014.  48h  8 BYTEs    padding
  4015. Note:    additional information on the Borland debugging info may be found in
  4016.       Borland's Open Architecture Handbook
  4017. --------U-214B-------------------------------
  4018. INT 21 - ELRES v1.0 only - INSTALLATION CHECK
  4019.     AH = 4Bh
  4020.     DS:DX = 0000h:0000h
  4021. Return: ES:BX -> ELRES history structure (see AH=2Bh/CX=454Ch)
  4022.     DX = DABEh (signature, DAve BEnnett)
  4023. Program: ELRES is an MS-DOS return code (errorlevel) recorder by David H.
  4024.       Bennett
  4025. SeeAlso: AH=2Bh/CX=454Ch
  4026. --------v-214B04-----------------------------
  4027. INT 21 - VIRUS - "MG", "699"/"Thirteen Minutes" - INSTALLATION CHECK
  4028.     AX = 4B04h
  4029. Return: CF clear if "MG" resident
  4030.     AX = 044Bh if "699"/"Thirteen Minutes" resident
  4031. SeeAlso: AX=4243h,AX=4B21h
  4032. --------D-214B05-----------------------------
  4033. INT 21 - DOS 5+ - SET EXECUTION STATE
  4034.     AX = 4B05h
  4035.     DS:DX -> execution state structure (see below)
  4036. Return: CF clear if successful
  4037.         AX = 0000h
  4038.     CF set on error
  4039.         AX = error code (see AH=59h)
  4040. Note:    used by programs which intercept AX=4B00h to prepare new programs for
  4041.       execution (including setting the DOS version number).     No DOS, BIOS
  4042.       or other software interrupt may be called after return from this call
  4043.       before commencement of the child process.  If DOS is running in the
  4044.       HMA, A20 is turned off on return from this call.
  4045. SeeAlso: AH=4Bh
  4046.  
  4047. Format of execution state structure:
  4048. Offset    Size    Description
  4049.  00h    WORD    reserved (00h)
  4050.  02h    WORD    type flags
  4051.         bit 0: program is an .EXE
  4052.         bit 1: program is an overlay
  4053.  04h    DWORD    pointer to ASCIZ name of program file
  4054.  08h    WORD    PSP segment of new program
  4055.  0Ah    DWORD    starting CS:IP of new program
  4056.  0Eh    DWORD    program size including PSP
  4057. --------v-214B20-----------------------------
  4058. INT 21 - VIRUS - "Holocaust"/"Telefonica" - ???
  4059.     AX = 4B20h
  4060. SeeAlso: AX=4B04h,AX=4B21h
  4061. --------v-214B21-----------------------------
  4062. INT 21 C - VIRUS - "Holocaust"/"Telefonica" - ???
  4063.     AX = 4B21h
  4064. Note:    called at completion of virus installation
  4065. SeeAlso: AX=4B04h,AX=4B20h,AX=4B25h
  4066. --------v-214B25-----------------------------
  4067. INT 21 - VIRUS - "1063"/"Mono" - INSTALLATION CHECK
  4068.     AX = 4B25h
  4069. Return: DI = 1234h if resident
  4070. SeeAlso: AX=4B21h,AX=4B40h
  4071. --------v-214B40-----------------------------
  4072. INT 21 - VIRUS - "Plastique"/"AntiCad" - INSTALLATION CHECK
  4073.     AX = 4B40h
  4074. Return: AX = 5678h if resident
  4075. SeeAlso: AX=4B25h,AX=4B41h,AX=4B4Ah
  4076. --------v-214B41-----------------------------
  4077. INT 21 - VIRUS - "Plastique"/"AntiCad" - ???
  4078.     AX = 4B41h
  4079.     ???
  4080. Return: ???
  4081. SeeAlso: AX=4B40h
  4082. --------v-214B4A-----------------------------
  4083. INT 21 - VIRUS - "Jabberwocky" - INSTALLATION CHECK
  4084.     AX = 4B4Ah
  4085. Return: AL = 57h if resident
  4086. SeeAlso: AX=4B40h,AX=4B4Bh
  4087. --------v-214B4B-----------------------------
  4088. INT 21 - VIRUS - "Horse-2" - INSTALLATION CHECK
  4089.     AX = 4B4Bh
  4090. Return: CF clear if resident
  4091. SeeAlso: AX=4B4Ah,AX=4B4Dh
  4092. --------v-214B4D-----------------------------
  4093. INT 21 - VIRUS - "Murphy-2", "Patricia"/"Smack" - INSTALLATION CHECK
  4094.     AX = 4B4Dh
  4095. Return: CF clear if resident
  4096. SeeAlso: AX=4B4Ah,AX=4B50h
  4097. --------v-214B50-----------------------------
  4098. INT 21 - VIRUS - "Plastique-2576"/"AntiCad-2576" - INSTALLATION CHECK
  4099.     AX = 4B50h
  4100. Return: AX = 1234h if resident
  4101. SeeAlso: AX=4B4Dh,AX=4B53h,AX=4B60h
  4102. --------v-214B53-----------------------------
  4103. INT 21 - VIRUS - "Horse" - INSTALLATION CHECK
  4104.     AX = 4B53h
  4105. Return: CF clear if resident
  4106. SeeAlso: AX=4B50h,AX=4B55h
  4107. --------v-214B55-----------------------------
  4108. INT 21 - VIRUS - "Sparse" - INSTALLATION CHECK
  4109.     AX = 4B55h
  4110. Return: AX = 1231h if resident
  4111. SeeAlso: AX=4B53h,AX=4B59h
  4112. --------v-214B59-----------------------------
  4113. INT 21 - VIRUS - "Murphy-1", "Murphy-4" - INSTALLATION CHECK
  4114.     AX = 4B59h
  4115. Return: CF clear if resident
  4116. SeeAlso: AX=4B50h,AX=4B5Eh
  4117. --------v-214B5E-----------------------------
  4118. INT 21 - VIRUS - "Brothers" - INSTALLATION CHECK
  4119.     AX = 4B5Eh
  4120. Return: CF clear if resident
  4121. SeeAlso: AX=4B59h,AX=4B87h
  4122. --------v-214B60-----------------------------
  4123. INT 21 - VIRUS - "Plastique-2576"/"AntiCad-2576" - ???
  4124.     AX = 4B60h
  4125.     ???
  4126. Return: ???
  4127. SeeAlso: AX=4B50h
  4128. --------v-214B87-----------------------------
  4129. INT 21 - VIRUS - "Shirley" - INSTALLATION CHECK
  4130.     AX = 4B87h
  4131. Return: AX = 6663h if resident
  4132. SeeAlso: AX=4B5Eh,AX=4B95h
  4133. --------v-214B95-----------------------------
  4134. INT 21 - VIRUS - "Zherkov-1882" - INSTALLATION CHECK
  4135.     AX = 4B95h
  4136. Return: AX = 1973h if resident
  4137. SeeAlso: AX=4B87h,AX=4BA7h
  4138. --------v-214BA7-----------------------------
  4139. INT 21 - VIRUS - "1876"/"Dash-em" - INSTALLATION CHECK
  4140.     AX = 4BA7h
  4141. Return: AX = B459h if resident
  4142. SeeAlso: AX=4B95h,AX=4BAAh
  4143. --------v-214BAA-----------------------------
  4144. INT 21 - VIRUS - "Nomenklatura" - INSTALLATION CHECK
  4145.     AX = 4BAAh
  4146. Return: CF clear if resident
  4147. SeeAlso: AX=4BA7h,AX=4BAFh
  4148. --------v-214BAF-----------------------------
  4149. INT 21 - VIRUS - "948"/"Screenplus1", "Magnitogorsk" - INSTALLATION CHECK
  4150.     AX = 4BAFh
  4151. Return: AL = AFh if "Magnitogorsk" resident
  4152.     AL = FAh if "948"/"Screenplus1" resident
  4153. SeeAlso: AX=4BAAh,AX=4BDDh
  4154. --------v-214BDD-----------------------------
  4155. INT 21 - VIRUS - "Lozinsky"/"Zherkov" - INSTALLATION CHECK
  4156.     AX = 4BDDh
  4157. Return: AX = 1234h
  4158. SeeAlso: AX=4BAFh,AX=4BFEh
  4159. --------v-214BEE-----------------------------
  4160. INT 21 - F-DRIVER.SYS v1.14+ - GRAB INT 21
  4161.     AX = 4BEEh
  4162. Return: AX = 1234h if grab successful
  4163.        = 2345h if failed (INT 21 grabbed previously)
  4164. Notes:    F-DRIVER.SYS is part of the F-PROT virus/trojan protection package by
  4165.       Fridrik Skulason
  4166.     when called the first time, this function moves the INT 21 monitoring
  4167.       code from its original location in the INT 21 chain to be the first
  4168.       thing called by INT 21.  This is the mechanism used by F-NET.
  4169. SeeAlso: INT 2F/AX=4653h
  4170. --------k-214BF0-----------------------------
  4171. INT 21 - DIET v1.10+ (Overlay Mode) - INSTALLATION CHECK
  4172.     AX = 4BF0h
  4173. Return: CF clear if installed
  4174.         AX = 899Dh
  4175. Program: DIET is an executable-compression program by Teddy Matsumoto
  4176. SeeAlso: AX=37D0h,AX=4BF1h
  4177. --------k-214BF1-----------------------------
  4178. INT 21 - DIET v1.10+ (Overlay Mode) - EXPAND PROGRAM???
  4179.     AX = 4BF1h
  4180. Return: ???
  4181. SeeAlso: AX=37D0h,AX=4BF0h
  4182. --------v-214BFE-----------------------------
  4183. INT 21 - VIRUS - "Hitchcock", "Dark Avenger-1028", "1193" - INSTALLATION CHECK
  4184.     AX = 4BFEh
  4185. Return: AX = 1234h if "Hitchcock" resident
  4186.     AX = ABCDh if "1193"/"Copyright" resident
  4187.     DI = 55BBh if "Dark Avenger-1028" resident
  4188. SeeAlso: AX=4BDDh,AX=4BFFh"Justice"
  4189. --------v-214BFF-----------------------------
  4190. INT 21 - VIRUS - "USSR-707", "Justice", "Europe 92" - INSTALLATION CHECK
  4191.     AX = 4BFFh
  4192. Return: BL = FFh if "USSR-707" resident
  4193.     DI = 55AAh if "Justice" resident
  4194.     CF clear if "Europe 92" resident
  4195. SeeAlso: AX=4BFEh,AX=4BFFh"Cascade",AX=5252h
  4196. --------v-214BFFSI0000-----------------------
  4197. INT 21 - VIRUS - "Cascade" - INSTALLATION CHECK
  4198.     AX = 4BFFh
  4199.     SI = 0000h
  4200.     DI = 0000h
  4201. Return: DI = 55AAh if installed
  4202. SeeAlso: AX=4BFFh"Justice",AX=5252h
  4203. --------D-214C-------------------------------
  4204. INT 21 - DOS 2+ - "EXIT" - TERMINATE WITH RETURN CODE
  4205.     AH = 4Ch
  4206.     AL = return code
  4207. Return: never returns
  4208. Notes:    unless the process is its own parent (see AH=26h, offset 16h in PSP),
  4209.       all open files are closed and all memory belonging to the process
  4210.       is freed
  4211.     all network file locks should be removed before calling this function
  4212. SeeAlso: AH=00h,AH=26h,AH=4Bh,AH=4Dh,INT 15/AH=12h/BH=02h,INT 20,INT 22
  4213. SeeAlso: INT 60/DI=0601h
  4214. ----------214C57-----------------------------
  4215. INT 21 - Headroom - ???
  4216.     AX = 4C57h
  4217.     DS:DX -> target address
  4218. Note:    jumps to target address instead of terminating program
  4219. SeeAlso: AX=5758h
  4220. --------D-214D-------------------------------
  4221. INT 21 - DOS 2+ - GET RETURN CODE (ERRORLEVEL)
  4222.     AH = 4Dh
  4223. Return: AH = termination type
  4224.         00h normal (INT 20,INT 21/AH=00h, or INT 21/AH=4Ch)
  4225.         01h control-C abort
  4226.         02h critical error abort
  4227.         03h terminate and stay resident (INT 21/AH=31h or INT 27)
  4228.     AL = return code
  4229. Notes:    the word in which DOS stores the return code is cleared after being
  4230.       read by this function, so the return code can only be retrieved once
  4231.     COMMAND.COM stores the return code of the last external command it
  4232.       executed as ERRORLEVEL
  4233.     this call should not be used if the child was started with AX=4B04h;
  4234.       use AH=8Ah instead
  4235.     the following sequence will close a Virtual DOS Machine under OS/2 2.0:
  4236.       MOV    AH,4Dh
  4237.       INT    21h
  4238.       HLT
  4239.       DB    02h,0FDh
  4240.       This sequence is the only way to close a specific VDM which was
  4241.       booted from floppy or a disk image.
  4242. SeeAlso: AH=4Bh,AH=4Ch,AH=8Ah
  4243. --------D-214E-------------------------------
  4244. INT 21 - DOS 2+ - "FINDFIRST" - FIND FIRST MATCHING FILE
  4245.     AH = 4Eh
  4246.     AL = special flag for use by APPEND (see note below)
  4247.     CX = file attribute mask (see AX=4301h) (bits 0 and 5 ignored)
  4248.         0088h (Novell DOS 7) find first deleted file
  4249.     DS:DX -> ASCIZ file specification (may include path and wildcards)
  4250. Return: CF clear if successful
  4251.         [DTA] = FindFirst data block (see below)
  4252.     CF set on error
  4253.         AX = error code (02h,03h,12h) (see AH=59h)
  4254. Notes:    for search attributes other than 08h, all files with at MOST the
  4255.       specified combination of hidden, system, and directory attributes
  4256.       will be returned.  Under DOS 2.x, searching for attribute 08h
  4257.       (volume label) will also return normal files, while under DOS 3+
  4258.       only the volume label (if any) will be returned.
  4259.     this call also returns successfully if given the name of a character
  4260.       device without wildcards.  DOS 2.x returns attribute 00h, size 0,
  4261.       and the current date and time.  DOS 3+ returns attribute 40h and the
  4262.       current date and time.
  4263.     immediately after an INT 2F/AX=B711h (APPEND return found name), the
  4264.       name at DS:DX will be overwritten; if AL=00h on entry, the actual
  4265.       found pathname will be stored, otherwise, the actual found path
  4266.       will be prepended to the original filespec without a path.
  4267.     under LANtastic, this call may be used to obtain a list of a server's
  4268.       shared resources by searching for "\\SERVER\*.*"; a list of printer
  4269.       resources may be obtained by searching for "\\SERVER\@*.*"
  4270.     under the FlashTek X-32 DOS extender, the filespec pointer is in DS:EDX
  4271. BUGS:    under DOS 3.x and 4.x, the second and subsequent calls to this function
  4272.       with a character device name (no wildcards) and search attributes
  4273.       which include the volume-label bit (08h) will fail unless there is
  4274.       an intervening DOS call which implicitly or explicity performs a
  4275.       directory search without the volume-label bit.  Such implicit
  4276.       searches are performed by CREATE (AH=3Ch), OPEN (AH=3Dh), UNLINK
  4277.       (AH=41h), and RENAME (AH=56h)
  4278.     DR-DOS 3.41 and 5.0 return the Directory attribute for the volume label
  4279. SeeAlso: AH=11h,AH=4Fh,AX=4301h,INT 2F/AX=111Bh,INT 2F/AX=B711h
  4280.  
  4281. Format of FindFirst data block:
  4282. Offset    Size    Description
  4283. ---PC-DOS 3.10, PC-DOS 4.01, MS-DOS 3.2/3.3/5.0---
  4284.  00h    BYTE    drive letter (bits 0-6), remote if bit 7 set
  4285.  01h 11 BYTEs    search template
  4286.  0Ch    BYTE    search attributes
  4287. ---DOS 2.x (and some DOS 3.x???)---
  4288.  00h    BYTE    search attributes
  4289.  01h    BYTE    drive letter
  4290.  02h 11 BYTEs    search template
  4291. ---WILDUNIX.COM---
  4292.  00h 12 BYTEs    15-character wildcard search pattern and drive letter (packed)
  4293.  0Ch    BYTE    search attributes
  4294. ---DOS 2.x and most 3.x---
  4295.  0Dh    WORD    entry count within directory
  4296.  0Fh    DWORD    pointer to DTA???
  4297.  13h    WORD    cluster number of start of parent directory
  4298. ---PC-DOS 4.01, MS-DOS 3.2/3.3/5.0---
  4299.  0Dh    WORD    entry count within directory
  4300.  0Fh    WORD    cluster number of start of parent directory
  4301.  11h  4 BYTEs    reserved
  4302. ---all versions, documented fields---
  4303.  15h    BYTE    attribute of file found
  4304.  16h    WORD    file time
  4305.             bits 11-15: hour
  4306.             bits 5-10:    minute
  4307.             bits 0-4:    seconds/2
  4308.  18h    WORD    file date
  4309.             bits 9-15:    year-1980
  4310.             bits 5-8:    month
  4311.             bits 0-4:    day
  4312.  1Ah    DWORD    file size
  4313.  1Eh 13 BYTEs    ASCIZ filename+extension
  4314. --------f-214E-------------------------------
  4315. INT 21 - WILDUNIX.COM internal - INSTALLATION CHECK
  4316.     AH = 4Eh
  4317.     DS:DX = 0000h:0000h
  4318. Return: AH = 99h if installed
  4319. Program: WILDUNIX.COM is a resident Unix-style wildcard expander by Steve
  4320.       Hosgood and Terry Barnaby
  4321. --------D-214F-------------------------------
  4322. INT 21 - DOS 2+ - "FINDNEXT" - FIND NEXT MATCHING FILE
  4323.     AH = 4Fh
  4324.     [DTA] = data block from previous FindFirst or FindNext call
  4325. Return: CF clear if successful
  4326.     CF set on error
  4327.         AX = error code (12h) (see AH=59h)
  4328. Note:    under Novell DOS 7, if the FindFirst call (AH=4Eh) had CX=0088h, then
  4329.       the next matching deleted file will be returned
  4330. BUG:    DR-DOS 3.41 and 5.0 return the Directory attribute for the volume label
  4331. SeeAlso: AH=12h,AH=4Eh
  4332. --------D-2150-------------------------------
  4333. INT 21 - DOS 2+ internal - SET CURRENT PROCESS ID (SET PSP ADDRESS)
  4334.     AH = 50h
  4335.     BX = segment of PSP for new process
  4336. Notes:    DOS uses the current PSP address to determine which processes own files
  4337.       and memory; it corresponds to process identifiers used by other OSs
  4338.     under DOS 2.x, this function cannot be invoked inside an INT 28h
  4339.       handler without setting the Critical Error flag
  4340.     under MS-DOS 3+ and DR-DOS 3.41+, this function does not use any of
  4341.       the DOS-internal stacks and may thus be called at any time, even
  4342.       during another INT 21h call
  4343.     some Microsoft applications such as Quick C 2.51 use segments of 0000h
  4344.       and FFFFh and direct access to the SDA (see AX=5D06h) to test whether
  4345.       they are running under MS-DOS rather than a compatible OS; although
  4346.       one should only call this function with valid PSP addresses, any
  4347.       program hooking it should be prepared to handle invalid addresses
  4348.     supported by OS/2 compatibility box
  4349.     this call was undocumented prior to the release of DOS 5.0
  4350. SeeAlso: AH=26h,AH=51h,AH=62h
  4351. --------D-2151-------------------------------
  4352. INT 21 - DOS 2+ internal - GET CURRENT PROCESS ID (GET PSP ADDRESS)
  4353.     AH = 51h
  4354. Return: BX = segment of PSP for current process
  4355. Notes:    DOS uses the current PSP address to determine which processes own files
  4356.       and memory; it corresponds to process identifiers used by other OSs
  4357.     under DOS 2.x, this function cannot be invoked inside an INT 28h
  4358.       handler without setting the Critical Error flag
  4359.     under DOS 3+, this function does not use any of the DOS-internal stacks
  4360.       and may thus be called at any time, even during another INT 21h call
  4361.     supported by OS/2 compatibility box
  4362.     identical to the documented AH=62h
  4363.     this call was undocumented prior to the release of DOS 5.0
  4364. SeeAlso: AH=26h,AH=50h,AH=62h
  4365. --------D-2152-------------------------------
  4366. INT 21 U - DOS 2+ internal - "SYSVARS" - GET LIST OF LISTS
  4367.     AH = 52h
  4368. Return: ES:BX -> DOS list of lists
  4369. Notes:    partially supported by OS/2 v1.1 compatibility box (however, most
  4370.       pointers are FFFFh:FFFFh, LASTDRIVE is FFh, and the NUL header "next"
  4371.       pointer is FFFFh:FFFFh).
  4372.     on return, ES points at the DOS data segment (see also INT 2F/AX=1203h)
  4373. SeeAlso: INT 2F/AX=1203h
  4374.  
  4375. Format of List of Lists:
  4376. Offset    Size    Description
  4377.  -24    WORD    (DOS 3.1+) contents of CX from INT 21/AX=5E01h
  4378.  -22    WORD    (DOS ???+) LRU counter for FCB caching
  4379.  -20    WORD    (DOS ???+) LRU counter for FCB opens
  4380.  -18    DWORD    (DOS ???+) address of OEM function handler (see INT 21/AH=F8h)
  4381.             FFFFh:FFFFh if not installed or not available
  4382.  -14    WORD    (DOS ???+) offset in DOS CS of code to return from INT 21 call
  4383.  -12    WORD    (DOS 3.1+) sharing retry count (see AX=440Bh)
  4384.  -10    WORD    (DOS 3.1+) sharing retry delay (see AX=440Bh)
  4385.  -8    DWORD    (DOS 3+) pointer to current disk buffer
  4386.  -4    WORD    (DOS 3+) pointer in DOS code segment of unread CON input
  4387.         when CON is read via a handle, DOS reads an entire line,
  4388.           and returns the requested portion, buffering the rest
  4389.           for the next read.  0000h indicates no unread input
  4390.  -2    WORD    segment of first memory control block
  4391.  00h    DWORD    pointer to first Drive Parameter Block (see AH=32h)
  4392.  04h    DWORD    pointer to first System File Table (see below)
  4393.  08h    DWORD    pointer to active CLOCK$ device's header (most recently loaded
  4394.         driver with CLOCK bit set)
  4395.  0Ch    DWORD    pointer to active CON device's header (most recently loaded
  4396.         driver with STDIN bit set)
  4397. ---DOS 2.x---
  4398.  10h    BYTE    number of logical drives in system
  4399.  11h    WORD    maximum bytes/block of any block device
  4400.  13h    DWORD    pointer to first disk buffer (see below)
  4401.  17h 18 BYTEs    actual NUL device driver header (not a pointer!)
  4402.         NUL is always the first device on DOS's linked list of device
  4403.         drivers. (see below)
  4404. ---DOS 3.0---
  4405.  10h    BYTE    number of block devices
  4406.  11h    WORD    maximum bytes/block of any block device
  4407.  13h    DWORD    pointer to first disk buffer (see below)
  4408.  17h    DWORD    pointer to array of current directory structures (see below)
  4409.  1Bh    BYTE    value of LASTDRIVE command in CONFIG.SYS (default 5)
  4410.  1Ch    DWORD    pointer to STRING= workspace area
  4411.  20h    WORD    size of STRING area (the x in STRING=x from CONFIG.SYS)
  4412.  22h    DWORD    pointer to FCB table
  4413.  26h    WORD    the y in FCBS=x,y from CONFIG.SYS
  4414.  28h 18 BYTEs    actual NUL device driver header (not a pointer!)
  4415.         NUL is always the first device on DOS's linked list of device
  4416.         drivers. (see below)
  4417. ---DOS 3.1-3.3---
  4418.  10h    WORD    maximum bytes per sector of any block device
  4419.  12h    DWORD    pointer to first disk buffer in buffer chain (see below)
  4420.  16h    DWORD    pointer to array of current directory structures (see below)
  4421.  1Ah    DWORD    pointer to system FCB tables (see below)
  4422.  1Eh    WORD    number of protected FCBs (the y in the CONFIG.SYS FCBS=x,y)
  4423.  20h    BYTE    number of block devices installed
  4424.  21h    BYTE    number of available drive letters (largest of 5, installed
  4425.         block devices, and CONFIG.SYS LASTDRIVE=).  Also size of
  4426.         current directory structure array.
  4427.  22h 18 BYTEs    actual NUL device driver header (not a pointer!)
  4428.         NUL is always the first device on DOS's linked list of device
  4429.         drivers. (see below)
  4430.  34h    BYTE    number of JOIN'ed drives
  4431. ---DOS 4.x---
  4432.  10h    WORD    maximum bytes per sector of any block device
  4433.  12h    DWORD    pointer to disk buffer info record (see below)
  4434.  16h    DWORD    pointer to array of current directory structures (see below)
  4435.  1Ah    DWORD    pointer to system FCB tables (see below)
  4436.  1Eh    WORD    number of protected FCBs (the y in the CONFIG.SYS FCBS=x,y)
  4437.         (always 00h for DOS 5.0)
  4438.  20h    BYTE    number of block devices installed
  4439.  21h    BYTE    number of available drive letters (largest of 5, installed
  4440.         block devices, and CONFIG.SYS LASTDRIVE=).  Also size of
  4441.         current directory structure array.
  4442.  22h 18 BYTEs    actual NUL device driver header (not a pointer!)
  4443.         NUL is always the first device on DOS's linked list of device
  4444.         drivers. (see below)
  4445.  34h    BYTE    number of JOIN'ed drives
  4446.  35h    WORD    pointer within IBMDOS code segment to list of special program
  4447.         names (see below)
  4448.         (always 0000h for DOS 5.0)
  4449.  37h    DWORD    pointer to FAR routine for resident IFS utility functions
  4450.         (see below)
  4451.         may be called by any IFS driver which does not wish to
  4452.         service functions 20h or 24h-28h itself
  4453.  3Bh    DWORD    pointer to chain of IFS (installable file system) drivers
  4454.  3Fh    WORD    the x in BUFFERS x,y (rounded up to multiple of 30 if in EMS)
  4455.  41h    WORD    number of lookahead buffers (the y in BUFFERS x,y)
  4456.  43h    BYTE    boot drive (1=A:)
  4457.  44h    BYTE    flag: 01h to use DWORD moves (80386+), 00h otherwise
  4458.  45h    WORD    extended memory size in KB
  4459. ---DOS 5.0-6.0---
  4460.  10h 39 BYTEs    as for DOS 4.x (see above)
  4461.  37h    DWORD    pointer to SETVER program list or 0000h:0000h
  4462.  3Bh    WORD    (DOS=HIGH) offset in DOS CS of function to fix A20 control
  4463.         when executing special .COM format
  4464.  3Dh    WORD    PSP of most-recently EXECed program if DOS in HMA, 0000h if low
  4465.  3Fh  8 BYTEs    as for DOS 4.x (see above)
  4466.  
  4467. Format of memory control block (see also below):
  4468. Offset    Size    Description
  4469.  00h    BYTE    block type: 5Ah if last block in chain, otherwise 4Dh
  4470.  01h    WORD    PSP segment of owner or
  4471.         0000h if free
  4472.         0006h if DR-DOS XMS UMB
  4473.         0007h if DR-DOS excluded upper memory ("hole")
  4474.         0008h if belongs to DOS
  4475.         FFFAh if 386MAX UMB control block (see AX=4402h"386MAX")
  4476.         FFFDh if 386MAX locked-out memory
  4477.         FFFEh if 386MAX UMB (immediately follows its control block)
  4478.         FFFFh if 386MAX 6.01 device driver
  4479.  03h    WORD    size of memory block in paragraphs
  4480.  05h  3 BYTEs    unused by MS-DOS
  4481.         (386MAX) if locked-out block, region start/prev region end
  4482. ---DOS 2.x,3.x---
  4483.  08h  8 BYTEs    unused
  4484. ---DOS 4+ ---
  4485.  08h  8 BYTEs    ASCII program name if PSP memory block or DR-DOS UMB,
  4486.           else garbage
  4487.         null-terminated if less than 8 characters
  4488. Notes:    the next MCB is at segment (current + size + 1)
  4489.     under DOS 3.1+, the first memory block is the DOS data segment,
  4490.       containing installable drivers, buffers, etc.     Under DOS 4+ it is
  4491.       divided into subsegments, each with its own memory control block
  4492.       (see below), the first of which is at offset 0000h.
  4493.     for DOS 5+, blocks owned by DOS may have either "SC" or "SD" in bytes
  4494.       08h and 09h.    "SC" is system code or locked-out inter-UMB memory,
  4495.       "SD" is system data, device drivers, etc.
  4496.     Some versions of DR-DOS use only seven characters of the program name,
  4497.       placing a NUL in the eighth byte.
  4498.  
  4499. Format of MS-DOS 5+ UMB control block:
  4500. Offset    Size    Description
  4501.  00h    BYTE    type: 5Ah if last block in chain, 4Dh otherwise
  4502.  01h    WORD    first available paragraph in UMB if control block at start
  4503.         of UMB, 000Ah if control block at end of UMB
  4504.  03h    WORD    length in paragraphs of following UMB or locked-out region
  4505.  05h  3 BYTEs    unused
  4506.  08h  8 BYTEs    block type name: "UMB" if start block, "SM" if end block in UMB
  4507.  
  4508. Format of STARLITE (General Software's Embedded DOS) memory control block:
  4509. Offset    Size    Description
  4510.  00h    BYTE    block type: 5Ah if last block in chain, otherwise 4Dh
  4511.  01h    WORD    PSP segment of owner, 0000h if free, 0008h if belongs to DOS
  4512.  03h    WORD    size of memory block in paragraphs
  4513.  05h    BYTE    unused
  4514.  06h    WORD    segment address of next memory control block (0000h if last)
  4515.  08h    WORD    segment address of previous memory control block or 0000h
  4516.  0Ah  6 BYTEs    reserved
  4517.  
  4518. Format of DOS 4+ data segment subsegment control blocks:
  4519. Offset    Size    Description
  4520.  00h    BYTE    subsegment type (blocks typically appear in this order)
  4521.         "D"  device driver
  4522.         "E"  device driver appendage
  4523.         "I"  IFS (Installable File System) driver
  4524.         "F"  FILES=  control block storage area (for FILES>5)
  4525.         "X"  FCBS=   control block storage area, if present
  4526.         "C"  BUFFERS EMS workspace area (if BUFFERS /X option used)
  4527.         "B"  BUFFERS=  storage area
  4528.         "L"  LASTDRIVE=     current directory structure array storage area
  4529.         "S"  STACKS=  code and data area, if present (see below)
  4530.         "T"  INSTALL= transient code
  4531.  01h    WORD    paragraph of subsegment start (usually the next paragraph)
  4532.  03h    WORD    size of subsegment in paragraphs
  4533.  05h  3 BYTEs    unused
  4534.  08h  8 BYTEs    for types "D" and "I", base name of file from which the driver
  4535.           was loaded (unused for other types)
  4536.  
  4537. Format of data at start of STACKS code segment (if present):
  4538. Offset    Size    Description
  4539.  00h    WORD    ???
  4540.  02h    WORD    number of stacks (the x in STACKS=x,y)
  4541.  04h    WORD    size of stack control block array (should be 8*x)
  4542.  06h    WORD    size of each stack (the y in STACKS=x,y)
  4543.  08h    DWORD    pointer to STACKS data segment
  4544.  0Ch    WORD    offset in STACKS data segment of stack control block array
  4545.  0Eh    WORD    offset in STACKS data segment of last element of that array
  4546.  10h    WORD    offset in STACKS data segment of the entry in that array for
  4547.         the next stack to be allocated (initially same as value in 0Eh
  4548.         and works its way down in steps of 8 to the value in 0Ch as
  4549.         hardware interrupts pre-empt each other)
  4550. Note:    the STACKS code segment data may, if present, be located as follows:
  4551.     DOS 3.2:    The code segment data is at a paragraph boundary fairly early
  4552.         in the IBMBIO segment (seen at 0070:0190h)
  4553.     DOS 3.3:    The code segment is at a paragraph boundary in the DOS data
  4554.         segment, which may be determined by inspecting the segment
  4555.         pointers of the vectors for those of interrupts 02h, 08h-0Eh,
  4556.         70h, 72-77h which have not been redirected by device drivers or
  4557.         TSRs.
  4558.     DOS 4+    Identified by sub-segment control block type "S" within the DOS
  4559.         data segment.
  4560. SeeAlso: INT B4"STACKMAN"
  4561.  
  4562. Format of array elements in STACKS data segment:
  4563. Offset    Size    Description
  4564.  00h    BYTE    status: 00h=free, 01h=in use, 03h=corrupted by overflow of
  4565.         higher stack.
  4566.  01h    BYTE    not used
  4567.  02h    WORD    previous SP
  4568.  04h    WORD    previous SS
  4569.  06h    WORD    ptr to word at top of stack (new value for SP). The word at the
  4570.         top of the stack is preset to point back to this control block.
  4571.  
  4572. SHARE.EXE hooks (DOS 3.1-6.00):
  4573. (offsets from first system file table--pointed at by ListOfLists+04h)
  4574. Offset    Size    Description
  4575. -3Ch    DWORD    pointer to FAR routine for ???
  4576.         Note: not called by MS-DOS 3.3, set to 0000h:0000h by
  4577.             SHARE 3.3+
  4578. -38h    DWORD    pointer to FAR routine called on opening file
  4579.         on call, internal DOS location points at filename(see AX=5D06h)
  4580.         Return: CF clear if successful
  4581.             CF set on error
  4582.                 AX = DOS error code (24h) (see AH=59h)
  4583.         Note: SHARE directly accesses DOS-internal data to get name of
  4584.             file just opened
  4585. -34h    DWORD    pointer to FAR routine called on closing file
  4586.         ES:DI -> system file table
  4587.         Note: does something to every Record Lock Record for file
  4588. -30h    DWORD    pointer to FAR routine to close all files for given computer
  4589.         (called by AX=5D03h)
  4590. -2Ch    DWORD    pointer to FAR routine to close all files for given process
  4591.         (called by AX=5D04h)
  4592. -28h    DWORD    pointer to FAR routine to close file by name
  4593.         (called by AX=5D02h)
  4594.         DS:SI -> DOS parameter list (see AX=5D00h)
  4595.            DPL's DS:DX -> name of file to close
  4596.         Return: CF clear if successful
  4597.             CF set on error
  4598.                 AX = DOS error code (03h) (see AH=59h)
  4599. -24h    DWORD    pointer to FAR routine to lock region of file
  4600.         call with BX = file handle
  4601.               ---DOS 3.x---
  4602.               CX:DX = starting offset
  4603.               SI:AX = size
  4604.               ---DOS 4+---
  4605.               DS:DX -> lock range
  4606.                     DWORD start offset
  4607.                     DWORD size in bytes
  4608.         Return: CF set on error
  4609.                 AL = DOS error code (21h) (see AH=59h)
  4610.         Note: not called if file is marked as remote
  4611. -20h    DWORD    pointer to FAR routine to unlock region of file
  4612.         call with BX = file handle
  4613.               ---DOS 3.x---
  4614.               CX:DX = starting offset
  4615.               SI:AX = size
  4616.               ---DOS 4+---
  4617.               DS:DX -> lock range
  4618.                     DWORD start offset
  4619.                     DWORD size in bytes
  4620.         Return: CF set on error
  4621.                 AL = DOS error code (21h) (see AH=59h)
  4622.         Note: not called if file is marked as remote
  4623. -1Ch    DWORD    pointer to FAR routine to check if file region is locked
  4624.         call with ES:DI -> system file table entry for file
  4625.             CX = length of region from current position in file
  4626.         Return: CF set if any portion of region locked
  4627.                 AX = 0021h
  4628. -18h    DWORD    pointer to FAR routine to get open file list entry
  4629.         (called by AX=5D05h)
  4630.         call with DS:SI -> DOS parameter list (see AX=5D00h)
  4631.             DPL's BX = index of sharing record
  4632.             DPL's CX = index of SFT in SFT chain of sharing rec
  4633.         Return: CF set on error or not loaded
  4634.                 AX = DOS error code (12h) (see AH=59h)
  4635.             CF clear if successful
  4636.                 ES:DI -> filename
  4637.                 CX = number of locks owned by specified SFT
  4638.                 BX = network machine number
  4639.                 DX destroyed
  4640. -14h    DWORD    pointer to FAR routine for updating FCB from SFT???
  4641.         call with DS:SI -> unopened FCB
  4642.               ES:DI -> system file table entry
  4643.         Return: BL = C0h???
  4644.         Note: copies following fields from SFT to FCB:
  4645.            starting cluster of file      0Bh     1Ah
  4646.            sharing record offset      33h     1Ch
  4647.            file attribute          04h     1Eh
  4648. -10h    DWORD    pointer to FAR routine to get first cluster of FCB file ???
  4649.         call with ES:DI -> system file table entry
  4650.               DS:SI -> FCB
  4651.         Return: CF set if SFT closed or sharing record offsets
  4652.                 mismatched
  4653.             CF clear if successful
  4654.                 BX = starting cluster number from FCB
  4655. -0Ch    DWORD    pointer to FAR routine to close file if duplicate for process
  4656.         DS:SI -> system file table
  4657.         Return: AX = number of handle in JFT which already uses SFT
  4658.         Note: called during open/create of a file
  4659.         Note: if SFT was opened with inheritance enabled and sharing
  4660.             mode 111, does something to all other SFTs owned by
  4661.             same process which have the same file open mode and
  4662.             sharing record
  4663. -08h    DWORD    pointer to FAR routine for closing file
  4664.         Note: closes various handles referring to file most-recently
  4665.             opened
  4666. -04h    DWORD    pointer to FAR routine to update directory info in related SFT
  4667.           entries
  4668.         call with ES:DI -> system file table entry for file (see below)
  4669.               AX = subfunction (apply to each related SFT)
  4670.                 00h: update time stamp (offset 0Dh) and date
  4671.                      stamp (offset 0Fh)
  4672.                 01h: update file size (offset 11h) and starting
  4673.                      cluster (offset 0Bh).  Sets last-accessed
  4674.                      cluster fields to start of file if file
  4675.                      never accessed
  4676.                 02h: as function 01h, but last-accessed fields
  4677.                      always changed
  4678.                 03h: do both functions 00h and 02h
  4679.         Note: follows ptr at offset 2Bh in system file table entries
  4680.         Note: NOP if opened with no-inherit or via FCB
  4681. Notes:    most of the above hooks (except -04h, -14h, -18h, and -3Ch) assume
  4682.       either that SS=DOS DS or SS=DS=DOS DS and directly access
  4683.       DOS-internal data
  4684.     sharing hooks are not supported by DR-DOS 5-6; will reportedly be
  4685.       supported by Novell DOS 7
  4686.  
  4687. Format of sharing record:
  4688. Offset    Size    Description
  4689.  00h    BYTE    flag
  4690.         00h free block
  4691.         01h allocated block
  4692.         FFh end marker
  4693.  01h    WORD    size of block
  4694.  03h    BYTE    checksum of pathname (including NUL)
  4695.         if sum of ASCII values is N, checksum is (N/256 + N%256)
  4696.  04h    WORD    offset in SHARE's DS of first Record Lock Record (see below)
  4697.  06h    DWORD    pointer to start of system file table chain for file
  4698.  0Ah    WORD    unique sequence number
  4699.  0Ch    var    ASCIZ full pathname
  4700. Note:    not supported by DR-DOS SHARE 1.1 and 2.0; will reportedly be
  4701.       supported by Novell DOS 7
  4702.  
  4703. Format of Record Lock Record (SHARE.EXE):
  4704. Offset    Size    Description
  4705.  00h    WORD    offset in SHARE's DS of next lock table in list or 0000h
  4706.  02h    DWORD    offset in file of start of locked region
  4707.  06h    DWORD    offset in file of end of locked region
  4708.  0Ah    DWORD    pointer to System File Table entry for this file
  4709.  0Eh    WORD    PSP segment of lock's owner
  4710. ---DOS 5+ ---
  4711.  10h    WORD    lock type: (00h lock all, 01h lock writes only)
  4712.  
  4713. Format of DOS 2.x system file tables:
  4714. Offset    Size    Description
  4715.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  4716.  04h    WORD    number of files in this table
  4717.  06h  28h bytes per file
  4718.     Offset    Size    Description
  4719.      00h    BYTE    number of file handles referring to this file
  4720.      01h    BYTE    file open mode (see AH=3Dh)
  4721.      02h    BYTE    file attribute
  4722.      03h    BYTE    drive (0 = character device, 1 = A, 2 = B, etc)
  4723.      04h 11 BYTEs    filename in FCB format (no path,no period,blank-padded)
  4724.      0Fh    WORD    ???
  4725.      11h    WORD    ???
  4726.      13h    DWORD    file size???
  4727.      17h    WORD    file date in packed format (see AX=5700h)
  4728.      19h    WORD    file time in packed format (see AX=5700h)
  4729.      1Bh    BYTE    device attribute (see AX=4400h)
  4730.     ---character device---
  4731.      1Ch    DWORD    pointer to device driver
  4732.     ---block device---
  4733.      1Ch    WORD    starting cluster of file
  4734.      1Eh    WORD    relative cluster in file of last cluster accessed
  4735.     ------
  4736.      20h    WORD    absolute cluster number of current cluster
  4737.      22h    WORD    ???
  4738.      24h    DWORD    current file position???
  4739.  
  4740. Format of DOS 3.0 system file tables and FCB tables:
  4741. Offset    Size    Description
  4742.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  4743.  04h    WORD    number of files in this table
  4744.  06h  38h bytes per file
  4745.     Offset    Size    Description
  4746.      00h-1Eh as for DOS 3.1+ (see below)
  4747.      1Fh    WORD    byte offset of directory entry within sector
  4748.      21h 11 BYTEs    filename in FCB format (no path/period, blank-padded)
  4749.      2Ch    DWORD    (SHARE.EXE) pointer to previous SFT sharing same file
  4750.      30h    WORD    (SHARE.EXE) network machine number which opened file
  4751.             (Windows Enhanced mode DOSMGR uses the virtual machine
  4752.             ID as the machine number; see INT 2F/AX=1683h)
  4753.      32h    WORD    PSP segment of file's owner (first three entries for
  4754.             AUX/CON/PRN contain segment of IO.SYS startup code)
  4755.      34h    WORD    (SHARE.EXE) offset in SHARE code seg of share record
  4756.      36h    WORD    ??? apparently always 0000h
  4757.  
  4758. Format of DOS 3.1-3.3x, DR-DOS 5.0-6.0 system file tables and FCB tables:
  4759. Offset    Size    Description
  4760.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  4761.  04h    WORD    number of files in this table
  4762.  06h  35h bytes per file
  4763.     Offset    Size    Description
  4764.      00h    WORD    number of file handles referring to this file
  4765.      02h    WORD    file open mode (see AH=3Dh)
  4766.             bit 15 set if this file opened via FCB
  4767.      04h    BYTE    file attribute (see AX=4301h)
  4768.      05h    WORD    device info word (see AX=4400h)
  4769.             bit 15 set if remote file
  4770.             bit 14 set means do not set file date/time on closing
  4771.             bit 12 set means don't inherit on EXEC
  4772.             bits 5-0 drive number for disk files
  4773.      07h    DWORD    pointer to device driver header if character device
  4774.             else pointer to DOS Drive Parameter Block (see AH=32h)
  4775.      0Bh    WORD    starting cluster of file
  4776.      0Dh    WORD    file time in packed format (see AX=5700h)
  4777.             not used for character devices in DR-DOS
  4778.      0Fh    WORD    file date in packed format (see AX=5700h)
  4779.             not used for character devices in DR-DOS
  4780.      11h    DWORD    file size
  4781.     ---system file table---
  4782.      15h    DWORD    current offset in file (may be larger than size of
  4783.             file; INT 21/AH=42h does not check new position)
  4784.     ---FCB table---
  4785.      15h    WORD    counter for last I/O to FCB
  4786.      17h    WORD    counter for last open of FCB
  4787.             (these are separate to determine the times of the
  4788.             latest I/O and open)
  4789.     ---
  4790.      19h    WORD    relative cluster within file of last cluster accessed
  4791.      1Bh    WORD    absolute cluster number of last cluster accessed
  4792.             0000h if file never read or written???
  4793.      1Dh    WORD    number of sector containing directory entry
  4794.      1Fh    BYTE    number of dir entry within sector (byte offset/32)
  4795.      20h 11 BYTEs    filename in FCB format (no path/period, blank-padded)
  4796.      2Bh    DWORD    (SHARE.EXE) pointer to previous SFT sharing same file
  4797.      2Fh    WORD    (SHARE.EXE) network machine number which opened file
  4798.             (Windows Enhanced mode DOSMGR uses the virtual machine
  4799.             ID as the machine number; see INT 2F/AX=1683h)
  4800.      31h    WORD    PSP segment of file's owner (see AH=26h) (first three
  4801.             entries for AUX/CON/PRN contain segment of IO.SYS
  4802.             startup code)
  4803.      33h    WORD    offset within SHARE.EXE code segment of
  4804.             sharing record (see above)  0000h = none
  4805.  
  4806. Format of DOS 4.0-6.0 system file tables and FCB tables:
  4807. Offset    Size    Description
  4808.  00h    DWORD    pointer to next file table (offset FFFFh if last)
  4809.  04h    WORD    number of files in this table
  4810.  06h  3Bh bytes per file
  4811.     Offset    Size    Description
  4812.      00h    WORD    number of file handles referring to this file
  4813.             FFFFh if in use but not referenced
  4814.      02h    WORD    file open mode (see AH=3Dh)
  4815.             bit 15 set if this file opened via FCB
  4816.      04h    BYTE    file attribute (see AX=4301h)
  4817.      05h    WORD    device info word (see also AX=4400h)
  4818.             bit 15 set if remote file
  4819.             bit 14 set means do not set file date/time on closing
  4820.             bit 13 set if named pipe
  4821.             bit 12 set if no inherit
  4822.             bit 11 set if network spooler
  4823.             bit 7  set if device, clear if file (only if local)
  4824.             bits 6-0 as for AX=4400h
  4825.      07h    DWORD    pointer to device driver header if character device
  4826.             else pointer to DOS Drive Parameter Block (see AH=32h)
  4827.             or REDIR data
  4828.      0Bh    WORD    starting cluster of file (local files only)
  4829.      0Dh    WORD    file time in packed format (see AX=5700h)
  4830.      0Fh    WORD    file date in packed format (see AX=5700h)
  4831.      11h    DWORD    file size
  4832.      15h    DWORD    current offset in file (SFT)
  4833.             LRU counters (FCB table, two WORDs)
  4834.     ---local file---
  4835.      19h    WORD    relative cluster within file of last cluster accessed
  4836.      1Bh    DWORD    number of sector containing directory entry
  4837.      1Fh    BYTE    number of dir entry within sector (byte offset/32)
  4838.     ---network redirector---
  4839.      19h    DWORD    pointer to REDIRIFS record
  4840.      1Dh  3 BYTEs    ???
  4841.     ------
  4842.      20h 11 BYTEs    filename in FCB format (no path/period, blank-padded)
  4843.      2Bh    DWORD    (SHARE.EXE) pointer to previous SFT sharing same file
  4844.      2Fh    WORD    (SHARE.EXE) network machine number which opened file
  4845.             (Windows Enhanced mode DOSMGR uses the virtual machine
  4846.             ID as the machine number; see INT 2F/AX=1683h)
  4847.      31h    WORD    PSP segment of file's owner (see AH=26h) (first three
  4848.             entries for AUX/CON/PRN contain segment of IO.SYS
  4849.             startup code)
  4850.      33h    WORD    offset within SHARE.EXE code segment of
  4851.             sharing record (see above)  0000h = none
  4852.      35h    WORD    (local) absolute cluster number of last clustr accessed
  4853.             (redirector) ???
  4854.      37h    DWORD    pointer to IFS driver for file, 0000000h if native DOS
  4855. Note:    the OS/2 2.0 DOS Boot Session does not properly fill in the filename
  4856.       field due to incomplete support for SFTs; the OS/2 2.0 DOS Window
  4857.       does not appear to support SFTs at all
  4858.  
  4859. Format of current directory structure (CDS) (array, LASTDRIVE entries):
  4860. Offset    Size    Description
  4861.  00h 67 BYTEs    ASCIZ path in form X:\PATH (local) or \\MACH\PATH (network)
  4862.  43h    WORD    drive attributes (see also note below and AX=5F07h)
  4863.         bit 15: uses network redirector     \ invalid if 00, installable
  4864.         bit 14: physical drive         / file system if 11
  4865.         bit 13: JOIN'ed      \ path above is true path that would be
  4866.         bit 12: SUBST'ed  / needed if not under SUBST or JOIN
  4867.         bit  7: remote drive hidden from redirector's assign-list and
  4868.               exempt from network connection make/break commands;
  4869.               set for CD-ROM drives
  4870.  45h    DWORD    pointer to Drive Parameter Block for drive (see AH=32h)
  4871. ---local drives---
  4872.  49h    WORD    starting cluster of current directory
  4873.         0000h = root, FFFFh = never accessed
  4874.  4Bh    WORD    ??? seems to be FFFFh always
  4875.  4Dh    WORD    ??? seems to be FFFFh always
  4876. ---network drives---
  4877.  49h    DWORD    pointer to redirector or REDIRIFS record, or FFFFh:FFFFh
  4878.         (DOS 4 only) available for use by IFS driver
  4879.  4Dh    WORD    stored user data from INT 21/AX=5F03h
  4880. ------
  4881.  4Fh    WORD    offset in current directory path of backslash corresponding to
  4882.           root directory for drive
  4883.         this value specifies how many characters to hide from the
  4884.           "CHDIR" and "GETDIR" calls; normally set to 2 to hide the
  4885.           drive letter and colon, SUBST, JOIN, and networks change it
  4886.           so that only the appropriate portion of the true path is
  4887.           visible to the user
  4888. ---DOS 4+ ---
  4889.  51h    BYTE    (DOS 4 only, remote drives) device type
  4890.         04h network drive
  4891.  52h    DWORD    pointer to IFS driver (DOS 4) or redirector block (DOS 5+) for
  4892.         this drive, 00000000h if native DOS
  4893.  56h    WORD    available for use by IFS driver
  4894. Notes:    the path for invalid drives is normally set to X:\, but may be empty
  4895.       after JOIN x: /D in DR-DOS 5.0 or NET USE x: /D in older LAN versions
  4896.     normally, only one of bits 13&12 may be set together with bit 14, but
  4897.       DR-DOS 5.0 uses other combinations for bits 15-12: 0111 JOIN,
  4898.       0001 SUBST, 0101 ASSIGN (see below)
  4899.  
  4900. Format of DR-DOS 5.0-6.0 current directory structure entry (array):
  4901. Offset    Size    Description
  4902.  00h 67 BYTEs    ASCIZ pathname of actual root directory for this logical drive
  4903.  43h    WORD    drive attributes
  4904.         1000h SUBSTed drive
  4905.         3000h??? JOINed drive
  4906.         4000h physical drive
  4907.         5000h ASSIGNed drive
  4908.         7000h JOINed drive
  4909.         8000h network drive
  4910.  45h    BYTE    physical drive number (0=A:) if this logical drive is valid
  4911.  46h    BYTE    ??? apparently flags for JOIN and ASSIGN
  4912.  47h    WORD    cluster number of start of parent directory (0000h = root)
  4913.  49h    WORD    entry number of current directory in parent directory
  4914.  4Bh    WORD    cluster number of start of current directory
  4915.  4Dh    WORD    used for media change detection (details not available)
  4916.  4Fh    WORD    cluster number of SUBST/JOIN "root" directory
  4917.         0000h if physical root directory
  4918.  
  4919. Format of device driver header:
  4920. Offset    Size    Description
  4921.  00h    DWORD    pointer to next driver, offset=FFFFh if last driver
  4922.  04h    WORD    device attributes
  4923.         Character device:
  4924.            bit 15 set (indicates character device)
  4925.            bit 14 IOCTL supported (see AH=44h)
  4926.            bit 13 (DOS 3+) output until busy supported
  4927.            bit 12 reserved
  4928.            bit 11 (DOS 3+) OPEN/CLOSE/RemMedia calls supported
  4929.            bits 10-8 reserved
  4930.            bit 7  (DOS 5+) Generic IOCTL check call supported (cmd 19h)
  4931.                 (see AX=4410h,AX=4411h)
  4932.            bit 6  (DOS 3.2+) Generic IOCTL call supported (command 13h)
  4933.                 (see AX=440Ch,AX=440Dh)
  4934.            bit 5  reserved
  4935.            bit 4  device is special (use INT 29 "fast console output")
  4936.            bit 3  device is CLOCK$ (all reads/writes use transfer
  4937.                 record described below)
  4938.            bit 2  device is NUL
  4939.            bit 1  device is standard output
  4940.            bit 0  device is standard input
  4941.         Block device:
  4942.            bit 15 clear (indicates block device)
  4943.            bit 14 IOCTL supported
  4944.            bit 13 non-IBM format
  4945.            bit 12 network device (device is remote)
  4946.            bit 11 (DOS 3+) OPEN/CLOSE/RemMedia calls supported
  4947.            bit 10 reserved
  4948.            bit 9  direct I/O not allowed???
  4949.               (set by DOS 3.3 DRIVER.SYS for "new" drives)
  4950.            bit 8  ??? set by DOS 3.3 DRIVER.SYS for "new" drives
  4951.            bit 7  (DOS 5+) Generic IOCTL check call supported (cmd 19h)
  4952.                 (see AX=4410h,AX=4411h)
  4953.            bit 6  (DOS 3.2+) Generic IOCTL call supported (command 13h)
  4954.                 implies support for commands 17h and 18h
  4955.                 (see AX=440Ch,AX=440Dh,AX=440Eh,AX=440Fh)
  4956.            bits 5-2 reserved
  4957.            bit 1   driver supports 32-bit sector addressing (DOS 3.31+)
  4958.            bit 0   reserved
  4959.         Note: for European MS-DOS 4.0, bit 11 also indicates that bits
  4960.             8-6 contain a version code (000 = DOS 3.0,3.1;
  4961.             001 = DOS 3.2, 010 = European DOS 4.0)
  4962.  06h    WORD    device strategy entry point
  4963.         call with ES:BX -> request header (see INT 2F/AX=0802h)
  4964.  08h    WORD    device interrupt entry point
  4965. ---character device---
  4966.  0Ah  8 BYTEs    blank-padded character device name
  4967. ---block device---
  4968.  0Ah    BYTE    number of subunits (drives) supported by driver
  4969.  0Bh  7 BYTEs    unused
  4970. ---
  4971.  12h    WORD    (CD-ROM driver) reserved, must be 0000h
  4972.         appears to be another device chain
  4973.  14h    BYTE    (CD-ROM driver) drive letter (must initially be 00h)
  4974.  15h    BYTE    (CD-ROM driver) number of units
  4975.  16h  6 BYTEs    (CD-ROM driver) signature 'MSCDnn' where 'nn' is version
  4976.             (currently '00')
  4977.  
  4978. Format of CLOCK$ transfer record:
  4979. Offset    Size    Description
  4980.  00h    WORD    number of days since 1-Jan-1980
  4981.  02h    BYTE    minutes
  4982.  03h    BYTE    hours
  4983.  04h    BYTE    hundredths of second
  4984.  05h    BYTE    seconds
  4985.  
  4986. Format of DOS 2.x disk buffer:
  4987. Offset    Size    Description
  4988.  00h    DWORD    pointer to next disk buffer, offset = FFFFh if last
  4989.         least-recently used buffer is first in chain
  4990.  04h    BYTE    drive (0=A, 1=B, etc), FFh if not in use
  4991.  05h  3 BYTEs    unused??? (seems always to be 00h 00h 01h)
  4992.  08h    WORD    logical sector number
  4993.  0Ah    BYTE    number of copies to write (1 for non-FAT sectors)
  4994.  0Bh    BYTE    sector offset between copies if multiple copies to be written
  4995.  0Ch    DWORD    pointer to DOS Drive Parameter Block (see AH=32h)
  4996.  10h        buffered data
  4997.  
  4998. Format of DOS 3.x disk buffer:
  4999. Offset    Size    Description
  5000.  00h    DWORD    pointer to next disk buffer, offset = FFFFh if last
  5001.         least-recently used buffer is first in chain
  5002.  04h    BYTE    drive (0=A,1=B, etc), FFh if not in use
  5003.  05h    BYTE    buffer flags
  5004.         bit 7: ???
  5005.         bit 6: buffer dirty
  5006.         bit 5: buffer has been referenced
  5007.         bit 4: ???
  5008.         bit 3: sector in data area
  5009.         bit 2: sector in a directory, either root or subdirectory
  5010.         bit 1: sector in FAT
  5011.         bit 0: boot sector??? (guess)
  5012.  06h    WORD    logical sector number
  5013.  08h    BYTE    number of copies to write (1 for non-FAT sectors)
  5014.  09h    BYTE    sector offset between copies if multiple copies to be written
  5015.  0Ah    DWORD    pointer to DOS Drive Parameter Block (see AH=32h)
  5016.  0Eh    WORD    unused??? (almost always 0)
  5017.  10h        buffered data
  5018.  
  5019. Format of DOS 4.00 (pre UR 25066) disk buffer info:
  5020. Offset    Size    Description
  5021.  00h    DWORD    pointer to array of disk buffer hash chain heads (see below)
  5022.  04h    WORD    number of disk buffer hash chains (referred to as NDBCH below)
  5023.  06h    DWORD    pointer to lookahead buffer, zero if not present
  5024.  0Ah    WORD    number of lookahead sectors, else zero (the y in BUFFERS=x,y)
  5025.  0Ch    BYTE    00h if buffers in EMS (/X), FFh if not
  5026.  0Dh    WORD    EMS handle for buffers, zero if not in EMS
  5027.  0Fh    WORD    EMS physical page number used for buffers (usually 255)
  5028.  11h    WORD    ??? seems always to be 0001h
  5029.  13h    WORD    segment of EMS physical page frame
  5030.  15h    WORD    ??? seems always to be zero
  5031.  17h  4 WORDs    EMS partial page mapping information???
  5032.  
  5033. Format of DOS 4.01 (from UR 25066 Corrctive Services Disk on) disk buffer info:
  5034. Offset    Size    Description
  5035.  00h    DWORD    pointer to array of disk buffer hash chain heads (see below)
  5036.  04h    WORD    number of disk buffer hash chains (referred to as NDBCH below)
  5037.  06h    DWORD    pointer to lookahead buffer, zero if not present
  5038.  0Ah    WORD    number of lookahead sectors, else zero (the y in BUFFERS=x,y)
  5039.  0Ch    BYTE    01h, possibly to distinguish from pre-UR 25066 format
  5040.  0Dh    WORD    ??? EMS segment for BUFFERS (only with /XD)
  5041.  0Fh    WORD    ??? EMS physical page number of EMS seg above (only with /XD)
  5042.  11h    WORD    ??? EMS segment for ??? (only with /XD)
  5043.  13h    WORD    ??? EMS physical page number of above (only with /XD)
  5044.  15h    BYTE    ??? number of EMS page frames present (only with /XD)
  5045.  16h    WORD    segment of one-sector workspace buffer allocated in main memory
  5046.           if BUFFERS/XS or /XD options in effect, possibly to avoid DMA
  5047.           into EMS
  5048.  18h    WORD    EMS handle for buffers, zero if not in EMS
  5049.  1Ah    WORD    EMS physical page number used for buffers (usually 255)
  5050.  1Ch    WORD    ??? appears always to be 0001h
  5051.  1Eh    WORD    segment of EMS physical page frame
  5052.  20h    WORD    ??? appears always to be zero
  5053.  22h    BYTE    00h if /XS, 01h if /XD, FFh if BUFFERS not in EMS
  5054.  
  5055. Format of DOS 4.x disk buffer hash chain head (array, one entry per chain):
  5056. Offset    Size    Description
  5057.  00h    WORD    EMS logical page number in which chain is resident, -1 if not
  5058.         in EMS
  5059.  02h    DWORD    pointer to least recently used buffer header.  All buffers on
  5060.         this chain are in the same segment.
  5061.  06h    BYTE    number of dirty buffers on this chain
  5062.  07h    BYTE    reserved (00h)
  5063. Notes:    buffered disk sectors are assigned to chain N where N is the sector's
  5064.       address modulo NDBCH,     0 <= N <= NDBCH-1
  5065.     each chain resides completely within one EMS page
  5066.     this structure is in main memory even if buffers are in EMS
  5067.  
  5068. Format of DOS 4.0-6.0 disk buffer:
  5069. Offset    Size    Description
  5070.  00h    WORD    forward ptr, offset only, to next least recently used buffer
  5071.  02h    WORD    backward ptr, offset only
  5072.  04h    BYTE    drive (0=A,1=B, etc) if bit 7 clear
  5073.         SFT index if bit 7 set
  5074.         FFh if not in use
  5075.  05h    BYTE    buffer flags
  5076.         bit 7: remote buffer
  5077.         bit 6: buffer dirty
  5078.         bit 5: buffer has been referenced (reserved in DOS 5+)
  5079.         bit 4: search data buffer (only valid if remote buffer)
  5080.         bit 3: sector in data area
  5081.         bit 2: sector in a directory, either root or subdirectory
  5082.         bit 1: sector in FAT
  5083.         bit 0: reserved
  5084.  06h    DWORD    logical sector number (local buffers only)
  5085.  0Ah    BYTE    number of copies to write
  5086.         for FAT sectors, same as number of FATs
  5087.         for data and directory sectors, usually 1
  5088.  0Bh    WORD    offset in sectors between copies to write for FAT sectors
  5089.  0Dh    DWORD    pointer to DOS Drive Parameter Block (see AH=32h)
  5090.  11h    WORD    size of data in buffer if remote buffer (see flags above)
  5091.  13h    BYTE    reserved (padding)
  5092.  14h        buffered data
  5093. Note:    for DOS 4.x, all buffered sectors which have the same hash value
  5094.       (computed as the sum of high and low words of the logical sector
  5095.       number divided by the number of disk buffer chains) are on the same
  5096.       doubly-linked circular chain; for DOS 5+, only a single circular
  5097.       chain exists.
  5098.     the links consist of offset addresses only, the segment being the same
  5099.       for all buffers in the chain.
  5100.  
  5101. Format of DOS 5.0-6.0 disk buffer info:
  5102. Offset    Size    Description
  5103.  00h    DWORD    pointer to least-recently-used buffer header (may be in HMA)
  5104.         (see above)
  5105.  04h    WORD    number of dirty disk buffers
  5106.  06h    DWORD    pointer to lookahead buffer, zero if not present
  5107.  0Ah    WORD    number of lookahead sectors, else zero (the y in BUFFERS=x,y)
  5108.  0Ch    BYTE    buffer location
  5109.         00h base memory, no workspace buffer
  5110.         01h HMA, workspace buffer in base memory
  5111.  0Dh    DWORD    pointer to one-segment workspace buffer in base memory
  5112.  11h  3 BYTEs    unused
  5113.  14h    WORD    ???
  5114.  16h    BYTE    flag: INT 24 fail while making an I/O status call
  5115.  17h    BYTE    temp storage for user memory allocation strategy during EXEC
  5116.  18h    BYTE    counter: number of INT 21 calls for which A20 is off
  5117.  19h    BYTE    bit flags
  5118.         bit 0: ???
  5119.         bit 1: SWITCHES=/W specified in CONFIG.SYS (don't load
  5120.             WINA20.SYS when MS Windows 3.0 starts)
  5121.         bit 2: in EXEC state (INT 21/AX=4B05h)
  5122.  1Ah    WORD    offset of unpack code start (used only during INT 21/AX=4B05h)
  5123.  1Ch    BYTE    bit 0 set iff UMB MCB chain linked to normal MCB chain
  5124.  1Dh    WORD    minimum paragraphs of memory required by program being EXECed
  5125.  1Fh    WORD    segment of first MCB in upper memory blocks or FFFFh if DOS
  5126.         memory chain in base 640K only (first UMB MCB usually at 9FFFh,
  5127.         locking out video memory with a DOS-owned memory block)
  5128.  21h    WORD    paragraph from which to start scanning during memory allocation
  5129.  
  5130. Format of IFS driver list:
  5131. Offset    Size    Description
  5132.  00h    DWORD    pointer to next driver header
  5133.  04h  8 BYTEs    IFS driver name (blank padded), as used by FILESYS command
  5134.  0Ch  4 BYTEs    ???
  5135.  10h    DWORD    pointer to IFS utility function entry point (see below)
  5136.         call with ES:BX -> IFS request (see below)
  5137.  14h    WORD    offset in header's segment of driver entry point
  5138.     ???
  5139.  
  5140. Call IFS utility function entry point with:
  5141.     AH = 20h miscellaneous functions
  5142.         AL = 00h get date
  5143.         Return: CX = year
  5144.             DH = month
  5145.             DL = day
  5146.         AL = 01h get process ID and computer ID
  5147.         Return: BX = current PSP segment
  5148.             DX = active network machine number
  5149.         AL = 05h get file system info
  5150.         ES:DI -> 16-byte info buffer
  5151.         Return: buffer filled
  5152.             Offset    Size    Description
  5153.              00h  2 BYTEs    unused
  5154.              02h    WORD    number of SFTs (actually counts only
  5155.                     the first two file table arrays)
  5156.              04h    WORD    number of FCB table entries
  5157.              06h    WORD    number of proctected FCBs
  5158.              08h  6 BYTEs    unused
  5159.              0Eh    WORD    largest sector size supported
  5160.         AL = 06h get machine name
  5161.         ES:DI -> 18-byte buffer for name
  5162.         Return: buffer filled with name starting at offset 02h
  5163.         AL = 08h get sharing retry count
  5164.         Return: BX = sharing retry count
  5165.         AL = other
  5166.         Return: CF set
  5167.     AH = 21h get redirection state
  5168.         BH = type (03h disk, 04h printer)
  5169.         Return: BH = state (00h off, 01h on)
  5170.     AH = 22h ??? some sort of time calculation
  5171.         AL = 00h ???
  5172.             nonzero ???
  5173.     AH = 23h ??? some sort of time calculation
  5174.     AH = 24h compare filenames
  5175.         DS:SI -> first ASCIZ filename
  5176.         ES:DI -> second ASCIZ filename
  5177.         Return: ZF set if files are same ignoring case and / vs \
  5178.     AH = 25h normalize filename
  5179.         DS:SI -> ASCIZ filename
  5180.         ES:DI -> buffer for result
  5181.         Return: filename uppercased, forward slashes changed to backslashes
  5182.     AH = 26h get DOS stack
  5183.         Return: DS:SI -> top of stack
  5184.             CX = size of stack in bytes
  5185.     AH = 27h increment InDOS flag
  5186.     AH = 28h decrement InDOS flag
  5187. Note:    IFS drivers which do not wish to implement functions 20h or 24h-28h may
  5188.       pass them on to the default handler pointed at by [LoL+37h]
  5189.  
  5190. Format of IFS request block:
  5191. Offset    Size    Description
  5192.  00h    WORD    total size in bytes of request
  5193.  02h    BYTE    class of request
  5194.         02h ???
  5195.         03h redirection
  5196.         04h ???
  5197.         05h file access
  5198.         06h convert error code to string
  5199.         07h ???
  5200.  03h    WORD    returned DOS error code
  5201.  05h    BYTE    IFS driver exit status
  5202.         00h success
  5203.         01h ???
  5204.         02h ???
  5205.         03h ???
  5206.         04h ???
  5207.         FFh internal failure
  5208.  06h 16 BYTEs    ???
  5209. ---request class 02h---
  5210.  16h    BYTE    function code
  5211.         04h ???
  5212.  17h    BYTE    unused???
  5213.  18h    DWORD    pointer to ???
  5214.  1Ch    DWORD    pointer to ???
  5215.  20h  2 BYTEs    ???
  5216. ---request class 03h---
  5217.  16h    BYTE    function code
  5218.  17h    BYTE    ???
  5219.  18h    DWORD    pointer to ???
  5220.  1Ch    DWORD    pointer to ???
  5221.  22h    WORD    returned ???
  5222.  24h    WORD    returned ???
  5223.  26h    WORD    returned ???
  5224.  28h    BYTE    returned ???
  5225.  29h    BYTE    unused???
  5226. ---request class 04h---
  5227.  16h    DWORD    pointer to ???
  5228.  1Ah    DWORD    pointer to ???
  5229. ---request class 05h---
  5230.  16h    BYTE    function code
  5231.         01h flush disk buffers
  5232.         02h get disk space
  5233.         03h MKDIR
  5234.         04h RMDIR
  5235.         05h CHDIR
  5236.         06h delete file
  5237.         07h rename file
  5238.         08h search directory
  5239.         09h file open/create
  5240.         0Ah LSEEK
  5241.         0Bh read from file
  5242.         0Ch write to file
  5243.         0Dh lock region of file
  5244.         0Eh commit/close file
  5245.         0Fh get/set file attributes
  5246.         10h printer control
  5247.         11h ???
  5248.         12h process termination
  5249.         13h ???
  5250.     ---class 05h function 01h---
  5251.      17h  7 BYTEs    ???
  5252.      1Eh    DWORD    pointer to ???
  5253.      22h  4 BYTEs    ???
  5254.      26h    BYTE    ???
  5255.      27h    BYTE    ???
  5256.     ---class 05h function 02h---
  5257.      17h  7 BYTEs    ???
  5258.      1Eh    DWORD    pointer to ???
  5259.      22h  4 BYTEs    ???
  5260.      26h    WORD    returned total clusters
  5261.      28h    WORD    returned sectors per cluster
  5262.      2Ah    WORD    returned bytes per sector
  5263.      2Ch    WORD    returned available clusters
  5264.      2Eh    BYTE    returned ???
  5265.      2Fh    BYTE    ???
  5266.     ---class 05h functions 03h,04h,05h---
  5267.      17h  7 BYTEs    ???
  5268.      1Eh    DWORD    pointer to ???
  5269.      22h  4 BYTEs    ???
  5270.      26h    DWORD    pointer to directory name
  5271.     ---class 05h function 06h---
  5272.      17h  7 BYTEs    ???
  5273.      1Eh    DWORD    pointer to ???
  5274.      22h  4 BYTEs    ???
  5275.      26h    WORD    attribute mask
  5276.      28h    DWORD    pointer to filename
  5277.     ---class 05h function 07h---
  5278.      17h  7 BYTEs    ???
  5279.      1Eh    DWORD    pointer to ???
  5280.      22h  4 BYTEs    ???
  5281.      26h    WORD    attribute mask
  5282.      28h    DWORD    pointer to source filespec
  5283.      2Ch    DWORD    pointer to destination filespec
  5284.     ---class 05h function 08h---
  5285.      17h  7 BYTEs    ???
  5286.      1Eh    DWORD    pointer to ???
  5287.      22h  4 BYTEs    ???
  5288.      26h    BYTE    00h FINDFIRST
  5289.             01h FINDNEXT
  5290.      28h    DWORD    pointer to FindFirst search data + 01h if FINDNEXT
  5291.      2Ch    WORD    search attribute if FINDFIRST
  5292.      2Eh    DWORD    pointer to filespec if FINDFIRST
  5293.     ---class 05h function 09h---
  5294.      17h  7 BYTEs    ???
  5295.      1Eh    DWORD    pointer to ???
  5296.      22h    DWORD    pointer to IFS open file structure (see below)
  5297.      26h    WORD    ???  \ together, specify open vs. create, whether or
  5298.      28h    WORD    ???  / not to truncate
  5299.      2Ah  4 BYTEs    ???
  5300.      2Eh    DWORD    pointer to filename
  5301.      32h  4 BYTEs    ???
  5302.      36h    WORD    file attributes on call
  5303.             returned ???
  5304.      38h    WORD    returned ???
  5305.     ---class 05h function 0Ah---
  5306.      17h  7 BYTEs    ???
  5307.      1Eh    DWORD    pointer to ???
  5308.      22h    DWORD    pointer to IFS open file structure (see below)
  5309.      26h    BYTE    seek type (02h = from end)
  5310.      28h    DWORD    offset on call
  5311.             returned new absolute position
  5312.     ---class 05h functions 0Bh,0Ch---
  5313.      17h  7 BYTEs    ???
  5314.      1Eh    DWORD    pointer to ???
  5315.      22h    DWORD    pointer to IFS open file structure (see below)
  5316.      28h    WORD    number of bytes to transfer
  5317.             returned bytes actually transferred
  5318.      2Ah    DWORD    transfer address
  5319.     ---class 05h function 0Dh---
  5320.      17h  7 BYTEs    ???
  5321.      1Eh    DWORD    pointer to ???
  5322.      22h    DWORD    pointer to IFS open file structure (see below)
  5323.      26h    BYTE    file handle???
  5324.      27h    BYTE    unused???
  5325.      28h    WORD    ???
  5326.      2Ah    WORD    ???
  5327.      2Ch    WORD    ???
  5328.      2Eh    WORD    ???
  5329.     ---class 05h function 0Eh---
  5330.      17h  7 BYTEs    ???
  5331.      1Eh    DWORD    pointer to ???
  5332.      22h    DWORD    pointer to IFS open file structure (see below)
  5333.      26h    BYTE    00h commit file
  5334.             01h close file
  5335.      27h    BYTE    unused???
  5336.     ---class 05h function 0Fh---
  5337.      17h  7 BYTEs    ???
  5338.      1Eh    DWORD    pointer to ???
  5339.      22h  4 BYTEs    ???
  5340.      26h    BYTE    02h GET attributes
  5341.             03h PUT attributes
  5342.      27h    BYTE    unused???
  5343.      28h 12 BYTEs    ???
  5344.      34h    WORD    search attributes???
  5345.      36h    DWORD    pointer to filename
  5346.      3Ah    WORD    (GET) returned ???
  5347.      3Ch    WORD    (GET) returned ???
  5348.      3Eh    WORD    (GET) returned ???
  5349.      40h    WORD    (GET) returned ???
  5350.      42h    WORD    (PUT) new attributes
  5351.             (GET) returned attributes
  5352.     ---class 05h function 10h---
  5353.      17h  7 BYTEs    ???
  5354.      1Eh    DWORD    pointer to ???
  5355.      22h    DWORD    pointer to IFS open file structure (see below)
  5356.      26h    WORD    ???
  5357.      28h    DWORD    pointer to ???
  5358.      2Ch    WORD    ???
  5359.      2Eh    BYTE    ???
  5360.      2Fh    BYTE    subfunction
  5361.             01h get printer setup
  5362.             03h ???
  5363.             04h ???
  5364.             05h ???
  5365.             06h ???
  5366.             07h ???
  5367.             21h set printer setup
  5368.     ---class 05h function 11h---
  5369.      17h  7 BYTEs    ???
  5370.      1Eh    DWORD    pointer to ???
  5371.      22h    DWORD    pointer to IFS open file structure (see below)
  5372.      26h    BYTE    subfunction
  5373.      27h    BYTE    unused???
  5374.      28h    WORD    ???
  5375.      2Ah    WORD    ???
  5376.      2Ch    WORD    ???
  5377.      2Eh    BYTE    ???
  5378.      2Fh    BYTE    ???
  5379.     ---class 05h function 12h---
  5380.      17h 15 BYTEs    unused???
  5381.      26h    WORD    PSP segment
  5382.      28h    BYTE    type of process termination
  5383.      29h    BYTE    unused???
  5384.     ---class 05h function 13h---
  5385.      17h 15 BYTEs    unused???
  5386.      26h    WORD    PSP segment
  5387. ---request class 06h---
  5388.  16h    DWORD    returned pointer to string corresponding to error code at 03h
  5389.  1Ah    BYTE    returned ???
  5390.  1Bh    BYTE    unused
  5391. ---request class 07h---
  5392.  16h    DWORD    pointer to IFS open file structure (see below)
  5393.  1Ah    BYTE    ???
  5394.  1Bh    BYTE    unused???
  5395.  
  5396. Format of IFS open file structure:
  5397. Offset    Size    Description
  5398.  00h    WORD    ???
  5399.  02h    WORD    device info word
  5400.  04h    WORD    file open mode
  5401.  06h    WORD    ???
  5402.  08h    WORD    file attributes
  5403.  0Ah    WORD    owner's network machine number
  5404.  0Ch    WORD    owner's PSP segment
  5405.  0Eh    DWORD    file size
  5406.  12h    DWORD    current offset in file
  5407.  16h    WORD    file time
  5408.  18h    WORD    file date
  5409.  1Ah 11 BYTEs    filename in FCB format
  5410.  25h    WORD    ???
  5411.  27h    WORD    hash value of SFT address
  5412.         (low word of linear address + segment&F000h)
  5413.  29h  3 WORDs    network info from SFT
  5414.  2Fh    WORD    ???
  5415.  
  5416. Format of one item in DOS 4+ list of special program names:
  5417. Offset    Size    Description
  5418.  00h    BYTE    length of name (00h = end of list)
  5419.  01h  N BYTEs    name in format name.ext
  5420.  N    2 BYTEs    DOS version to return for program (major,minor)
  5421.         (see AH=30h,INT 2F/AX=122Fh)
  5422. ---DOS 4 only---
  5423.  N+2    BYTE    number of times to return fake version number (FFh = always)
  5424. Note:    if the name of the executable for the program making the DOS "get
  5425.       version" call matches one of the names in this list, DOS returns the
  5426.       specified version rather than the true version number
  5427. --------v-215252-----------------------------
  5428. INT 21 - VIRUS - "516"/"Leapfrog" - INSTALLATION CHECK
  5429.     AX = 5252h
  5430. Return: BX = FFEEh if resident
  5431. SeeAlso: AX=4BFFh"Cascade",AX=58CCh
  5432. --------D-2153-------------------------------
  5433. INT 21 - DOS 2+ internal - TRANSLATE BIOS PARAMETER BLOCK TO DRIVE PARAM BLOCK
  5434.     AH = 53h
  5435.     DS:SI -> BIOS Parameter Block (see below)
  5436.     ES:BP -> buffer for Drive Parameter Block (see AH=32h for format)
  5437. Return: ES:BP buffer filled
  5438. Note:    for DOS 3+, the cluster at which to start searching is set to 0000h
  5439.       and the number of free clusters is set to FFFFh (unknown)
  5440.  
  5441. Format of BIOS Parameter Block:
  5442. Offset    Size    Description
  5443.  00h    WORD    number of bytes per sector
  5444.  02h    BYTE    number of sectors per cluster
  5445.  03h    WORD    number of reserved sectors at start of disk
  5446.  05h    BYTE    number of FATs
  5447.  06h    WORD    number of entries in root directory
  5448.  08h    WORD    total number of sectors
  5449.         for DOS 4+, set to zero if partition >32M, then set DWORD at
  5450.           15h to actual number of sectors
  5451.  0Ah    BYTE    media ID byte
  5452.  0Bh    WORD    number of sectors per FAT
  5453. ---DOS 3+---
  5454.  0Dh    WORD    number of sectors per track
  5455.  0Fh    WORD    number of heads
  5456.  11h    DWORD    number of hidden sectors
  5457.  15h 11 BYTEs    reserved
  5458. ---DOS 4+ ---
  5459.  15h    DWORD    total number of sectors if word at 08h contains zero
  5460.  19h  6 BYTEs    ???
  5461.  1Fh    WORD    number of cylinders
  5462.  21h    BYTE    device type
  5463.  22h    WORD    device attributes (removable or not, etc)
  5464. ---DR-DOS 5+ ---
  5465.  15h    DWORD    total number of sectors if word at 08h contains zero
  5466.  19h  6 BYTEs    reserved
  5467. ---European MS-DOS 4.00---
  5468.  15h    DWORD    total number of sectors if word at 08h contains zero
  5469.         (however, this DOS does not actually implement >32M partitions)
  5470. --------D-2154-------------------------------
  5471. INT 21 - DOS 2+ - GET VERIFY FLAG
  5472.     AH = 54h
  5473. Return: AL = verify flag
  5474.         00h off
  5475.         01h on (all disk writes verified after writing)
  5476. SeeAlso: AH=2Eh
  5477. --------D-2155-------------------------------
  5478. INT 21 - DOS 2+ internal - CREATE CHILD PSP
  5479.     AH = 55h
  5480.     DX = segment at which to create new PSP
  5481.     SI = (DOS 3+) value to place in memory size field at DX:[0002h]
  5482. Return: CF clear if successful
  5483.  
  5484. Notes:    creates a "child" PSP rather than making an exact copy of the current
  5485.       PSP; the new PSP's parent pointer is set to the current PSP and the
  5486.       reference count for each inherited file is incremented
  5487.     (DOS 2+) sets current PSP to DX
  5488.     (DOS 3+) marks "no inherit" file handles as closed in child PSP
  5489. SeeAlso: AH=26h,AH=50h
  5490. --------D-2156-------------------------------
  5491. INT 21 - DOS 2+ - "RENAME" - RENAME FILE
  5492.     AH = 56h
  5493.     DS:DX -> ASCIZ filename of existing file (no wildcards, but see below)
  5494.     ES:DI -> ASCIZ new filename (no wildcards)
  5495.     CL = attribute mask (server call only, see below)
  5496. Return: CF clear if successful
  5497.     CF set on error
  5498.         AX = error code (02h,03h,05h,11h) (see AH=59h)
  5499. Notes:    allows move between directories on same logical volume
  5500.     does not set the archive attribute (see AX=4300h), which results in
  5501.       incremental backups not backing up the file under its new name
  5502.     open files should not be renamed
  5503.     (DOS 3+) allows renaming of directories
  5504.     (DOS 3.1+) wildcards are allowed if invoked via AX=5D00h, in which case
  5505.       error 12h (no more files) is returned on success, and both source and
  5506.       destination specs must be canonical (as returned by AH=60h).
  5507.       Wildcards in the destination are replaced by the corresponding char
  5508.       of each source file being renamed.  Under DOS 3.x, the call will fail
  5509.       if the destination wildcard is *.* or equivalent; under DR-DOS 5.0,
  5510.       the call will fail if any wildcards are used.     When invoked via
  5511.       AX=5D00h, only those files matching the attribute mask in CL are
  5512.       renamed.
  5513.     under the FlashTek X-32 DOS extender, the old-name pointer is in DS:EDX
  5514.       and the new-name pointer is in ES:EDI (DS must equal ES)
  5515. BUG:    under DR-DOS 3.41, this function will generate a new directory entry
  5516.       with the new name (including any wildcards) which can only be removed
  5517.       with a sector editor when invoked via AX=5D00h
  5518. SeeAlso: AH=17h,AX=4301h,AH=60h,AX=5D00h
  5519. --------D-215700-----------------------------
  5520. INT 21 - DOS 2+ - GET FILE'S DATE AND TIME
  5521.     AX = 5700h
  5522.     BX = file handle
  5523. Return: CF clear if successful
  5524.         CX = file's time
  5525.         bits 15-11: hours (0-23)
  5526.              10-5:  minutes
  5527.               4-0:  seconds/2
  5528.         DX = file's date
  5529.         bits 15-9: year - 1980
  5530.               8-5: month
  5531.               4-0: day
  5532.     CF set on error
  5533.         AX = error code (01h,06h) (see AH=59h)
  5534. Note:    under DR-DOS 3.41 and 5.0, this function returns 0 (no date/time) for
  5535.       character devices; MS-DOS returns date and time of opening
  5536. SeeAlso: AX=5701h
  5537. --------D-215701-----------------------------
  5538. INT 21 - DOS 2+ - SET FILE'S DATE AND TIME
  5539.     AX = 5701h
  5540.     BX = file handle
  5541.     CX = new time (see AX=5700h)
  5542.     DX = new date (see AX=5700h)
  5543. Return: CF clear if successful
  5544.     CF set on error
  5545.         AX = error code (01h,06h) (see AH=59h)
  5546. SeeAlso: AX=5700h
  5547. --------D-215702-----------------------------
  5548. INT 21 - DOS 4.x only - GET EXTENDED ATTRIBUTES FOR FILE
  5549.     AX = 5702h
  5550.     BX = file handle
  5551.     CX = size of result buffer or 0000h
  5552.     DS:SI -> EAP list (see below)
  5553.     ES:DI -> buffer for returned EAV list (see below)
  5554. Return: CF clear if successful
  5555.         CX = size of returned data
  5556.     CF set on error
  5557.         AX = error code (see AH=59h)
  5558. Desc:    get the current value of one or more extended attributes
  5559. Notes:    if CX=0000h on entry, ES:DI is ignored and no data is actually
  5560.       returned, only the amount of data which is available
  5561.     the default DOS 4 behavior is to return a single word of 0000h (no
  5562.       structures) in the result buffer if CX>=0002h on entry
  5563. SeeAlso: AX=5703h,AX=5704h,AH=6Eh,INT 2F/AX=112Dh
  5564.  
  5565. Format of EAP (extended attribute properties) list:
  5566. Offset    Size    Description
  5567.  00h    WORD    number of EAP structures following
  5568.  02h    var    array of EAP structures (see below)
  5569.  
  5570. Format of EAP (extended attribute property) structure:
  5571. Offset    Size    Description
  5572.  00h    BYTE    attribute type
  5573.         01h boolean (either 00h or 01h)
  5574.         02h number (BYTE, WORD, or DWORD)
  5575.         03h string
  5576.         04h date stamp
  5577.         05h time stamp
  5578.  01h    WORD    EAP flags (see below)
  5579.  03h    BYTE    size of reference string (name)
  5580.  04h  N BYTEs    reference string
  5581.  
  5582. Bitfields for EAP flags:
  5583.  bit 12 unchangeable
  5584.  bit 13 ignore
  5585.  bit 14 unchangeable
  5586.  bit 15 used by COMMAND.COM for code page, but not understood by ATTRIB
  5587.  
  5588. Format of EAV (extended attribute value) list:
  5589. Offset    Size    Description
  5590.  00h    WORD    number of EAV structures following
  5591.  02h    var    array of Extended Attribute Value structures
  5592.  
  5593. Format of Extended Attribute Value structures:
  5594. Offset    Size    Description
  5595.  00h  4 BYTEs    ???
  5596.  04h    BYTE    size of reference string
  5597.  05h    WORD    size of value
  5598.  07h    var    reference string
  5599.     var    value
  5600. ----------215702-----------------------------
  5601. INT 21 - OS/2 v1.1+ Family API - DosQFileInfo
  5602.     AX = 5702h
  5603.     BX = file handle
  5604.     CX = size of buffer for information
  5605.     DX = level of information
  5606.     ES:DI -> buffer for information
  5607. Return: CF clear if successful
  5608.     CF set on error
  5609.         AX = error code
  5610. SeeAlso: AX=5702h/BX=FFFFh,AX=5703h"OS/2"
  5611. ----------215702BXFFFF-----------------------
  5612. INT 21 - OS/2 v1.1+ Compatibility Box Family API - DosQPathInfo
  5613.     AX = 5702h
  5614.     BX = FFFFh
  5615.     CX = size of buffer for information
  5616.     DX = level of information (0002h)
  5617.     DS:SI -> filename
  5618.     ES:DI -> buffer for information (see below)
  5619. Return: CF clear if successful
  5620.         AL = 00h
  5621.     CF set on error
  5622.         AX = error code
  5623. SeeAlso: AX=5702h"OS/2",AX=5703h/BX=FFFFh
  5624.  
  5625. Format of path information:
  5626. Offset    Size    Description
  5627.  00h 22 BYTEs    ???
  5628.  16h    DWORD    extended attribute size (none present if less than 5)
  5629. --------D-215703-----------------------------
  5630. INT 21 - DOS 4.x only - GET EXTENDED ATTRIBUTE PROPERTIES
  5631.     AX = 5703h
  5632.     BX = file handle
  5633.     CX = size of result buffer or 0000h
  5634.     ES:DI -> result buffer
  5635. Return: CF clear if successful
  5636.         CX = size of returned data
  5637.     CF set on error
  5638.         AX = error code (see AH=59h)
  5639.     ES:DI -> zero word (DOS 4.0) if CX >= 2 on entry
  5640. Desc:    get a list of the extended attributes which are defined for the
  5641.       specified file
  5642. Notes:    if CX=0000h on entry, ES:DI is ignored and no data is actually
  5643.       returned, only the amount of data which is available
  5644.     the default DOS 4 behavior is to return a trivial EAP list consisting
  5645.       of the single word 0000h (no EAP structures) if CX>=0002h on entry
  5646. SeeAlso: AX=5702h,AX=5704h,AH=6Eh,INT 2F/AX=112Dh
  5647. ----------215703-----------------------------
  5648. INT 21 - OS/2 v1.1+ Family API - DosSetFileInfo
  5649.     AX = 5703h
  5650.     BX = file handle
  5651.     CX = size of information buffer
  5652.     DX = level of information
  5653.     ES:DI -> information buffer
  5654. Return: CF clear if successful
  5655.     CF set on error
  5656.         AX = error code
  5657. SeeAlso: AX=5702h"OS/2",AX=5703h/BX=FFFFh
  5658. ----------215703BXFFFF-----------------------
  5659. INT 21 - OS/2 v1.1+ Family API - DosSetPathInfo
  5660.     AX = 5703h
  5661.     BX = FFFFh
  5662.     CX = size of information buffer
  5663.     DX = level of information
  5664.     DS:SI -> filename
  5665.     ES:DI -> information buffer
  5666. Return: CF clear if successful
  5667.     CF set on error
  5668.         AX = error code
  5669. SeeAlso: AX=5702h/BX=FFFFh,AX=5703h"OS/2"
  5670. --------D-215704-----------------------------
  5671. INT 21 - DOS 4.x only - SET EXTENDED ATTRIBUTES
  5672.     AX = 5704h
  5673.     BX = file handle
  5674.     ES:DI -> EAV list (see AX=5702h)
  5675. Return: CF clear if successful
  5676.     CF set on error
  5677.         AX = error code (see AH=59h)
  5678. Note:    the default DOS 4 behavior is to do nothing and return successfully
  5679. SeeAlso: AX=5702h,AX=5703h,INT 2F/AX=112Dh
  5680. ----------215757BX5757-----------------------
  5681. INT 21 U - IBM Genie - Resident Manager - INSTALLATION CHECK
  5682.     AX = 5757h
  5683.     BX = 5757h
  5684. Return: AX = 0000h if installed
  5685.         BX = ???
  5686.         DX = ???
  5687.         DS:SI -> list of 27 DWORD entry point addresses
  5688. Program: IBM Genie is a set of utility TSRs by Helix Software
  5689. Note:    other functions possible if BX <> 5757h, but details not yet available
  5690. ----------215758-----------------------------
  5691. INT 21 U - Headroom - API
  5692.     AX = 5758h
  5693.     BL = function
  5694.         00h ???
  5695.         01h get Headroom location
  5696.         Return: CF clear if installed
  5697.                 AX = PSP segment of Headroom TSR
  5698.                 BX = paragraphs of memory used by Headroom
  5699.             CF set if not (normal DOS return)
  5700.         Note:    this function is also used as an installation check
  5701.         02h get INT 21 handler
  5702.         Return: CF clear
  5703.             ES:BX -> Headroom's INT 21 handler
  5704.         Note: also sets unknown flag
  5705.         03h launch application???
  5706.         DS:SI -> 233-byte application record
  5707.         Return: ???
  5708.         04h ???
  5709.         ???
  5710.         Return: CF clear
  5711.         05h get swap directory
  5712.         Return: CF clear
  5713.             DX:AX -> ASCIZ swap directory name
  5714.         06h ???
  5715.         DX = ???
  5716.         Return: CF clear
  5717.         07h ???
  5718.         08h ???
  5719.         09h get current application
  5720.         Return: BX = application number
  5721.         0Ah ???
  5722.         DX = application number
  5723.         DS:SI = ???
  5724.         Return: ???
  5725.         0Bh ???
  5726.         0Ch ???
  5727.         DX = application number
  5728.         ???
  5729.         Return: ???
  5730.         0Dh ???
  5731.         DX = application number
  5732.         ???
  5733.         Return: ???
  5734.         0Eh get ???
  5735.         Return: CF clear
  5736.             AX = ???
  5737.         0Fh set ??? flag
  5738.         10h clear ??? flag
  5739.         11h find application by name
  5740.         DS:SI -> ASCIZ application name
  5741.         Return: CF clear
  5742.             AX = application number or FFFFh if not loaded
  5743.         12h ???
  5744.         DX = application number
  5745.         Return: CF clear
  5746.             ???
  5747.         13h ???
  5748.         Return: CF clear
  5749.         14h ???
  5750.         same as function 13h
  5751.         15h set ???
  5752.         DX = ???
  5753.         16h get ???
  5754.         Return: AX = ??? set by function 15h
  5755.         17h get ???
  5756.         Return: BX = ???
  5757.             CX = ??? (may be pointer in BX:CX)
  5758.         18h BUG: branches incorrectly due to fencepost error
  5759. Program: Headroom is a TSR/task switcher by Helix Software
  5760. SeeAlso: AX=4C57h,AX=5757h
  5761. --------D-2158-------------------------------
  5762. INT 21 - DOS 3+ - GET OR SET MEMORY ALLOCATION STRATEGY
  5763.     AH = 58h
  5764.     AL = subfunction
  5765.         00h get allocation strategy
  5766.         Return: AX = current strategy
  5767.                 00h low memory first fit
  5768.                 01h low memory best fit
  5769.                 02h low memory last fit
  5770.              ---DOS 5+ ---
  5771.                 40h high memory first fit
  5772.                 41h high memory best fit
  5773.                 42h high memory last fit
  5774.                 80h first fit, try high then low memory
  5775.                 81h best fit, try high then low memory
  5776.                 82h last fit, try high then low memory
  5777.         01h set allocation strategy
  5778.         BL = new allocation strategy (see above)
  5779.         BH = 00h (DOS 5+)
  5780. Return: CF clear if successful
  5781.     CF set on error
  5782.         AX = error code (01h) (see AH=59h)
  5783. Notes:    the Set subfunction accepts any value in BL for DOS 3.x and 4.x;
  5784.       2 or greater means last fit
  5785.     the Get subfunction returns the last value set
  5786.     setting an allocation strategy involving high memory does not
  5787.       automatically link in the UMB memory chain; this must be done
  5788.       explicitly with AX=5803h in order to actually allocate high memory
  5789.     a program which changes the allocation strategy should restore it
  5790.       before terminating
  5791.     Toshiba MS-DOS 2.11 supports subfunctions 00h and 01h
  5792.     DR-DOS 3.41 reportedly reverses subfunctions 00h and 01h
  5793. SeeAlso: AH=48h,AH=49h,AH=4Ah,INT 2F/AX=4310h,INT 67/AH=3Fh
  5794. --------D-2158-------------------------------
  5795. INT 21 - DOS 5+ - GET OR SET UMB LINK STATE
  5796.     AH = 58h
  5797.     AL = subfunction
  5798.         02h get UMB link state
  5799.         Return: AL = 00h UMBs not part of DOS memory chain
  5800.                = 01h UMBs in DOS memory chain
  5801.         03h set UMB link state
  5802.         BX = 0000h remove UMBs from DOS memory chain
  5803.            = 0001h add UMBs to DOS memory chain
  5804. Return: CF clear if successful
  5805.     CF set on error
  5806.         AX = error code (01h) (see AH=59h)
  5807. Note:    a program which changes the UMB link state should restore it before
  5808.       terminating
  5809. --------v-2158CC-----------------------------
  5810. INT 21 - VIRUS - "1067"/"Headcrash" - INSTALLATION CHECK
  5811.     AX = 58CCh
  5812. Return: CF clear if resident
  5813. SeeAlso: AX=5252h,AX=58DDh,AX=6969h
  5814. --------v-2158DD-----------------------------
  5815. INT 21 - VIRUS - "1067"/"Headcrash" - GET ORIGINAL INT 21h VECTOR
  5816.     AX = 58DDh
  5817. Return: CX = code segment of virus
  5818.     ES:BX = old INT 21h vector
  5819. SeeAlso: AX=5252h,AX=58CCh,AX=6969h
  5820. --------D-2159--BX0000-----------------------
  5821. INT 21 - DOS 3+ - GET EXTENDED ERROR INFORMATION
  5822.     AH = 59h
  5823.     BX = 0000h
  5824. Return: AX = extended error code (see below)
  5825.     BH = error class (see below)
  5826.     BL = recommended action (see below)
  5827.     CH = error locus (see below)
  5828.     ES:DI may be pointer (see error code list below)
  5829.     CL, DX, SI, BP, and DS destroyed
  5830. Notes:    functions available under DOS 2.x map the true DOS 3+ error code into
  5831.       one supported under DOS 2.x
  5832.     you should call this function to retrieve the true error code when an
  5833.       FCB or DOS 2.x call returns an error
  5834.     under DR-DOS 5.0, this function does not use any of the DOS-internal
  5835.       stacks and may thus be called at any time
  5836. SeeAlso: AH=59h/BX=0001h,AX=5D0Ah,INT 2F/AX=122Dh
  5837.  
  5838. Values for extended error code:
  5839.  00h (0)   no error
  5840.  01h (1)   function number invalid
  5841.  02h (2)   file not found
  5842.  03h (3)   path not found
  5843.  04h (4)   too many open files (no handles available)
  5844.  05h (5)   access denied
  5845.  06h (6)   invalid handle
  5846.  07h (7)   memory control block destroyed
  5847.  08h (8)   insufficient memory
  5848.  09h (9)   memory block address invalid
  5849.  0Ah (10)  environment invalid (usually >32K in length)
  5850.  0Bh (11)  format invalid
  5851.  0Ch (12)  access code invalid
  5852.  0Dh (13)  data invalid
  5853.  0Eh (14)  reserved
  5854.  0Fh (15)  invalid drive
  5855.  10h (16)  attempted to remove current directory
  5856.  11h (17)  not same device
  5857.  12h (18)  no more files
  5858. ---DOS 3+---
  5859.  13h (19)  disk write-protected
  5860.  14h (20)  unknown unit
  5861.  15h (21)  drive not ready
  5862.  16h (22)  unknown command
  5863.  17h (23)  data error (CRC)
  5864.  18h (24)  bad request structure length
  5865.  19h (25)  seek error
  5866.  1Ah (26)  unknown media type (non-DOS disk)
  5867.  1Bh (27)  sector not found
  5868.  1Ch (28)  printer out of paper
  5869.  1Dh (29)  write fault
  5870.  1Eh (30)  read fault
  5871.  1Fh (31)  general failure
  5872.  20h (32)  sharing violation
  5873.  21h (33)  lock violation
  5874.  22h (34)  disk change invalid
  5875.     ES:DI -> ASCIZ volume label of required disk
  5876.  23h (35)  FCB unavailable
  5877.  24h (36)  sharing buffer overflow
  5878.  25h (37)  (DOS 4+) code page mismatch
  5879.  26h (38)  (DOS 4+) cannot complete file operation (out of input)
  5880.  27h (39)  (DOS 4+) insufficient disk space
  5881.  28h-31h   reserved
  5882.  32h (50)  network request not supported
  5883.  33h (51)  remote computer not listening
  5884.  34h (52)  duplicate name on network
  5885.  35h (53)  network name not found
  5886.  36h (54)  network busy
  5887.  37h (55)  network device no longer exists
  5888.  38h (56)  network BIOS command limit exceeded
  5889.  39h (57)  network adapter hardware error
  5890.  3Ah (58)  incorrect response from network
  5891.  3Bh (59)  unexpected network error
  5892.  3Ch (60)  incompatible remote adapter
  5893.  3Dh (61)  print queue full
  5894.  3Eh (62)  queue not full
  5895.  3Fh (63)  not enough space to print file
  5896.  40h (64)  network name was deleted
  5897.  41h (65)  network: Access denied
  5898.  42h (66)  network device type incorrect
  5899.  43h (67)  network name not found
  5900.  44h (68)  network name limit exceeded
  5901.  45h (69)  network BIOS session limit exceeded
  5902.  46h (70)  temporarily paused
  5903.  47h (71)  network request not accepted
  5904.  48h (72)  network print/disk redirection paused
  5905.  49h (73)  network software not installed
  5906.        (LANtastic) invalid network version
  5907.  4Ah (74)  unexpected adapter close
  5908.        (LANtastic) account expired
  5909.  4Bh (75)  (LANtastic) password expired
  5910.  4Ch (76)  (LANtastic) login attempt invalid at this time
  5911.  4Dh (77)  (LANtastic v3+) disk limit exceeded on network node
  5912.  4Eh (78)  (LANtastic v3+) not logged in to network node
  5913.  4Fh (79)  reserved
  5914.  50h (80)  file exists
  5915.  51h (81)  reserved
  5916.  52h (82)  cannot make directory
  5917.  53h (83)  fail on INT 24h
  5918.  54h (84)  (DOS 3.3+) too many redirections
  5919.  55h (85)  (DOS 3.3+) duplicate redirection
  5920.  56h (86)  (DOS 3.3+) invalid password
  5921.  57h (87)  (DOS 3.3+) invalid parameter
  5922.  58h (88)  (DOS 3.3+) network write fault
  5923.  59h (89)  (DOS 4+) function not supported on network
  5924.  5Ah (90)  (DOS 4+) required system component not installed
  5925.  64h (100) (MSCDEX) unknown error
  5926.  65h (101) (MSCDEX) not ready
  5927.  66h (102) (MSCDEX) EMS memory no longer valid
  5928.  67h (103) (MSCDEX) not High Sierra or ISO-9660 format
  5929.  68h (104) (MSCDEX) door open
  5930.  
  5931. Values for Error Class:
  5932.  01h    out of resource (storage space or I/O channels)
  5933.  02h    temporary situation (file or record lock)
  5934.  03h    authorization (denied access)
  5935.  04h    internal (system software bug)
  5936.  05h    hardware failure
  5937.  06h    system failure (configuration file missing or incorrect)
  5938.  07h    application program error
  5939.  08h    not found
  5940.  09h    bad format
  5941.  0Ah    locked
  5942.  0Bh    media error
  5943.  0Ch    already exists
  5944.  0Dh    unknown
  5945.  
  5946. Values for Suggested Action:
  5947.  01h    retry
  5948.  02h    delayed retry
  5949.  03h    prompt user to reenter input
  5950.  04h    abort after cleanup
  5951.  05h    immediate abort
  5952.  06h    ignore
  5953.  07h    retry after user intervention
  5954.  
  5955. Values for Error Locus:
  5956.  01h    unknown or not appropriate
  5957.  02h    block device (disk error)
  5958.  03h    network related
  5959.  04h    serial device (timeout)
  5960.  05h    memory related
  5961. --------D-2159--BX0001-----------------------
  5962. INT 21 - European MS-DOS 4.0 - GET HARD ERROR INFORMATION
  5963.     AH = 59h
  5964.     BX = 0001h
  5965. Return: ES:DI -> hard error information packet (see below) for most recent
  5966.         hard (critical) error
  5967. SeeAlso: AH=59h/BX=0000h,AH=95h,INT 24
  5968.  
  5969. Format of hard error information packet:
  5970. Offset    Size    Description
  5971.  00h    WORD    contents of AX at system entry
  5972.  02h    WORD    Process ID which encountered error
  5973.  04h    WORD    contents of AX at time of error
  5974.  06h    BYTE    error type
  5975.         00h physical I/O error
  5976.         01h disk change request
  5977.         02h file sharing violation
  5978.         03h FCB problem
  5979.         04h file locking violation
  5980.         05h bad FAT
  5981.         06h network detected error
  5982.  07h    BYTE    INT 24 error code
  5983.  08h    WORD    extended error code (see AH=59h/BX=0000h)
  5984.  0Ah    DWORD    pointer to associated device
  5985. --------D-215A-------------------------------
  5986. INT 21 - DOS 3+ - CREATE TEMPORARY FILE
  5987.     AH = 5Ah
  5988.     CX = file attribute (see AX=4301h)
  5989.     DS:DX -> ASCIZ path ending with a '\' + 13 zero bytes to receive the
  5990.         generated filename
  5991. Return: CF clear if successful
  5992.         AX = file handle opened for read/write in compatibility mode
  5993.         DS:DX pathname extended with generated name for temporary file
  5994.     CF set on error
  5995.         AX = error code (03h,04h,05h) (see AH=59h)
  5996. Desc:    creates a file with a unique name which must be explicitly deleted
  5997. BUGS:    COMPAQ DOS 3.31 hangs if the pathname is at XXXXh:0000h; it apparently
  5998.       wraps around to the end of the segment
  5999.     MS-DOS 5.00 revisions A and B and PC-DOS 5.00 revision A reportedly
  6000.       hang the system if the specified path is the root directory and the
  6001.       root directory is full (no free directory entries)
  6002. Note:    under the FlashTek X-32 DOS extender, the path pointer is in DS:EDX
  6003. SeeAlso: AH=3Ch,AH=5Bh
  6004. --------D-215B-------------------------------
  6005. INT 21 - DOS 3+ - CREATE NEW FILE
  6006.     AH = 5Bh
  6007.     CX = file attribute (see AX=4301h)
  6008.     DS:DX -> ASCIZ filename
  6009. Return: CF clear if successful
  6010.         AX = file handle opened for read/write in compatibility mode
  6011.     CF set on error
  6012.         AX = error code (03h,04h,05h,50h) (see AH=59h)
  6013. Notes:    unlike AH=3Ch, this function will fail if the specified file exists
  6014.       rather than truncating it; this permits its use in creating semaphore
  6015.       files because it is an atomic "test and set" operation
  6016.     under the FlashTek X-32 DOS extender, the filename pointer is in DS:EDX
  6017. SeeAlso: AH=3Ch,AH=5Ah
  6018. --------D-215C-------------------------------
  6019. INT 21 - DOS 3+ - "FLOCK" - RECORD LOCKING
  6020.     AH = 5Ch
  6021.     AL = subfunction
  6022.         00h lock region of file
  6023.         01h unlock region of file
  6024.     BX = file handle
  6025.     CX:DX = start offset of region within file
  6026.     SI:DI = length of region in bytes
  6027. Return: CF clear if successful
  6028.     CF set on error
  6029.         AX = error code (01h,06h,21h,24h) (see AH=59h)
  6030. Notes:    error returned unless SHARE or network installed
  6031.     an unlock call must specify the same region as some prior lock call
  6032.     locked regions become entirely inaccessible to other processes
  6033.     duplicate handles created with AH=45h or AH=46h inherit locks, but
  6034.       handles inherited by child processes (see AH=4Bh) do not
  6035.     under DR-DOS 3.41 and 5.0, if a process opens a file without the no-
  6036.       inherit flag and then starts a child, any locks set by the parent
  6037.       are ignored, and the child will only get an error if it tries to
  6038.       lock an area previously locked by the parent process
  6039. SeeAlso: AX=440Bh,AH=BCh,AH=BEh,INT 2F/AX=110Ah,INT 2F/AX=110Bh
  6040. --------D-215D00-----------------------------
  6041. INT 21 U - DOS 3.1+ internal - SERVER FUNCTION CALL
  6042.     AX = 5D00h
  6043.     DS:DX -> DOS parameter list (see below)
  6044.     DPL contains all register values for a call to INT 21h
  6045. Return: as appropriate for function being called
  6046. Notes:    does not check AH.  Out of range values will crash the system
  6047.     executes using specified computer ID and process ID
  6048.     sharing delay loops skipped
  6049.     a special sharing mode is enabled to handle FCBs opened across network
  6050.     wildcards are enabled for DELETE (AH=41h) and RENAME (AH=56h) under
  6051.       MS-DOS; under DR-DOS 3.41, wildcards corrupt the filesystem; and
  6052.       under DR-DOS 5.0-6.0, the call returns error code 03h due to improper
  6053.       support for the server function call (see below)
  6054.     an extra file attribute parameter is enabled for OPEN (AH=3Dh),
  6055.       DELETE (AH=41h), and RENAME (AH=56h)
  6056.     functions which take filenames require canonical names (as returned
  6057.       by AH=60h); this is apparently to prevent multi-hop file forwarding
  6058. BUGS:    the OS/2 2.0 DOS Boot Session incorrectly maps DOS drive letters,
  6059.       seemingly ignoring HPFS drives
  6060.     DR-DOS 5.0-6.0 merely recursively call INT 21 after loading the
  6061.       registers from the DPL, leading to problems for peer-to-peer
  6062.       networks
  6063. SeeAlso: AH=3Dh,AH=41h,AH=56h,AH=60h
  6064.  
  6065. Format of DOS parameter list:
  6066. Offset    Size    Description
  6067.  00h    WORD    AX
  6068.  02h    WORD    BX
  6069.  04h    WORD    CX
  6070.  06h    WORD    DX
  6071.  08h    WORD    SI
  6072.  0Ah    WORD    DI
  6073.  0Ch    WORD    DS
  6074.  0Eh    WORD    ES
  6075.  10h    WORD    reserved (0)
  6076.  12h    WORD    computer ID (0 = current system)
  6077.  14h    WORD    process ID (PSP segment on specified computer)
  6078. Note:    under Windows Enhanced mode, the computer ID is normally the virtual
  6079.       machine ID (see INT 2F/AX=1683h), though this can reportedly be
  6080.       changed by setting UniqueDOSPSP= in SYSTEM.INI
  6081. --------D-215D01-----------------------------
  6082. INT 21 U - DOS 3.1+ internal - COMMIT ALL FILES FOR SPECIFIED COMPUTER/PROCESS
  6083.     AX = 5D01h
  6084.     DS:DX -> DOS parameter list (see AX=5D00h), only computer ID and
  6085.         process ID fields used
  6086. Return: CF set on error
  6087.         AX = error code (see AH=59h)
  6088.     CF clear if successful
  6089. Notes:    flushes buffers and updates directory entries for each file which has
  6090.       been written to; if remote file, calls INT 2F/AX=1107h
  6091.     the computer ID and process ID are stored but ignored under DOS 3.3
  6092.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  6093. SeeAlso: AH=0Dh,AH=68h,INT 2F/AX=1107h
  6094. --------D-215D02-----------------------------
  6095. INT 21 U - DOS 3.1+ internal - SHARE.EXE - CLOSE FILE BY NAME
  6096.     AX = 5D02h
  6097.     DS:DX -> DOS parameter list (see AX=5D00h), only fields DX, DS,
  6098.         computer ID, and process ID used
  6099.     DPL's DS:DX -> ASCIZ name of file to close
  6100. Return: CF set on error
  6101.         AX = error code (see AH=59h)
  6102.     CF clear if successful
  6103. Notes:    error unless SHARE is loaded (calls [SysFileTable-28h]) (see AH=52h)
  6104.     name must be canonical fully-qualified, such as returned by AH=60h
  6105.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  6106. SeeAlso: AX=5D03h,AX=5D04h,AH=3Eh,AH=60h
  6107. --------D-215D03-----------------------------
  6108. INT 21 U - DOS 3.1+ internal - SHARE.EXE - CLOSE ALL FILES FOR GIVEN COMPUTER
  6109.     AX = 5D03h
  6110.     DS:DX -> DOS parameter list (see AX=5D00h), only computer ID used
  6111. Return: CF set on error
  6112.         AX = error code (see AH=59h)
  6113.     CF clear if successful
  6114. Notes:    error unless SHARE is loaded (calls [SysFileTable-30h]) (see AH=52h)
  6115.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  6116. SeeAlso: AX=5D02h,AX=5D04h
  6117. --------D-215D04-----------------------------
  6118. INT 21 U - DOS 3.1+ internal - SHARE.EXE - CLOSE ALL FILES FOR GIVEN PROCESS
  6119.     AX = 5D04h
  6120.     DS:DX -> DOS parameter list (see AX=5D00h), only computer ID and
  6121.         process ID fields used
  6122. Return: CF set on error
  6123.         AX = error code (see AH=59h)
  6124.     CF clear if successful
  6125. Notes:    error unless SHARE is loaded (calls [SysFileTable-2Ch]) (see AH=52h)
  6126.     not supported by DR-DOS 3.41 and 5.0; returns error code 01h
  6127. SeeAlso: AX=5D02h,AX=5D03h,INT 2F/AX=111Dh
  6128. --------D-215D05-----------------------------
  6129. INT 21 U - DOS 3.1+ internal - SHARE.EXE - GET OPEN FILE LIST ENTRY
  6130.     AX = 5D05h
  6131.     DS:DX -> DOS parameter list (see AX=5D00h)
  6132.     DPL's BX = index of sharing record (see AH=52h)
  6133.     DPL's CX = index of SFT in sharing record's SFT list
  6134. Return: CF clear if successful
  6135.         ES:DI -> ASCIZ filename
  6136.         BX = network machine number of SFT's owner
  6137.         CX = number of locks held by SFT's owner
  6138.     CF set if either index out of range
  6139.         AX = 0012h (no more files)
  6140. Notes:    error unless SHARE is loaded (calls [SysFileTable-18h]) (see AH=52h)
  6141.     names are always canonical fully-qualified, such as returned by AH=60h
  6142.     not supported by DR-DOS 3.41 and 5.0, but does not return an error
  6143. SeeAlso: AH=5Ch,AH=60h
  6144. --------D-215D06-----------------------------
  6145. INT 21 U - DOS 3.0+ internal - GET ADDRESS OF DOS SWAPPABLE DATA AREA
  6146.     AX = 5D06h
  6147. Return: CF set on error
  6148.        AX = error code (see AH=59h)
  6149.     CF clear if successful
  6150.         DS:SI -> nonreentrant data area (includes all three DOS stacks)
  6151.         (critical error flag is first byte)
  6152.         CX = size in bytes of area which must be swapped while in DOS
  6153.         DX = size in bytes of area which must always be swapped
  6154. Notes:    the Critical Error flag is used in conjunction with the InDOS flag
  6155.       (see AH=34h) to determine when it is safe to enter DOS from a TSR
  6156.     setting CritErr flag allows use of functions 50h/51h from INT 28h under
  6157.       DOS 2.x by forcing use of correct stack
  6158.     swapping the data area allows reentering DOS unless DOS is in a
  6159.       critical section delimited by INT 2A/AH=80h and INT 2A/AH=81h,82h
  6160.     under DOS 4.0, AX=5D0Bh should be used instead of this function
  6161.     SHARE and other DOS utilities consult the byte at offset 04h in the
  6162.       DOS data segment (see INT 2F/AX=1203h) to determine the SDA format
  6163.       in use: 00h = DOS 3.x, 01h = DOS 4.0-6.0, other = error.
  6164.     DR-DOS 3.41+ supports this function, but the SDA format beyond the
  6165.       first 18h bytes is completely different from MS-DOS
  6166. SeeAlso: AX=5D0Bh,INT 2A/AH=80h,INT 2A/AH=81h,INT 2A/AH=82h
  6167.  
  6168. Format of DOS 3.10-3.30 Swappable Data Area:
  6169. Offset    Size    Description
  6170.  -34    BYTE    (DOS 3.10+) printer echo flag (00h off, FFh active)
  6171.  -31    BYTE    (DOS 3.30) current switch character
  6172.  -28    BYTE    (DOS 3.30) incremented on each INT 21/AX=5E01h call
  6173.  -27 16 BYTEs    (DOS 3.30) machine name set by INT 21/AX=5E01h
  6174.  -11  5 WORDs    zero-terminated list of offsets which need to be patched to
  6175.         enable critical-section calls (see INT 2A/AH=80h)
  6176.  -1    BYTE    unused padding
  6177. ---start of actual SDA---
  6178.  00h    BYTE    critical error flag ("ErrorMode")
  6179.  01h    BYTE    InDOS flag (count of active INT 21 calls)
  6180.  02h    BYTE    drive on which current critical error occurred, or FFh
  6181.         (DR-DOS sets to drive number during INT 24, 00h otherwise)
  6182.  03h    BYTE    locus of last error
  6183.  04h    WORD    extended error code of last error
  6184.  06h    BYTE    suggested action for last error
  6185.  07h    BYTE    class of last error
  6186.  08h    DWORD    ES:DI pointer for last error
  6187.  0Ch    DWORD    current DTA
  6188.  10h    WORD    current PSP
  6189.  12h    WORD    stores SP across an INT 23
  6190.  14h    WORD    return code from last process termination (zerod after reading
  6191.         with AH=4Dh)
  6192.  16h    BYTE    current drive
  6193.  17h    BYTE    extended break flag
  6194. ---remainder need only be swapped if in DOS---
  6195.  18h    WORD    value of AX on call to INT 21
  6196.  1Ah    WORD    PSP segment for sharing/network
  6197.  1Ch    WORD    network machine number for sharing/network (0000h = us)
  6198.  1Eh    WORD    first usable memory block found when allocating memory
  6199.  20h    WORD    best usable memory block found when allocating memory
  6200.  22h    WORD    last usable memory block found when allocating memory
  6201.  24h    WORD    memory size in paragraphs (used only during initialization)
  6202.  26h    WORD    last entry checked during directory search
  6203.  28h    BYTE    flag: INT 24 returned Fail
  6204.  29h    BYTE    flags: allowable INT 24 actions (passed to INT 24 in AH)
  6205.  2Ah    BYTE    directory flag (00h directory, 01h file)
  6206.  2Bh    BYTE    flag: FFh if Ctrl-Break termination, 00h otherwise
  6207.  2Ch    BYTE    flag: allow embedded blanks in FCB
  6208.  2Dh    BYTE    padding (unused)
  6209.  2Eh    BYTE    day of month
  6210.  2Fh    BYTE    month
  6211.  30h    WORD    year - 1980
  6212.  32h    WORD    number of days since 1-1-1980
  6213.  34h    BYTE    day of week (0 = Sunday)
  6214.  35h    BYTE    flag: console swapped during read from device
  6215.  36h    BYTE    flag: safe to call INT 28 if nonzero
  6216.  37h    BYTE    flag: if nonzero, INT 24 Abort turned into INT 24 Fail
  6217.         (set only during process termination)
  6218.  38h 26 BYTEs    device driver request header (see INT 2F/AX=0802h)
  6219.  52h    DWORD    pointer to device driver entry point (used in calling driver)
  6220.  56h 22 BYTEs    device driver request header for I/O calls
  6221.  6Ch 14 BYTEs    device driver request header for disk status check
  6222.  7Ah    DWORD    pointer to device I/O buffer???
  6223.  7Eh    WORD    ???
  6224.  80h    WORD    ???
  6225.  82h    BYTE    type of PSP copy (00h=simple for INT 21/AH=26h, FFh=make child)
  6226.  83h    BYTE    padding (unused)
  6227.  84h  3 BYTEs    24-bit user number (see AH=30h)
  6228.  87h    BYTE    OEM number (see AH=30h)
  6229.  88h    WORD    offset to error code conversion table for INT 25/INT 26
  6230.  8Ah  6 BYTEs    CLOCK$ transfer record (see AH=52h)
  6231.  90h    BYTE    device I/O buffer for single-byte I/O functions
  6232.  91h    BYTE    padding??? (unused)
  6233.  92h 128 BYTEs    buffer for filename
  6234. 112h 128 BYTEs    buffer for filename
  6235. 192h 21 BYTEs    findfirst/findnext search data block (see AH=4Eh)
  6236. 1A7h 32 BYTEs    directory entry for found file (see AH=11h)
  6237. 1C7h 81 BYTEs    copy of current directory structure for drive being accessed
  6238. 218h 11 BYTEs    FCB-format filename for device name comparison
  6239. 223h    BYTE    terminating NUL for above filename
  6240. 224h 11 BYTEs    wildcard destination specification for rename (FCB format)
  6241. 22Fh    BYTE    terminating NUL for above spec
  6242. 230h    BYTE    ???
  6243. 231h    WORD    destination file/directory starting sector
  6244. 233h  5 BYTEs    ???
  6245. 238h    BYTE    extended FCB file attribute
  6246. 239h    BYTE    type of FCB (00h regular, FFh extended)
  6247. 23Ah    BYTE    directory search attributes
  6248. 23Bh    BYTE    file open/access mode
  6249. 23Ch    BYTE    file found/delete flag
  6250.         bit 0: file found
  6251.         bit 4: file deleted
  6252. 23Dh    BYTE    flag: device name found on rename, or file not found
  6253. 23Eh    BYTE    splice flag (file name and directory name together)
  6254. 23Fh    BYTE    flag indicating how DOS function was invoked
  6255.         (00h = direct INT 20/INT 21, FFh = server call AX=5D00h)
  6256. 240h    BYTE    sector position within cluster
  6257. 241h    BYTE    flag: translate sector/cluster (00h no, 01h yes)
  6258. 242h    BYTE    flag: 00h if read, 01h if write
  6259. 243h    BYTE    current working drive number
  6260. 244h    BYTE    cluster factor
  6261. 245h    BYTE    flag: cluster split mode
  6262. 246h    BYTE    line edit (AH=0Ah) insert mode flag (nonzero = on)
  6263. 247h    BYTE    canonicalized filename referred to existing file/dir if FFh
  6264. 248h    BYTE    volume ID flag
  6265. 249h    BYTE    type of process termination (00h-03h) (see AH=4Dh)
  6266. 24Ah    BYTE    file create flag (00h = no)
  6267. 24Bh    BYTE    value with which to replace first byte of deleted file's name
  6268.         (normally E5h, but 00h as described under INT 21/AH=13h)
  6269. 24Ch    DWORD    pointer to Drive Parameter Block for critical error invocation
  6270.         temp: used during process termination
  6271. 250h    DWORD    pointer to stack frame containing user registers on INT 21
  6272. 254h    WORD    stores SP across INT 24
  6273. 256h    DWORD    pointer to DOS Drive Parameter Block for ???
  6274. 25Ah    WORD    saving partial cluster number
  6275. 25Ch    WORD    temp: sector of work current cluster
  6276. 25Eh    WORD    high part of cluster number (only low byte referenced)
  6277. 260h    WORD    ??? temp
  6278. 262h    BYTE    Media ID byte returned by AH=1Bh,1Ch
  6279. 263h    BYTE    padding (unused)
  6280. 264h    DWORD    pointer to device header
  6281. 268h    DWORD    pointer to current SFT
  6282. 26Ch    DWORD    pointer to current directory structure for drive being accessed
  6283. 270h    DWORD    pointer to caller's FCB
  6284. 274h    WORD    number of SFT to which file being opened will refer
  6285. 276h    WORD    temporary storage for file handle
  6286. 278h    DWORD    pointer to a JFT entry in process handle table (see AH=26h)
  6287. 27Ch    WORD    offset in DOS DS of first filename argument
  6288. 27Eh    WORD    offset in DOS DS of second filename argument
  6289. 280h    WORD    offset of last component in pathname or FFFFh
  6290. 282h    WORD    offset of transfer address to add
  6291. 284h    WORD    last relative cluster within file being accessed
  6292. 286h    WORD    temp: absolute cluster number being accessed
  6293. 288h    WORD    directory sector number
  6294. 28Ah    WORD    ??? current cluster number
  6295. 28Ch    WORD    ??? current offset in file DIV bytes per sector
  6296. 28Eh    WORD    current sector number
  6297. 290h    WORD    current byte offset within sector
  6298. 292h    DWORD    current offset in file
  6299. 296h    DWORD    temp: file byte count
  6300. 29Ah    WORD    temp: file byte count
  6301. 29Ch    WORD    free file cluster entry
  6302. 29Eh    WORD    last file cluster entry
  6303. 2A0h    WORD    next file cluster number
  6304. 2A2h    DWORD    number of bytes appended to file
  6305. 2A6h    DWORD    pointer to current work disk buffer
  6306. 2AAh    DWORD    pointer to working SFT
  6307. 2AEh    WORD    used by INT 21 dispatcher to store caller's BX
  6308. 2B0h    WORD    used by INT 21 dispatcher to store caller's DS
  6309. 2B2h    WORD    temporary storage while saving/restoring caller's registers
  6310. 2B4h    DWORD    pointer to prev call frame (offset 250h) if INT 21 reentered
  6311.         also switched to for duration of INT 24
  6312. 2B8h 21 BYTEs    FindFirst search data for source file(s) of a rename operation
  6313.         (see AH=4Eh)
  6314. 2CDh 32 BYTEs    directory entry for file being renamed (see AH=11h for format)
  6315. 2EDh 331 BYTEs    critical error stack
  6316.    403h     35 BYTEs scratch SFT
  6317. 438h 384 BYTEs    disk stack (functions greater than 0Ch, INT 25,INT 26)
  6318. 5B8h 384 BYTEs    character I/O stack (functions 01h through 0Ch)
  6319. ---DOS 3.2,3.3x only---
  6320. 738h    BYTE    device driver lookahead flag (usually printer) (see AH=64h)
  6321. 739h    BYTE    volume change flag
  6322. 73Ah    BYTE    flag: virtual open
  6323. 73Bh    BYTE    ???
  6324. --------D-215D07-----------------------------
  6325. INT 21 U - DOS 3.1+ network - GET REDIRECTED PRINTER MODE
  6326.     AX = 5D07h
  6327. Return: DL = mode
  6328.         00h redirected output is combined
  6329.         01h redirected output in separate print jobs
  6330. SeeAlso: AX=5D08h,AX=5D09h,INT 2F/AX=1125h
  6331. --------D-215D08-----------------------------
  6332. INT 21 U - DOS 3.1+ network - SET REDIRECTED PRINTER MODE
  6333.     AX = 5D08h
  6334.     DL = mode
  6335.         00h redirected output is combined
  6336.         01h redirected output placed in separate jobs, start new print job
  6337.         now
  6338. SeeAlso: AX=5D07h,AX=5D09h,INT 2F/AX=1125h
  6339. --------D-215D09-----------------------------
  6340. INT 21 U - DOS 3.1+ network - FLUSH REDIRECTED PRINTER OUTPUT
  6341.     AX = 5D09h
  6342. Notes:    forces redirected printer output to be printed, and starts a new print
  6343.       job
  6344.     this function is also supported by 10Net, which calls it Terminate All
  6345.       Spool Jobs, and does not flush if in "combine" mode
  6346. SeeAlso: AX=5D07h,AX=5D08h,INT 2F/AX=1125h
  6347. --------D-215D0A-----------------------------
  6348. INT 21 - DOS 3.1+ - SET EXTENDED ERROR INFORMATION
  6349.     AX = 5D0Ah
  6350.     DS:DX -> 11-word DOS parameter list (see AX=5D00h)
  6351. Return: nothing.  next call to AH=59h will return values from fields AX,BX,CX,
  6352.       DX,DI, and ES in corresponding registers
  6353. Notes:    documented for DOS 5+, but undocumented in earlier versions
  6354.     the MS-DOS Programmer's Reference incorrectly states that this call was
  6355.       introduced in DOS 4, and fails to mention that the ERROR structure
  6356.       passed to this function is a DOS parameter list.
  6357. BUG:    DR-DOS 3.41 and 5.0 read the value for ES from the DS field of the DPL;
  6358.       fortunately, MS-DOS ignores the DS field, allowing a generic routine
  6359.       which sets both DS and ES fields to the same value
  6360. SeeAlso: AH=59h
  6361. --------D-215D0B-----------------------------
  6362. INT 21 OU - DOS 4.x only internal - GET DOS SWAPPABLE DATA AREAS
  6363.     AX = 5D0Bh
  6364. Return: CF set on error
  6365.         AX = error code (see AH=59h)
  6366.     CF clear if successful
  6367.         DS:SI -> swappable data area list (see below)
  6368. Notes:    copying and restoring the swappable data areas allows DOS to be
  6369.       reentered unless it is in a critical section delimited by calls to
  6370.       INT 2A/AH=80h and INT 2A/AH=81h,82h
  6371.     SHARE and other DOS utilities consult the byte at offset 04h in the
  6372.       DOS data segment (see INT 2F/AX=1203h) to determine the SDA format
  6373.       in use: 00h = DOS 3.x, 01h = DOS 4.0-6.0, other = error.
  6374.     DOS 5+ use the SDA format listed below, but revert back to the DOS 3.x
  6375.       call for finding the SDA (see AX=5D06h)
  6376. SeeAlso: AX=5D06h,INT 2A/AH=80h,INT 2A/AH=81h,INT 2A/AH=82h,INT 2F/AX=1203h
  6377.  
  6378. Format of DOS 4.x swappable data area list:
  6379. Offset    Size    Description
  6380.  00h    WORD    count of data areas
  6381.  02h  N BYTEs    "count" copies of data area record
  6382.         Offset    Size    Description
  6383.          00h    DWORD    address
  6384.          04h    WORD    length and type
  6385.                 bit 15 set if swap always, clear if swap in DOS
  6386.                 bits 14-0: length in bytes
  6387.  
  6388. Format of DOS 4.0-6.0 swappable data area:
  6389. Offset    Size    Description
  6390.  -34    BYTE    printer echo flag (00h off, FFh active)
  6391.  -31    BYTE    current switch character (ignored by DOS 5+)
  6392.  -28    BYTE    incremented on each INT 21/AX=5E01h call
  6393.  -27 16 BYTEs    machine name set by INT 21/AX=5E01h
  6394.  -11  5 WORDs    zero-terminated list of offsets which need to be patched to
  6395.         enable critical-section calls (see INT 2A/AH=80h)
  6396.         (all offsets are 0D0Ch, but this list is still present for
  6397.         DOS 3.x compatibility)
  6398.  -1    BYTE    unused padding
  6399. ---start of actual SDA---
  6400.  00h    BYTE    critical error flag ("ErrorMode")
  6401.  01h    BYTE    InDOS flag (count of active INT 21 calls)
  6402.  02h    BYTE    drive on which current critical error occurred or FFh
  6403.  03h    BYTE    locus of last error
  6404.  04h    WORD    extended error code of last error
  6405.  06h    BYTE    suggested action for last error
  6406.  07h    BYTE    class of last error
  6407.  08h    DWORD    ES:DI pointer for last error
  6408.  0Ch    DWORD    current DTA
  6409.  10h    WORD    current PSP
  6410.  12h    WORD    stores SP across an INT 23
  6411.  14h    WORD    return code from last process termination (zerod after reading
  6412.         with AH=4Dh)
  6413.  16h    BYTE    current drive
  6414.  17h    BYTE    extended break flag
  6415.  18h    BYTE    flag: code page switching
  6416.  19h    BYTE    flag: copy of previous byte in case of INT 24 Abort
  6417. ---remainder need only be swapped if in DOS---
  6418.  1Ah    WORD    value of AX on call to INT 21
  6419.  1Ch    WORD    PSP segment for sharing/network
  6420.  1Eh    WORD    network machine number for sharing/network (0000h = us)
  6421.  20h    WORD    first usable memory block found when allocating memory
  6422.  22h    WORD    best usable memory block found when allocating memory
  6423.  24h    WORD    last usable memory block found when allocating memory
  6424.  26h    WORD    memory size in paragraphs (used only during initialization)
  6425.  28h    WORD    last entry checked during directory search
  6426.  2Ah    BYTE    flag: nonzero if INT 24 Fail
  6427.  2Bh    BYTE    flags: allowable INT 24 responses (passed to INT 24 in AH)
  6428.  2Ch    BYTE    flag: do not set directory if nonzero
  6429.  2Dh    BYTE    flag: program aborted by ^C
  6430.  2Eh    BYTE    flag: allow embedded blanks in FCB
  6431.  2Fh    BYTE    padding (unused)
  6432.  30h    BYTE    day of month
  6433.  31h    BYTE    month
  6434.  32h    WORD    year - 1980
  6435.  34h    WORD    number of days since 1-1-1980
  6436.  36h    BYTE    day of week (0 = Sunday)
  6437.  37h    BYTE    flag: console swapped during read from device
  6438.  38h    BYTE    flag: safe to call INT 28 if nonzero
  6439.  39h    BYTE    flag: abort currently in progress, turn INT 24 Abort into Fail
  6440.  3Ah 30 BYTEs    device driver request header (see INT 2F/AX=0802h) for
  6441.         device calls
  6442.  58h    DWORD    pointer to device driver entry point (used in calling driver)
  6443.  5Ch 22 BYTEs    device driver request header for I/O calls
  6444.  72h 14 BYTEs    device driver request header for disk status check
  6445.  80h    DWORD    pointer to device I/O buffer
  6446.  84h    WORD    ???
  6447.  86h    WORD    ??? (0)
  6448.  88h    BYTE    type of PSP copy (00h=simple for INT 21/AH=26h, FFh=make child)
  6449.  89h    DWORD    start offset of file region to lock/unlock
  6450.  8Dh    DWORD    length of file region to lock/unlock
  6451.  91h    BYTE    padding (unused)
  6452.  92h  3 BYTEs    24-bit user number (see AH=30h)
  6453.  95h    BYTE    OEM number (see AH=30h)
  6454.  96h  6 BYTEs    CLOCK$ transfer record (see AH=52h)
  6455.  9Ch    BYTE    device I/O buffer for single-byte I/O functions???
  6456.  9Dh    BYTE    padding???
  6457.  9Eh 128 BYTEs    buffer for filename
  6458. 11Eh 128 BYTEs    buffer for filename
  6459. 19Eh 21 BYTEs    findfirst/findnext search data block (see AH=4Eh)
  6460. 1B3h 32 BYTEs    directory entry for found file (see AH=11h)
  6461. 1D3h 88 BYTEs    copy of current directory structure for drive being accessed
  6462. 22Bh 11 BYTEs    FCB-format filename for device name comparison
  6463. 236h    BYTE    terminating NUL for above filename
  6464. 237h 11 BYTEs    wildcard destination specification for rename (FCB format)
  6465. 242h    BYTE    terminating NUL for above spec
  6466. 243h    BYTE    ???
  6467. 244h    WORD    ???
  6468. 246h  5 BYTEs    ???
  6469. 24Bh    BYTE    extended FCB file attributes
  6470. 24Ch    BYTE    type of FCB (00h regular, FFh extended)
  6471. 24Dh    BYTE    directory search attributes
  6472. 24Eh    BYTE    file open/access mode
  6473. 24Fh    BYTE    ??? flag bits
  6474. 250h    BYTE    flag: device name found on rename, or file not found
  6475. 251h    BYTE    splice flag??? (file name and directory name together)
  6476. 252h    BYTE    flag indicating how DOS function was invoked
  6477.         (00h = direct INT 20/INT 21, FFh = server call AX=5D00h)
  6478. 253h    BYTE    ???
  6479. 254h    BYTE    ???
  6480. 255h    BYTE    ???
  6481. 256h    BYTE    ???
  6482. 257h    BYTE    ???
  6483. 258h    BYTE    ???
  6484. 259h    BYTE    ???
  6485. 25Ah    BYTE    canonicalized filename referred to existing file/dir if FFh
  6486. 25Bh    BYTE    ???
  6487. 25Ch    BYTE    type of process termination (00h-03h)
  6488. 25Dh    BYTE    ???
  6489. 25Eh    BYTE    ???
  6490. 25Fh    BYTE    ???
  6491. 260h    DWORD    pointer to Drive Parameter Block for critical error invocation
  6492. 264h    DWORD    pointer to stack frame containing user registers on INT 21
  6493. 268h    WORD    stores SP???
  6494. 26Ah    DWORD    pointer to DOS Drive Parameter Block for ???
  6495. 26Eh    WORD    segment of disk buffer
  6496. 270h    WORD    ???
  6497. 272h    WORD    ???
  6498. 274h    WORD    ???
  6499. 276h    WORD    ???
  6500. 278h    BYTE    Media ID byte returned by AH=1Bh,1Ch
  6501. 279h    BYTE    ??? (doesn't seem to be referenced)
  6502. 27Ah    DWORD    pointer to ???
  6503. 27Eh    DWORD    pointer to current SFT
  6504. 282h    DWORD    pointer to current directory structure for drive being accessed
  6505. 286h    DWORD    pointer to caller's FCB
  6506. 28Ah    WORD    SFT index to which file being opened will refer
  6507. 28Ch    WORD    temporary storage for file handle
  6508. 28Eh    DWORD    pointer to a JFT entry in process handle table (see AH=26h)
  6509. 292h    WORD    offset in DOS DS of first filename argument
  6510. 294h    WORD    offset in DOS DS of second filename argument
  6511. 296h    WORD    ???
  6512. 298h    WORD    ???
  6513. 29Ah    WORD    ???
  6514. 29Ch    WORD    ???
  6515. 29Eh    WORD    ???
  6516. 2A0h    WORD    ???
  6517. 2A2h    WORD    ??? directory cluster number???
  6518. 2A4h    DWORD    ???
  6519. 2A8h    DWORD    ???
  6520. 2ACh    WORD    ???
  6521. 2AEh    DWORD    offset in file???
  6522. 2B2h    WORD    ???
  6523. 2B4h    WORD    bytes in partial sector
  6524. 2B6h    WORD    number of sectors
  6525. 2B8h    WORD    ???
  6526. 2BAh    WORD    ???
  6527. 2BCh    WORD    ???
  6528. 2BEh    DWORD    number of bytes appended to file
  6529. 2C2h    DWORD    pointer to ??? disk buffer
  6530. 2C6h    DWORD    pointer to ??? SFT
  6531. 2CAh    WORD    used by INT 21 dispatcher to store caller's BX
  6532. 2CCh    WORD    used by INT 21 dispatcher to store caller's DS
  6533. 2CEh    WORD    temporary storage while saving/restoring caller's registers
  6534. 2D0h    DWORD    pointer to prev call frame (offset 264h) if INT 21 reentered
  6535.         also switched to for duration of INT 24
  6536. 2D4h    WORD    open mode/action for INT 21/AX=6C00h
  6537. 2D6h    BYTE    ??? (set to 00h by INT 21h dispatcher, 02h when a read is
  6538.         performed, and 01h or 03h by INT 21/AX=6C00h)
  6539. 2D7h    WORD    ??? apparently unused
  6540. 2D9h    DWORD    stored ES:DI for AX=6C00h
  6541. 2DDh    WORD    extended file open action code (see AX=6C00h)
  6542. 2DFh    WORD    extended file open attributes (see AX=6C00h)
  6543. 2E1h    WORD    extended file open file mode (see AX=6C00h)
  6544. 2E3h    DWORD    pointer to filename to open (see AX=6C00h)
  6545. 2E7h    WORD    ???
  6546. 2E9h    WORD    ???
  6547. 2EBh    BYTE    ???
  6548. 2ECh    WORD    stores DS during call to [List-of-Lists + 37h]
  6549. 2EEh    WORD    ???
  6550. 2F0h    BYTE    ???
  6551. 2F1h    WORD    ??? bit flags
  6552. 2F3h    DWORD    pointer to user-supplied filename
  6553. 2F7h    DWORD    pointer to ???
  6554. 2FBh    WORD    stores SS during call to [List-of-Lists + 37h]
  6555. 2FDh    WORD    stores SP during call to [List-of-Lists + 37h]
  6556. 2FFh    BYTE    flag, nonzero if stack switched in calling [List-of-Lists+37h]
  6557. 300h 21 BYTEs    FindFirst search data for source file(s) of a rename operation
  6558.         (see AH=4Eh)
  6559. 315h 32 BYTEs    directory entry for file being renamed (see AH=11h)
  6560. 335h 331 BYTEs    critical error stack
  6561. 480h 384 BYTEs    disk stack (functions greater than 0Ch, INT 25,INT 26)
  6562. 600h 384 BYTEs    character I/O stack (functions 01h through 0Ch)
  6563. 780h    BYTE    device driver lookahead flag (usually printer) (see AH=64h)
  6564. 781h    BYTE    volume change flag
  6565. 782h    BYTE    flag: virtual open
  6566. 783h    BYTE    ???
  6567. 784h    WORD    ???
  6568. 786h    WORD    ???
  6569. 788h    WORD    ???
  6570. 78Ah    WORD    ???
  6571. --------D-215E00-----------------------------
  6572. INT 21 - DOS 3.1+ network - GET MACHINE NAME
  6573.     AX = 5E00h
  6574.     DS:DX -> 16-byte buffer for ASCIZ machine name
  6575. Return: CF clear if successful
  6576.         CH = validity
  6577.         00h name invalid
  6578.         nonzero valid
  6579.             CL = NetBIOS number for machine name
  6580.             DS:DX buffer filled with blank-paded name
  6581.     CF set on error
  6582.         AX = error code (01h) (see AH=59h)
  6583. Note:    supported by OS/2 v1.3+ compatibility box, PC-NFS
  6584. SeeAlso: AX=5E01h
  6585. --------N-215E00-----------------------------
  6586. INT 21 - 10NET v5.0 - GET MACHINE NAME
  6587.     AX = 5E00h
  6588. Return: CL = redirector's NetBIOS name number
  6589.     ES:DI -> network node ID
  6590. SeeAlso: AX=5E01h"10NET"
  6591. --------D-215E01CH00-------------------------
  6592. INT 21 - DOS 3.1+ network - SET MACHINE NAME
  6593.     AX = 5E01h
  6594.     CH = 00h undefine name (make it invalid)
  6595.        <> 0     define name
  6596.     CL = name number
  6597.     DS:DX -> 15-character blank-padded ASCIZ name
  6598. SeeAlso: AX=5E00h
  6599. --------N-215E01-----------------------------
  6600. INT 21 - 10NET v5.0 - GET LOCAL 10NET CONFIGURATION TABLE
  6601.     AX = 5E01h
  6602.     CX = length of buffer
  6603.     DS:DX -> buffer for 10Net configuration table
  6604. SeeAlso: AX=5E00h"10NET",INT 6F/AH=02h,INT 6F/AH=03h
  6605.  
  6606. Format of 10Net Configuration Table:
  6607. Offset    Size    Description
  6608.  00h  8 BYTEs    user name
  6609.  08h 15 BYTEs    node ID
  6610.  17h  3 BYTEs    unique portion of Ethernet address
  6611.  1Ah    BYTE    Who group number
  6612.  1Bh    WORD    services mask (see below)
  6613.  1Dh    DWORD    serial number
  6614.  21h    BYTE    maximum concurrent users with same serial number allowed on net
  6615.  22h    BYTE    chat mask (see below)
  6616.  23h    BYTE    internal system bits (see below)
  6617.  24h  9 BYTEs    version number in format MM.mm.xxx
  6618.  2Dh    BYTE    flag: 01h if machine is a PS/2
  6619.  2Eh    BYTE    flag: 03h if 80386
  6620.  2Fh    BYTE    spool termination mode: 01h concatenate, 02h truncate
  6621.         (see AX=5D09h)
  6622.  30h    WORD    autospool timeout in clock ticks
  6623.  32h    WORD    monitor timeout in clock ticks
  6624.  34h    WORD    unused
  6625.  36h    WORD    chat timeout in clock ticks
  6626.  38h    WORD    netBIOS session timeout in half-seconds
  6627.  3Ah    WORD    datagram send timeout in seconds
  6628.  3Ch    WORD    keyboard value for initiating chat mode
  6629.  3Eh    WORD    Who timeout in clock ticks
  6630.  40h    BYTE    flag: 01h if server should process rom NetBIOS Post return
  6631.  41h    BYTE    flag: 01h if FCBs should be recycled
  6632.  42h  3 BYTEs    signature "DBG"
  6633.  45h    BYTE    last interrupt (21h or 6Fh)
  6634.  46h    BYTE    last INT 21 AH value
  6635.  47h    BYTE    last INT 6F AH value
  6636.  48h    WORD    last item posted
  6637.  4Ah    WORD    last item free-posted
  6638.  4Ch    WORD    last item handled by server
  6639.  4Eh    WORD    last redirector send NCB
  6640.  50h    WORD    last redirector receive NCB
  6641.  52h  4 BYTEs    signature "TABL"
  6642.  56h    WORD    offset of datagram buffer table header
  6643.  58h    WORD    offset of chat buffer table header
  6644.  5Ah    WORD    offset of Raw buffer table header
  6645.  5Ch    WORD    offset of Workstation buffer table header
  6646.  5Eh    WORD    offset of server receive-any table header
  6647.  60h    WORD    offset of Tiny buffer table header
  6648.  62h    WORD    offset of zero-length buffer table (NCBs)
  6649.  64h    WORD    offset of Rdr (Redirector Mount) table header
  6650.  66h    WORD    offset of Ntab (Redirector Session) table header
  6651.  68h    WORD    offset of FCB table header
  6652.  6Ah    WORD    offset of user file handle table header
  6653.  6Ch    WORD    offset of workstation printer RDR extension table header
  6654.  6Eh    WORD    offset of server shared device table header
  6655.  70h    WORD    offset of server connection table header
  6656.  72h    WORD    offset of server login table header
  6657.  74h    WORD    offset of server file table header
  6658.  76h    WORD    offset of server shared file table header
  6659.  78h    WORD    offset of server record lock table header
  6660.  7Ah    WORD    offset of remote printer claim table header
  6661.  7Ch    WORD    offset of remote printer device table header
  6662.  7Eh    WORD    offset of print server mount table header
  6663.  80h    WORD    offset of print server sessions table header
  6664.  82h    WORD    offset of print server print job structure table header
  6665.  84h    WORD    offset of print server pooled device table header
  6666.  86h    WORD    size of workstation buffer
  6667.  88h    WORD    size of server receive-any buffer
  6668.  8Ah    WORD    size of server raw I/O buffer
  6669.  8Ch  6 BYTEs    reserved
  6670.  92h    DWORD    pointer to profile pathname
  6671.  96h    BYTE    datagram retry count
  6672.  97h    BYTE    NetBIOS LAN adapter number
  6673.  98h  6 BYTEs    physical Ethernet address
  6674.  9Eh    BYTE    NetBIOS server name number
  6675.  9Fh    BYTE    NetBIOS redirector name number
  6676.  A0h    BYTE    10Net interrupt number
  6677.  A1h    BYTE    flag: chat is loaded
  6678.  A2h    BYTE    flag: INT 6F APIs permanently loaded
  6679.  A3h    BYTE    flag: file security present
  6680.  A4h    WORD    reserved
  6681.  A6h    BYTE    fixed mount bitmask for drives A:-H:
  6682.  A7h    BYTE    reserved
  6683.  A8h    WORD    10Net system flags (see below)
  6684.  AAh    BYTE    monitor flags (see below)
  6685.  ABh  5 BYTEs    reserved
  6686.  B0h    WORD    offset of monitor timer block
  6687.  B2h    WORD    offset of server timer block
  6688.  B4h    WORD    offset of chat timer block
  6689.  B6h    WORD    timer chain
  6690.  B8h  4 BYTEs    signature "TALS"
  6691.  BCh    WORD    number of 10Net sends
  6692.  BEh    WORD    number of 10Net receives
  6693.  C0h    WORD    number of no-buffer conditions
  6694.  C2h    WORD    number of dropped posted messages
  6695.  C4h    WORD    number of server NCB errors
  6696.  C6h    WORD    number of redirector NCB errors
  6697.  C8h    WORD    number of datagram send/receive errors
  6698.  CAh    WORD    number of dropped Whos
  6699.  CCh    WORD    number of dropped submits
  6700.  CEh    WORD    number of session aborts
  6701.  D0h    BYTE    number of NetBIOS interface-busy errors
  6702.  D1h    BYTE    last NetBIOS bad post command
  6703.  D2h    BYTE    last NetBIOS bad redirector command
  6704.  D3h    BYTE    do send datagram send/receive error command
  6705.  D4h    DWORD    -> DOS system parameter table
  6706.  D8h    WORD    number of DOS physical drives
  6707.  DAh    WORD    offset of DOS PSP field in DOS data segment
  6708.  DCh    WORD    offset of in-DOS flag in DOS data segment
  6709.  DEh    WORD    DOS data segment
  6710.  E0h    WORD    offset of DOS SFT in DOS data segment
  6711.  E2h    WORD    offset of number-of-physical-units field in DOS data segment
  6712.  E4h    WORD    10Net code segment
  6713.  E6h    WORD    10Net data segment
  6714.  E8h    WORD    10Net common server segment
  6715.  EAh    WORD    10Net file server segment
  6716.  ECh    WORD    10Net print server segment
  6717.  EEh    WORD    10Net remote printer segment
  6718. Note:    documentation lists field at offset D0h as a WORD, but all following
  6719.       offsets are as though it were a BYTE; if it is indeed a WORD, all
  6720.       offsets after D0h must be increased by one byte
  6721.  
  6722. Format of 10Net Table Header:
  6723. Offset    Size    Description
  6724.  -16  4 BYTEs    table identifier
  6725.  -12    WORD    peak number of tables allocated
  6726.  -10    WORD    number of tables currently in use
  6727.  -8    WORD    total number of tables
  6728.  -6    WORD    size of each table
  6729.  -4    WORD    offset of first allocated table
  6730.  -2    WORD    offset of first free table
  6731.  
  6732. Bitfields for services mask:
  6733.  bit 0    workstation
  6734.  bit 1    file server
  6735.  bit 2    print queue server
  6736.  bit 3    de-spool server
  6737.  
  6738. Bitfields for chat mask:
  6739.  bit 0    chat permitted
  6740.  bit 1    bell enabled
  6741.  bit 2    chat keyboard initiated
  6742.  bit 3    in INT 16 handler
  6743.  bit 4    in Get Input
  6744.  bit 5    display has timed out
  6745.  bit 6    chat is idle
  6746.  
  6747. Bitfields for internal system bits:
  6748.  bit 0    submit permitted
  6749.  bit 1    submit initiated
  6750.  bit 2    submit executing
  6751.  bit 3    internal client call/chat/spool/autospool
  6752.  bit 4    in spool termination
  6753.  bit 5    print permitted
  6754.  bit 6    waiting for keyboard input
  6755.  
  6756. Bitfields for 10Net System Flags:
  6757.  bit 0    in NetBIOS
  6758.  bit 1    processing INT 28
  6759.  bit 2    is server
  6760.  bit 3    in net user-DOS function
  6761.  bit 4    in DOS user-DOS function
  6762.  bit 5    in net for user non-DOS function
  6763.  bit 6    in server DOS function
  6764.  bit 7    in server non-DOS function
  6765.  bit 8    in terminate
  6766.  bit 10    in user on server request
  6767.  bit 13    in DOS for user on server
  6768.  bit 14    disable critical error handler
  6769.  
  6770. Bitfields for Monitor Flags:
  6771.  bit 0    waiting for monitor response
  6772.  bit 4    in monitor get-input routine
  6773.  bit 5    monitor display timeout
  6774.  bit 6    sensing for escape key
  6775. --------D-215E02-----------------------------
  6776. INT 21 - DOS 3.1+ network - SET NETWORK PRINTER SETUP STRING
  6777.     AX = 5E02h
  6778.     BX = redirection list index (see AX=5F02h)
  6779.     CX = length of setup string
  6780.     DS:SI -> setup string
  6781. Return: CF clear if successful
  6782.     CF set on error
  6783.         AX = error code (01h) (see AH=59h)
  6784. Note:    also supported by 10NET v5.0
  6785. SeeAlso: AX=5E03h,INT 2F/AX=111Fh
  6786. --------D-215E03-----------------------------
  6787. INT 21 - DOS 3.1+ network - GET NETWORK PRINTER SETUP STRING
  6788.     AX = 5E03h
  6789.     BX = redirection list index (see AX=5F02h)
  6790.     ES:DI -> 64-byte buffer for setup string
  6791. Return: CF clear if successful
  6792.         CX = length of setup string
  6793.         ES:DI buffer filled
  6794.     CF set on error
  6795.         AX = error code (01h) (see AH=59h)
  6796. Note:    also supported by 10NET v5.0, but 10NET is documented as using DS:SI
  6797.       instead of ES:DI
  6798. SeeAlso: AX=5E02h,INT 2F/AX=111Fh
  6799. --------D-215E04-----------------------------
  6800. INT 21 - DOS 3.1+ network - SET PRINTER MODE
  6801.     AX = 5E04h
  6802.     BX = redirection list index (see AX=5F02h)
  6803.     DX = mode
  6804.         bit 0: set if binary, clear if text (tabs expanded to blanks)
  6805. Return: CF set on error
  6806.         AX = error code (see AH=59h)
  6807.     CF clear if successful
  6808. Note:    calls INT 2F/AX=111Fh with 5E04h on stack
  6809. SeeAlso: AX=5E05h"DOS",INT 2F/AX=111Fh
  6810. --------N-215E04-----------------------------
  6811. INT 21 - 10NET v5.0 - INITIATE PRINT JOB
  6812.     AX = 5E04h
  6813.     BX = zero-based redirection list index (see AX=5F02h)
  6814.     DS:DX -> extended workstation printer setup structure (see below)
  6815. Return: CF clear if successful
  6816.     CF set on error
  6817.         AX = error code (see AH=59h)
  6818. SeeAlso: AX=5E05h"10NET",AX=5E06h"10NET"
  6819.  
  6820. Format of extended workstation printer setup structure:
  6821. Offset    Size    Description
  6822.  00h    BYTE    notification flags (see below)
  6823.  01h    BYTE    job control mask (see below)
  6824.  02h    WORD    days to retain file
  6825.  04h    WORD    test print length
  6826.  06h    BYTE    number of copies to print
  6827.  07h    BYTE    compression algorithm
  6828.  08h    BYTE    tab width (00h = don't expand)
  6829.  09h    BYTE    initiation type (00h normal, 01h non-spooled)
  6830.  0Ah 38 BYTEs    job start operation notification instructions
  6831.  30h 32 BYTEs    comment for job
  6832.  50h 64 BYTEs    output filename or non-spooled file
  6833.  
  6834. Bitfields for notification flags:
  6835.  bit 0    user at print start
  6836.  bit 1    operator at start, with reply
  6837.  bit 2    user at print completion
  6838.  bit 3    operator at completion, with reply
  6839.  bit 4    user on queue switch
  6840.  bit 5    operator on queue switch, with reply
  6841.  bit 6    user on print error
  6842.  
  6843. Bitfields for job control mask:
  6844.  bit 0    print banner page
  6845.  bit 1    eject page at end of job
  6846.  bit 2    mark as "held" (queue but don't print)
  6847.  bit 3    rush job (queue at top)
  6848.  bit 4    overwrite file with zeros before deletion
  6849.  bit 5    hyperspool if possible
  6850. --------D-215E05-----------------------------
  6851. INT 21 - DOS 3.1+ network - GET PRINTER MODE
  6852.     AX = 5E05h
  6853.     BX = redirection list index (see AX=5F02h)
  6854. Return: CF set on error
  6855.         AX = error code (see AH=59h)
  6856.     CF clear if successful
  6857.         DX = printer mode (see AX=5E04h)
  6858. Note:    calls INT 2F/AX=111Fh with 5E05h on stack
  6859. SeeAlso: AX=5E04h"DOS",INT 2F/AX=111Fh
  6860. --------N-215E05-----------------------------
  6861. INT 21 - 10NET v5.0 - TERMINATE PRINT JOB
  6862.     AX = 5E05h
  6863.     BX = zero-based redirection list index (see AX=5F02h)
  6864. Return: CF clear if successful
  6865.     CF set on error
  6866.         AX = error code (see AH=59h)
  6867. Note:    this call resets the spool termination mode to "truncate"
  6868.       (see AX=5D08h)
  6869. SeeAlso: AX=5E04h"10NET",AX=5E06h
  6870. --------N-215E06-----------------------------
  6871. INT 21 - 10NET v5.0 - GET/SET 10NET WORKSTATION PRINTER SETUP STRUCTURE
  6872.     AX = 5E06h
  6873.     BX = zero-based redirection list index (see AX=5F02h)
  6874.     CX = operation (06h set, 07h get)
  6875.     DS:DX -> buffer for setup structure (same as first nine bytes of
  6876.         workstation printer setup) (see AX=5E04h"10NET")
  6877. Return: CF clear if successful
  6878.         DS:DX buffer updated on get
  6879.     CF set on error
  6880.         AX = error code (see AH=59h)
  6881. SeeAlso: AX=5E04h"10NET",AX=5E05h"10NET"
  6882. --------D-215F00-----------------------------
  6883. INT 21 - DOS 3.1+ network - GET REDIRECTION MODE
  6884.     AX = 5F00h
  6885.     BL = redirection type
  6886.         03h printer
  6887.         04h disk drive
  6888. Return: CF set on error
  6889.         AX = error code (see AH=59h)
  6890.     CF clear if successful
  6891.         BH = redirection state
  6892.         00h off
  6893.         01h on
  6894. Note:    calls INT 2F/AX=111Eh with AX on top of the stack
  6895. SeeAlso: AX=5F01h,INT 2F/AX=111Eh
  6896. --------D-215F01-----------------------------
  6897. INT 21 - DOS 3.1+ network - SET REDIRECTION MODE
  6898.     AX = 5F01h
  6899.     BL = redirection type
  6900.         03h printer
  6901.         04h disk drive
  6902.     BH = redirection state
  6903.         00h off
  6904.         01h on
  6905. Return: CF set on error
  6906.         AX = error code (see AH=59h)
  6907.     CF clear if successful
  6908. Notes:    when redirection is off, the local device (if any) rather than the
  6909.       remote device is used
  6910.     calls INT 2F/AX=111Eh with AX on top of the stack
  6911. SeeAlso: AX=5F00h,INT 2F/AX=111Eh
  6912. --------D-215F02-----------------------------
  6913. INT 21 - DOS 3.1+ network - GET REDIRECTION LIST ENTRY
  6914.     AX = 5F02h
  6915.     BX = zero-based redirection list index
  6916.     CX = 0000h (LANtastic)
  6917.     DS:SI -> 16-byte buffer for ASCIZ local device name
  6918.     ES:DI -> 128-byte buffer for ASCIZ network name
  6919. Return: CF clear if successful
  6920.         BH = device status
  6921.         00h valid
  6922.         01h invalid
  6923.         BL = device type
  6924.         03h printer
  6925.         04h disk drive
  6926.         CX = user data previously set with AX=5F03h
  6927.         DS:SI and ES:DI buffers filled
  6928.         DX,BP destroyed
  6929.     CF set on error
  6930.         AX = error code (01h,12h) (see AH=59h)
  6931. Notes:    this function is passed through to INT 2F/AX=111Eh by the DOS kernel
  6932.     error code 12h is returned if BX is greater than the size of the list
  6933.     also supported by Banyan VINES, PC-NFS, LANtastic, and 10NET
  6934. SeeAlso: AX=5F03h,INT 2F/AX=111Eh
  6935. --------D-215F03-----------------------------
  6936. INT 21 - DOS 3.1+ network - REDIRECT DEVICE
  6937.     AX = 5F03h
  6938.     BL = device type
  6939.         03h printer
  6940.         04h disk drive
  6941.     CX = user data to save
  6942.         0000h for LANtastic
  6943.         4E57h ("NW") for NetWare 4.0 requester
  6944.     DS:SI -> ASCIZ local device name (16 bytes max)
  6945.     ES:DI -> ASCIZ network name + ASCIZ password (128 bytes max total)
  6946. Return: CF clear if successful
  6947.     CF set on error
  6948.         AX = error code (01h,03h,05h,08h,0Fh,12h) (see AH=59h)
  6949. Notes:    if device type is disk drive, DS:SI must point at either a null string
  6950.       or a string consisting the drive letter followed by a colon; if a
  6951.       null string, the network attempts to access the destination without
  6952.       redirecting a local drive
  6953.     the DOS kernel calls INT 2F/AX=111Eh with AX on top of the stack
  6954.     also supported by Banyan VINES, LANtastic, and 10NET
  6955. SeeAlso: AX=5F02h,AX=5F04h,INT 2F/AX=111Eh
  6956. --------D-215F04-----------------------------
  6957. INT 21 - DOS 3.1+ network - CANCEL REDIRECTION
  6958.     AX = 5F04h
  6959.     DS:SI -> ASCIZ local device name or path
  6960.     CX = 4E57h ("NW") for NetWare 4.0 requester
  6961. Return: CF clear if successful
  6962.     CF set on error
  6963.         AX = error code (01h,03h,05h,08h,0Fh,12h) (see AH=59h)
  6964. Notes:    the DS:SI string must be either a local device name, a drive letter
  6965.       followed by a colon, or a network directory beginning with two
  6966.       backslashes
  6967.     the DOS kernel calls INT 2F/AX=111Eh with AX on top of the stack
  6968.     also supported by Banyan VINES, LANtastic, and 10NET
  6969. SeeAlso: AX=5F03h,INT 2F/AX=111Eh
  6970. --------D-215F05-----------------------------
  6971. INT 21 - DOS 4+ network - GET EXTENDED REDIRECTION LIST ENTRY
  6972.     AX = 5F05h
  6973.     BX = redirection list index
  6974.     DS:SI -> buffer for ASCIZ source device name
  6975.     ES:DI -> buffer for destination ASCIZ network path
  6976. Return: CF set on error
  6977.         AX = error code (see AH=59h)
  6978.     CF clear if successful
  6979.         AX = server's network process ID handle (10NET)
  6980.         BH = device status flag (bit 0 clear if valid)
  6981.         BL = device type (03h if printer, 04h if drive)
  6982.         CX = stored parameter value (user data) from AX=5F03h
  6983.         BP = NETBIOS local session number
  6984.         DS:SI buffer filled
  6985.         ES:DI buffer filled
  6986. Notes:    the local session number allows sharing the redirector's session number
  6987.     if an error is caused on the NETBIOS LSN, the redirector may be unable
  6988.       to correctly recover from errors
  6989.     the DOS kernel calls INT 2F/AX=111Eh with AX on top of the stack
  6990.     supported by DR-DOS 5.0
  6991.     also supported by 10NET v5.0
  6992. SeeAlso: AX=5F06h"Network",INT 2F/AX=111Eh
  6993. --------O-215F05-----------------------------
  6994. INT 21 - STARLITE architecture - MAP LOCAL DRIVE LETTER TO REMOTE FILE SYSTEM
  6995.     AX = 5F05h
  6996.     DL = drive number (0=A:)
  6997.     DS:SI -> ASCIZ name of the object to map the drive to
  6998. Return: CF set on error
  6999.         AX = error code (see AH=59h)
  7000.     CF clear if successful
  7001. SeeAlso: AX=5F06h"STARLITE"
  7002. --------N-215F06-----------------------------
  7003. INT 21 U - Network - GET FULL REDIRECTION LIST
  7004.     AX = 5F06h
  7005.     ???
  7006. Return: ???
  7007. Notes:    similar to AX=5F02h and AX=5F05h, but also returns redirections
  7008.       excluded from those calls for various reasons
  7009.     calls INT 2F/AX=111Eh with AX on top of the stack
  7010. SeeAlso: AX=5F05h"DOS",INT 2F/AX=111Eh
  7011. --------O-215F06-----------------------------
  7012. INT 21 - STARLITE architecture - UNMAP DRIVE LETTER
  7013.     AX = 5F06h
  7014.     DL = drive to be unmapped (0=A:)
  7015. Return: CF set on error
  7016.         AX = error code (see AH=59h)
  7017.     CF clear if successful
  7018. SeeAlso: AX=5F05h"STARLITE"
  7019. --------D-215F07-----------------------------
  7020. INT 21 - DOS 5+ - ENABLE DRIVE
  7021.     AX = 5F07h
  7022.     DL = drive number (0=A:)
  7023. Return: CF clear if successful
  7024.     CF set on error
  7025.         AX = error code (0Fh) (see AH=59h)
  7026. Note:    simply sets the "valid" bit in the drive's CDS
  7027. SeeAlso: AH=52h,AX=5F08h"DOS"
  7028. --------O-215F07-----------------------------
  7029. INT 21 - STARLITE architecture - MAKE NAMED OBJECT AVAILABLE ON NETWORK
  7030.     AX = 5F07h
  7031.     DS:SI -> ASCIZ name of object to offer to network
  7032.     ES:DI -> ASCIZ name under which object will be known on the network
  7033.         MUST begin with three slashes
  7034. Return: CF set on error
  7035.         AX = error code (see AH=59h)
  7036.     CF clear if successful
  7037. SeeAlso: AX=5F08h"STARLITE"
  7038. --------D-215F08-----------------------------
  7039. INT 21 - DOS 5+ - DISABLE DRIVE
  7040.     AX = 5F08h
  7041.     DL = drive number (0=A:)
  7042. Return: CF clear if successful
  7043.     CF set on error
  7044.         AX = error code (0Fh) (see AH=59h)
  7045. Note:    simply clears the "valid" bit in the drive's CDS
  7046. SeeAlso: AH=52h,AX=5F07h"DOS"
  7047. --------O-215F08-----------------------------
  7048. INT 21 - STARLITE architecture - REMOVE GLOBAL NETWORK NAME OF OBJECT
  7049.     AX = 5F08h
  7050.     DS:SI -> ASCIZ network name (not local name) of object to unshare
  7051. Return: CF set on error
  7052.         AX = error code (see AH=59h)
  7053.     CF clear if successful
  7054. SeeAlso: AX=5F07h"STARLITE"
  7055. --------O-215F09-----------------------------
  7056. INT 21 - STARLITE architecture - BIND TO NETWORK DEVICE
  7057.     AX = 5F09h
  7058.     DS:DX -> ASCIZ name of the device driver to attach to
  7059. Return: CF set on error
  7060.         AX = error code (see AH=59h)
  7061.     CF clear if successful
  7062. Note:    the STARLITE distributed file system can attach to multiple networks
  7063.       simultaneously
  7064. SeeAlso: AX=5F0Ah
  7065. --------O-215F0A-----------------------------
  7066. INT 21 - STARLITE architecture - DETACH FROM NETWORK DEVICE
  7067.     AX = 5F0Ah
  7068.     DS:DX -> ASCIZ name of device driver to detach from
  7069. Return: CF set on error
  7070.         AX = error code (see AH=59h)
  7071.     CF clear if successful
  7072. SeeAlso: AX=5F09h
  7073. --------N-215F30-----------------------------
  7074. INT 21 U - LAN Manager Enhanced DOS - ???
  7075.     AX = 5F30h
  7076.     ???
  7077. Return: ???
  7078. --------N-215F32-----------------------------
  7079. INT 21 u - Named Pipes - LOCAL DosQNmPipeInfo
  7080.     AX = 5F32h
  7081.     BX = handle
  7082.     CX = size of _PIPEINFO structure
  7083.     DX = level (must be 0001h)
  7084.     DS:SI -> _PIPEINFO structure (see below)
  7085. Return: CF clear if successful
  7086.         _PIPEINFO structure filled in
  7087.     CF set on error
  7088.         AX = error code
  7089. Note:    this function was introduced by LAN Manager but is also supported by
  7090.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7091.       Machines, and others
  7092. SeeAlso: AX=5F33h,AX=5F34h
  7093.  
  7094. Format of _PIPEINFO structure:
  7095. Offset    Size    Description
  7096.  00h    WORD    size of outgoing buffer
  7097.  02h    WORD    size of incoming buffer
  7098.  04h    BYTE    maximum number of instances allowed
  7099.  05h    BYTE    current number of instances
  7100.  06h    BYTE    length of the name (including terminating NUL)
  7101.  07h  N BYTEs    name
  7102. --------N-215F33-----------------------------
  7103. INT 21 u - Named Pipes - LOCAL DosQNmPHandState
  7104.     AX = 5F33h
  7105.     BX = handle
  7106. Return: CF clear if successful
  7107.         AH = pipe mode bit mask (see below)
  7108.         AL = maximum number of instances
  7109.     CF set on error
  7110.         AX = error code
  7111. Note:    this function was introduced by LAN Manager but is also supported by
  7112.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7113.       Machines, and others
  7114. SeeAlso: AX=5F32h,AX=5F34h
  7115.  
  7116. Bitfields for pipe mode:
  7117.  bit 7    set if nonblocking, clear if blocking
  7118.  bit 6    set if server end, clear if client end
  7119.  bit 2    set if write in message mode, clear if write in byte mode
  7120.  bit 0    set if read in message mode, clear if read in byte mode
  7121. --------N-215F34-----------------------------
  7122. INT 21 u - Named Pipes - LOCAL DosSetNmPHandState
  7123.     AX = 5F34h
  7124.     BX = handle
  7125.     CX = pipe mode bit mask
  7126.         bit 15: set if nonblocking, clear if blocking
  7127.         bit     8: set if read in message mode, clear if read in byte mode
  7128. Return: CF clear if successful
  7129.     CF set if error
  7130.         AX = error code
  7131. Note:    this function was introduced by LAN Manager but is also supported by
  7132.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7133.       Machines, and others
  7134. SeeAlso: AX=5F32h,AX=5F33h,AX=5F36h
  7135. --------N-215F35-----------------------------
  7136. INT 21 u - Named Pipes - LOCAL DosPeekNmPipe
  7137.     AX = 5F35h
  7138.     BX = handle
  7139.     CX = buffer length
  7140.     DS:SI -> buffer
  7141. Return: CF clear if successful
  7142.         CX = bytes read
  7143.         SI = bytes left in the pipe
  7144.         DX = bytes left in the current message
  7145.         DI = pipe status
  7146.         0001h disconnected
  7147.         0002h listening
  7148.         0003h connected
  7149.         0004h closing
  7150.     CF set if error
  7151.         AX = error code
  7152. Note:    this function was introduced by LAN Manager but is also supported by
  7153.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7154.       Machines, and others
  7155. SeeAlso: AX=5F38h,AX=5F39h,AX=5F51h
  7156. --------N-215F36-----------------------------
  7157. INT 21 u - Named Pipes - LOCAL DosTransactNmPipe
  7158.     AX = 5F36h
  7159.     BX = handle
  7160.     CX = in buffer length
  7161.     DS:SI -> in buffer
  7162.     DX = out buffer length
  7163.     ES:DI -> out buffer
  7164. Return: CF clear if successful
  7165.         CX = bytes read
  7166.     CF set on error
  7167.         AX = error code
  7168. Note:    this function was introduced by LAN Manager but is also supported by
  7169.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7170.       Machines, and others
  7171. SeeAlso: AX=5F34h,AX=5F37h
  7172. --------N-215F37-----------------------------
  7173. INT 21 u - Named Pipes - DosCallNmPipe
  7174.     AX = 5F37h
  7175.     DS:SI -> DosCallNmPipe stack frame (see below)
  7176. Return: CF clear if successful
  7177.         CX = bytes read
  7178.     CF set on error
  7179.         AX = error code
  7180. Note:    this function was introduced by LAN Manager but is also supported by
  7181.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7182.       Machines, and others
  7183. SeeAlso: AX=5F36h,AX=5F38h
  7184.  
  7185. Format of DosCallNmPipe stack frame:
  7186. Offset    Size    Description
  7187.  00h    DWORD    timeout
  7188.  04h    DWORD    -> bytes read WORD (not used!!)
  7189.  08h    WORD    out buffer length
  7190.  0Ah    DWORD    address of out buffer
  7191.  0Eh    WORD    in buffer length
  7192.  10h    DWORD    address of in buffer
  7193.  14h    DWORD    address of pipe name
  7194. --------N-215F38-----------------------------
  7195. INT 21 u - Named Pipes - LOCAL DosWaitNmPipe
  7196.     AX = 5F38h
  7197.     DS:DX -> pipe name
  7198.     BX:CX = timeout value
  7199. Return: CF clear if successful
  7200.     CF set if error
  7201.         AX = error code
  7202. Note:    this function was introduced by LAN Manager but is also supported by
  7203.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7204.       Machines, and others
  7205. SeeAlso: AX=5F37h,AX=5F39h
  7206. --------N-215F39-----------------------------
  7207. INT 21 U - Named Pipes - LOCAL DosRawReadNmPipe
  7208.     AX = 5F39h
  7209.     BX = handle
  7210.     CX = buffer length
  7211.     DS:DX -> buffer
  7212. Return: CF clear if successful
  7213.         CX = bytes read
  7214.     CF set if error
  7215.         AX = error code
  7216. Notes:    this function was introduced by LAN Manager but is also supported by
  7217.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7218.       Machines, and others
  7219.     not documented in the LAN Manager Toolkit
  7220. SeeAlso: AX=5F35h,AX=5F3Ah,INT 2F/AX=1186h
  7221. --------N-215F3A-----------------------------
  7222. INT 21 U - Named Pipes - LOCAL DosRawWriteNmPipe
  7223.     AX = 5F3Ah
  7224.     BX = handle
  7225.     CX = buffer length
  7226.     DS:DX -> buffer
  7227. Return: CF clear if successful
  7228.         CX = bytes written
  7229.     CF set if error
  7230.         AX = error code
  7231. Notes:    this function was introduced by LAN Manager but is also supported by
  7232.       the Novell DOS Named Pipe Extender, Banyan VINES, OS/2 Virtual DOS
  7233.       Machines, and others
  7234.     not documented in the LAN Manager Toolkit
  7235. SeeAlso: AX=5F39h,AX=5F3Bh,INT 2F/AX=118Fh
  7236. --------N-215F3B-----------------------------
  7237. INT 21 u - LAN Manager Enhanced DOS - NetHandleSetInfo
  7238.     AX = 5F3Bh
  7239.     BX = handle
  7240.     CX = handle_info_1 structure length or sizeof DWORD
  7241.     DI = parameter number to set
  7242.         0000h all
  7243.         0001h number of milliseconds
  7244.         0002h number of characters
  7245.     DS:DX -> handle_info_1 structure (DI=0000h) (see below)
  7246.         or DWORD (DI=0001h or 0002h)
  7247.     SI = level of information (0001h)
  7248. Return: CF clear if successful
  7249.         CX = total bytes available
  7250.     CF set if error
  7251.         AX = error code
  7252. SeeAlso: AX=5F3Ch
  7253.  
  7254. Format of handle_info_1 structure:
  7255. Offset    Size    Description
  7256.  00h    DWORD    number of milliseconds which workstations collects data before
  7257.         it sends the data to the named pipe
  7258.  04h    DWORD    number of characters which workstations collects before it
  7259.         sends the data to the named pipe
  7260. --------N-215F3C-----------------------------
  7261. INT 21 u - LAN Manager Enhanced DOS - NetHandleGetInfo
  7262.     AX = 5F3Ch
  7263.     BX = handle
  7264.     CX = length of handle_info_1 structure
  7265.     DS:DX -> handle_info_1 structure (see AX=5F3Bh)
  7266.     SI = level of information (must be 0001h)
  7267. Return: CF clear if successful
  7268.         CX = total bytes available
  7269.     CF set if error
  7270.         AX = error code
  7271. SeeAlso: AX=5F3Bh
  7272. --------N-215F3D-----------------------------
  7273. INT 21 U - LAN Manager Enhanced DOS - WRITE MAILSLOT???
  7274.     AX = 5F3Dh
  7275.     ???
  7276. Return: ???
  7277. --------N-215F3E-----------------------------
  7278. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetSpecialSMB
  7279.     AX = 5F3Eh
  7280.     ???
  7281. Return: ???
  7282. Note:    This function is not documented anywhere in the LAN Manager 2.x Toolkit
  7283.       but was documented in LAN Manager 1.x manuals.
  7284. --------N-215F3F-----------------------------
  7285. INT 21 U - LAN Manager Enhanced DOS - REMOTE API CALL
  7286.     AX = 5F3Fh
  7287.     CX = api number
  7288.     ES:DI -> data descriptor
  7289.     ES:SI -> parameter descriptor
  7290.     ES:DX -> auxiliary descriptor (if DX <> 0)
  7291.     ???
  7292. Return: ???
  7293. --------N-215F40-----------------------------
  7294. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetMessageBufferSend
  7295.     AX = 5F40h
  7296.     DS:DX -> NetMessageBufferSend parameter structure (see below)
  7297. Return: AX = error code
  7298.  
  7299. Format of NetMessageBufferSend parameter structure:
  7300. Offset    Size    Description
  7301.  00h    DWORD    -> recipient name (name for specific user, name* for domain
  7302.             name wide, * for broadcast)
  7303.  04h    DWORD    -> buffer
  7304.  08h    WORD    length of buffer
  7305. --------N-215F41-----------------------------
  7306. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetServiceEnum
  7307.     AX = 5F41h
  7308.     BL = level of detail (0000h, 0001h or 0002h)
  7309.     CX = buffer length
  7310.     ES:DI -> buffer of service_info_0, service_info_1, or service_info_2
  7311.         (see below)
  7312. Return: CF clear if successful
  7313.         CX = entries read
  7314.         DX = total available
  7315.     CF set on error
  7316.         AX = error code
  7317.  
  7318. Format of service_info_0 structure:
  7319. Offset    Size    Description
  7320.  00h 16 BYTEs    name
  7321.  
  7322. Format of service_info_1 structure:
  7323. Offset    Size    Description
  7324.  00h 16 BYTEs    name
  7325.  10h    WORD    status bitmask (see below)
  7326.  12h    DWORD    status code (see below)
  7327.         (also see Microsoft LAN Manager Programmer's Reference)
  7328.  16h    WORD    process id
  7329.  
  7330. Format of service_info_2 structure:
  7331. Offset    Size    Description
  7332.  00h 16 BYTEs    name
  7333.  10h    WORD    status bitmask (see below)
  7334.  12h    DWORD    status code (see below)
  7335.  16h    WORD    process id
  7336.  18h 64 BYTEs    text
  7337.  
  7338. Bitfields for status bitmask:
  7339.  bits 0,1    00 uninstall
  7340.         01 install pending
  7341.         10 uninstall pending
  7342.         11 installed
  7343.  bits 2,3    00 active
  7344.         01 Continue pending
  7345.         10 Pause pending
  7346.         11 paused
  7347.  bit 4    uninstallable
  7348.  bit 5    pausable
  7349.  bit 8    disk redirector paused
  7350.  bit 9    spooled device redirector paused (printing)
  7351.  bit 10 communication device redirector paused
  7352.  
  7353. Values for status code:
  7354.  high word
  7355.     3051 Bad parameter value
  7356.     3052 A parameter is missing
  7357.     3053 An unknown parameter was specified
  7358.     3054 The resource is insufficient
  7359.     3055 Configuration is faulty
  7360.     3056 An MS-DOS or MS OS/2 error occured
  7361.     3057 An internal error occured
  7362.     3058 An ambiguous parameter name was given
  7363.     3059 A duplicate parameter exists
  7364.     3060 The service was terminated by NetSeviceControl when it did not respond
  7365.     3061 The service program file could not be executed
  7366.     3062 The subservice failed to start
  7367.     3063 There is a conflict in the value or use of these parameters
  7368.     3064 There is a problem with the file
  7369.  low word
  7370.     3070 There is insufficient memory
  7371.     3071 There is insufficeient disk space
  7372.     3072 Unable to create thread
  7373.     3073 Unable to create process
  7374.     3074 A security failure occured
  7375.     3075 There is bad or missing default path
  7376.     3076 Network software is not installed
  7377.     3077 Server software is not installed
  7378.     3078 The server could not access the UAS database
  7379.     3079 The action requires user-level security
  7380.     3080 The log directory is invalid
  7381.     3081 The LAN group specificed could not be used
  7382.     3082 The computername is being used as a message alias on another computer
  7383.     3083 The workstation failed to announce the servername
  7384.     3084 The user accounts system is not configured properly
  7385. --------N-215F42-----------------------------
  7386. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetServiceControl
  7387.     AX = 5F42h
  7388.     DH = opcode
  7389.         00h interrogate status
  7390.         01h pause
  7391.         02h continue
  7392.         03h uninstall
  7393.     DL = argument
  7394.         01h disk resource
  7395.         02h print resource
  7396.         04h communications resource (not implemented for DOS)
  7397.     ES:BX -> NetServiceControl parameter structure (see below)
  7398. Return: CF clear if successful
  7399.     CF set on error
  7400.         AX = error code
  7401.  
  7402. Format of NetServiceControl parameter structure:
  7403. Offset    Size    Description
  7404.  00h    DWORD    -> service name
  7405.  04h    WORD    result buffer size
  7406.  06h    DWORD    -> result buffer as service_info_2 structure
  7407. --------N-215F43-----------------------------
  7408. INT 21 u - LAN Manager Enhanced DOS - LOCAL DosPrintJobGetId
  7409.     AX = 5F43h
  7410.     BX = handle of remote print job
  7411.     CX = size of PRIDINFO struture
  7412.     ES:DI -> PRIDINFO structure (see below)
  7413. Return: CF clear if successful
  7414.         PRIDINFO filled in
  7415.     CF set on error
  7416.         AX = error code
  7417.  
  7418. Format of PRIDINFO structure:
  7419. Offset    Size    Description
  7420.  00h    WORD    job id
  7421.  02h 16 BYTEs    server name
  7422.  12h 13 BYTEs    queue name
  7423.  1Fh  1 BYTE    pad
  7424. --------N-215F44-----------------------------
  7425. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetWkstaGetInfo
  7426.     AX = 5F44h
  7427.     BX = information level (00h, 01h, or 0Ah)
  7428.     CX = buffer size
  7429.     ES:DI = buffer in which to store info
  7430. Return: AX = error code
  7431.     DX = amount of buffer used (or required)
  7432. SeeAlso: AX=5F45h,AX=5F49h
  7433. --------N-215F45-----------------------------
  7434. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetWkstaSetInfo
  7435.     AX = 5F45h
  7436.     BX = level (0000h or 0001h)
  7437.     CX = buffer size
  7438.     DX = parameter to set
  7439.     ES:DI -> buffer
  7440. Return: CF clear if successful
  7441.     CF set if error
  7442.         AX = error code
  7443. SeeAlso: AX=5F44h
  7444. --------N-215F46-----------------------------
  7445. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetUseEnum
  7446.     AX = 5F46h
  7447.     BX = level (0000h or 0001h)
  7448.     CX = size of buffer
  7449.     ES:DI -> buffer of use_info_0 or use_info_1 structures (see below)
  7450. Return: CF clear if successful
  7451.         CX = entries read
  7452.         DX = total available entries
  7453.     CF set if error
  7454.         AX = error code
  7455. SeeAlso: AX=5F47h,AX=5F48h,AX=5F4Ch
  7456.  
  7457. Format of use_info_0 structure:
  7458. Offset    Size    Description
  7459.  00h  9 BYTEs    local device name
  7460.  09h    BYTE    padding
  7461.  0Ah    DWORD    -> remote device name in UNC form \\server\share
  7462.  
  7463. Format of use_info_1 structure:
  7464. Offset    Size    Description
  7465.  00h  9 BYTEs    Local device name
  7466.  09h    BYTE    padding
  7467.  0Ah    DWORD    -> remote device name in UNC form \\server\share
  7468.  0Eh    DWORD    -> password
  7469.  12h    WORD    ignored
  7470.  14h    WORD    use type (-1 wildcard, 0 disk, 1 print, 2 com, 3 ipc)
  7471.  16h    WORD    ignored
  7472.  18h    WORD    ignored
  7473. --------N-215F47-----------------------------
  7474. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetUseAdd
  7475.     AX = 5F47h
  7476.     BX = level (0001h)
  7477.     CX = size of use_info_1 structure
  7478.     ES:DI -> use_info_1 structure (see AX=5F46h)
  7479. Return: CF clear on success
  7480.     CF set on error
  7481.         AX = error code
  7482. SeeAlso: AX=5F46h,AX=5F48h
  7483. --------N-215F48-----------------------------
  7484. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetUseDel
  7485.     AX = 5F48h
  7486.     BX = force level
  7487.         0000h no force
  7488.         0001h force
  7489.         0002h lots of force
  7490.     ES:DI -> buffer as either the local device name or UNC remote name
  7491. Return: CF clear on success
  7492.     CF set on error
  7493.         AX = error code
  7494. SeeAlso: AX=5F46h,AX=5F48h,AX=5F49h
  7495. --------N-215F49-----------------------------
  7496. INT 21 u - LAN Manager Enhanced DOS - NetUseGetInfo
  7497.     AX = 5F49h
  7498.     DS:DX -> NetUseGetInfo parameter structure
  7499. Return: CF clear on success
  7500.         DX = total available
  7501.     CF set on error
  7502.         AX = error code
  7503. SeeAlso: AX=5F44h,AX=5F47h
  7504.  
  7505. Format of NetUseGetInfo parameter structure:
  7506. Offset    Size    Description
  7507.  00h    DWORD    pointer to either the local device name or UNC remote name
  7508.  04h    WORD    level of information (0000h or 0001h)
  7509.  06h    DWORD    pointer to buffer of use_info_0 or use_info_1 structures
  7510.  0Ah    WORD    length of buffer
  7511. --------N-215F4A-----------------------------
  7512. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetRemoteCopy
  7513.     AX = 5F4Ah
  7514.     DS:DX -> NetRemoteCopy parameter structure
  7515. Return: CF clear if successful
  7516.     CF set on error
  7517.         AX = error code
  7518. SeeAlso: AX=5F4Bh
  7519.  
  7520. Format of NetRemoteCopy parameter structure:
  7521. Offset    Size    Description
  7522.  00h    DWORD    -> source name as UNC
  7523.  04h    DWORD    -> destination name as UNC
  7524.  08h    DWORD    -> source password
  7525.  0Ch    DWORD    -> destination password
  7526.  10h    WORD    destination open bitmap
  7527.         if destination path exists
  7528.             0000h open fails
  7529.             0001h file is appended
  7530.             0002h file is overwritten
  7531.         if destination path doesn't exist
  7532.             0000h open fails
  7533.             0010h file is created
  7534.  12h    WORD    copy control bitmap (see below)
  7535.  14h    DWORD    -> copy_info buffer
  7536.  18h    WORD    length of copy_info buffer
  7537.  
  7538. Bitfields for copy control:
  7539.  bit 0    destination must be a file
  7540.  bit 1    destination must be a directory
  7541.  bit 2    destination is opened in ascii mode instead of binary
  7542.  bit 3    source is opened in ascii mode instead of binary
  7543.  bit 4    verify all write operations
  7544. --------N-215F4B-----------------------------
  7545. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetRemoteMove
  7546.     AX = 5F4Bh
  7547.     DS:DX -> NetRemoteMove parameter structure
  7548. Return: CF clear if successful
  7549.     CF set on error
  7550.         AX = error code
  7551. SeeAlso: AX=5F4Ah
  7552.  
  7553. Format of NetRemoteMove parameter structure:
  7554. Offset    Size    Description
  7555.  00h    DWORD    -> source name as UNC
  7556.  04h    DWORD    -> destination name as UNC
  7557.  08h    DWORD    -> source password
  7558.  0Ch    DWORD    -> destination password
  7559.  10h    WORD    destination open bitmap
  7560.         if destination path exists
  7561.             0000h open fails
  7562.             0001h file is appended
  7563.             0002h file is overwritten
  7564.         if destination path doesn't exist
  7565.             0000h open fails
  7566.             0010h file is created
  7567.  12h    WORD    move control bitmap
  7568.             0001h destination must be a file
  7569.             0002h destination must be a directory
  7570.  14h    DWORD    -> move_info buffer
  7571.  18h    WORD    length of move_info buffer
  7572. --------N-215F4C-----------------------------
  7573. INT 21 u - LAN Manager Enhanced DOS - LOCAL NetServerEnum
  7574.     AX = 5F4Ch
  7575.     BX = level (0000h or 0001h)
  7576.     CX = buffer length
  7577.     ES:DI -> buffer in which to store information
  7578. Return: CF clear if successful
  7579.         ES:DI -> server_info_X structures (depending on level) (see below)
  7580.         BX = entries read
  7581.         CX = total entries available
  7582.     CF set on error
  7583.         AX = error code
  7584. Notes:    this function is also supported by the Novell DOS Named Pipe Extender
  7585.     this function has been obseleted by NetServerEnum2
  7586. SeeAlso: AX=5F53h
  7587.  
  7588. Format of server_info_0 structure:
  7589. Offset    Size    Description
  7590.  00h 16 BYTEs    name
  7591.  
  7592. Format of server_info_1 structure:
  7593. Offset    Size    Description
  7594.  00h 16 BYTEs    name
  7595.  10h    BYTE    major version in lower nibble
  7596.  11h    BYTE    minor version
  7597.  12h    DWORD    server type bitmask (see below)
  7598.  16h    DWORD    -> comment string
  7599.  
  7600. Bitfields for server type:
  7601.  bit 0    workstation
  7602.  bit 1    server
  7603.  bit 2    SQL server
  7604.  bit 3    primary domain controller
  7605.  bit 4    backup domain controller
  7606.  bit 5    time server
  7607.  bit 6    Apple File Protocol (AFP) server
  7608.  bit 7    Novell server
  7609.  bit 8    Domain Member (v2.1+)
  7610.  bit 9    Print Queue server (v2.1+)
  7611.  bit 10 Dialin server (v2.1+)
  7612.  bit 11 Unix server (v2.1+)
  7613. --------N-215F4D-----------------------------
  7614. INT 21 u - LAN Manager Enhanced DOS - DosMakeMailslot
  7615.     AX = 5F4Dh
  7616.     BX = message size
  7617.     CX = mailslot size (must be bigger than message size by at least 1)
  7618.                (minimum 1000h, maximum FFF6h)
  7619.                (buffer must be 9 bytes bigger than this)
  7620.     DS:SI -> name
  7621.     ES:DI -> memory buffer
  7622. Return: CF clear if successful
  7623.         AX = handle
  7624.     CF set on error
  7625.         AX = error code
  7626. SeeAlso: AX=5F4Eh,AX=5F4Fh,AX=5F50h,AX=5F51h
  7627. --------N-215F4E-----------------------------
  7628. INT 21 u - LAN Manager Enhanced DOS - DosDeleteMailslot
  7629.     AX = 5F4Eh
  7630.     BX = handle
  7631. Return: CF clear if successful
  7632.         ES:DI -> memory to be freed (allocated during DosMakeMailslot)
  7633.     CF set on error
  7634.         AX = error code
  7635. SeeAlso: AX=5F4Dh,AX=5F4Fh
  7636. --------N-215F4F-----------------------------
  7637. INT 21 u - LAN Manager Enhanced DOS - DosMailslotInfo
  7638.     AX = 5F4Fh
  7639.     BX = handle
  7640. Return: CF clear if successful
  7641.         AX = max message size
  7642.         BX = mailslot size
  7643.         CX = next message size
  7644.         DX = next message priority
  7645.         SI = number of messages waiting
  7646.     CF set on error
  7647.         AX = error code
  7648. SeeAlso: AX=5F4Dh,AX=5F4Eh,AX=5F50h
  7649. --------N-215F50-----------------------------
  7650. INT 21 u - LAN Manager Enhanced DOS - DosReadMailslot
  7651.     AX = 5F50h
  7652.     BX = handle
  7653.     DX:CX = timeout
  7654.     ES:DI -> buffer
  7655. Return: CF clear if successful
  7656.         AX = bytes read
  7657.         CX = next item's size
  7658.         DX = next item's priority
  7659.     CF set on error
  7660.         AX = error code
  7661. SeeAlso: AX=5F4Dh,AX=5F4Fh,AX=5F51h,AX=5F52h
  7662. --------N-215F51-----------------------------
  7663. INT 21 u - LAN Manager Enhanced DOS - DosPeekMailslot
  7664.     AX = 5F51h
  7665.     BX = handle
  7666.     ES:DI -> buffer
  7667. Return: CF clear if successful
  7668.         AX = bytes read
  7669.         CX = next item's size
  7670.         DX = next item's priority
  7671.     CF set on error
  7672.         AX = error code
  7673. SeeAlso: AX=5F35h,AX=5F4Fh,AX=5F50h,AX=5F52h
  7674. --------N-215F52-----------------------------
  7675. INT 21 u - LAN Manager Enhanced DOS - DosWriteMailslot
  7676.     AX = 5F52h
  7677.     BX = class
  7678.     CX = length of buffer
  7679.     DX = priority
  7680.     ES:DI -> DosWriteMailslot parameter structure (see below)
  7681.     DS:SI -> mailslot name
  7682. Return: CF clear if successful
  7683.     CF set on error
  7684.         AX = error code
  7685. SeeAlso: AX=5F4Fh,AX=5F50h,AX=5F51h
  7686.  
  7687. Format of DosWriteMailslot parameter structure:
  7688. Offset    Size    Description
  7689.  00h    DWORD    timeout
  7690.  04h    DWORD    -> buffer
  7691. --------N-215F53-----------------------------
  7692. INT 21 u - LAN Manager Enhanced DOS - NetServerEnum2
  7693.     AX = 5F53h
  7694.     DS:SI -> NetServerEnum2 parameter structure (see below)
  7695. Return: CF clear if successful
  7696.         BX = entries read
  7697.         CX = total entries available
  7698.     CF set on error
  7699.         AX = error code
  7700. SeeAlso: AX=5F4Ch
  7701.  
  7702. Format of NetServerEnum2 parameter structure:
  7703. Offset    Size    Description
  7704.  00h    WORD    level (0000h or 0001h)
  7705.  02h    DWORD    -> buffer as array of server_info_??? structures
  7706.  06h    WORD    length of buffer
  7707.  08h    DWORD    server type bitmask (see below)
  7708.  0Ch    DWORD    -> Domain name (may be 0000h:0000h for all local domains)
  7709.  
  7710. Bitfields for server type:
  7711.  bit 0    workstation
  7712.  bit 1    server
  7713.  bit 2    SQL server
  7714.  bit 3    primary domain controller
  7715.  bit 4    backup domain controller
  7716.  bit 5    time server
  7717.  bit 6    Apple File Protocol (AFP) server
  7718.  bit 7    Novell server
  7719.  bit 8    Domain Member (v2.1+)
  7720.  bit 9    Print Queue server (v2.1+)
  7721.  bit 10 Dialin server (v2.1+)
  7722.  bit 11 Unix server (v2.1+)
  7723. Note:    set all bits (FFFFFFFFh) for All Types
  7724.  
  7725. Format of server_info_0 structure:
  7726. Offset    Size    Description
  7727.  00h 16 BYTEs    name
  7728.  
  7729. Format of server_info_1 structure:
  7730. Offset    Size    Description
  7731.  00h 16 BYTEs    name
  7732.  10h    BYTE    major version in lower nibble
  7733.  11h    BYTE    minor version
  7734.  12h    DWORD    server type (bits 0-11) (see above)
  7735.  16h    DWORD    -> comment string
  7736. --------N-215F55----------------------------
  7737. INT 21 U - LAN Manager Enhanced DOS - KILL ALL CONNECTIONS???
  7738.     AX = 5F55h
  7739.     BX = ???
  7740. Return: CF clear if successful
  7741.     CF set on error
  7742.         AX = error code
  7743. --------N-215F80-----------------------------
  7744. INT 21 - LANtastic - GET LOGIN ENTRY
  7745.     AX = 5F80h
  7746.     BX = login entry index (0-based)
  7747.     ES:DI -> 16-byte buffer for machine name
  7748. Return: CF clear if successful
  7749.         buffer filled with machine name ("\\" prefix removed)
  7750.         DL = adapter number (v3+)
  7751.     CF set on error
  7752.         AX = error code
  7753. Note:    the login entry index corresponds to the value BX used in AX=5F83h
  7754. SeeAlso: AX=5F83h
  7755. --------N-215F81-----------------------------
  7756. INT 21 - LANtastic - LOGIN TO SERVER
  7757.     AX = 5F81h
  7758.     ES:DI -> ASCIZ login path followed immediately by ASCIZ password
  7759.     BL = adapter number
  7760.         FFh try all valid adapters
  7761.         00h-07h try only specified adapter
  7762. Return: CF clear if successful
  7763.     CF set on error
  7764.         AX = error code
  7765. Notes:    login path is of form "\\machine\username"
  7766.     if no password is used, the string at ES:DI must be terminated with
  7767.       three NULs for compatibility with LANtastic v3.0.
  7768. SeeAlso: AX=5F82h,AX=5F84h
  7769. --------N-215F82-----------------------------
  7770. INT 21 - LANtastic - LOGOUT FROM SERVER
  7771.     AX = 5F82h
  7772.     ES:DI -> ASCIZ server name (in form "\\machine")
  7773. Return: CF clear if successful
  7774.     CF set on error
  7775.         AX = error code
  7776. SeeAlso: AX=5F81h,AX=5F88h,AX=5FCBh
  7777. --------N-215F83-----------------------------
  7778. INT 21 - LANtastic - GET USERNAME ENTRY
  7779.     AX = 5F83h
  7780.     BX = login entry index (0-based)
  7781.     ES:DI -> 16-byte buffer for username currently logged into
  7782. Return: CF clear if successful
  7783.         DL = adapter number (v3+)
  7784.     CF set on error
  7785.         AX = error code
  7786. Note:    the login entry index corresponds to the value BX used in AX=5F80h
  7787. SeeAlso: AX=5F80h
  7788. --------N-215F84-----------------------------
  7789. INT 21 - LANtastic - GET INACTIVE SERVER ENTRY
  7790.     AX = 5F84h
  7791.     BX = server index not currently logged into
  7792.     ES:DI -> 16-byte buffer for server name which is available for logging
  7793.         in to ("\\" prefix omitted)
  7794. Return: CF clear if successful
  7795.         DL = adapter number to non-logged in server is on
  7796.     CF set on error
  7797.         AX = error code
  7798. SeeAlso: AX=5F81h
  7799. --------N-215F85-----------------------------
  7800. INT 21 - LANtastic - CHANGE PASSWORD
  7801.     AX = 5F85h
  7802.     ES:DI -> buffer containing "\\machine\oldpassword" 00h "newpassword"00h
  7803. Return: CF clear if successful
  7804.     CF set on error
  7805.         AX = error code
  7806. Notes:    must be logged into the named machine
  7807.     this function is illegal for group accounts
  7808. --------N-215F86-----------------------------
  7809. INT 21 - LANtastic - DISABLE ACCOUNT
  7810.     AX = 5F86h
  7811.     ES:DI -> ASCIZ machine name and password in form "\\machine\password"
  7812. Return: CF clear if successful
  7813.     CF set on error
  7814.         AX = error code
  7815. Note:    must be logged into the named machine and concurrent logins set to 1
  7816.       by NET_MGR.  Requires system manager to re-enable account.
  7817. --------N-215F87-----------------------------
  7818. INT 21 - LANtastic v3+ - GET ACCOUNT
  7819.     AX = 5F87h
  7820.     DS:SI -> 128-byte buffer for account information (see below)
  7821.     ES:DI -> ASCIZ machine name in form "\\machine"
  7822. Return: CF clear if successful
  7823.     CF set on error
  7824.         AX = error code
  7825.     BX destroyed
  7826. Note:    must be logged into the specified machine
  7827.  
  7828. Format of user account structure:
  7829. Offset    Size    Description
  7830.  00h 16 BYTEs    blank-padded username (zero-padded for v4.x)
  7831.  10h 16 BYTEs    reserved (00h)
  7832.  20h 32 BYTEs    user description
  7833.  40h    BYTE    privilege bits (see below)
  7834.  41h    BYTE    maximum concurrent users
  7835.  42h 42 BYTEs    bit map for disallowed half hours, beginning on Sunday
  7836.         (bit set if half-hour not an allowed time)
  7837.  6Ch    WORD    internal (0002h)
  7838.  6Eh  2 WORDs    last login time
  7839.  72h  2 WORDs    account expiration date (MS-DOS-format year/month:day)
  7840.  76h  2 WORDs    password expiration date (0 = none)
  7841.  7Ah    BYTE    number of days to extend password after change (1-31)
  7842.         00h if no extension required
  7843. ---v3.x---
  7844.  7Bh  5 BYTEs    reserved
  7845. ---v4.x---
  7846.  7Bh    BYTE    storage for first letter of user name when deleted (first
  7847.         character is changed to 00h when deleting account)
  7848.  7Ch    BYTE    extended privileges
  7849.  7Dh  3 BYTEs    reserved
  7850.  
  7851. Bitfields for privilege bits:
  7852.  bit 7    bypass access control lists
  7853.  bit 6    bypass queue protection
  7854.  bit 5    treat as local process
  7855.  bit 4    bypass mail protection
  7856.  bit 3    allow audit entry creation
  7857.  bit 2    system manager
  7858.  bit 0    user cannot change password
  7859. --------N-215F88-----------------------------
  7860. INT 21 - LANtastic v4.0+ - LOGOUT FROM ALL SERVERS
  7861.     AX = 5F88h
  7862. Return: CF clear if successful
  7863.     CF set on error
  7864.         AX = error code
  7865. SeeAlso: AX=5F82h
  7866. --------N-215F97-----------------------------
  7867. INT 21 - LANtastic - COPY FILE
  7868.     AX = 5F97h
  7869.     CX:DX = number of bytes to copy (FFFFFFFFh = entire file)
  7870.     SI = source file handle
  7871.     DI = destination file handle
  7872. Return: CF clear if successful
  7873.         DX:AX = number of bytes copied
  7874.     CF set on error
  7875.         AX = error code
  7876. Note:    copy is performed by server
  7877. --------N-215F98-----------------------------
  7878. INT 21 - LANtastic - SEND UNSOLICITED MESSAGE
  7879.     AX = 5F98h
  7880.     DS:SI -> message buffer (see below)
  7881. Return: CF clear if successful
  7882.     CF set on error
  7883.         AX = error code
  7884. Note:    v4.1- return no errors
  7885. SeeAlso: AX=5F99h
  7886.  
  7887. Format of message buffer:
  7888. Offset    Size    Description
  7889.  00h    BYTE    reserved
  7890.  01h    BYTE    message type
  7891.         00h general
  7892.         01h server warning
  7893.         02h-7Fh reserved
  7894.         80h-FFh user-defined
  7895.  02h 16 BYTEs    ASCIZ destination machine name
  7896.  12h 16 BYTEs    ASCIZ server name which user must be logged into
  7897.  22h 16 BYTEs    ASCIZ user name
  7898.  32h 16 BYTEs    ASCIZ originating machine name (filled in when received)
  7899.  42h 80 BYTEs    message text
  7900. --------N-215F99-----------------------------
  7901. INT 21 - LANtastic - GET LAST RECEIVED UNSOLICITED MESSAGE
  7902.     AX = 5F99h
  7903.     ES:DI -> messsage buffer (see AX=5F98h for format)
  7904. Return: CF clear if successful
  7905.     CF set on error
  7906.         AX = error code
  7907. SeeAlso: AX=5F98h
  7908. --------N-215F9A-----------------------------
  7909. INT 21 - LANtastic - GET MESSAGE PROCESSING FLAGS
  7910.     AX = 5F9Ah
  7911. Return: CF clear if successful
  7912.         DL = bits describing processing for received unsolicited messages
  7913.         bit 0: beep before message is delivered
  7914.         bit 1: deliver message to message service
  7915.         bit 2: pop up message automatically (v3+)
  7916.     CF set on error
  7917.         AX = error code
  7918. SeeAlso: AX=5F9Bh,AX=5F9Ch,AX=5F9Dh
  7919. --------N-215F9B-----------------------------
  7920. INT 21 - LANtastic - SET MESSAGE PROCESSING FLAG
  7921.     AX = 5F9Bh
  7922.     DL = bits describing processing for received unsolicited messages
  7923.          (see AX=5F9Ah)
  7924. Return: CF clear if successful
  7925.     CF set on error
  7926.         AX = error code
  7927. SeeAlso: AX=5F9Ah,AX=5F9Eh
  7928. --------N-215F9C-----------------------------
  7929. INT 21 - LANtastic v3+ - POP UP LAST RECEIVED MESSAGE
  7930.     AX = 5F9Ch
  7931.     CX = time to leave on screen in clock ticks
  7932.     DH = 0-based screen line on which to place message
  7933. Return: CF clear if successful
  7934.     CF set on error
  7935.         AX = error code (0Bh)
  7936. Notes:    the original screen contents are restored when the message is removed
  7937.     the message will not appear, and an error will be returned, if the
  7938.       screen is in a graphics mode
  7939. SeeAlso: AX=5F9Ah
  7940. --------N-215F9D-----------------------------
  7941. INT 21 - LANtastic v4.1+ - GET REDIRECTOR CONTROL BITS
  7942.     AX = 5F9Dh
  7943. Return: DL = redirector control bits
  7944.         bit 7: set to notify on print job completion
  7945. SeeAlso: AX=5F9Ah,AX=5F9Eh
  7946. --------N-215F9E-----------------------------
  7947. INT 21 - LANtastic v4.1+ - SET REDIRECTOR CONTROL BITS
  7948.     AX = 5F9Eh
  7949.     DL = redirector control bits (see AH = 5F9Dh)
  7950. Return: nothing
  7951. SeeAlso: AX=5F9Bh,AX=5F9Dh
  7952. --------N-215FA0-----------------------------
  7953. INT 21 - LANtastic - GET QUEUE ENTRY
  7954.     AX = 5FA0h
  7955.     BX = queue entry index (0000h is first entry)
  7956.     DS:SI -> buffer for queue entry (see below)
  7957.     ES:DI -> ASCIZ server name in form "\\name"
  7958. Return: CF clear if successful
  7959.     CF set on error
  7960.         AX = error code
  7961.     BX = entry index for next queue entry (BX-1 is current index)
  7962. SeeAlso: AX=5FA1h,AX=5FA2h
  7963.  
  7964. Values for status of entry:
  7965.  00h    empty
  7966.  01h    being updated
  7967.  02h    being held
  7968.  03h    waiting for despool
  7969.  04h    being despooled
  7970.  05h    canceled
  7971.  06h    spooled file could not be accessed
  7972.  07h    destination could not be accessed
  7973.  08h    rush job
  7974.  
  7975. Values for type of entry:
  7976.  00h    printer queue file
  7977.  01h    message
  7978.  02h    local file
  7979.  03h    remote file
  7980.  04h    to remote modem
  7981.  05h    batch processor file
  7982.  
  7983. Format of queue entry:
  7984. Offset    Size    Description
  7985.  00h    BYTE    status of entry (see above)
  7986.  01h    DWORD    size of spooled file
  7987.  05h    BYTE    type of entry (see above)
  7988.  06h    BYTE    output control
  7989.         bit 6: don't delete (for mail)
  7990.         bit 5: mail file contains voice mail (v3+)
  7991.         bit 4: mail message has been read
  7992.         bit 3: response has been requested for this mail
  7993.  07h    WORD    number of copies
  7994.  09h    DWORD    sequence number of queue entry
  7995.  0Dh 48 BYTEs    pathname of spooled file
  7996.  3Dh 16 BYTEs    user who spooled file
  7997.  4Dh 16 BYTEs    name of machine from which file was spooled
  7998.  5Dh    WORD    date file was spooled (see AX=5700h)
  7999.  5Fh    WORD    time file was spooled (see AX=5700h)
  8000.  61h 17 BYTEs    ASCIZ destination device or user name
  8001.  72h 48 BYTEs    comment field
  8002. --------N-215FA1-----------------------------
  8003. INT 21 - LANtastic - SET QUEUE ENTRY
  8004.     AX = 5FA1h
  8005.     BX = handle of opened queue entry
  8006.     DS:SI -> queue entry (see AX=5FA0h)
  8007. Return: CF clear if successful
  8008.     CF set on error
  8009.         AX = error code
  8010. Notes:    the only queue entry fields which may be changed are output control,
  8011.       number of copies, destination device, and comment
  8012.     the handle in BX is that from a create or open (INT 21/AH=3Ch,3Dh)
  8013.       call on the file "\\server\\@MAIL" or "\\server\@name" (for
  8014.       printer queue entries)
  8015. SeeAlso: AX=5FA0h,AX=5FA2h,AX=5FA9h
  8016. --------N-215FA2-----------------------------
  8017. INT 21 - LANtastic - CONTROL QUEUE
  8018.     AX = 5FA2h
  8019.     BL = control command
  8020.         00h start despooling (privileged)
  8021.         01h halt despooling (privileged)
  8022.         02h halt despooling at end of job (privileged)
  8023.         03h pause despooler at end of job (privileged)
  8024.         04h print single job (privileged)
  8025.         05h restart current job (privileged)
  8026.         06h cancel the current job
  8027.         07h hold queue entry
  8028.         08h release a held queue entry
  8029.         09h make queue entry a rushed job (privileged)
  8030.     CX:DX = sequence number to control (commands 06h-09h)
  8031.     DX = physical printer number (commands 00h-05h)
  8032.         00h-02h LPT1-LPT3
  8033.         03h,04h COM1,COM2
  8034.         other    all printers
  8035.     ES:DI -> ASCIZ server name in form "\\machine"
  8036. Return: CF clear if successful
  8037.     CF set on error
  8038.         AX = error code
  8039. --------N-215FA3-----------------------------
  8040. INT 21 - LANtastic v3+ - GET PRINTER STATUS
  8041.     AX = 5FA3h
  8042.     BX = physical printer number (00h-02h = LPT1-LPT3, 03h-04h = COM1-COM2)
  8043.     DS:SI -> buffer for printer status (see below)
  8044.     ES:DI -> ASCIZ server name in form "\\machine"
  8045. Return: CF clear if successful
  8046.     CF set on error
  8047.         AX = error code
  8048.     BX = next physical printer number
  8049. Note:    you must be logged in to the specified server
  8050.  
  8051. Format of printer status:
  8052. Offset    Size    Description
  8053.  00h    BYTE    printer state
  8054.         bit 7: printer paused
  8055.         bits 0-6: 0 printer disabled
  8056.               1 will stop at end of job
  8057.               2 print multiple jobs
  8058.  01h    WORD    queue index of print job being despooled
  8059.         FFFFh if not despooling--ignore all following fields
  8060.  03h    WORD    actual characters per second being output
  8061.  05h    DWORD    number of characters actually output so far
  8062.  09h    DWORD    number of bytes read from spooled file so far
  8063.  0Dh    WORD    copies remaining to print
  8064. --------N-215FA4-----------------------------
  8065. INT 21 - LANtastic v3+ - GET STREAM INFO
  8066.     AX = 5FA4h
  8067.     BX = 0-based stream index number
  8068.     DS:SI -> buffer for stream information (see below)
  8069.     ES:DI -> ASCIZ machine name in form "\\machine"
  8070. Return: CF clear if successful
  8071.     CF set on error
  8072.         AX = error code
  8073.     BX = next stream number
  8074. SeeAlso: AX=5FA5h
  8075.  
  8076. Format of stream information:
  8077. Offset    Size    Description
  8078.  00h    BYTE    queueing of jobs for logical printer (0=disabled,other=enabled)
  8079.  01h 11 BYTEs    logical printer resource template (may contain ? wildcards)
  8080. --------N-215FA5-----------------------------
  8081. INT 21 - LANtastic v3+ - SET STREAM INFO
  8082.     AX = 5FA5h
  8083.     BX = 0-based stream index number
  8084.     DS:SI -> buffer containing stream information (see AX=5FA4h)
  8085.     ES:DI -> ASCIZ machine name in form "\\machine"
  8086. Return: CF clear if successful
  8087.     CF set on error
  8088.         AX = error code
  8089. SeeAlso: AX=5FA4h
  8090. --------N-215FA7-----------------------------
  8091. INT 21 - LANtastic - CREATE USER AUDIT ENTRY
  8092.     AX = 5FA7h
  8093.     DS:DX -> ASCIZ reason code (max 8 bytes)
  8094.     DS:SI -> ASCIZ variable reason string (max 128 bytes)
  8095.     ES:DI -> ASCIZ machine name in form "\\machine"
  8096. Return: CF clear if successful
  8097.     CF set on error
  8098.         AX = error code
  8099. Note:    you must be logged in to the specified server and have the "U"
  8100.       privilege to execute this call
  8101. --------N-215FA9-----------------------------
  8102. INT 21 - LANtastic v4.1+ - SET EXTENDED QUEUE ENTRY
  8103.     AX = 5FA9h
  8104.     BX = handle of opened queue entry
  8105.     DS:SI -> queue entry (see AX=5FA0h)
  8106. Return: CF clear if successful
  8107.     CF set on error
  8108.         AX = error code
  8109. Note:    functions exactly the same as AX=5FA1h except the spooled filename is
  8110.       also set.  This call supports direct despooling.
  8111. SeeAlso: AX=5FA1h
  8112. --------N-215FB0-----------------------------
  8113. INT 21 - LANtastic - GET ACTIVE USER INFORMATION
  8114.     AX = 5FB0h
  8115.     BX = server login entry index
  8116.     DS:SI -> buffer for active user entry (see below)
  8117.     ES:DI -> ASCIZ machine name in form "\\server"
  8118. Return: CF clear if successful
  8119.     CF set on error
  8120.         AX = error code
  8121.     BX = next login index
  8122. SeeAlso: AX=5FB2h
  8123.  
  8124. Format of active user entry:
  8125. Offset    Size    Description
  8126.  00h    WORD    virtual circuit number
  8127.  02h    BYTE    login state (see below)
  8128.  03h    BYTE    last command issued (see below)
  8129.  04h  5 BYTEs    number of I/O bytes (40-bit unsigned number)
  8130.  09h  3 BYTEs    number of server requests (24-bit unsigned)
  8131.  0Ch 16 BYTEs    name of user who is logged in
  8132.  1Ch 16 BYTEs    name of remote logged in machine
  8133.  2Ch    BYTE    extended privileges (v4+???)
  8134.         bit 0: user cannot change his password
  8135.  2Dh    WORD    time left in minutes (0000h = unlimited) (v4+???)
  8136.  
  8137. Bitfields for login state:
  8138.  bit 0    fully logged in
  8139.  bit 1    remote program load login
  8140.  bit 2    user has system manager privileges
  8141.  bit 3    user can create audit entries
  8142.  bit 4    bypass mail protection
  8143.  bit 5    treat as local process
  8144.  bit 6    bypass queue protection
  8145.  bit 7    bypass access control lists
  8146.  
  8147. Values for last command:
  8148.  00h    login
  8149.  01h    process termination
  8150.  02h    open file
  8151.  03h    close file
  8152.  04h    create file
  8153.  05h    create new file
  8154.  06h    create unique file
  8155.  07h    commit data to disk
  8156.  08h    read file
  8157.  09h    write file
  8158.  0Ah    delete file
  8159.  0Bh    set file attributes
  8160.  0Ch    lock byte range
  8161.  0Dh    unlock byte range
  8162.  0Eh    create subdirectory
  8163.  0Fh    remove subdirectory
  8164.  10h    rename file
  8165.  11h    find first matching file
  8166.  12h    find next matching file
  8167.  13h    get disk free space
  8168.  14h    get a queue entry
  8169.  15h    set a queue entry
  8170.  16h    control the queue
  8171.  17h    return login information
  8172.  18h    return link description
  8173.  19h    seek on file
  8174.  1Ah    get server's time
  8175.  1Bh    create audit entry
  8176.  1Ch    open file in multitude of modes
  8177.  1Dh    change password
  8178.  1Eh    disable account
  8179.  1Fh    local server file copy
  8180. ---v3+---
  8181.  20h    get username from account file
  8182.  21h    translate server's logical path
  8183.  22h    make indirect file
  8184.  23h    get indirect file contents
  8185.  24h    get physical printer status
  8186.  25h    get logical print stream info
  8187.  26h    set logical print stream info
  8188.  27h    get user's account record
  8189. ---v4+---
  8190.  28h    request server shutdown
  8191.  29h    cancel server shutdown
  8192.  2Ah    stuff server's keyboard
  8193.  2Bh    write then commit data to disk
  8194.  2Ch    set extended queue entry
  8195.  2Dh    terminate user from server
  8196.  2Eh    enable/disable logins
  8197.  2Fh    flush server caches
  8198.  30h    change username
  8199.  31h    get extended queue entry
  8200.     (same as get queue, but can return named fields blanked)
  8201. --------N-215FB1-----------------------------
  8202. INT 21 - LANtastic - GET SHARED DIRECTORY INFORMATION
  8203.     AX = 5FB1h
  8204.     DS:SI -> 64-byte buffer for link description
  8205.     ES:DI -> ASCIZ machine and shared directory name in form
  8206.          "\\machine\shared-resource"
  8207. Return: CF clear if successful
  8208.         CX = access control list privileges for requesting user (see below)
  8209.     CF set on error
  8210.         AX = error code
  8211.  
  8212. Bitfields for access control list:
  8213.  bit 4    (I) allow expansion of indirect files
  8214.  bit 5    (A) allow attribute changing
  8215.  bit 6    (P) allow physical access to device
  8216.  bit 7    (E) allow program execution
  8217.  bit 8    (N) allow file renaming
  8218.  bit 9    (K) allow directory deletion
  8219.  bit 10 (D) allow file deletion
  8220.  bit 11 (L) allow file/directory lookups
  8221.  bit 12 (M) allow directory creation
  8222.  bit 13 (C) allow file creation
  8223.  bit 14 (W) allow open for write and writing
  8224.  bit 15 (R) allow open for read and reading
  8225. --------N-215FB2-----------------------------
  8226. INT 21 - LANtastic v3+ - GET USERNAME FROM ACCOUNT FILE
  8227.     AX = 5FB2h
  8228.     BX = username entry index (0 for first)
  8229.     DS:SI -> 16-byte buffer for username
  8230.     ES:DI -> ASCIZ server name in form "\\machine"
  8231. Return: CF clear if successful
  8232.     CF set on error
  8233.         AX = error code
  8234.     BX = next queue entry index
  8235. SeeAlso: AX=5FB0h
  8236. --------N-215FB3-----------------------------
  8237. INT 21 - LANtastic v3+ - TRANSLATE PATH
  8238.     AX = 5FB3h
  8239.     DS:SI -> 128-byte buffer for ASCIZ result
  8240.     ES:DI -> full ASCIZ path, including server name
  8241.     DX = types of translation to be performed
  8242.         bit 0: expand last component as indirect file
  8243.         bit 1: return actual path relative to server's physical disk
  8244. Return: CF clear if successful
  8245.     CF set on error
  8246.         AX = error code
  8247. Note:    always expands any indirect files along the path
  8248. SeeALso: AX=5FB4h,INT 21/AH=60h
  8249. --------N-215FB4-----------------------------
  8250. INT 21 - LANtastic v3+ - CREATE INDIRECT FILE
  8251.     AX = 5FB4h
  8252.     DS:SI -> 128-byte buffer containing ASCIZ contents of indirect file
  8253.     ES:DI -> full ASCIZ path of indirect file to create, incl machine name
  8254. Return: CF clear if successful
  8255.     CF set on error
  8256.         AX = error code
  8257. Note:    the contents of the indirect file may be any valid server-relative path
  8258. SeeAlso: AX=5FB3h,AX=5FB5h
  8259. --------N-215FB5-----------------------------
  8260. INT 21 - LANtastic v3+ - GET INDIRECT FILE CONTENTS
  8261.     AX = 5FB5h
  8262.     DS:SI -> 128-byte buffer for ASCIZ indirect file contents
  8263.     ES:DI -> full ASCIZ path of indirect file
  8264. Return: CF clear if successful
  8265.     CF set on error
  8266.         AX = error code
  8267. SeeAlso: AX=5FB4h
  8268. --------N-215FB6-----------------------------
  8269. INT 21 - LANtastic v4.1+ - SET AUTO-LOGIN DEFAULTS
  8270.     AX = 5FB6h
  8271.     ES:DI -> pointer to ASCIZ default user name, immediately followed by
  8272.         ASCIZ password
  8273.     BL = adapter number to use for default login attempt
  8274.         FFh try all valid adapters
  8275.         00h-05h try adapter 0-5 explicitly
  8276. Return: CF clear if successful
  8277.     CF set on error
  8278.         AX = error code
  8279. Notes:    call with ES:DI -> two nulls to disable auto-login
  8280. SeeAlso: AX=5FB7h
  8281. --------N-215FB7-----------------------------
  8282. INT 21 - LANtastic v4.1+ - GET AUTO-LOGIN DEFAULTS
  8283.     AX = 5FB7h
  8284.     ES:DI -> pointer to 16-byte buffer to store ASCIZ auto-login user name
  8285. Return: CF clear if successful
  8286.         DL = adapter number used for default login attempt
  8287.         FFh all valid adapters will be tried
  8288.         00h-05h specified adapter will be tried explicitly
  8289.     CF set on error
  8290.         AX = error code
  8291. SeeAlso: AX=5F81h,AX=5FB6h
  8292. --------N-215FC0-----------------------------
  8293. INT 21 - LANtastic - GET TIME FROM SERVER
  8294.     AX = 5FC0h
  8295.     DS:SI -> time block (see below)
  8296.     ES:DI -> ASCIZ server name to get time from
  8297. Return: CF clear if successful
  8298.     CF set on error
  8299.         AX = error code
  8300. SeeAlso: AH=E7h
  8301.  
  8302. Format of time block:
  8303. Offset    Size    Description
  8304.  00h    WORD    year
  8305.  02h    BYTE    day
  8306.  03h    BYTE    month
  8307.  04h    BYTE    minutes
  8308.  05h    BYTE    hour
  8309.  06h    BYTE    hundredths of second
  8310.  07h    BYTE    second
  8311. --------N-215FC8-----------------------------
  8312. INT 21 - LANtastic v4.0+ - SCHEDULE SERVER SHUTDOWN
  8313.     AX = 5FC8h
  8314.     ES:DI -> ASCIZ server name in form "\\machine"
  8315.     DS:SI -> ASCIZ reason string (80 characters)
  8316.     CX = number of minutes until shutdown (0 = immediate)
  8317.     DX = option flags (see below)
  8318. Return: CF clear if successful
  8319.     CF set on error
  8320.         AX = error code
  8321. SeeAlso: AX=5FC9h
  8322.  
  8323. Bitfields for option flags:
  8324.  bit 0    auto reboot
  8325.  bit 1    do not notify users
  8326.  bit 2    halt after shutdown
  8327.  bit 3    shutdown due to power fail (used by UPS)
  8328.  bits 4-7    reserved
  8329.  bits 8-14    user definable
  8330.  bit 15 reserved
  8331. --------N-215FC9-----------------------------
  8332. INT 21 - LANtastic v4.0+ - CANCEL SERVER SHUTDOWN
  8333.     AX = 5FC9h
  8334.     ES:DI -> ASCIZ server name in form "\\machine"
  8335. Return: CF clear if successful
  8336.     CF set on error
  8337.         AX = error code
  8338. Note:    you must have the "S" privilege to use this call
  8339. SeeAlso: AX=5FC8h
  8340. --------N-215FCA-----------------------------
  8341. INT 21 - LANtastic v4.0+ - STUFF SERVER KEYBOARD BUFFER
  8342.     AX = 5FCAh
  8343.     ES:DI -> ASCIZ server name in form "\\machine"
  8344.     DS:SI -> ASCIZ string to stuff (128 bytes)
  8345. Return: CF clear if successful
  8346.     CF set on error
  8347.         AX = error code
  8348. Note:    you must have the "S" privilege to use this call
  8349.     maximum number of characters that can be stuffed is determined by the
  8350.       server's RUN BUFFER SIZE.
  8351. SeeAlso: INT 16/AH=05h
  8352. --------N-215FCB-----------------------------
  8353. INT 21 - LANtastic v4.1+ - TERMINATE USER
  8354.     AX = 5FCBh
  8355.     ES:DI -> ASCIZ server name in form "\\machine"
  8356.     DS:SI -> blank-padded username.     A null char = wildcard.
  8357.     DS:DX -> blank-padded machine name.  A null char = wildcard.
  8358.     CX = minutes until termination (0 = immediate)
  8359. Return: CF clear if successful
  8360.     CF set on error
  8361.         AX = error code
  8362. Note:    you must have the "S" privilege to use this call
  8363.     you cannot log yourself out using this call
  8364. SeeAlso: AX=5F82h
  8365. --------N-215FCC-----------------------------
  8366. INT 21 - LANtastic v4.1+ - GET/SET SERVER CONTROL BITS
  8367.     AX = 5FCCh
  8368.     ES:DI -> ASCIZ server name in form "\\machine"
  8369.     CX = bit values (value of bits you want to set) (see below)
  8370.     DX = bit mask (bits you are interested in, 0 = get only) (see below)
  8371. Return: CF clear if successful
  8372.         CX = control bits after call
  8373.         bit 0: disable logins
  8374.     CF set on error
  8375.         AX = error code
  8376. Note:    you must have the "S" privilege to SET, anyone can GET.
  8377. --------N-215FCD-----------------------------
  8378. INT 21 - LANtastic v4.1+ - FLUSH SERVER CACHES
  8379.     AX = 5FCDh
  8380.     ES:DI -> ASCIZ server name in form "\\machine"
  8381. Return: CF clear if successful
  8382.     CF set on error
  8383.         AX = error code
  8384. Note:    you must have the "S" privilege to use this call.
  8385. --------N-215FD0-----------------------------
  8386. INT 21 - LANtastic - GET REDIRECTED PRINTER TIMEOUT
  8387.     AX = 5FD0h
  8388. Return: CF clear if successful
  8389.         CX = redirected printer timeout in clock ticks of 55ms
  8390.         0000h if timeout disabled
  8391.     CF set on error
  8392.         AX = error code
  8393. SeeAlso: AX=5FD1h
  8394. --------N-215FD1-----------------------------
  8395. INT 21 - LANtastic - SET REDIRECTED PRINTER TIMEOUT
  8396.     AX = 5FD1h
  8397.     CX = printer timeout in clock ticks of 55ms, 0000h to disable timeouts
  8398. Return: CF clear if successful
  8399.     CF set on error
  8400.         AX = error code
  8401. SeeAlso: AX=5FD0h
  8402. --------N-215FE0-----------------------------
  8403. INT 21 C - LANtastic - GET DOS SERVICE VECTOR
  8404.     AX = 5FE0h
  8405. Return: CF clear if successful
  8406.         ES:BX -> current FAR service routine
  8407.     CF set on error
  8408.         AX = error code
  8409. Note:    the service routine is called by the LANtastic redirector whenever DOS
  8410.       may safely be called, permitting external TSRs and drivers to hook
  8411.       into LANtastic's DOS busy flag checking
  8412. SeeAlso: AX=5FE1h,INT 28,INT 2A/AH=84h
  8413. --------N-215FE1-----------------------------
  8414. INT 21 - LANtastic - SET DOS SERVICE VECTOR
  8415.     AX = 5FE1h
  8416.     ES:BX -> FAR routine to call when DOS services are available
  8417. Return: CF clear if successful
  8418.     CF set on error
  8419.         AX = error code
  8420. Note:    new handler must chain to previous handler as its first action
  8421. SeeAlso: AX=5FE0h
  8422. --------N-215FE2-----------------------------
  8423. INT 21 - LANtastic - GET MESSAGE SERVICE VECTOR
  8424.     AX = 5FE2h
  8425. Return: CF clear if successful
  8426.         ES:BX -> current FAR message service routine
  8427.     CF set on error
  8428.         AX = error code
  8429. SeeAlso: AX=5FE0h,AX=5FE3h
  8430. --------N-215FE3-----------------------------
  8431. INT 21 - LANtastic - SET MESSAGE SERVICE VECTOR
  8432.     AX = 5FE3h
  8433.     ES:BX -> FAR routine for processing network messages
  8434. Return: CF clear if successful
  8435.     CF set on error
  8436.         AX = error code
  8437. Notes:    handler must chain to previous handler as its first action
  8438.     on invocation, ES:BX -> just-received message
  8439. SeeAlso: AX=5FE2h
  8440. --------D-2160-------------------------------
  8441. INT 21 - DOS 3.0+ - "TRUENAME" - CANONICALIZE FILENAME OR PATH
  8442.     AH = 60h
  8443.     DS:SI -> ASCIZ filename or path
  8444.     ES:DI -> 128-byte buffer for canonicalized name
  8445. Return: CF set on error
  8446.         AX = error code
  8447.         02h invalid component in directory path or drive letter only
  8448.         03h malformed path or invalid drive letter
  8449.         ES:DI buffer unchanged
  8450.     CF clear if successful
  8451.         AH = 00h
  8452.         AL = destroyed (00h or 5Ch or last char of current dir on drive)
  8453.         buffer filled with qualified name of form D:\PATH\FILE.EXT or
  8454.           \\MACHINE\PATH\FILE.EXT
  8455. Desc:    determine the canonical name of the specified filename or path,
  8456.       corresponding to the undocumented TRUENAME command in COMMAND.COM
  8457. Notes:    the input path need not actually exist
  8458.     letters are uppercased, forward slashes converted to backslashes,
  8459.       asterisks converted to appropriate number of question marks, and
  8460.       file and directory names are truncated to 8.3 if necessary.  (DR-DOS
  8461.       3.41 and 5.0 do not expand asterisks)
  8462.     '.' and '..' in the path are resolved
  8463.     filespecs on local drives always start with "d:", those on network
  8464.       drives always start with "\\"
  8465.     if path string is on a JOINed drive, the returned name is the one that
  8466.       would be needed if the drive were not JOINed; similarly for a
  8467.       SUBSTed, ASSIGNed, or network drive letter.    Because of this, it is
  8468.       possible to get a qualified name that is not legal under the current
  8469.       combination of SUBSTs, ASSIGNs, JOINs, and network redirections
  8470.     under DOS 3.3 through 6.00, a device name is translated differently if
  8471.       the device name does not have an explicit directory or the directory
  8472.       is \DEV (relative directory DEV from the root directory works
  8473.       correctly).  In these cases, the returned string consists of the
  8474.       unchanged device name and extension appended to the string X:/
  8475.       (forward slash instead of backward slash as in all other cases) where
  8476.       X is the default or explicit drive letter.
  8477.     functions which take pathnames require canonical paths if invoked via
  8478.       INT 21/AX=5D00h
  8479.     supported by OS/2 v1.1 compatibility box
  8480.     NetWare 2.1x does not support characters with the high bit set; early
  8481.       versions of NetWare 386 support such characters except in this call.
  8482.       In addition, NetWare returns error code 3 for the path "X:\"; one
  8483.       should use "X:\." instead.
  8484.     for DOS 3.3-6.0, the input and output buffers may be the same, as the
  8485.       canonicalized name is built in an internal buffer and copied to the
  8486.       specified output buffer as the very last step
  8487.     for DR DOS 6.0, this function is not automatically called when on a
  8488.       network.  Device drivers reportedly cannot make this call from their
  8489.       INIT function.  Using the same pointer for both input and output
  8490.       buffers is not supported in the April 1992 and earlier versions of
  8491.       DR DOS
  8492. SeeAlso: AX=5FB3h,INT 2F/AX=1123h,INT 2F/AX=1221h
  8493. --------D-2161-------------------------------
  8494. INT 21 - DOS 3+ - UNUSED
  8495.     AH = 61h
  8496. Return: AL = 00h
  8497. Note:    this function does nothing and returns immediately
  8498. --------O-2161--BP6467-----------------------
  8499. INT 21 U - OS/2 v1.x FAPI - OS/2 FILE SYSTEM JOIN/SUBST
  8500.     AH = 61h
  8501.     BP = 6467h ("dg")
  8502.     AL = function
  8503.         00h list
  8504.         01h add
  8505.         02h delete
  8506.     BX = drive number
  8507.     CX = size of buffer
  8508.     SI = type (0002h JOIN, 0003h SUBST)
  8509.     ES:DI -> buffer
  8510. Return: ???
  8511. Notes:    used by JOIN and SUBST to communicate with the OS/2 file system
  8512.     also supported by OS/2 v2.0+ Virtual DOS Machines
  8513. --------D-2162-------------------------------
  8514. INT 21 - DOS 3+ - GET CURRENT PSP ADDRESS
  8515.     AH = 62h
  8516. Return: BX = segment of PSP for current process
  8517. Notes:    under DOS 3+, this function does not use any of the DOS-internal stacks
  8518.       and may thus be called at any time, even during another INT 21h call
  8519.     the current PSP is not necessarily the caller's PSP
  8520.     identical to the undocumented AH=51h
  8521. SeeAlso: AH=50h,AH=51h
  8522. --------D-216300-----------------------------
  8523. INT 21 - DOS 2.25 only - GET LEAD BYTE TABLE ADDRESS
  8524.     AX = 6300h
  8525. Return: CF clear if successful
  8526.         DS:SI -> lead byte table (see below)
  8527.     CF set on error
  8528.         AX = error code (01h) (see AH=59h)
  8529. Notes:    does not preserve any registers other than SS:SP
  8530.     the US version of MS-DOS 3.30 treats this as an unused function,
  8531.       setting AL=00h and returning immediately
  8532. SeeAlso: AX=6301h,AH=07h,AH=08h,AH=0Bh
  8533.  
  8534. Format of lead byte table entry:
  8535. Offset    Size    Description
  8536.  00h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  8537.  02h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  8538.     ...
  8539.   N   2 BYTEs    00h,00h end flag
  8540. --------D-216300-----------------------------
  8541. INT 21 - Far East DOS 3.2+ - GET DOUBLE BYTE CHARACTER SET LEAD-BYTE TABLE
  8542.     AX = 6300h
  8543. Return: AL = error code
  8544.         00h successful
  8545.         DS:SI -> DBCS table (see below)
  8546.         all other registers except CS:IP and SS:SP destroyed
  8547.         FFh not supported
  8548. Notes:    probably identical to AH=63h/AL=00h for DOS 2.25
  8549.     the US version of MS-DOS 3.30 treats this as an unused function,
  8550.       setting AL=00h and returning immediately
  8551.     the US version of DOS 4.0+ accepts this function, but returns an empty
  8552.       list
  8553. SeeAlso: AX=6300h"DOS 2.25"
  8554.  
  8555. Format of DBCS table:
  8556. Offset    Size    Description
  8557.  00h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  8558.  02h  2 BYTEs    low/high ends of a range of leading byte of double-byte chars
  8559.     ...
  8560.   N   2 BYTEs    00h,00h end flag
  8561. --------D-216301-----------------------------
  8562. INT 21 - DOS 2.25, Far East DOS 3.2+ - SET KOREAN (HANGEUL) INPUT MODE
  8563.     AX = 6301h
  8564.     DL = new mode
  8565.         00h return only full characters on DOS keyboard input functions
  8566.         01h return partially-formed (interim) characters also
  8567. Return: AL = status
  8568.         00h successful
  8569.         FFh invalid mode
  8570. SeeAlso: AH=07h,AH=08h,AH=0Bh,AH=63h,AX=6302h
  8571. --------D-216302-----------------------------
  8572. INT 21 - DOS 2.25, Far East DOS 3.2+ - GET KOREAN (HANGEUL) INPUT MODE
  8573.     AX = 6302h
  8574. Return: AL = status
  8575.         00h successful
  8576.         DL = current input mode
  8577.             00h return only full characters (clears interim flag)
  8578.             01h return partial characters (sets interim flag)
  8579.         FFh not supported
  8580. SeeAlso: AH=07h,AH=08h,AH=0Bh,AH=63h,AX=6301h
  8581. --------D-2164-------------------------------
  8582. INT 21 - DOS 3.2+ internal - SET DEVICE DRIVER LOOKAHEAD FLAG
  8583.     AH = 64h
  8584.     AL = flag
  8585.         00h (default) call device driver function 5 (non-dest read)
  8586.             before INT 21/AH=01h,08h,0Ah
  8587.         nonzero don't call driver function 5
  8588. Return: nothing (MS-DOS)
  8589.     CF set, AX=error code??? (DR-DOS 5.0, which does not support this call)
  8590. Notes:    called by DOS 3.3+ PRINT.COM
  8591.     under MS-DOS, this function does not use any of the DOS-internal stacks
  8592.       and may thus be called at any time, even during another DOS call
  8593. SeeAlso: AH=01h,AH=08h,AH=0Ah,AX=5D06h
  8594. --------O-2164--DX0000-----------------------
  8595. INT 21 U - OS/2 v2.0+ Virtual DOS Machine - ENABLE AUTOMATIC TITLE SWITCH
  8596.     AH = 64h
  8597.     DX = 0000h (function number)
  8598.     CX = 636Ch (magic value, "cl")
  8599.     BX = 0000h (indicates special request)
  8600. Note:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8601.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8602. SeeAlso: AH=64h/BX=0001h,INT 21/AH=4Bh
  8603. --------O-2164--DX0001-----------------------
  8604. INT 21 U - OS/2 v2.0+ Virtual DOS Machine - SET SESSION TITLE
  8605.     AH = 64h
  8606.     DX = 0001h (function number)
  8607.     CX = 636Ch (magic value, "cl")
  8608.     BX = 0000h (indicates special request)
  8609.     ES:DI -> new ASCIZ title (max 12 char) or "" to restore default title
  8610. Note:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8611.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8612. SeeAlso: AH=64h/BX=0000h,AH=64h/BX=0002h,INT 15/AH=12h/BH=05h
  8613. --------O-2164--DX0002-----------------------
  8614. INT 21 U - OS/2 v2.0+ Virtual DOS Machine - GET SESSION TITLE
  8615.     AH = 64h
  8616.     DX = 0002h (function number)
  8617.     CX = 636Ch (magic value, "cl")
  8618.     BX = 0000h (indicates special request)
  8619.     ES:DI -> 13-byte buffer for current title
  8620. Return: buffer filled (single 00h if title never changed)
  8621. Note:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8622.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8623. SeeAlso: AH=64h/BX=0000h,AH=64h/BX=0001h,INT 15/AH=12h/BH=05h
  8624. --------O-2164--DX0003-----------------------
  8625. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET LASTDRIVE
  8626.     AH = 64h
  8627.     DX = 0003h (function number)
  8628.     CX = 636Ch (magic value, "cl")
  8629.     BX = 0000h (indicates special request)
  8630. Return: AL = highest drive supported
  8631. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8632.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8633.     used by WinOS2
  8634. --------O-2164--DX0004-----------------------
  8635. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET SIZE OF PTDA JFT
  8636.     AH = 64h
  8637.     DX = 0004h (function number)
  8638.     CX = 636Ch (magic value, "cl")
  8639.     BX = 0000h (indicates special request)
  8640. Return: AX = number of entries in OS/2 JFT for VDM
  8641. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8642.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8643.     in an OS/2 VDM, the DOS Job File Table in the PSP contains an index
  8644.       into the OS/2 JFT in the Per-Task Data Area rather than an SFT index
  8645.       because the OS/2 SFT can contain more than 255 entries
  8646. --------O-2164--DX0005-----------------------
  8647. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET SECOND SFT FLAGS WORD
  8648.     AH = 64h
  8649.     DX = 0005h (function number)
  8650.     CX = 636Ch (magic value, "cl")
  8651.     BX = 0000h (indicates special request)
  8652.     DI = DOS file handle
  8653. Return: AX = value of second flags word from OS/2 SFT entry for file
  8654. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8655.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8656.     the OS/2 SFT has two flags words rather than DOS's one word, and this
  8657.       function provides access to the word which is not present in DOS
  8658. --------O-2164--DX0006-----------------------
  8659. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - UNLOAD DOSKRNL SYMBOLS & LOAD PROGR
  8660.     AH = 64h
  8661.     DX = 0006h (function number)
  8662.     CX = 636Ch (magic value, "cl")
  8663.     BX = 0000h (indicates special request)
  8664.     ES:DI -> ASCIZ filespec
  8665.     DS = base address for loading
  8666. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8667.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8668.     this function is only supported by the kernel debugging version of
  8669.       OS2KRNL
  8670. --------O-2164--DX0007-----------------------
  8671. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET WinOS2 CALL GATE ADDRESS
  8672.     AH = 64h
  8673.     DX = 0007h (function number)
  8674.     CX = 636Ch (magic value, "cl")
  8675.     BX = 0000h (indicates special request)
  8676. Return: AX = call gate address
  8677. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8678.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8679.     used by WinOS2 to make direct calls to OS2KRNL, bypassing the overhead
  8680.       of DOSKRNL
  8681. --------O-2164--DX0008-----------------------
  8682. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - GET LOADING MESSAGE
  8683.     AH = 64h
  8684.     DX = 0008h (function number)
  8685.     CX = 636Ch (magic value, "cl")
  8686.     BX = 0000h (indicates special request)
  8687. Return: DS:DX -> '$'-terminated message "Loading.  Please wait."
  8688. Notes:    if CX is not 636Ch on entry, INT 21/AH=6Ch is invoked, because a bug
  8689.       in OS/2 1.x FAPI erroneously called AH=64h instead of AH=6Ch
  8690.     this function permits National Language Support for the initial message
  8691.       displayed while WinOS2 starts a full-screen session
  8692. --------O-2164--CX636C-----------------------
  8693. INT 21 U - OS/2 v2.1+ Virtual DOS Machine - OS/2 API support
  8694.     AH = 64h
  8695.     CX = 636Ch ("cl")
  8696.     BX = API ordinal (see below)
  8697.     other registers as appropriate for API call
  8698.       if ordinal 0025h:
  8699.         DS:SI -> STARTDATA structure (see below)
  8700. Return: as appropriate for API call
  8701.       if ordinal 0025h:
  8702.         AX = return code
  8703.  
  8704. Values for API ordinal:
  8705.  0025h    DOS32StartSession
  8706.  0082h    DosGetCP
  8707.  00A7h    DosQFSAttach
  8708.  00BFh    DosEditName
  8709.  00CBh    DosForceDelete
  8710.  0144h    Dos32CreateEventSem
  8711.  0145h    Dos32OpenEvenSem
  8712.  0146h    Dos32CloseEventSem
  8713.  0147h    Dos32ResetEventSem
  8714.  0148h    Dos32PostEventSem
  8715.  0149h    Dos32WaitEventSem
  8716.  014Ah    Dos32QueryEventSem
  8717.  014Bh    Dos32CreateMutexSem
  8718.  014Ch    Dos32OpenMutexSem
  8719.  014Dh    Dos32CloseMutexSem
  8720.  014Eh    Dos32RequestMutexSem
  8721.  014Fh    Dos32ReleaseMutexSem
  8722.  0150h    Dos32QueryMutexSem
  8723.  0151h    Dos32CreateMuxWaitSem
  8724.  0152h    Dos32OpenMuxWaitSem
  8725.  0153h    Dos32CloseMuxWaitSem
  8726.  0154h    Dos32WaitMuxWaitSem
  8727.  0155h    Dos32AddMuxWaitSem
  8728.  0156h    Dos32DeleteMuxWaitSem
  8729.  0157h    Dos32QueryMuxWaitSem
  8730.  
  8731. Format of STARTDATA structure:
  8732. Offset    Size    Description
  8733.  00h    WORD    length of structure (must be 0018h,001Eh,0020h,0032h,or 003Ch)
  8734.  02h    WORD    relation of new process to caller (00h independent, 01h child)
  8735.  04h    WORD    fore/background (00h foreground, 01h background)
  8736.  06h    WORD    trace options (00h-02h, 00h = no trace)
  8737.  08h    DWORD    pointer to ASCIZ program title (max 62 chars) or 0000h:0000h
  8738.  0Ch    DWORD    pointer to ASCIZ program name (max 128 chars) or 0000h:0000h
  8739.  10h    DWORD    pointer to ASCIZ program args (max 144 chars) or 0000h:0000h
  8740.  14h    DWORD    "TermQ" (currently reserved, must be 00000000h)
  8741.  18h    DWORD    pointer to environment (max 486 bytes) or 0000h:0000h
  8742.  1Ch    WORD    inheritance (00h or 01h)
  8743.  1Eh    WORD    session type
  8744.         00h OS/2 session manager determines type (default)
  8745.         01h OS/2 full-screen
  8746.         02h OS/2 window
  8747.         03h PM
  8748.         04h VDM full-screen
  8749.         07h VDM window
  8750.  20h    DWORD    pointer to ASCIZ icon filename (max 128 chars) or 0000h:0000h
  8751.  24h    DWORD    "PgmHandle" (currently reserved, must be 00000000h)
  8752.  28h    WORD    "PgmControl"
  8753.  2Ah    WORD    initial column
  8754.  2Ch    WORD    initial row
  8755.  2Eh    WORD    initial width
  8756.  30h    WORD    initial height
  8757.  32h    WORD    reserved (0)
  8758.  34h    DWORD    "ObjectBuffer" (currently reserved, must be 00000000h)
  8759.  38h    DWORD    "ObjectBufferLen" (currently reserved, must be 00000000h)
  8760. --------D-2165-------------------------------
  8761. INT 21 - DOS 3.3+ - GET EXTENDED COUNTRY INFORMATION
  8762.     AH = 65h
  8763.     AL = info ID
  8764.         01h get general internationalization info
  8765.         02h get pointer to uppercase table
  8766.         04h get pointer to filename uppercase table
  8767.         05h get pointer to filename terminator table
  8768.         06h get pointer to collating sequence table
  8769.         07h (DOS 4+) get pointer to Double-Byte Character Set table
  8770.     BX = code page (FFFFh=global code page)
  8771.     DX = country ID (FFFFh=current country)
  8772.     ES:DI -> country information buffer (see below)
  8773.     CX = size of buffer (>= 5)
  8774. Return: CF set on error
  8775.         AX = error code (see AH=59h)
  8776.     CF clear if successful
  8777.         CX = size of country information returned
  8778.         ES:DI -> country information
  8779. Notes:    AL=05h appears to return same info for all countries and codepages; it
  8780.       has been documented for DOS 5+, but was undocumented in ealier
  8781.       versions
  8782.     NLSFUNC must be installed to get info for countries other than the
  8783.       default
  8784.     subfunctions 02h and 04h are identical under OS/2
  8785. SeeAlso: AH=38h,INT 2F/AX=1401h,INT 2F/AX=1402h,INT 2F/AX=14FEh
  8786.  
  8787. Format of country information:
  8788. Offset    Size    Description
  8789.  00h    BYTE    info ID
  8790. ---if info ID = 01h---
  8791.  01h    WORD    size
  8792.  03h    WORD    country ID
  8793.  05h    WORD    code page
  8794.  07h 34 BYTEs    country-dependent info (see AH=38h)
  8795. ---if info ID = 02h---
  8796.  01h    DWORD    pointer to uppercase table (see below)
  8797. ---if info ID = 04h---
  8798.  01h    DWORD    pointer to filename uppercase table (see below)
  8799. ---if info ID = 05h---
  8800.  01h    DWORD    pointer to filename character table (see below)
  8801. ---if info ID = 06h---
  8802.  01h    DWORD    pointer to collating table (see below)
  8803. ---if info ID = 07h (DOS 4+)---
  8804.  01h    DWORD    pointer to DBCS lead byte table (see below)
  8805.  
  8806. Format of uppercase table:
  8807. Offset    Size    Description
  8808.  00h    WORD    table size
  8809.  02h 128 BYTEs    uppercase equivalents (if any) of chars 80h to FFh
  8810.  
  8811. Format of collating table:
  8812. Offset    Size    Description
  8813.  00h    WORD    table size
  8814.  02h 256 BYTEs    values used to sort characters 00h to FFh
  8815.  
  8816. Format of filename terminator table:
  8817. Offset    Size    Description
  8818.  00h    WORD    table size (not counting this word)
  8819.  02h    BYTE    ??? (01h for MS-DOS 3.30-6.00)
  8820.  03h    BYTE    lowest permissible character value for filename
  8821.  04h    BYTE    highest permissible character value for filename
  8822.  05h    BYTE    ??? (00h for MS-DOS 3.30-6.00)
  8823.  06h    BYTE    first excluded character in range \ all characters in this
  8824.  07h    BYTE    last excluded character in range  / range are illegal
  8825.  08h    BYTE    ??? (02h for MS-DOS 3.30-6.00)
  8826.  09h    BYTE    number of illegal (terminator) characters
  8827.  0Ah  N BYTEs    characters which terminate a filename:    ."/\[]:|<>+=;,
  8828. Note:    partially documented for DOS 5+, but undocumented for earlier versions
  8829.  
  8830. Format of filename uppercase table:
  8831. Offset    Size    Description
  8832.  00h    WORD    table size
  8833.  02h 128 BYTEs    uppercase equivalents (if any) of chars 80h to FFh
  8834.  
  8835. Format of DBCS lead byte table:
  8836. Offset    Size    Description
  8837.  00h    WORD    length
  8838.  02h 2N BYTEs    start/end for N lead byte ranges
  8839.     WORD    0000h    (end of table)
  8840. --------D-2165-------------------------------
  8841. INT 21 - DOS 4+ - COUNTRY-DEPENDENT CHARACTER CAPITALIZATION
  8842.     AH = 65h
  8843.     AL = function
  8844.         20h capitalize character
  8845.         DL = character to capitalize
  8846.         Return: DL = capitalized character
  8847.         21h capitalize string
  8848.         DS:DX -> string to capitalize
  8849.         CX = length of string
  8850.         22h capitalize ASCIZ string
  8851.         DS:DX -> ASCIZ string to capitalize
  8852. Return: CF set on error
  8853.         AX = error code (see AH=59h)
  8854.     CF clear if successful
  8855. Note:    these calls have been documented for DOS 5+, but were undocumented in
  8856.       DOS 4.x.
  8857. --------D-216523-----------------------------
  8858. INT 21 U - DOS 4+ internal - DETERMINE IF CHARACTER REPRESENTS YES/NO RESPONSE
  8859.     AX = 6523h
  8860.     DL = character
  8861.     DH = second character of double-byte character (if applicable)
  8862. Return: CF set on error
  8863.     CF clear if successful
  8864.         AX = type
  8865.         00h no
  8866.         01h yes
  8867.         02h neither yes nor no
  8868. --------D-2165-------------------------------
  8869. INT 21 U - DOS 4+ internal - COUNTRY-DEPENDENT FILENAME CAPITALIZATION
  8870.     AH = 65h
  8871.     AL = function
  8872.         A0h capitalize filename character
  8873.         DL = character to capitalize
  8874.         Return: DL = capitalized character
  8875.         A1h capitalize counted filename string
  8876.         DS:DX -> filename string to capitalize
  8877.         CX = length of string
  8878.         A2h capitalize ASCIZ filename
  8879.         DS:DX -> ASCIZ filename to capitalize
  8880. Return: CF set on error
  8881.         AX = error code (see AH=59h)
  8882.     CF clear if successful
  8883. Note:    nonfunctional in DOS 4.00 through 6.00 due to a bug (the code sets a
  8884.       pointer depending on the high bit of AL, but doesn't clear the
  8885.       bit before branching by function number).
  8886. --------D-216601-----------------------------
  8887. INT 21 - DOS 3.3+ - GET GLOBAL CODE PAGE TABLE
  8888.     AX = 6601h
  8889. Return: CF set on error
  8890.         AX = error code (see AH=59h)
  8891.     CF clear if successful
  8892.         BX = active code page (see AX=6602h)
  8893.         DX = system code page
  8894. SeeAlso: AX=6602h
  8895. --------D-216602-----------------------------
  8896. INT 21 - DOS 3.3+ - SET GLOBAL CODE PAGE TABLE
  8897.     AX = 6602h
  8898.     BX = active code page (see below)
  8899.     DX = system code page (active page at boot time)
  8900. Return: CF set on error
  8901.         AX = error code (see AH=59h)
  8902.     CF clear if successful
  8903. SeeAlso: AX=6601h,INT 2F/AX=14FFh
  8904.  
  8905. Values for code page:
  8906.  437    US
  8907.  850    Multilingual
  8908.  852    Slavic/Latin II (DOS 5+)
  8909.  857    Turkish
  8910.  860    Portugal
  8911.  861    Iceland
  8912.  863    Canada (French)
  8913.  865    Norway/Denmark
  8914. --------D-2167-------------------------------
  8915. INT 21 - DOS 3.3+ - SET HANDLE COUNT
  8916.     AH = 67h
  8917.     BX = size of new file handle table for process
  8918. Return: CF clear if successful
  8919.     CF set on error
  8920.         AX = error code (see AH=59h)
  8921. Desc:    adjust the size of the per-process open file table, thus raising or
  8922.       lowering the limit on the number of files the caller can open
  8923.       simultaneously
  8924. Notes:    if BX <= 20, no action is taken if the handle limit has not yet been
  8925.       increased, and the table is copied back into the PSP if the limit
  8926.       is currently > 20 handles
  8927.     for file handle tables of > 20 handles, DOS 3.30 never reuses the
  8928.       same memory block, even if the limit is being reduced; this can lead
  8929.       to memory fragmentation as a new block is allocated and the existing
  8930.       one freed
  8931.     only the first 20 handles are copied to child processes in DOS 3.3-6.0
  8932.     increasing the file handles here will not, in general, increase the
  8933.       number of files that can be opened using the runtime library of a
  8934.       high-level language such as C
  8935. BUGS:    the original release of DOS 3.30 allocates a full 64K for the handle
  8936.       table on requests for an even number of handles
  8937.     DR-DOS 3.41 and 5.0 will lose track of any open file handles beyond
  8938.       the portion of the JFT retained after the call; MS-DOS will indicate
  8939.       error 04h if any of the JFT entries to be removed are open
  8940. SeeAlso: AH=26h,AH=86h
  8941. --------D-2168-------------------------------
  8942. INT 21 - DOS 3.3+ - "FFLUSH" - COMMIT FILE
  8943.     AH = 68h
  8944.     BX = file handle
  8945. Return: CF clear if successful
  8946.         all data still in DOS disk buffers is written to disk immediately,
  8947.           and the file's directory entry is updated
  8948.     CF set on error
  8949.         AX = error code (see AH=59h)
  8950. SeeAlso: AX=5D01h,AH=6Ah,INT 2F/AX=1107h
  8951. --------D-2169-------------------------------
  8952. INT 21 U - DOS 4+ internal - GET/SET DISK SERIAL NUMBER
  8953.     AH = 69h
  8954.     AL = subfunction
  8955.         00h get serial number
  8956.         01h set serial number
  8957.     BL = drive (0=default, 1=A, 2=B, etc)
  8958.     DS:DX -> disk info (see below)
  8959. Return: CF set on error
  8960.         AX = error code (see AH=59h)
  8961.     CF clear if successful
  8962.         AX destroyed
  8963.         (AL = 00h) buffer filled with appropriate values from extended BPB
  8964.         (AL = 01h) extended BPB on disk set to values from buffer
  8965. Notes:    does not generate a critical error; all errors are returned in AX
  8966.     error 0005h given if no extended BPB on disk
  8967.     does not work on network drives (error 0001h)
  8968.     buffer after first two bytes is exact copy of bytes 27h thru 3Dh of
  8969.       extended BPB on disk
  8970.     this function is supported under Novell NetWare versions 2.0A through
  8971.       3.11; the returned serial number is the one a DIR would display,
  8972.       the volume label is the NetWare volume label, and the file system
  8973.       is set to "FAT16".
  8974.     the serial number is computed from the current date and time when the
  8975.       disk is created; the first part is the sum of the seconds/hundredths
  8976.       and month/day, the second part is the sum of the hours/minutes and
  8977.       year
  8978.     the volume label which is read or set is the one stored in the extended
  8979.       BPB on disks formatted with DOS 4.0+, rather than the special root
  8980.       directory entry used by the DIR command in COMMAND.COM (use AH=11h
  8981.       to find that volume label)
  8982. SeeAlso: AX=440Dh
  8983.  
  8984. Format of disk info:
  8985. Offset    Size    Description
  8986.  00h    WORD    info level (zero)
  8987.  02h    DWORD    disk serial number (binary)
  8988.  06h 11 BYTEs    volume label or "NO NAME    " if none present
  8989.  11h  8 BYTEs    (AL=00h only) filesystem type--string "FAT12   " or "FAT16   "
  8990. --------O-2169-------------------------------
  8991. INT 21 - DR-DOS 5.0 - NULL FUNCTION
  8992.     AH = 69h
  8993. Return: AL = 00h
  8994. SeeAlso: AH=18h
  8995. --------v-216969-----------------------------
  8996. INT 21 - VIRUS - "Rape-747" - INSTALLATION CHECK
  8997.     AX = 6969h
  8998. Return: AX = 0666h if resident
  8999. SeeAlso: AX=58CCh,AH=76h"VIRUS"
  9000. --------d-2169FFDX0000-----------------------
  9001. INT 21 U - CUBIT v4.00 - GET CUBIT INT 21 HANDLER
  9002.     AX = 69FFh
  9003.     DX = 0000h
  9004.     BX = CB00h (magic value)
  9005. Return: ES:BX -> CUBITR.EXE handler for INT 21
  9006. Note:    the installation check consists of testing that the first eight bytes
  9007.       at the returned interrupt handler are EBh 07h "CUBITR" (a short
  9008.       jump around the signature followed by the signature); the byte
  9009.       following the signature (i.e. ES:[BX+8]) indicates whether CUBITR
  9010.       is active (01h) or disabled (00h)
  9011. SeeAlso: AX=69FFh/DX=CFBFh
  9012. Index:    installation check;CUBIT
  9013. --------d-2169FFDXCFBF-----------------------
  9014. INT 21 U - CUBIT v4.00 - UNINSTALL
  9015.     AX = 69FFh
  9016.     DX = CFBFh
  9017.     CX = EFCFh
  9018.     BX = CB00h (magic value)
  9019. Return: ES:BX -> CUBITR.EXE handler for INT 21
  9020.     CX = status
  9021.         2020h successful
  9022.         2222h failed
  9023. Note:    if DX is neither 0000h nor CFBFh on entry, some other code is executed
  9024. SeeAlso: AX=69FFh/DX=0000h
  9025. --------D-216A-------------------------------
  9026. INT 21 U - DOS 4+ - COMMIT FILE
  9027.     AH = 6Ah
  9028.     BX = file handle
  9029. Return: CF clear if successful
  9030.         AH = 68h
  9031.     CF set on error
  9032.         AX = error code (06h) (see AH=59h)
  9033. Note:    identical to AH=68h in DOS 5.0-6.0; not known whether this is the case
  9034.       in DOS 4.x
  9035. SeeAlso: AH=68h
  9036. --------D-216B-------------------------------
  9037. INT 21 U - DOS 4.0 internal - IFS IOCTL
  9038.     AH = 6Bh
  9039.     AL = subfunction
  9040.         00h ???
  9041.         DS:SI -> Current Directory Structure???
  9042.         CL = drive (1=A:)
  9043.         01h ???
  9044.         DS:SI -> ???
  9045.         CL = file handle???
  9046.         02h ???
  9047.         DS:SI -> Current Directory Structure???
  9048.         DI = ???
  9049.         CX = drive (1=A:)
  9050. Return: CF set on error
  9051.         AX = error code (see INT 21/AH=59h)
  9052.     CF clear if successful
  9053. Note:    passed through to INT 2F/AX=112Fh with AX on top of stack
  9054. SeeAlso: AH=6Bh"DOS 5",INT 2F/AX=112Fh
  9055. --------D-216B-------------------------------
  9056. INT 21 U - DOS 5+ - NULL FUNCTION
  9057.     AH = 6Bh
  9058. Return: AL = 00h
  9059. Note:    this function does nothing and returns immediately
  9060. SeeAlso: AH=6Bh"DOS 4"
  9061. --------D-216C00-----------------------------
  9062. INT 21 - DOS 4+ - EXTENDED OPEN/CREATE
  9063.     AX = 6C00h
  9064.     BL = open mode as in AL for normal open (see INT 21/AH=3Dh)
  9065.         bit 7: inheritance
  9066.         bits 4-6: sharing mode
  9067.         bit 3 reserved
  9068.         bits 0-2: access mode
  9069.     BH = flags
  9070.         bit 6 = auto commit on every write (see also AH=68h)
  9071.         bit 5 = return error rather than doing INT 24h
  9072.     CX = create attribute
  9073.         bits 6-15 reserved
  9074.         bit 5: archive
  9075.         bit 4: reserved
  9076.         bit 3: volume label
  9077.         bit 2: system
  9078.         bit 1: hidden
  9079.         bit 0: readonly
  9080.     DL = action if file exists/does not exists
  9081.         bits 7-4 action if file does not exist
  9082.             0000 fail
  9083.             0001 create
  9084.         bits 3-0 action if file exists
  9085.             0000 fail
  9086.             0001 open
  9087.             0010 replace/open
  9088.     DH = 00h (reserved)
  9089.     DS:SI -> ASCIZ file name
  9090. Return: CF set on error
  9091.        AX = error code (see AH=59h)
  9092.     CF clear if successful
  9093.        AX = file handle
  9094.        CX = status
  9095.         1 file opened
  9096.         2 file created
  9097.         3 file replaced
  9098. Note:    the PC LAN Program only supports DL=01h, DL=10h/sharing=compatibility,
  9099.       and DL=12h
  9100. SeeAlso: AH=3Ch,AH=3Dh,AX=6C01h
  9101. --------O-216C01-----------------------------
  9102. INT 21 U - OS/2 v2.0 - "DosOpen2"
  9103.     AX = 6C01h
  9104.     ???
  9105. Return: ???
  9106. Note:    this function is similar to AX=6C00h, but supports OS/2's extended
  9107.       attributes
  9108. SeeAlso: AX=5704h,AX=6C00h,AH=6Fh"OS/2"
  9109. --------D-216D-------------------------------
  9110. INT 21 U - DOS 5+ ROM - FIND FIRST ROM PROGRAM
  9111.     AH = 6Dh
  9112.     DS:DX -> ASCIZ program name
  9113. Return: CF clear if found
  9114.         [DTA] = ASCIZ name found
  9115.     CF set if not found
  9116. SeeAlso: AH=6Eh,AH=6Fh
  9117. --------O-216D-------------------------------
  9118. INT 21 U - OS/2 v1.x FAPI - "DosMkDir2"
  9119.     AH = 6Dh
  9120.     ???
  9121. Return: ???
  9122. Note:    also supported by OS/2 v2.0+ Virtual DOS Machines
  9123. SeeAlso: AH=39h
  9124. --------D-216E-------------------------------
  9125. INT 21 U - DOS 5+ ROM - FIND NEXT ROM PROGRAM
  9126.     AH = 6Eh
  9127.     [DTA] = result of previous FindFirst ROM
  9128. Return: CF clear if found
  9129.         [DTA] = ASCIZ name found
  9130.     CF set if not found
  9131. SeeAlso: AH=6Dh
  9132. --------O-216E-------------------------------
  9133. INT 21 U - OS/2 v1.x FAPI - "DosENumAttrib"
  9134.     AH = 6Eh
  9135.     ???
  9136. Return: ???
  9137. Note:    also supported by OS/2 v2.0+ Virtual DOS Machines
  9138. SeeAlso: AX=5703h,AH=6Fh"OS/2",INT 2F/AX=112Dh
  9139. --------O-216F-------------------------------
  9140. INT 21 U - OS/2 v1.x FAPI - "DosQMaxEASize" - GET MAXIMUM SIZE OF EXTENDED ATTR
  9141.     AH = 6Fh
  9142.     ???
  9143. Return: ???
  9144. Note:    also supported by OS/2 v2.0+ Virtual DOS Machines
  9145. SeeAlso: AX=5703h,AX=6C01h,AH=6Eh"OS/2"
  9146. --------D-216F00-----------------------------
  9147. INT 21 U - DOS 5+ ROM - GET ROM SCAN START ADDRESS
  9148.     AX = 6F00h
  9149. Return: BX = current ROM scan starting segment
  9150. SeeAlso: AH=6Dh,AX=6F01h,AX=6F02h
  9151. ----------216F01-----------------------------
  9152. INT 21 U - DOS 5+ ROM - SET ROM SCAN START ADDRESS
  9153.     AX = 6F01h
  9154.     BX = new ROM scan starting address
  9155. SeeAlso: AX=6F00h,AX=6F03h
  9156. ----------216F02-----------------------------
  9157. INT 21 U - DOS 5+ ROM - GET EXCLUSION REGION LIST
  9158.     AX = 6F02h
  9159.     ES:BX -> buffer for exclusion region list (see below)
  9160. Return: ES:BX = 0000h:0000h on error, unchanged if buffer filled
  9161. SeeAlso: AX=6F00h,AX=6F03h
  9162.  
  9163. Format of exclusion region list:
  9164. Offset    Size    Description
  9165.  00h    WORD    number of entries
  9166.  02h 2N WORDs    start/end segments of N excluded regions
  9167. ----------216F03-----------------------------
  9168. INT 21 U - DOS 5+ ROM - SET EXCLUSION REGION LIST
  9169.     AX = 6F03h
  9170.     DS:DX -> new exclusion region list (see AX=6F02h)
  9171. Note:    DOS saves only the pointer and assumes that the contents of the list
  9172.       are never changed, and that regions do not overlap
  9173. SeeAlso: AX=6F01h,AX=6F02h
  9174. ----------217070BX6060-----------------------
  9175. INT 21 - PCW Weather Card interface - GET DATA SEGMENT
  9176.     AX = 7070h
  9177.     BX = 6060h
  9178.     CX = 7070h
  9179.     DX = 7070h
  9180.     SI = 7070h
  9181.     DI = 7070h
  9182. Return: AX = segment of data structure
  9183. Notes:    the data structure is at offset 516 from this segment.
  9184.     the update byte is at offset 514 from this segment.  Updates are
  9185.       once per second while this byte is nonzero and it is decremented
  9186.       once per second.  While this byte is 0 updates are once per minute.
  9187. SeeAlso: AX=7070h/BX=7070h
  9188.  
  9189. Format of data structure:
  9190. Offset    Type    Description
  9191.  00h    WORD    hour
  9192.  02h    WORD    minute
  9193.  04h    WORD    second
  9194.  06h    WORD    day
  9195.  08h    WORD    month
  9196.  0Ah    WORD    year
  9197.  0Ch    WORD    ???
  9198.  0Eh    WORD    relative barometric pressure (in 1/100 inches)
  9199.  10h    WORD    ???
  9200.  12h    WORD    ???
  9201.  14h    WORD    temperature 1 (in 1/10 degrees F)
  9202.  16h    WORD    temperature 1 lowest (in 1/10 degrees F)
  9203.  18h    WORD    temperature 1 highest (in 1/10 degrees F)
  9204.  1Ah    WORD    temperature 2 (in 1/10 degrees F)
  9205.  1Ch    WORD    temperature 2 lowest (in 1/10 degrees F)
  9206.  1Eh    WORD    temperature 2 highest (in 1/10 degrees F)
  9207.  20h    WORD    wind speed (in MPH)
  9208.  22h    WORD    average of 60 wind speed samples (in MPH)
  9209.  24h    WORD    highest wind speed (in MPH)
  9210.  26h    WORD    wind chill factor  (in 1/10 degrees F)
  9211.  28h    WORD    lowest wind chill factor (in 1/10 degrees F)
  9212.  2Ah    WORD    ???
  9213.  2Ch    WORD    wind direction (in degrees)
  9214.  2Eh    WORD    accumulated daily rainfall (in 1/10 inches)
  9215.  30h    WORD    accumulated annual rainfall (in 1/10 inches)
  9216. ----------217070BX7070-----------------------
  9217. INT 21 - PCW Weather Card interface - INSTALLATION CHECK
  9218.     AX = 7070h
  9219.     BX = 7070h
  9220.     CX = 7070h
  9221.     DX = 7070h
  9222.     SI = 7070h
  9223.     DI = 7070h
  9224. Return: AX = 0070h
  9225.     BX = 0070h
  9226.     CX = 0070h
  9227.     DX = 0070h
  9228.     SI = 0070h
  9229.     DI = 0070h
  9230. SeeAlso: AX=7070h/BX=6060h,AX=8080h
  9231. --------v-2176-------------------------------
  9232. INT 21 - VIRUS - "Klaeren"/"Hate" - INSTALLATION CHECK
  9233.     AH = 76h
  9234. Return: AL = 48h if resident
  9235. SeeAlso: AX=6969h,AX=7700h"VIRUS"
  9236. --------v-217700-----------------------------
  9237. INT 21 - VIRUS - "Growing Block" - INSTALLATION CHECK
  9238.     AX = 7700h
  9239. Return: AX = 0920h if resident
  9240. SeeAlso: AH=76h,AH=7Fh
  9241. ----------217734-----------------------------
  9242. INT 21 U - SCROLLit v1.7 - INSTALLATION CHECK
  9243.     AX = 7734h
  9244. Return: DX = 3477h if installed
  9245.         AX = segment of resident code
  9246. Program: ScrollIt is a shareware backscroll utility by Bromfield Software
  9247.       Products
  9248. --------U-217761-----------------------------
  9249. INT 21 - WATCH.COM v3.2+ - INSTALLATION CHECK
  9250.     AX = 7761h ('wa')
  9251. Return: AX = 6177h
  9252. Note:    WATCH.COM is part of the "TSR" package by TurboPower Software
  9253. SeeAlso: INT 16/AX=7761h
  9254. --------v-217F-------------------------------
  9255. INT 21 - VIRUS - "Squeaker" - INSTALLATION CHECK
  9256.     AH = 7Fh
  9257. Return: AH = 80h if resident
  9258. SeeAlso: AX=7700h,AH=83h"VIRUS"
  9259. --------!------------------------------------
  9260.