home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / INTER38B.ZIP / INTERRUP.F < prev    next >
Text File  |  1993-12-05  |  320KB  |  8,376 lines

  1. Interrupt List, part 6 of 10
  2. This compilation is Copyright (c) 1989,1990,1991,1992,1993 Ralf Brown
  3. --------D-22---------------------------------
  4. INT 22 - DOS 1+ - PROGRAM TERMINATION ADDRESS
  5. Desc:    this vector specifies the address of the routine which is to be given
  6.       control after a program is terminated; it should never be called
  7.       directly, since it does not point at an interrupt handler
  8. Notes:    this vector is restored from the DWORD at offset 0Ah in the PSP during
  9.       termination, and then a FAR JMP is performed to the address in INT 22
  10.     normally points at the instruction immediately following INT 21/AH=4Bh
  11.       call which loaded the current program
  12. SeeAlso: INT 20,INT 21/AH=00h,INT 21/AH=31h,INT 21/AH=4Ch
  13. --------G-22---------------------------------
  14. INT 22 - COMTROL HOSTESS i/ISA DEBUGGER - CHANGE FIRMWARE DEBUGGING PORT
  15.     AL = new firmware debugging port
  16. Return: ???
  17. SeeAlso: INT 21"COMTROL",INT 23"COMTROL"
  18. --------D-23---------------------------------
  19. INT 23 - DOS 1+ - CONTROL-C/CONTROL-BREAK HANDLER
  20. ---DOS 1.x---
  21. Return: AH = 00h abort program
  22.     if all registers preserved, restart DOS call
  23. ---DOS 2+---
  24.     CF clear
  25. Return: all registers preserved
  26.     return via RETF or RETF 2 with CF set
  27.         DOS will abort program with errorlevel 0
  28.     else (RETF/RETF 2 with CF clear or IRET)
  29.         interrupted DOS call is restarted
  30. Notes:    this interrupt is invoked whenever DOS detects a ^C or ^Break; it
  31.       should never be called directly
  32.     MS-DOS 1.25 also invokes INT 23 on a divide overflow (INT 00)
  33.     DOS remembers the stack pointer before calling INT 23, and if it is
  34.       not the same on return, pops and discards the top word; this is what
  35.       permits a return with RETF as well as IRET or RETF 2
  36.     any DOS call may safely be made within the INT 23 handler, although
  37.       the handler must check for a recursive invocation if it does
  38.       call DOS
  39. SeeAlso: INT 1B
  40. --------G-23---------------------------------
  41. INT 23 - COMTROL HOSTESS i/ISA DEBUGGER - GET CONFIGURATION INFORMATION
  42.     AL = query type
  43.         00h get old config map
  44.         Return: AX = old config map
  45.         01h get dual-ported RAM map
  46.         Return: BX:AX = dual-ported RAM map
  47.         02h get SCC port map
  48.         Return: BX:AX = SCC port map
  49. SeeAlso: INT 22"COMTROL",INT 26"COMTROL"
  50. --------D-24---------------------------------
  51. INT 24 - DOS 1+ - CRITICAL ERROR HANDLER
  52. Note:    invoked when a critical (usually hardware) error is encountered; should
  53.       never be called directly
  54. SeeAlso: INT 21/AH=95h
  55.  
  56. Critical error handler is invoked with:
  57.     AH = type and processing flags
  58.         bit 7 clear = disk I/O error
  59.           set    = -- if block device, bad FAT image in memory
  60.               -- if char device, error code in DI
  61.         bit 6  unused
  62.         bit 5 = 1 if Ignore allowed, 0 if not (DOS 3+)
  63.         bit 4 = 1 if Retry allowed, 0 if not (DOS 3+)
  64.         bit 3 = 1 if Fail allowed, 0 if not (DOS 3+)
  65.         bit 2 \ disk area of error    00 = DOS area  01 = FAT
  66.         bit 1 /            10 = root dir  11 = data area
  67.         bit 0 = 1 if write, 0 if read
  68.     AL = drive number if AH bit 7 clear
  69.     BP:SI -> device driver header (BP:[SI+4] bit 15 set if char device)
  70.     DI low byte contains error code if AH bit 7 set
  71.        00h write-protection violation attempted
  72.        01h unknown unit for driver
  73.        02h drive not ready
  74.        03h unknown command given to driver
  75.        04h data error (bad CRC)
  76.        05h bad device driver request structure length
  77.        06h seek error
  78.        07h unknown media type
  79.        08h sector not found
  80.        09h printer out of paper
  81.        0Ah write fault
  82.        0Bh read fault
  83.        0Ch general failure
  84.        0Dh (DOS 3+) sharing violation
  85.        0Eh (DOS 3+) lock violation
  86.        0Fh invalid disk change
  87.        10h (DOS 3+) FCB unavailable
  88.        11h (DOS 3+) sharing buffer overflow
  89.        12h (DOS 4+) code page mismatch
  90.        13h (DOS 4+) out of input
  91.        14h (DOS 4+) insufficient disk space
  92.     STACK:    DWORD    return address for INT 24 call
  93.         WORD    flags pushed by INT 24
  94.         WORD    original AX on entry to INT 21
  95.         WORD    BX
  96.         WORD    CX
  97.         WORD    DX
  98.         WORD    SI
  99.         WORD    DI
  100.         WORD    BP
  101.         WORD    DS
  102.         WORD    ES
  103.         DWORD    return address for INT 21 call
  104.         WORD    flags pushed by INT 21
  105. Handler must return:
  106.     AL = action code
  107.         00h ignore error and continue processing request
  108.         01h retry operation
  109.         02h terminate program through the equivalent of INT 21/AH=4Ch
  110.             (INT 20h for DOS 1.x)
  111.         03h fail system call in progress
  112.     SS,SP,DS,ES,BX,CX,DX preserved
  113. Notes:    the only DOS calls the handler may make are INT 21/AH=01h-0Ch,30h,59h
  114.     if the handler returns to the application by popping the stack, DOS
  115.       will be in an unstable state until the first call with AH > 0Ch
  116.     for DOS 3.1+, IGNORE (AL=00h) is turned into FAIL (AL=03h) on network
  117.       critical errors
  118.     if IGNORE specified but not allowed, it is turned into FAIL
  119.     if RETRY specified but not allowed, it is turned into FAIL
  120.     if FAIL specified but not allowed, it is turned into ABORT
  121.     (DOS 3+) if a critical error occurs inside the critical error handler,
  122.       the DOS call is automatically failed
  123. --------D-25---------------------------------
  124. INT 25 - DOS 1+ - ABSOLUTE DISK READ (except partitions > 32M)
  125.     AL = drive number (00h = A:, 01h = B:, etc)
  126.     CX = number of sectors to read
  127.     DX = starting logical sector number (0000h - highest sector on drive)
  128.     DS:BX -> buffer for data
  129. Return: CF clear if successful
  130.     CF set on error
  131.         AH = status
  132.          80h device failed to respond (timeout)
  133.          40h seek operation failed
  134.          20h controller failed
  135.          10h data error (bad CRC)
  136.          08h DMA failure
  137.          04h requested sector not found
  138.          03h write-protected disk (INT 26 only)
  139.          02h bad address mark
  140.          01h bad command
  141.         AL = error code (same as passed to INT 24 in DI)
  142.         AX = 0207h if more than 64K sectors on drive
  143.     may destroy all other registers except segment registers
  144. Notes:    original flags are left on stack, and must be popped by caller
  145.     this call bypasses the DOS filesystem
  146. BUGS:    DOS 3.1 through 3.3 set the word at ES:[BP+1Eh] to FFFFh if AL is an
  147.       invalid drive number
  148.     DR-DOS 3.41 will return with a jump instead of RETF, leaving the
  149.       wrong number of bytes on the stack; use the huge-partition version
  150.       (INT 25/CX=FFFFh) for all partition sizes under DR-DOS 3.41
  151. SeeAlso: INT 13/AH=02h,INT 25/CX=FFFFh,INT 26
  152. --------D-25----CXFFFF-----------------------
  153. INT 25 - DOS 3.31+ - ABSOLUTE DISK READ (>32M hard-disk partition)
  154.     CX = FFFFh
  155.     AL = drive number (0=A, 1=B, etc)
  156.     DS:BX -> disk read packet (see below)
  157. Return: same as above
  158. Notes:    partition is potentially >32M (and requires this form of the call) if
  159.       bit 1 of device attribute word in device driver is set
  160.     original flags are left on stack, and must be removed by caller
  161.     this call bypasses the DOS filesystem
  162. SeeAlso: INT 13/AH=02h,INT 25,INT 26/CX=FFFFh
  163.  
  164. Format of disk read packet:
  165. Offset    Size    Description
  166.  00h    DWORD    sector number
  167.  04h    WORD    number of sectors to read
  168.  06h    DWORD    transfer address
  169. --------d-25CDCD-----------------------------
  170. INT 25 - Stacker - GET DEVICE DRIVER ADDRESS
  171.     AX = CDCDh
  172.     DS:BX -> buffer for address (see below)
  173.     CX = 0001h
  174.     DX = 0000h
  175. Return: AX = CDCDh if Stacker installed
  176.         DS:BX buffer filled
  177.  
  178. Format of driver address buffer:
  179. Offset    Size    Description
  180.  00h    WORD    signature CDCDh
  181.  02h    WORD    ??? 0001h
  182.  04h    DWORD    pointer to start of Stacker device driver
  183.  
  184. Format of device driver:
  185. Offset    Size    Description
  186.  00h    WORD    signature A55Ah
  187.  02h    WORD    Stacker version * 64h
  188.  04h    WORD    offset of volume-specific information offset table
  189.         (list of WORDs, one per drive, containing offsets to various
  190.         information)
  191.  06h 56 BYTEs    n/a
  192.  3Eh    BYTE    volume number, set after INT 21/AX=4404h
  193.         (use to index into volume-specific info offset table)
  194.  3Fh 19 BYTEs    n/a
  195.  52h  4 BYTEs    ASCII string "SWAP"
  196.  56h 26 BYTEs    drive mapping table (one byte for each drive A: through Z:)
  197.  
  198. Format of Stacker boot record:
  199. Offset    Size    Description
  200. 1F0h  8 BYTEs    Stacker signature (first byte is CDh)
  201. 1F8h    DWORD    pointer to start of Stacker device driver
  202. 1FCh    WORD    Stacker volume number
  203. 1FEh    WORD    ???
  204. --------c-25--FFSI4358-----------------------
  205. INT 25 - PC-CACHE.SYS - INSTALLATION CHECK
  206.     AL = FFh
  207.     SI = 4358h
  208. Return: SI = 6378h if installed
  209.         CX = segment of device driver PC-CACHE.SYS
  210.         DX = version (major in DH, minor in DL)
  211. Program: PC-CACHE.SYS is a small device driver used by PC-Cache v5.x to obtain
  212.       access to certain disk drivers for devices such as Bernoulli drives
  213. SeeAlso: INT 13/AH=A0h
  214. --------D-26---------------------------------
  215. INT 26 - DOS 1+ - ABSOLUTE DISK WRITE (except partitions > 32M)
  216.     AL = drive number (00h = A:, 01h = B:, etc)
  217.     CX = number of sectors to write
  218.     DX = starting logical sector number (0000h - highest sector on drive)
  219.     DS:BX -> data to write
  220. Return: CF clear if successful
  221.     CF set on error
  222.         AH = status
  223.          80h device failed to respond (timeout)
  224.          40h seek operation failed
  225.          20h controller failed
  226.          10h data error (bad CRC)
  227.          08h DMA failure
  228.          04h requested sector not found
  229.          03h write-protected disk (INT 26 only)
  230.          02h bad address mark
  231.          01h bad command
  232.         AL = error code (same as passed to INT 24 in DI)
  233.         AX = 0207h if more than 64K sectors on drive
  234.     may destroy all other registers except segment registers
  235. Notes:    original flags are left on stack, and must be popped by caller
  236.     this call bypasses the DOS filesystem, though DOS 5+ invalidates any
  237.       disk buffers referencing sectors which are written with this call
  238. BUGS:    DOS 3.1 through 3.3 set the word at ES:[BP+1Eh] to FFFFh if AL is an
  239.       invalid drive number
  240.     DR-DOS 3.41 will return with a jump instead of RETF, leaving the
  241.       wrong number of bytes on the stack; use the huge-partition version
  242.       (INT 26/CX=FFFFh) for all partition sizes under DR-DOS 3.41
  243. SeeAlso: INT 13/AH=03h,INT 25,INT 26/CX=FFFFh
  244. --------D-26----CXFFFF-----------------------
  245. INT 26 - DOS 3.31+ - ABSOLUTE DISK WRITE (>32M hard-disk partition)
  246.     CX = FFFFh
  247.     AL = drive number (0=A, 1=B, etc)
  248.     DS:BX -> disk write packet (see below)
  249. Return: same as above
  250. Notes:    partition is potentially >32M (and requires this form of the call) if
  251.       bit 1 of device attribute word in device driver is set
  252.     original flags are left on stack, and must be removed by caller
  253.     this call bypasses the DOS filesystem, though DOS 5+ invalidates any
  254.       disk buffers referencing sectors which are written with this call
  255. SeeAlso: INT 13/AH=03h,INT 25/CX=FFFFh,INT 26
  256.  
  257. Format of disk write packet:
  258. Offset    Size    Description
  259.  00h    DWORD    sector number
  260.  04h    WORD    number of sectors to read
  261.  06h    DWORD    transfer address
  262. --------G-26---------------------------------
  263. INT 26 - COMTROL HOSTESS i/ISA DEBUGGER - ENTER/EXIT EXTENDED ADDRESSING MODE
  264.     ???
  265. Return: ???
  266. SeeAlso: INT 23"COMTROL",INT 27"COMTROL"
  267. --------D-27---------------------------------
  268. INT 27 - DOS 1+ - TERMINATE AND STAY RESIDENT
  269.     DX = number of bytes to keep resident (max FFF0h)
  270.     CS = segment of PSP
  271. Return: never
  272. Notes:    this is an obsolete call
  273.     INT 22, INT 23, and INT 24 are restored from the PSP
  274.     does not close any open files
  275.     the minimum number of bytes which will remain resident is 110h for
  276.       DOS 2.x and 60h for DOS 3+; there is no minimum for DOS 1.x, which
  277.       implements this service in COMMAND.COM rather than the DOS kernel
  278. SeeAlso: INT 21/AH=31h
  279. --------G-27---------------------------------
  280. INT 27 - COMTROL HOSTESS i/ISA DEBUGGER - INVOKE REMOTE TURBO DEBUGGER KERNEL
  281.     ???
  282. Return: ???
  283. Desc:    invoke a copy of the remote Turbo Debugger kernel on the Hostess i
  284.       controller
  285. SeeAlso: INT 20"COMTROL",INT 26"COMTROL"
  286. --------D-28---------------------------------
  287. INT 28 C - DOS 2+ - DOS IDLE INTERRUPT
  288.     SS:SP = top of MS-DOS stack for I/O functions
  289. Return: all registers preserved
  290. Desc:    This interrupt is invoked each time one of the DOS character input
  291.       functions loops while waiting for input.  Since a DOS call is in
  292.       progress even though DOS is actually idle during such input waits,
  293.       hooking this function is necessary to allow a TSR to perform DOS
  294.       calls while the foreground program is waiting for user input.     The
  295.       INT 28h handler may invoke any INT 21h function except functions
  296.       00h through 0Ch.
  297. Notes:    under DOS 2.x, the critical error flag (the byte immediately after the
  298.       InDOS flag) must be set in order to call DOS functions 50h/51h from
  299.       the INT 28h handler without destroying the DOS stacks.
  300.     calls to INT 21/AH=3Fh,40h from within an INT 28 handler may not use a
  301.       handle which refers to CON
  302.     at the time of the call, the InDOS flag (see INT 21/AH=34h) is normally
  303.       set to 01h; if larger, DOS is truly busy and should not be reentered
  304.     the default handler is an IRET instruction
  305.     supported in OS/2 compatibility box
  306.     the _MS-DOS_Programmer's_Reference_ for DOS 5.0 incorrectly documents
  307.       this interrupt as superseded
  308. SeeAlso: INT 21/AH=34h,INT 2A/AH=84h,INT 2F/AX=1680h
  309. --------D-29---------------------------------
  310. INT 29 C - DOS 2+ - FAST CONSOLE OUTPUT
  311.     AL = character to display
  312. Return: nothing
  313. Notes:    automatically called when writing to a device with bit 4 of its device
  314.       driver header set (see also INT 21/AH=52h)
  315.     COMMAND.COM v3.2 and v3.3 compare the INT 29 vector against the INT 20
  316.       vector and assume that ANSI.SYS is installed if the segment is larger
  317.     the default handler under DOS 2.x and 3.x simply calls INT 10/AH=0Eh
  318.     the default handler under DESQview 2.2 understands the <Esc>[2J
  319.       screen-clearing sequence, calls INT 10/AH=0Eh for all others
  320. SeeAlso: INT 21/AH=52h,INT 2F/AX=0802h,INT 79
  321. --------N-2A00-------------------------------
  322. INT 2A - NETWORK (Microsoft, LANtastic) - INSTALLATION CHECK
  323.     AH = 00h
  324. Return: AH <> 00h if installed
  325.     CF set if NetWare v2.15 NetBIOS emulator installed
  326. Note:    also supported by Lantastic, NetWare, 10NET, etc.
  327. SeeAlso: INT 5C
  328. --------N-2A0000-----------------------------
  329. INT 2A - AT&T Starlan Extended NetBIOS (var length names) - INSTALLATION CHECK
  330.     AX = 0000h
  331. Return: AH = DDh
  332. SeeAlso: INT 5B
  333. --------N-2A01-------------------------------
  334. INT 2A - NETWORK (Microsoft,LANtastic) - EXECUTE NETBIOS REQUEST,NO ERROR RETRY
  335.     AH = 01h
  336.     ES:BX -> NCB (see INT 5C)
  337. Return: AL = NetBIOS error code
  338.     AH = 00h if no error
  339.        = 01h on error
  340. SeeAlso: AH=04h,AX=0500h,INT 5B,INT 5C"NetBIOS"
  341. --------N-2A02-------------------------------
  342. INT 2A - NETWORK (Microsoft) - SET NET PRINTER MODE
  343.     AH = 02h
  344.     ???
  345. Return: ???
  346. --------N-2A0300-----------------------------
  347. INT 2A - NETWORK (Microsoft,LANtastic) - CHECK DIRECT I/O
  348.     AX = 0300h
  349.     DS:SI -> ASCIZ device name (may be full path or only drive specifier--
  350.         must include the colon)
  351. Return: CF clear if direct physical addressing (INT 13,INT 25) permissible
  352.     CF set if access via files only
  353. Notes:    do not use direct disk accesses if this function returns CF set or the
  354.       device is redirected (INT 21/AX=5F02h)
  355.     may take some time to execute
  356.     this function is called by the DOS kernel on INT 25 and INT 26
  357.     also supported by Lantastic, NetWare, 10NET, etc.
  358. SeeAlso: INT 13,INT 25,INT 26,INT 21/AX=5F02h
  359. --------N-2A04-------------------------------
  360. INT 2A - NETWORK (Microsoft,LANtastic) - EXECUTE NetBIOS REQUEST
  361.     AH = 04h
  362.     AL = error retry
  363.         00h automatically retry request on errors 09h, 12h, and 21h
  364.         01h no retry
  365.         02h ???
  366.     ES:BX -> Network Control Block (see INT 5C"NetBIOS")
  367. Return: AX = 0000h if successful
  368.     AH = 01h on error
  369.         AL = error code
  370. Notes:    invokes either INT 5B or INT 5C as appropriate
  371.     also supported by Lantastic, NetWare, 10NET, etc.
  372.     NetWare 2.15 NetBIOS emulator returns CF clear if successful, CF set
  373.       on error
  374. SeeAlso: AH=01h,AX=0500h,INT 5B,INT 5C"NetBIOS"
  375. --------N-2A0500-----------------------------
  376. INT 2A - NETWORK (Microsoft,LANtastic) - GET NETWORK RESOURCE AVAILABILITY
  377.     AX = 0500h
  378. Return: AX reserved
  379.     BX = number of network names available
  380.     CX = number of network control blocks available
  381.     DX = number of network sessions available
  382. Note:    also supported by Lantastic, NetWare, 10NET, etc.
  383. SeeAlso: AH=01h,AH=04h,INT 5C"NetBIOS"
  384. --------N-2A06-------------------------------
  385. INT 2A - NETBIOS, LANtastic - NETWORK PRINT-STREAM CONTROL
  386.     AH = 06h
  387.     AL = 01h set concatenation mode (all printer output put in one job)
  388.          02h set truncation mode (default)
  389.          printer open/close starts new print job
  390.          03h flush printer output and start new print job
  391. Return: CF set on error
  392.         AX = error code
  393.     CF clear if successful
  394. Notes:    subfunction 03h is equivalent to Ctrl/Alt/keypad-*
  395.     also supported by LANtastic, NetWare, 10NET, etc.
  396.     LANtastic v4.x no longer supports this call
  397. SeeAlso: INT 21/AX=5D08h,INT 21/AX=5D09h,INT 2F/AX=1125h
  398. --------N-2A07-------------------------------
  399. INT 2A U - PC Network v1.00 - RECEIVER.COM - ???
  400.     AH = 07h
  401.     ???
  402. Return: ???
  403. Program: PC Network is an early networking package which was renamed the
  404.       IBM PC Local Area Network Program (PC LAN Program) as of v1.10
  405. SeeAlso: AH=86h
  406. --------N-2A2001-----------------------------
  407. INT 2A - MS Networks or NETBIOS - ???
  408.     AX = 2001h
  409.     ???
  410. Return: ???
  411. Note:    intercepted by DESQview 2.x
  412. --------N-2A2002-----------------------------
  413. INT 2A - NETWORK - ???
  414.     AX = 2002h
  415.     ???
  416. Return: ???
  417. Note:    called by MS-DOS 3.30-6.00 APPEND
  418. --------N-2A2003-----------------------------
  419. INT 2A - NETWORK - ???
  420.     AX = 2003h
  421.     ???
  422. Return: ???
  423. Note:    called by MS-DOS 3.30-6.00 APPEND
  424. --------N-2A7802-----------------------------
  425. INT 2A - NETWORK - PC LAN PROG v1.31+ - GET LOGGED ON USER NAME
  426.     AX = 7802h
  427.     ES:DI -> 8-byte buffer to be filled
  428. Return: AL = 00h if no user logged on to Extended Services
  429.     AL <> 00h if user logged on to Extended Services
  430.         buffer at ES:DI filled with name, padded to 8 chars with blanks.
  431. --------D-2A80-------------------------------
  432. INT 2A CU - NETWORK - BEGIN DOS CRITICAL SECTION
  433.     AH = 80h
  434.     AL = critical section number (00h-0Fh)
  435.         01h DOS kernel, SHARE.EXE, DOSMGR
  436.         apparently for maintaining the integrity of DOS/SHARE/NET
  437.           data structures
  438.         02h DOS kernel, DOSMGR
  439.         ensures that no multitasking occurs while DOS is calling an
  440.           installable device driver
  441.         05h network redirector
  442.         06h DOS 4.x only IFSFUNC
  443.         08h ASSIGN.COM
  444.         0Ah MSCDEX
  445.         0Fh IBM PC LAN server (while intercepting INT 10/AH=06h,07h,0Eh)
  446. Notes:    normally hooked to avoid interrupting a critical section, rather than
  447.       called
  448.     the handler should ensure that none of the critical sections are
  449.       reentered, usually by suspending a task which attempts to reenter
  450.       an active critical section
  451.     the DOS kernel does not invoke critical sections 01h and 02h unless it
  452.       is patched.  DOS 3.1+ contains a zero-terminated list of words
  453.       beginning at offset -11 from the Swappable Data Area
  454.       (see INT 21/AX=5D06h); each word contains the offset within the
  455.       DOS data segment of a byte which must be changed from C3h (RET)
  456.       to 50h (POP AX) under DOS 3.x or from 00h to a nonzero value under
  457.       DOS 4+ to enable use of critical sections.  For DOS 4+, all words in
  458.       this list point at the byte at offset 0D0Ch.
  459. SeeAlso: AH=81h,AH=82h,AX=8700h,INT 21/AX=5D06h,INT 21/AX=5D0Bh
  460. --------D-2A81-------------------------------
  461. INT 2A CU - NETWORK - END DOS CRITICAL SECTION
  462.     AH = 81h
  463.     AL = critical section number (00h-0Fh) (see AH=80h)
  464. Notes:    normally hooked rather than called
  465.     the handler should reawaken any tasks which were suspended due to an
  466.       attempt to enter the specified critical section
  467. SeeAlso: AH=80h,AH=82h,AX=8700h
  468. --------D-2A82-------------------------------
  469. INT 2A CU - NETWORK - END DOS CRITICAL SECTIONS 0 THROUGH 7
  470.     AH = 82h
  471. Notes:    called by the INT 21h function dispatcher for function 0 and functions
  472.       greater than 0Ch except 59h, and on process termination
  473.     the handler should reawaken any tasks which were suspended due to an
  474.       attempt to enter one of the critical sections 0 through 7
  475. SeeAlso: AH=81h
  476. --------N-2A84-------------------------------
  477. INT 2A CU - NETWORK - KEYBOARD BUSY LOOP
  478.     AH = 84h
  479. Note:    similar to DOS's INT 28h, called from inside the DOS keyboard input
  480.       loop (i.e. INT 21/AH=07h or INT 21/AH=08h) to allow the network
  481.       software to process requests
  482. SeeAlso: INT 28
  483. --------N-2A86-------------------------------
  484. INT 2A U - PC Network v1.00 - RECEIVER.COM - ???
  485.     AH = 86h
  486.     ???
  487. Return: ???
  488. SeeAlso: AH=07h,AH=C4h
  489. --------P-2A8700-----------------------------
  490. INT 2A CU - PRINT - BEGIN BACKGROUND PRINTING
  491.     AX = 8700h
  492.     CF clear
  493. Return: CF clear if OK to print in background now
  494.     CF set if background printing not allowed at this time
  495. Desc:    used to inform interested programs that PRINT is about to start its
  496.       background processing, and allow those programs to postpone the
  497.       processing if necessary
  498. Notes:    when PRINT gains control and wants to begin printing, it calls this
  499.       function.  If CF is clear on return, PRINT begins its background
  500.       processing, and calls AX=8701h when it is done.  If CF is set on
  501.       return, PRINT will relinquish control immediately, and will not
  502.       call AX=8701h
  503.     PCVENUS (an early network shell by IBM and CMU) hooks this call to
  504.       prevent background printing while its own code is active
  505. SeeAlso: AH=80h,AH=81h,AX=8701h
  506. --------P-2A8701-----------------------------
  507. INT 2A CU - PRINT - END BACKGROUND PRINTING
  508.     AX = 8701h
  509. Desc:    used to inform interested programs that PRINT has completed its
  510.       background processing
  511. Note:    called by PRINT after it has performed some background printing; not
  512.       called if AX=8700h returned with CF set.
  513. SeeAlso: AX=8700h
  514. --------N-2A89-------------------------------
  515. INT 2A U - PC Network v1.00 - RECEIVER.COM - ???
  516.     AH = 89h
  517.     AL = ???  (ASSIGN uses 08h)
  518.     ???
  519. Return: ???
  520. --------I-2A90-------------------------------
  521. INT 2A U - IBM PC 3270 EMULATION PROGRAM - ???
  522.     AH = 90h
  523.     ???
  524. Return: ???
  525. Note:    the LANtastic redirector and SERVER.EXE use this function with AL=01h,
  526.       03h-07h,0Ch-11h
  527. --------N-2AC2-------------------------------
  528. INT 2A U - Network - ???
  529.     AH = C2h
  530.     AL = subfunction
  531.         07h ???
  532.         08h ???
  533.     BX = 0001h
  534.     ???
  535. Return: ???
  536. Note:    this function is called by the DOS 3.30-6.00 APPEND
  537. --------N-2AC4-------------------------------
  538. INT 2A U - PC Network v1.00 - RECEIVER.COM - ???
  539.     AH = C4h
  540.     AL = subfunction
  541.         07h ???
  542.         08h ???
  543.     BX = ???
  544.     ???
  545. Return: ???
  546. SeeAlso: AH=86h
  547. --------N-2AD800-----------------------------
  548. INT 2A U - Novell NetWare Lite - SERVER - SET ???
  549.     AX = D800h
  550. Return: nothing
  551. Desc:    sets ??? flag, and sets ??? to initial value
  552. Note:    called by CLIENT
  553. SeeAlso: AX=D801h,AX=D850h
  554. --------N-2AD801-----------------------------
  555. INT 2A U - Novell NetWare Lite - SERVER - RESET ???
  556.     AX = D801h
  557. Return: nothing
  558. Desc:    clears the ??? flag set by AX=D800h
  559. Note:    called by CLIENT
  560. SeeAlso: AX=D800h,AX=D850h
  561. --------N-2AD850-----------------------------
  562. INT 2A U - Novell NetWare Lite - CLIENT - INCREMENT ???
  563.     AX = D850h
  564. Return: nothing
  565. Desc:    increments an internal byte-sized counter
  566. Note:    this function is intercepted by DV/X 1.10 PEERSERV.DVR and the
  567.       Advanced NetWare 4.0 DOS Requester
  568. SeeAlso: AX=D851h
  569. --------N-2AD851-----------------------------
  570. INT 2A U - Novell NetWare Lite - CLIENT - RESET ???
  571.     AX = D851h
  572. Return: nothing
  573. Desc:    resets an internal byte-sized counter to zero
  574. Note:    this function is intercepted by DV/X 1.10 PEERSERV.DVR and the
  575.       Advanced NetWare 4.0 DOS Requester
  576. SeeAlso: AX=D850h
  577. --------N-2AD852-----------------------------
  578. INT 2A U - Novell NetWare - DOS Requester v1.03 - ???
  579.     AX = D852h
  580. Return: ???
  581. Note:    calls the NetWare Lite SERVER installation check, and sets ??? pointer
  582. SeeAlso: AX=D853h,INT 2F/AX=D880h
  583. --------N-2AD853-----------------------------
  584. INT 2A U - Novell NetWare - DOS Requester v1.03 - ???
  585.     AX = D853h
  586. Return: ???
  587. Note:    clears the pointer set by AX=D852h
  588. SeeAlso: AX=D852h
  589. --------N-2AE0-------------------------------
  590. INT 2A U - PC Network 1.00 - ???
  591.     AH = E0h
  592.     AL = subfunction??? (01h,02h, maybe others)
  593.     ???
  594. Return: ???
  595. Note:    called by PCNet 1.00 NET.COM, a shell program from which others are run
  596. --------N-2AFF90-----------------------------
  597. INT 2A - PC/TCP PREDIR.EXE - ???
  598.     AX = FF90h
  599. Return: AX = ???
  600. Note:    PREDIR.EXE is the network printer redirector included as part of the
  601.       PC/TCP system by FTP Software, Inc.
  602. --------N-2AFF91-----------------------------
  603. INT 2A - PC/TCP PREDIR.EXE - ???
  604.     AX = FF91h
  605.     BX = ???
  606. Return: AX = status???
  607. --------N-2AFF92-----------------------------
  608. INT 2A - PC/TCP PREDIR.EXE - INSTALLATION CHECK
  609.     AX = FF92h
  610. Return: AX = 0000h if installed
  611.        BX = redirected printer port (FFFFh if no printers redirected)
  612.        CX = version (CH = major, CL = minor)
  613. Note:    PREDIR.EXE is the network printer redirector included as part of the
  614.       PC/TCP system by FTP Software, Inc.
  615. --------N-2AFF93-----------------------------
  616. INT 2A - PC/TCP PREDIR.EXE - ???
  617.     AX = FF93h
  618. Return: AX = ???
  619. --------N-2AFF94-----------------------------
  620. INT 2A - PC/TCP PREDIR.EXE - ???
  621.     AX = FF94h
  622.     BX = ???
  623.     CX = ???
  624.     DX = ???
  625. Return: AX = ???
  626. Note:    PREDIR.EXE is the network printer redirector included as part of the
  627.       PC/TCP system by FTP Software, Inc.
  628. --------N-2AFF95-----------------------------
  629. INT 2A - PC/TCP PREDIR.EXE - GET CONFIGURATION STRINGS
  630.     AX = FF95h
  631.     CX = what to get
  632.         0000h ??? (returned pointer to "C:\COMMAND.COM")
  633.         0001h spooling program
  634.         0002h ???
  635.         0003h spool file name
  636.         0004h swap file name
  637. Return: AX = status
  638.         0000h successful
  639.     BX:DX -> ASCIZ configuration string
  640. --------N-2AFF96-----------------------------
  641. INT 2A - PC/TCP PREDIR.EXE - SET PRINT JOB TERMINATION CONFIGURATION
  642.     AX = FF96h
  643.     CX = what to set
  644.         0000h ???
  645.         0001h print-on-hotkey state
  646.         0002h print-on-exit state
  647.         0003h print job timeout in clock ticks
  648.         0004h print-on-EOF state
  649.     BX = new value (0000h disabled, 0001h enabled except for timeout)
  650. Return: AX = ???
  651. SeeAlso: AX=FF97h
  652. Note:    PREDIR.EXE is the network printer redirector included as part of the
  653.       PC/TCP system by FTP Software, Inc.
  654. --------N-2AFF97-----------------------------
  655. INT 2A - PC/TCP PREDIR.EXE - GET PRINT JOB TERMINATION CONFIGURATION
  656.     AX = FF97h
  657.     CX = what to get
  658.         0000h ???
  659.         0001h print-on-hotkey state
  660.         0002h print-on-exit state
  661.         0003h print job timeout in clock ticks
  662.         0004h print-on-EOF state
  663. Return: AX = status
  664.         0000h successful
  665.     BX = old value (0000h disabled, 0001 enabled except for timeout)
  666. SeeAlso: AX=FF96h
  667. --------D-2B---------------------------------
  668. INT 2B - DOS 2+ - RESERVED
  669. Note:    this vector is not used in DOS versions <= 6.00, and points at an IRET
  670. --------D-2C---------------------------------
  671. INT 2C - DOS 2+ - RESERVED
  672. Note:    this vector is not used in DOS versions <= 6.00, and points at an IRET
  673. --------O-2C---------------------------------
  674. INT 2C - STARLITE architecture - KERNEL API
  675. Note:    STARLITE is an architecture by General Software for a series of MS-DOS
  676.       compatible operating systems (OEM DOS, NETWORK DOS, and SMP DOS) to
  677.       be released in 1991.    The interrupt number is subject to change
  678.       before the actual release.
  679. --------m-2C---------------------------------
  680. INT 2C R - RM386 v6.00 - CLOAKING - CALL PROTECTED-MODE PASSALONG CHAIN
  681. Note:    when this interrupt is invoked in V86 mode, RM386 will invoke the first
  682.       in a chain of protected-mode handlers, and will only pass execution
  683.       to the V86-mode INT 2C handler if none of the handlers in the
  684.       passalong chain handle the call instead.  This is the method by which
  685.       the real-mode stub of a cloaked application communicates with the
  686.       protected-mode portion.
  687. Program: RM386 (RAM-MAN/386) is the memory manager included in Helix Software's
  688.       Netroom
  689. SeeAlso: INT 2C/AX=0009h
  690. --------m-2C0000-----------------------------
  691. INT 2C P - RM386 v6.00 - CLOAKING - ALLOCATE GDT SELECTOR
  692.     AX = 0000h
  693.     EBX = base address
  694.     CL = access mode byte
  695.     CH = extended access mode byte (omit limit field)
  696.     EDX = segment limit
  697. Return: CF clear if successful
  698.         AX = selector
  699.     CF set on error
  700.         AX = error code (see below)
  701. Program: RM386 (RAM-MAN/386) is the memory manager included in Helix Software's
  702.       Netroom
  703. Note:    this INT 2C interface is used by Netroom's DPMI.EXE v3.00
  704. SeeAlso: AX=0001h,AX=0002h,AX=0003h,AX=0004h,AX=0005h,INT 31/AH=57h
  705.  
  706. Values for error code:
  707.  0001h    no more selectors
  708.  0002h    not a GDT ring 0 selector
  709.  0003h    invalid selector (out of range, not user selector)
  710.  0004h    selector not allocated
  711. --------m-2C0001-----------------------------
  712. INT 2C P - RM386 v6.00 - CLOAKING - FREE GDT SELECTOR
  713.     AX = 0001h
  714.     SI = selector
  715. Return: CF clear if successful
  716.     CF set on error
  717.         AX = error code (see AX=0000h)
  718. SeeAlso: AX=0000h
  719. --------m-2C0002-----------------------------
  720. INT 2C P - RM386 v6.00 - CLOAKING - SET SEGMENT BASE ADDRESS
  721.     AX = 0002h
  722.     SI = selector
  723.     EBX = new physical base addres
  724. Return: CF clear if successful
  725.     CF set on error
  726.         AX = error code (see AX=0000h)
  727. Return: AX=0000h,AX=0003h,AX=0004h,INT 31/AX=0007h
  728. --------m-2C0003-----------------------------
  729. INT 2C P - RM386 v6.00 - CLOAKING - SET SEGMENT LIMIT
  730.     AX = 0003h
  731.     SI = selector
  732.     EBX = new limit
  733. Return: CF clear if successful
  734.     CF set on error
  735.         AX = error code (see AX=0000h)
  736. SeeAlso: AX=0000h,AX=0002h,AX=0004h,INT 31/AX=0008h
  737. --------m-2C0004-----------------------------
  738. INT 2C P - RM386 v6.00 - CLOAKING - SET SEGMENT ACCESS MODE
  739.     AX = 0004h
  740.     SI = selector
  741.     CL = new access mode byte
  742. Return: CF clear if successful
  743.     CF set on error
  744.         AX = error code (see AX=0000h)
  745. SeeAlso: AX=0000h,AX=0002h,AX=0003h,AX=0005h,INT 31/AX=0009h
  746. --------m-2C0005-----------------------------
  747. INT 2C P - RM386 v6.00 - CLOAKING - SET SEGMENT EXTENDED ACCESS MODE
  748.     AX = 0005h
  749.     SI = selector
  750.     CL = new extended access mode byte (limit field ignored)
  751. Return: CF clear if successful
  752.     CF set on error
  753.         AX = error code (see AX=0000h)
  754. SeeAlso: AX=0000h,AX=0002h,AX=0003h,AX=0004h,INT 31/AX=0009h
  755. --------m-2C0006-----------------------------
  756. INT 2C P - RM386 v6.00 - CLOAKING - GET PROTECTED-MODE INTERRUPT VECTOR
  757.     AX = 0006h
  758.     CL = vector
  759. Return: CF clear
  760.     DX:EBX -> current interrupt handler
  761. SeeAlso: AX=0007h,INT 31/AX=0204h
  762. --------m-2C0007-----------------------------
  763. INT 2C P - RM386 v6.00 - CLOAKING - SET PROTECTED-MODE INTERRUPT VECTOR
  764.     AX = 0007h
  765.     CL = vector
  766.     DX:EBX -> interrupt handler
  767. Return: CF clear
  768. SeeAlso: AX=0006h,INT 31/AX=0205h
  769. --------m-2C0008-----------------------------
  770. INT 2C P - RM386 v6.00 - CLOAKING - GET PASSALONG ADDRESS
  771.     AX = 0008h
  772. Return: CF clear
  773.     DX:EBX = current passalong address
  774. SeeAlso: AX=0009h,AX=002Ch
  775. --------m-2C0009-----------------------------
  776. INT 2C P - RM386 v6.00 - CLOAKING - SET PASSALONG ADDRESS
  777.     AX = 0009h
  778.     DX:EBX = new value for passalong address
  779. Return: CF clear
  780. Note:    when an INT 2C instruction is executed in V86 mode, RM386 calls the
  781.       passalong address.  The handler should check whether the upcall
  782.       is of interest to it, and if not it should jump to the old passalong
  783.       address (retrieved with AX=0008h before the handler was installed)
  784. SeeAlso: AX=0008h,AX=002Dh,INT 2C"CLOAKING"
  785.  
  786. Passalong address called with:
  787.     EAX = CS:IP of byte following INT 2C instruction invoking passalong
  788.     SS:EBX -> caller registers (see below)
  789.     CF clear
  790.     others undefined
  791. Return: CF clear: pass along to V86-mode INT 2C handler
  792.     CF set: return immediately to V86 mode
  793.  
  794. Format of caller registers:
  795. Offset    Size    Description
  796.  00h    DWORD    EDI
  797.  04h    DWORD    ESI
  798.  08h    DWORD    EBP
  799.  0Ch    DWORD    reserved (ESP from PUSHAD instruction)
  800.  10h    DWORD    EBX
  801.  14h    DWORD    EDX
  802.  18h    DWORD    ECX
  803.  1Ch    DWORD    EAX
  804.  20h    DWORD    error code
  805.  24h    DWORD    EIP
  806.  28h    WORD    CS
  807.  2Ah    WORD    padding
  808.  2Ch    DWORD    EFLAGS
  809.  30h    DWORD    ESP
  810.  34h    WORD    SS
  811.  36h    WORD    padding
  812. --remainder not available if protected-mode ring3 trap---
  813.  38h    WORD    ES
  814.  3Ah    WORD    padding
  815.  3Ch    WORD    DS
  816.  3Eh    WORD    padding
  817.  40h    WORD    FS
  818.  42h    WORD    padding
  819.  44h    WORD    GS
  820.  46h    WORD    padding
  821. --------m-2C000A-----------------------------
  822. INT 2C P - RM386 v6.00 - CLOAKING - GET BASE ADDRESS OF GDT SELECTOR
  823.     AX = 000Ah
  824.     SI = selector
  825. Return: CF clear if successful
  826.         EBX = segment base address
  827.     CF set on error
  828.         AX = error code (see AX=0000h)
  829. Program: RM386 (RAM-MAN/386) is the memory manager included in Helix Software's
  830.       Netroom
  831. SeeAlso: AX=0000h,AX=0002h,AX=000Bh
  832. --------m-2C000B-----------------------------
  833. INT 2C P - RM386 v6.00 - CLOAKING - GET SELECTOR LIMIT
  834.     AX = 000Bh
  835.     SI = selector
  836. Return: CF clear if successful
  837.         EBX = segment base address
  838.     CF set on error
  839.         AX = error code (see AX=0000h)
  840. SeeAlso: AX=000Ah
  841. --------m-2C---------------------------------
  842. INT 2C P - RM386 v6.00 - CLOAKING - RESERVED FOR CLOAKED BIOS USE UNDER WINDOWS
  843.     AX = function (000Ch-001Fh)
  844. --------m-2C0020-----------------------------
  845. INT 2C P - RM386 v6.00 - CLOAKING - GET SIZE OF PROTECTED-MODE STATE
  846.     AX = 0020h
  847. Return: EAX = number of bytes required for storing state
  848. SeeAlso: AX=0021h,AX=0022h
  849. --------m-2C0021-----------------------------
  850. INT 2C P - RM386 v6.00 - CLOAKING - SAVE PROTECTED-MODE STATE
  851.     AX = 0021h
  852.     ES:EDI -> buffer for protected-mode state
  853. Return: CF clear
  854.     buffer filled
  855. SeeAlso: AX=0020h,AX=0022h
  856. --------m-2C0022-----------------------------
  857. INT 2C P - RM386 v6.00 - CLOAKING - RESTORE PROTECTED-MODE STATE
  858.     AX = 0022h
  859.     DS:ESI -> buffer containing previously-saved protected-mode state
  860. Return: CF clear if successful
  861.         state restored
  862.     CF set on error (invalid buffer contents)
  863. SeeAlso: AX=0020h,AX=0021h
  864. --------m-2C0023-----------------------------
  865. INT 2C P - RM386 v6.00 - CLOAKING - ISSUE PROTECTED-MODE XMS CALL
  866.     AX = 0023h
  867. Note:    not currently implemented--NOP in RM386 v6.00
  868. --------m-2C0024-----------------------------
  869. INT 2C P - RM386 v6.00 - CLOAKING - SET V86-MODE STACK
  870.     AX = 0024h
  871.     DX:EBX = new value for V86-mode SS:ESP
  872. Return: nothing
  873. --------m-2C0025-----------------------------
  874. INT 2C P - RM386 v6.00 - CLOAKING - CALL V86-MODE PROCEDURE
  875.     AX = 0025h
  876.     DS:EBX -> client register structure (see AX=0009h)
  877. Return: CF clear if successful
  878.         client register structure updated
  879.     CF set if no more nested procedure call space available
  880. Note:    this call uses the V86-mode stack supplied in the client structure, and
  881.       calls the routine specified by CS:IP in the client structure
  882. SeeAlso: AX=0026h,AX=0027h,INT 31/AX=0301h
  883. --------m-2C0026-----------------------------
  884. INT 2C P - RM386 v6.00 - CLOAKING - CALL V86-MODE INTERRUPT HANDLER
  885.     AX = 0026h
  886.     DS:EBX -> client register structure (see AX=0009h)
  887.     CX = interrupt number
  888. Return: CF clear if successful
  889.         client register structure updated
  890.     CF set if no more nested procedure call space available
  891. Note:    this call uses the V86-mode stack supplied in the client structure
  892. SeeAlso: AX=0025h,AX=0027h,INT 31/AX=0300h
  893. --------m-2C0027-----------------------------
  894. INT 2C P - RM386 v6.00 - CLOAKING - CHAIN TO V86-MODE INTERRUPT HANDLER
  895.     AX = 0027h
  896.     DS:EBX -> client register structure (see AX=0009h)
  897. Return: CF clear if successful
  898.         client register structure updated
  899.     CF set if no more nested procedure call space available
  900. Note:    this call uses the V86-mode stack supplied in the client structure,
  901.       and jumps to the address specified by CS:IP in the client structure
  902. SeeAlso: AX=0025h,AX=0026h
  903. --------m-2C0028-----------------------------
  904. INT 2C P - RM386 v6.00 - CLOAKING - GET ESP0 FROM TSS
  905.     AX = 0028h
  906. Return: CF clear
  907.     EAX = TSS's ESP0
  908. Program: RM386 (RAM-MAN/386) is the memory manager included in Helix Software's
  909.       Netroom
  910. --------m-2C0029-----------------------------
  911. INT 2C P - RM386 v6.00 - CLOAKING - SET SECONDARY STACK
  912.     AX = 0029h
  913.     DX:EBX = new value for SS:ESP of ring 3 secondary stack
  914. Return: CF clear
  915. Desc:    inform RM386 of the ring 3 interrupt stack location
  916. --------m-2C002A-----------------------------
  917. INT 2C P - RM386 v6.00 - CLOAKING - SET 8259 IRQ BASE VECTORS
  918.     AX = 002Ah
  919.     BL = base vector of master interrupt controller
  920.     CL = base vector of slave interrupt controller
  921. Note:    this call merely informs RM386 that the caller has changed the
  922.       interrupt mappings
  923. SeeAlso: INT 67/AX=DE0Bh
  924. --------m-2C002BCH81-------------------------
  925. INT 2C P - RM386 v6.00 - CLOAKING - PROTECTED-MODE VIRTUAL DMA SERVICES
  926.     AX = 002Bh
  927.     CH = 81h
  928.     CL = subfunction (02h-0Ch)
  929.     other registers as appropriate for subfunction
  930. Return: varies by function
  931.     CF set on error
  932. Note:    these functions are equivalent to the INT 4B/AX=81xxh subfunctions
  933.       with the same numbers
  934. SeeAlso: INT 4B/AX=8102h,INT 4B/AX=810Ch
  935. --------m-2C002C-----------------------------
  936. INT 2C P - RM386 v6.00 - CLOAKING - GET PORT-TRAPPING PASSALONG
  937.     AX = 002Ch
  938. Return: CF clear
  939.     DX:EBX = current I/O trapping passalong address
  940. SeeAlso: AX=0008h,AX=002Dh
  941. --------m-2C002D-----------------------------
  942. INT 2C P - RM386 v6.00 - CLOAKING - SET PORT-TRAPPING PASSALONG
  943.     AX = 002Dh
  944.     DX:EBX = new I/O trapping passalong address
  945. Return: CF clear
  946. Note:    RM386 calls the passalong address whenever an access to a monitored
  947.       I/O port is attempted; the handler should check whether it is a port
  948.       that it is interested in, and if not call the previous passalong
  949.       address (which was retrieved with AX=002Ch before installing the
  950.       new handler)
  951. SeeAlso: AX=0009h,AX=002Ch,INT 67/AX=5DEAh
  952.  
  953. Port-trapping passalong address called with:
  954.     EAX = CS:IP of faulting instruction (unless executing in protected-mode
  955.         ring 3)
  956.     SS:EBX -> caller register structure (see AX=0009h)
  957.         check EFLAGS V86-mode bit for type
  958.     CX = first two bytes of I/O instruction which was trapped
  959.     DX = port to which I/O is being performed
  960.     CF clear
  961. Return: CF clear if RM386 should perform I/O operation
  962.     CF set if I/O should be skipped
  963. Note:    RM386 skips the trapped I/O instruction, so the passalong handler
  964.       should not modify the client CS:EIP
  965. --------m-2C002E-----------------------------
  966. INT 2C P - RM386 v6.00 - CLOAKING - TRAP I/O PORT
  967.     AX = 002Eh
  968.     DX = port number to trap
  969. Return: CF clear if successful
  970.     CF set on error (port out of range or reserved)
  971. Program: RM386 (RAM-MAN/386) is the memory manager included in Helix Software's
  972.       Netroom
  973. SeeAlso: AX=002Fh,AX=0030h
  974. --------m-2C002F-----------------------------
  975. INT 2C PU - RM386 v6.00 - CLOAKING - UNTRAP I/O PORT
  976.     AX = 002Fh
  977.     DX = port number for which to cancel trapping
  978. Return: CF clear if successful
  979.     CF set on error (port out of range or reserved)
  980. SeeAlso: AX=002Eh,AX=0030h
  981. --------m-2C0030-----------------------------
  982. INT 2C PU - RM386 v6.00 - CLOAKING - GET TRAPPING STATE OF SPECIFIED PORT
  983.     AX = 0030h
  984.     DX = port number
  985. Return: CF clear if successful
  986.        BX = current state (0000h not trapped, 0001h trapped)
  987.     CF set on error (port out of range or reserved)
  988. SeeAlso: AX=002Eh,AX=002Fh
  989. --------m-2C0031-----------------------------
  990. INT 2C PU - RM386 v6.00 - BUG
  991.     AX = 0031h
  992. Program: RM386 (RAM-MAN/386) is the memory manager included in Helix Software's
  993.       Netroom
  994. Note:    due to a fencepost error, RM386 v6.00 will branch unpredictably if
  995.       invoked with this function
  996. --------D-2D---------------------------------
  997. INT 2D - DOS 2+ - RESERVED
  998. Note:    this vector is not used in DOS versions <= 6.00, and points at an IRET
  999. --------t-2D---------------------------------
  1000. INT 2D - ALTERNATE MULTIPLEX INTERRUPT SPECIFICATION (AMIS) [v3.5.1]
  1001.     AH = multiplex number
  1002.     AL = function
  1003.         00h installation check
  1004.         Return: AL = 00h if free
  1005.             AL = FFh if multiplex number in use
  1006.                 CX = binary version number (CH = major, CL = minor)
  1007.                 DX:DI -> signature string (see below) identifying
  1008.                     the program using the multiplex number
  1009.         01h get entry point
  1010.         Return: AL = 00h if all API calls via INT 2D
  1011.             AL = FFh if entry point supported
  1012.                 DX:BX -> entry point for bypassing interrupt chain
  1013.         02h uninstall
  1014.         DX:BX = return address for successful uninstall (may be
  1015.             ignored by TSR)
  1016.         Return: AL = status
  1017.                 00h not implemented
  1018.                 01h unsuccessful
  1019.                 02h can not uninstall yet, will do so when able
  1020.                 03h safe to remove, but no resident uninstaller
  1021.                 (TSR still enabled)
  1022.                 BX = segment of memory block with resident code
  1023.                 04h safe to remove, but no resident uninstaller
  1024.                 (TSR now disabled)
  1025.                 BX = segment of memory block with resident code
  1026.                 05h not safe to remove now, try again later
  1027.                 FFh successful
  1028.             return at DX:BX with AX destroyed if successful and
  1029.               TSR honors specific return address
  1030.         03h request pop-up
  1031.         Return: AL = status
  1032.                 00h not implemented or TSR is not a pop-up
  1033.                 01h can not pop up at this time, try again later
  1034.                 02h can not pop up yet, will do so when able
  1035.                 03h already popped up
  1036.                 04h unable to pop up, user intervention required
  1037.                 BX = standard reason code
  1038.                     0000h unknown failure
  1039.                     0001h interrupt chain passes through memory
  1040.                       which must be swapped out to pop up
  1041.                     0002h swap-in failed
  1042.                 CX = application's reason code if nonzero
  1043.                 FFh TSR popped up and was exited by user
  1044.                 BX = return value
  1045.                     0000h no return value
  1046.                     0001h TSR unloaded
  1047.                     0002h-00FFh reserved
  1048.                     0100h-FFFFh application-dependent
  1049.         04h determine chained interrupts
  1050.         BL = interrupt number (except 2Dh)
  1051.         Return: AL = status
  1052.                 00h not implemented
  1053.                 01h (obsolete) unable to determine
  1054.                 02h (obsolete) interrupt hooked
  1055.                 03h (obsolete) interrupt hooked, address returned
  1056.                 DX:BX -> TSR's interrupt BL handler
  1057.                 04h list of hooked interrupts returned
  1058.                 DX:BX -> interrupt hook list (see below)
  1059.                 FFh interrupt not hooked
  1060.         Notes:    since INT 2D is known to be hooked, the resident code
  1061.               need not test for BL=2Dh (to minimize its size), and
  1062.               the return value is therefore undefined in that case.
  1063.             BL is ignored if the TSR returns AL=04h; in that case,
  1064.               the caller needs to scan the return list rather than
  1065.               making additional calls to this function.  If the
  1066.               return is not 00h or 04h, then the caller must cycle
  1067.               through the remaining interrupt numbers it wishes to
  1068.               check.
  1069.             return values 01h thru 03h are disparaged and will be
  1070.               removed from the next version of this specification;
  1071.               they are included for compatibility with version 3.3,
  1072.               though they were probably never used in any
  1073.               implementation
  1074.         05h get hotkeys
  1075.         Return: AL = status
  1076.                 00h not implemented
  1077.                 FFh supported
  1078.                 DX:BX -> hotkey list (see below)
  1079.         06h-0Fh reserved for future enhancements
  1080.         Return: AL = 00h (not implemented)
  1081.         other  application-dependent
  1082. Notes:    programs should not use fixed multiplex numbers; rather, a program
  1083.       should scan all multiplex numbers from 00h to FFh, remembering the
  1084.       first unused multiplex in case the program is not yet installed.
  1085.       For multiplex numbers which are in use, the program should compare
  1086.       the first 16 bytes of the signature string to determine whether it
  1087.       is already installed on that multiplex number.  If not previously
  1088.       installed, it should use the first free multiplex number.
  1089.     functions other than 00h are not valid unless a program is installed
  1090.       on the selected multiplex number
  1091.     to be considered fully compliant with version 3.5 of the specification,
  1092.       programs must implement at least functions 00h, 02h (no resident
  1093.       uninstall code required), and 04h (return value 04h).     TSRs that
  1094.       provide hotkeys with which the user can activate them must also
  1095.       implement function 05h.  The absolute minimum fully-compliant
  1096.       implementation has an overhead of 64 bytes (80 bytes with function
  1097.       05h) plus 22 bytes per hooked interrupt (for the interrupt sharing
  1098.       protocol header and hook list entry).
  1099.     the signature string and description may be used by memory mappers
  1100.       to display the installed programs
  1101.     users of this proposal should adhere to the IBM interrupt sharing
  1102.       protocol (see below), which will permit removal of TSRs in
  1103.       arbitrary order and interrupt handler reordering.  All TSRs
  1104.       following this proposal should be removable, though they need not
  1105.       keep the code for removing themselves resident; it is acceptable
  1106.       for a separate program to perform the removal.
  1107.     A sample implementation including example TSRs and utility programs
  1108.       may be found in a separate package distributed as AMISLnnn.ZIP
  1109.       (AMISL091.ZIP as of this writing).
  1110.     Please let me know if you choose to follow this proposal.  The
  1111.       signature and a list of the private API calls you use would be
  1112.       appreciated, as well.
  1113. SeeAlso: INT 2F
  1114. Index:    installation check;Alternate Multiplex Interrupt Specification
  1115. Index:    installation check;AMIS|installation check;FASTMOUS
  1116. Index:    installation check;SPELLER|installation check;Monitor
  1117. Index:    installation check;NOLPT|installation check;NOTE
  1118. Index:    installation check;RBkeyswp|installation check;SWITCHAR
  1119. Index:    installation check;VGABLANK|installation check;EATMEM
  1120. Index:    installation check;RECALL|installation check;XPTR2
  1121. Index:    uninstall;Alternate Multiplex Interrupt Specification|uninstall;AMIS
  1122. Index:    entry point;Alternate Multiplex Interrupt|entry point;AMIS
  1123.  
  1124. Format of signature string:
  1125. Offset    Size    Description
  1126.  00h  8 BYTEs    blank-padded manufacturer's name (possibly abbreviated)
  1127.  08h  8 BYTEs    blank-padded product name
  1128.  10h 64 BYTEs    ASCIZ product description (optional, may be a single 00h)
  1129. Note:    it is not necessary to reserve a full 64 bytes for the description,
  1130.       just enough to store the actual ASCIZ string
  1131.  
  1132. Format of interrupt hook list [array]:
  1133. Offset    Size    Description
  1134.  00h    BYTE    interrupt number (last entry in array is 2Dh)
  1135.  01h    WORD    offset within hook list's segment of the interrupt handler
  1136.         this will point at the initial short jump of the interrupt
  1137.         sharing protocol header (see below)
  1138.  
  1139. Format of hotkey list:
  1140. Offset    Size    Description
  1141.  00h    BYTE    type of hotkey checking
  1142.         bit 0: checks before chaining INT 09
  1143.         bit 1: checks after chaining INT 09
  1144.         bit 2: checks before chaining INT 15/AH=4Fh
  1145.         bit 3: checks after chaining INT 15/AH=4Fh
  1146.         bit 4: checks on INT 16/AH=00h,01h,02h
  1147.         bit 5: checks on INT 16/AH=10h,11h,12h
  1148.         bit 6: checks on INT 16/AH=20h,21h,22h
  1149.         bit 7: reserved (0)
  1150.  01h    BYTE    number of hotkeys (may be zero if TSR can disable hotkeys)
  1151.  02h 6N BYTEs    array of hotkey definitions
  1152.         (one per hotkey, first should be primary hotkey)
  1153.         Offset    Size    Description
  1154.          00h    BYTE    hotkey scan code (00h/80h if shift states only)
  1155.                 hotkey triggers on release if bit 7 set
  1156.          01h    WORD    required shift states (see below)
  1157.          03h    WORD    disallowed shift states (see below)
  1158.          05h    BYTE    flags
  1159.                 bit 0: hotkey chained before processing
  1160.                 bit 1: hotkey chained after processing
  1161.                 bit 2: others should pass through this hotkey
  1162.                     so that it can be monitored
  1163.                 bit 3: hotkey will not activate if other keys
  1164.                     pressed/released before hotkey press is
  1165.                     completed
  1166.                 bit 4: this key is remapped into some other key
  1167.                 bit 5-7: reserved (0)
  1168. Notes:    except for bit 7, the shift states correspond exactly to the return
  1169.       values from INT 16/AH=12h.  A set bit in the required states word
  1170.       indicates that the corresponding shift state must be active when the
  1171.       hotkey's scan code is received for the hotkey to be recognized; a
  1172.       clear bit means that the corresponding state may be ignored.    A set
  1173.       bit in the disallowed shift states word indicates that the
  1174.       corresponding shift state must be inactive.
  1175.     if bit 2 is set, either control key may be pressed for the hotkey; if
  1176.       bits 8 and 10 are both set, then both control keys must be pressed.
  1177.       Similarly for bits 3 and 9/11, as well as 7 and 0/1.
  1178.     for the disallowed-states word, if one of the "either" bits is set,
  1179.       then both the corresponding left bit and right bit must be set
  1180.     examples:
  1181.         Ctrl-Alt-Del monitoring: 53h 000Ch 0003h 06h
  1182.         Alt-key tap (DESQview):     B8h 0000h 0007h 08h
  1183.         Shf-Shf-N (NOTE.COM):     31h 0003h 000Ch 00h
  1184. Index:    hotkeys;AMIS
  1185.  
  1186. Bitfields for shift states:
  1187.  bit 0    right shift pressed
  1188.  bit 1    left shift pressed
  1189.  bit 2    either control key pressed
  1190.  bit 3    either Alt key pressed
  1191.  bit 4    ScrollLock active
  1192.  bit 5    NumLock active
  1193.  bit 6    CapsLock active
  1194.  bit 7    either shift key pressed
  1195.  bit 8    left control key pressed
  1196.  bit 9    left Alt key pressed
  1197.  bit 10 right control key pressed
  1198.  bit 11 right Alt key pressed
  1199.  bit 12 ScrollLock pressed
  1200.  bit 13 NumLock pressed
  1201.  bit 14 CapsLock pressed
  1202.  bit 15 SysRq key pressed
  1203.  
  1204. Format of interrupt sharing protocol interrupt handler entry point:
  1205. Offset    Size    Description
  1206.  00h  2 BYTEs    short jump to actual start of interrupt handler, immediately
  1207.         following this data block (EBh 10h)
  1208.  02h    DWORD    address of next handler in chain
  1209.  06h    WORD    signature 424Bh
  1210.  08h    BYTE    EOI flag
  1211.         00h software interrupt or secondary hardware interrupt handler
  1212.         80h primary hardware interrupt handler (will issue EOI)
  1213.  09h  2 BYTEs    short jump to hardware reset routine
  1214.         must point at a valid FAR procedure (may be just RETF)
  1215.  0Bh  7 BYTEs    reserved (0)
  1216.  
  1217. Signatures known to be in use:
  1218.  'Byrial J' 'EKLAVO  '    permits keyboard entry of Esperanto accented letters
  1219.  'CoveSoft' 'Burnout+'    shareware screen saver Burnout Plus
  1220.  'Crynwr  ' 'SPELLER '    TSR spelling-checker
  1221.  'CSJewell' 'Modula3L'    Curtis Jewell's Modula-3 compiler (non-TSR)
  1222.  'ECLIPSE ' 'PLUMP   '    Eclipse Software's printer and plotter spooler
  1223.  'GraySoft' 'GIPC    '    GraySoft's Inter-Process Communications driver
  1224.  'heathh  ' 'Monitor '
  1225.  'J. Berry' 'RATSR   '    RemoteAccess Network Manager workstation module
  1226.  'JWB      ' 'RAMLIGHT'    James Birdsall's on-screen RAMdisk activity indicator
  1227.  'Nildram ' 'ST         '    Screen Thief graphics screen grabber
  1228.  'R-Ware  ' 'dLite   '    run-time data decompression TSR
  1229.  'Ralf B  ' 'FASTMOUS'    example TSR included with sample AMIS library code
  1230.  'Ralf B  ' 'NOLPT n '    example TSR -- turn LPTn into bit-bucket
  1231.  'Ralf B  ' 'NOTE    '    example TSR -- popup note-taker
  1232.  'Ralf B  ' 'RBkeyswp'    RBkeyswap v3.0+ -- swap Esc/~ and LCtrl/CapsLock keys
  1233.  'Ralf B  ' 'SWITCHAR'    example TSR -- add switchar() support removed from DOS5
  1234.  'Ralf B  ' 'VGABLANK'    example TSR -- VGA-only screen blanker
  1235.  'Sally IS' 'Mdisk   '    removeable, resizeable RAMdisk
  1236.  'Sally IS' 'Scr2Tex '    screen dumper with output in (La)Tex format
  1237.  'Thaco      ' 'NEST    '    Eirik Pedersen's programmer's delimiter matcher
  1238.  'TifaWARE' 'EATMEM  '    George A. Theall's public domain memory restrictor for
  1239.             testing programs (v1.1+)
  1240.  'TifaWARE' 'RECALL  '    public domain commandline editor and history (v1.2+)
  1241.  'Todd      ' 'XPTR2   '    PC-to-Transputer interface by Todd Radel
  1242. --------N-2D--10-----------------------------
  1243. INT 2D - RATSR 2.0+ - GET STATUS
  1244.     AL = 10h
  1245.     AH = AMIS multiplex number for RATSR
  1246. Return: AL = status
  1247.         01h listening (no connection)
  1248.         02h receiving          \
  1249.         03h sending               > station being monitored
  1250.         04h initializing receive  /
  1251.     AH = keyboard lock status (00h unlocked, 01h locked)
  1252. Program: RATSR is a utility by James Berry provided with
  1253.       RemoteAccess/Professional, a commercial bulletin board system, that
  1254.       allows remote control of a station over a network
  1255. SeeAlso: INT 2D"AMIS"
  1256. --------d-2D--10-----------------------------
  1257. INT 2D - dLite 1.0+ - GET PARAMETER BLOCK ADDRESS
  1258.     AL = 10h
  1259.     AH = AMIS multiplex number for dLite
  1260. Return: CF clear if successful
  1261.         ES:BX -> parameter block (see below)
  1262.     CF set on error
  1263. Program: dLite is a shareware TSR by Rainer Schuetze which transparently
  1264.       expands compressed files when they are read
  1265. SeeAlso: AL=11h"dLite",AL=12h"dLite",INT 21/AX=FEDCh"PCMANAGE"
  1266.  
  1267. Format of parameter block:
  1268. Offset    Size    Description
  1269.  00h    BYTE    TSR flags
  1270.         bit 0: deny FCB access
  1271.         bit 1: dLite sleeping rather than activated
  1272.         bit 2: always indicate original filesize when reading
  1273.             directory entries, rather than only for specified
  1274.             programs
  1275.         bits 3-7 reserved
  1276.  01h    WORD    maximum number of programs needing original filesize
  1277.  03h    WORD    current number of programs needing original filesize
  1278.  05h    WORD    maximum number of files that can be handled by dLite (should
  1279.         be the same as FILES= in CONFIG.SYS)
  1280.  07h    WORD    offset (in the same segment as the parameter block) of the
  1281.         table of programs needing the original filesize (8 bytes each,
  1282.         without path or extension, uppercase, and zero terminated if
  1283.         shorter than 8 bytes)
  1284. --------V-2D--10-----------------------------
  1285. INT 2D - Burnout Plus v3.00 - GET STATE/CONTROL INFORMATION
  1286.     AL = 10h
  1287.     AH = AMIS multiplex number for Burnout Plus
  1288. Return: AL = 01h
  1289.     BX = Burnout Plus status (see below)
  1290.     CX = Record of features loaded (see below)
  1291.     ES:DI -> Burnout Plus control structure (see below)
  1292. Program: Burnout Plus is a DOS screen saver from Cove Software
  1293. SeeAlso: INT 2D"AMIS"
  1294. Index:    screen saver;Burnout Plus
  1295.  
  1296. Bitfields for status:
  1297.  bit 0    screen is blanked
  1298.  bit 1    MS Windows is active (Burnout Plus deactivated)
  1299.  bits 2-15 reserved
  1300.  
  1301. Bitfields for features loaded/features enabled:
  1302.  bit 0    mouse activity monitor
  1303.  bit 1    passkey support
  1304.  bit 2    password support
  1305.  bit 3    continuous clear
  1306.  bit 4    software blanking
  1307.  bit 5    video activity monitor
  1308.  bit 6    disk activity monitor
  1309.  bit 7    activating keystroke suppression
  1310.  
  1311. Format of Burnout Plus control structure:
  1312. Offset    Size    Description
  1313.  00h    BYTE    size of structure in bytes
  1314.  01h    WORD    Burnout Plus version
  1315.  03h    WORD    screen blanking reset count in clock ticks
  1316.  05h    WORD    current countdown value in clock ticks
  1317.  07h    BYTE    type of timeout specification
  1318.  08h    BYTE    instant-blank hotkey
  1319.  09h    WORD    extended status information (see below)
  1320.         the bits for password, passkey, and software blanking are
  1321.           ignored and cannot be enabled or disabled externally
  1322.  0Bh    WORD    features enabled (see above)
  1323. Note:    all fields except the first two may be modified by external programs
  1324.       to affect the operation of Burnout Plus
  1325. Index:    hotkeys;Burnout Plus
  1326.  
  1327. Bitfields for extended status information:
  1328.  bit 0    Burnout Plus disabled
  1329.  bit 1    force screen to blank on next clock tick
  1330.  bit 2    restore screen if currently blanked
  1331.  bits 3-15 reserved
  1332. Note:    bits 1 and 2 are automatically cleared by Burnout Plus after blanking
  1333.       or restoring the screen
  1334. --------V-2D--10-----------------------------
  1335. INT 2D U - Screen Thief v1.00 - FREE HIGH MEMORY BUFFERS
  1336.     AL = 10h
  1337.     AH = AMIS multiplex number for Screen Thief
  1338. Return: nothing
  1339. Program: Screen Thief is a graphics screen grabber
  1340. Note:    releases any code and data stored in EMS, DOS UMBs, or XMS UMBs, but
  1341.       does not release the low-memory stub; this may be used to effect a
  1342.       partial uninstall if INT 2D/AL=02h fails
  1343. SeeAlso: INT D8"Screen Thief"
  1344. --------i-2D--10-----------------------------
  1345. INT 2D U - RAMLIGHT v1.0 - GET MONITORING INFORMATION
  1346.     AL = 10h
  1347.     AH = AMIS multiplex number for RAMLIGHT
  1348. Return: ES:BX -> array of fake device driver headers used in monitoring
  1349.     CX = number of drives being monitored???
  1350. --------d-2D--11-----------------------------
  1351. INT 2D - dLite 1.0+ - CHECK FOR dPressed FILE AND GET ORIGINAL SIZE
  1352.     AL = 11h
  1353.     AH = AMIS multiplex number for dLite
  1354.     BX = file handle
  1355. Return: CF clear if successful
  1356.         DX:AX = size of uncompressed file
  1357.     CF set on error (not dPressed file)
  1358. SeeAlso: AL=10h"dLite",AL=12h"dLite"
  1359. --------d-2D--12-----------------------------
  1360. INT 2D - dLite 1.0+ - CHECK FOR dPressed FILE AND GET COMPRESSED SIZE
  1361.     AL = 12h
  1362.     AH = AMIS multiplex number for dLite
  1363.     BX = file handle
  1364. Return: CF clear if successful
  1365.         DX:AX = size of compressed file
  1366.     CF set on error (not dPressed file)
  1367. SeeAlso: AL=10h"dLite",AL=11h"dLite"
  1368. --------l-2E---------------------------------
  1369. INT 2E U - DOS 2+ - PASS COMMAND TO COMMAND INTERPRETER FOR EXECUTION
  1370.     DS:SI -> commandline to execute (see below)
  1371. Return: all registers except CS:IP destroyed
  1372.     AX = status (4DOS v4.0)
  1373.        0000h successful
  1374.        FFFFh error before processing command (not enough memory, etc)
  1375.        other error number returned by command
  1376. Notes:    this call allows execution of arbitrary commands (including COMMAND.COM
  1377.       internal commands) without loading another copy of COMMAND.COM
  1378.     if COMMAND.COM is the user's command interpreter, the primary copy
  1379.       executes the command; this allows the master environment to be
  1380.       modified by issuing a "SET" command, but changes in the master
  1381.       environment will not become effective until all programs descended
  1382.       from the primary COMMAND.COM terminate
  1383.     since COMMAND.COM processes the string as if typed from the keyboard,
  1384.       the transient portion needs to be present, and the calling program
  1385.       must ensure that sufficient memory to load the transient portion can
  1386.       be allocated by DOS if necessary
  1387.     results are unpredictable if invoked by a program run from a batch file
  1388.       because this call is not reentrant and COMMAND.COM uses the same
  1389.       internal variables when processing a batch file
  1390.     hooked but ignored by 4DOS v3.0 COMMAND.COM replacement unless SHELL2E
  1391.       has been loaded
  1392.     the MS-DOS 5 Programmer's Reference calls this "Reload Transient"
  1393.  
  1394. Format of commandline:
  1395. Offset    Size    Description
  1396.  00h    BYTE    length of command string, not counting trailing CR
  1397.  01h    var    command string
  1398.   N    BYTE    0Dh (CR)
  1399. --------O-2E---------------------------------
  1400. INT 2E UP - Windows NT - NATIVE API
  1401.     EAX = function number
  1402.     EDX = address of parameter block
  1403. Return: ???
  1404. --------l-2E----BXE22E-----------------------
  1405. INT 2E - 4DOS v2.x-3.03 SHELL2E.COM - UNINSTALL
  1406.     BX = E22Eh
  1407.     DS:SI -> zero byte
  1408. Return: if successful, SHELL2E terminates itself with INT 21/AH=4Ch
  1409. ----------2F---------------------------------
  1410. INT 2F - Multiplex - NOTES
  1411.     AH = identifier of program which is to handle the interrupt
  1412.        00h-7Fh reserved for DOS
  1413.        B8h-BFh reserved for networks
  1414.        C0h-FFh reserved for applications
  1415.     AL is the function code
  1416.    This is a general mechanism for verifying the presence of a TSR and
  1417.    communicating with it.  When searching for a free identifier code for AH
  1418.    using the installation check (AL=00h), the calling program should set
  1419.    BX/CX/DX to 0000h and must not depend on any registers other than CS:IP
  1420.    and SS:SP to be valid on return, since numerous programs now use additional
  1421.    registers on input and/or output for the installation check.
  1422. Notes:    Since the multiplex chain is growing so long, and beginning to
  1423.       experience multiplex number collisions, I am proposing an alternate
  1424.       multiplex interrupt on INT 2D.  If you decide to use the alternate
  1425.       multiplex, please let me know.
  1426.     DOS and some other programs return values in the flags register, so
  1427.       any TSR which chains by calling the previous handler rather than
  1428.       jumping to it should ensure that the returned flags are preserved
  1429.       and passed back to the original caller
  1430. SeeAlso: INT 2D
  1431. --------t-2F---------------------------------
  1432. INT 2F - BMB Compuscience Canada Utilities Interface - INSTALLATION CHECK
  1433.     AH = xx (dynamically assigned based upon a search for a multiplex
  1434.          number which doesn't answer installed)
  1435.     AL = 00h installation check
  1436.     ES:DI = EBEBh:BEBEh
  1437. Return: AL = 00h not installed
  1438.          01h not installed, not OK to install
  1439.          FFh installed; if ES:DI was EBEBh:BEBEh on entry, ES:DI will point
  1440.          to a string of the form 'MMMMPPPPPPPPvNNNN' where MMMM is a
  1441.          short form of the manufacturer's name, PPPPPPPP is a product
  1442.          name and NNNN is the product's version number
  1443. --------t-2F---------------------------------
  1444. INT 2F - Ross Wentworth's Turbo Pascal POPUP LIBRARY
  1445.     AH = programmer-selected multiplex number
  1446.     AL = function
  1447.         00h installation check
  1448.         Return: AL = FFh if installed
  1449.         01h get TSR interrupt vectors
  1450.         Return: DX:AX -> vector table (see below)
  1451.         02h get TSR code segment
  1452.         Return: AX = code segment for all interrupt handlers
  1453.         03h call user exit routine and release TSR's memory
  1454.         04h get signature string
  1455.         Return: DX:AX -> counted string containing signature
  1456.         05h get TSR's INT 2F handler
  1457.         Return: DX:AX -> INT 2F handler
  1458.         06h enable/disable TSR
  1459.         BL = new state (00h disabled, 01h enabled)
  1460.         07h activate TSR (popup if not disabled)
  1461.         08h get hotkeys
  1462.         BL = which hotkey (00h = hotkey 1, 01h = hotkey 2)
  1463.         Return: AX = hotkey (AH = keyflags, AL = scancode)
  1464.         09h set hotkey
  1465.         BL = which hotkey (00h = hotkey 1, 01h = hotkey 2)
  1466.         CX = new hotkey (CH = keyflags, CL = scancode)
  1467.         0Ah-1Fh reserved
  1468. Index:    installation check;Ross Wentworth POPUP library
  1469. Index:    hotkeys;Ross Wentworth POPUP library
  1470.  
  1471. Format of vector table entry:
  1472. Offset    Size    Description
  1473.  00h    BYTE    vector number (00h = end of table)
  1474.  01h    DWORD    original vector
  1475.  05h    WORD    offset of interrupt handler in TSR's code segment
  1476. --------t-2F---------------------------------
  1477. INT 2F - CiriSOFT Spanish University of Valladolid TSR's Interface
  1478.     AH = xx (dynamically assigned based upon a search for a multiplex
  1479.          number from C0h to FFh which doesn't answer installed)
  1480.     AL = 00h installation check
  1481.     ES:DI = 1492h:1992h
  1482. Return: AL = 00h not installed
  1483.          01h not installed, not OK to install
  1484.          FFh installed; and if ES:DI was 1492h:1992h on entry, ES:DI will
  1485.          point to author_name_ver table (see below)
  1486.     AH = FFh
  1487. Note:    this interface permits advanced communication with TSRs: it is possible
  1488.       to make a generic uninstall utility, advanced TSR relocator programs
  1489.       in order to fit fragmented memory areas, etc.
  1490. See also: INT 2D"AMIS",INT 2F"Compuscience"
  1491. Index:    installation check;CiriSOFT TSR interface
  1492. Index:    uninstall;CiriSOFT TSR interface
  1493.  
  1494. Format of author_name_ver table:
  1495. Offset    Size    Description
  1496.  -16    WORD    segment of the start of the resident TSR code (CS in programs
  1497.         with PSP, XMS upper memory segment if installed as UMB...)
  1498.  -14    WORD    offset of the start of the resident TSR code (frequently 100h
  1499.         in *.COM programs and 0 in upper memory TSR's).
  1500.  -12    WORD    memory used by TSR (in paragraphs). Knowing the memory area
  1501.         used by TSR is possible to determine if hooked vectors are
  1502.         still pointing it (and if it is safe to uninstall).
  1503.  -10    BYTE    characteristics byte
  1504.         bits 0-2: 000 normal program (with PSP)
  1505.               001 upper XMS memory block (needed HIMEM.SYS function
  1506.                   to free memory when uninstalling)
  1507.               010 device driver (*.SYS)
  1508.               011 device driver in EXE format
  1509.               1xx others (reserved)
  1510.         bits 3-6 reserved
  1511.         bit 7 set if extra_table defined and supported
  1512.  -9    BYTE    number of multiplex entry used (redefinition available). Note
  1513.         that the TSR must use THIS variable in it's INT 2Fh handler.
  1514.  -8    WORD    offset to vector_area table (see below)
  1515.  -6    WORD    offset to extra_area table (see bit 7 in offset -10 and below)
  1516.  -4   4 BYTEs    signature string "*##*"
  1517.  00h    var    "AUTHOR:PROGRAM_NAME:VERSION",0     (variable length, this area
  1518.         is used in order to determine if the TSR is already resident
  1519.         and it's version code; the ':' char is used as delimiter)
  1520.  
  1521. Format of vector_area table:
  1522. Offset    Size    Description
  1523.  -1    BYTE    number of vectors intercepted by TSR
  1524.  00h    BYTE    first vector number
  1525.  01h    DWORD    first vector pointer before installing the TSR
  1526.  05h    BYTE    second vector number
  1527.  06h    DWORD    second vector pointer before installing the TSR
  1528.  0Ah    ...    (and so on)
  1529. Note:    the TSR must use these variables to invoke the previous interrupt
  1530.       handler routines
  1531.  
  1532. Format of extra_area table (needed only to improve relocation feature):
  1533. Offset    Size    Description
  1534.  00h    WORD    offset to external_ctrl table (0 if not supported)
  1535.  02h    WORD    reserved for future use (0)
  1536.  
  1537. Format of external_ctrl table:
  1538. Offset    Size    Description
  1539.  00h    BYTE    bit 0: TSR is relocatable (no absolute segment references)
  1540.  01h    WORD    offset to a variable which can activate/inhibit the TSR
  1541.  ---And if bit 0 in offset 00h is off:
  1542.  03h    DWORD    pointer to ASCIZ pathname for executable file which supports
  1543.         /SR parameter (silent installation & inhibit)
  1544.  07h    DWORD    pointer to first variable to initialize on the copy reloaded
  1545.         from the previous TSR still resident
  1546.  0Bh    DWORD    pointer to last variable (all variables packed in one block)
  1547. --------c-2F00-------------------------------
  1548. INT 2F U - DOS 2.x only PRINT.COM - ???
  1549.     AH = 00h
  1550.     ???
  1551. Return: ???
  1552. Notes:    DOS 2.x PRINT.COM does not chain to previous INT 2F handler
  1553.     values in AH other than 00h or 01h cause PRINT to return the number of
  1554.       files in the queue in AH
  1555. SeeAlso: AH=01h
  1556. --------P-2F00-------------------------------
  1557. INT 2F U - PSPRINT - PRINT JOB CONTROL
  1558.     AH = 00h
  1559.     ???
  1560. Return: ???
  1561. --------c-2F0080-----------------------------
  1562. INT 2F - DOS 3.1+ PRINT.COM - GIVE PRINT A TIME SLICE
  1563.     AX = 0080h
  1564. Return: after PRINT executes
  1565. Note:    PRINT returns AL=01h if AH=00h but AL is not 80h on entry
  1566. --------c-2F01-------------------------------
  1567. INT 2F U - DOS 2.x only PRINT.COM - ???
  1568.     AH = 01h
  1569.     ???
  1570. Return: ???
  1571. Notes:    DOS 2.x PRINT.COM does not chain to previous INT 2F handler
  1572.     values in AH other than 00h or 01h cause PRINT to return the number of
  1573.       files in the queue in AH
  1574. SeeAlso: AH=00h
  1575. --------c-2F0100-----------------------------
  1576. INT 2F - DOS 3+ PRINT.COM - INSTALLATION CHECK
  1577.     AX = 0100h
  1578. Return: AL = status
  1579.         00h not installed
  1580.         01h not installed, but not OK to install
  1581.         FFh installed
  1582. SeeAlso: AX=0101h
  1583. --------c-2F0100SI20D6-----------------------
  1584. INT 2F U - PrintCache 3.1 PRINT.COM - INSTALLATION CHECK
  1585.     AX = 0100h
  1586.     SI = 20D6h
  1587.     DI = 8761h
  1588. Return: AX = 00FFh if installed
  1589.     DI = 0001h if PrintCache's PRINT.COM installed and magic values match
  1590.         SI = resident code segment
  1591. Program: PrintCache PRINT.COM is a DOS PRINT replacement included in
  1592.       LaserTools' PrintCache memory/disk-based print spooler package
  1593. Note:    if either of SI or DI differ from the indicated magic values, only AX
  1594.       will be modified on return, for compatibility with DOS PRINT
  1595. SeeAlso: AX=0101h/SI=20D6h,AX=C000h"PCACHE"
  1596. --------c-2F0101-----------------------------
  1597. INT 2F - DOS 3+ PRINT.COM - SUBMIT FILE FOR PRINTING
  1598.     AX = 0101h
  1599.     DS:DX -> submit packet (see below)
  1600. Return: CF clear if successful
  1601.         AL = status
  1602.         01h added to queue
  1603.         9Eh now printing
  1604.     CF set on error
  1605.         AX = error code (see below, also INT 21/AH=59h)
  1606. SeeAlso: AX=0102h
  1607.  
  1608. Format of submit packet:
  1609. Offset    Size    Description
  1610.  00h    BYTE    level (must be 00h)
  1611.  01h    DWORD    pointer to ASCIZ filename (no wildcards)
  1612.  
  1613. Values for PRINT error code:
  1614.  01h invalid function
  1615.  02h file not found
  1616.  03h path not found
  1617.  04h out of file handles
  1618.  05h access denied
  1619.  08h print queue full
  1620.  09h spooler busy
  1621.  0Ch name too long
  1622.  0Fh invalid drive
  1623. --------c-2F0101SI20D6-----------------------
  1624. INT 2F U - PrintCache v3.1 PRINT.COM - SUBMIT FILE FOR PRINTING
  1625.     AX = 0101h
  1626.     SI = 20D6h
  1627.     DI = 8761h
  1628.     DS:DX -> submit packet (see AX=0101h)
  1629.     CL = print options
  1630.         bit 4: use default options
  1631. Return: CF clear if successful
  1632.         AL = status
  1633.         01h added to queue
  1634.         9Eh now printing
  1635.     CF set on error
  1636.         AX = error code (see AX=0101h)
  1637. Program: PrintCache PRINT.COM is a DOS PRINT replacement included in
  1638.       LaserTools' PrintCache memory/disk-based print spooler package
  1639. Note:    if either SI or DI differs from the indicated magic values on entry,
  1640.       PrintCache will use the default print options for the file for
  1641.       compatibility with DOS PRINT
  1642. SeeAlso: AX=0100h/SI=20D6h,AX=0101h,AX=0107h"PrintCache"
  1643. --------c-2F0102-----------------------------
  1644. INT 2F - DOS 3+ PRINT.COM - REMOVE FILE FROM PRINT QUEUE
  1645.     AX = 0102h
  1646.     DS:DX -> ASCIZ filename (wildcards allowed)
  1647. Return: CF clear if successful
  1648.     CF set on error
  1649.         AX = error code (see AX=0101h)
  1650. SeeAlso: AX=0101h,AX=0103h
  1651. --------c-2F0103-----------------------------
  1652. INT 2F - DOS 3+ PRINT.COM - CANCEL ALL FILES IN PRINT QUEUE
  1653.     AX = 0103h
  1654. Return: CF clear if successful
  1655.     CF set on error
  1656.         AX = error code (see AX=0101h)
  1657. SeeAlso: AX=0102h
  1658. --------c-2F0104-----------------------------
  1659. INT 2F - DOS 3+ PRINT.COM - FREEZE PRINT QUEUE TO READ JOB STATUS
  1660.     AX = 0104h
  1661. Return: CF clear if successful
  1662.         DX = error count since status last read
  1663.         DS:SI -> print queue
  1664.     CF set on error
  1665.         AX = error code (see AX=0101h)
  1666. Desc:    get the list of print jobs, temporarily suspending PRINT's activities
  1667.       to avoid changing the list while it is being examined
  1668. Notes:    the print queue is an array of 64-byte ASCIZ filenames terminated by
  1669.       an empty filename; the first name is the file currently being printed
  1670.     printing is stopped until AX=0105h is called to prevent the queue
  1671.       from changing while the filenames are being read
  1672. SeeAlso: AX=0101h,AX=0105h
  1673. --------c-2F0105-----------------------------
  1674. INT 2F - DOS 3+ PRINT.COM - RESTART PRINT QUEUE AFTER STATUS READ
  1675.     AX = 0105h
  1676. Return: CF clear if successful
  1677.     CF set on error
  1678.         AX = error code (see AX=0101h)
  1679. Desc:    restart PRINT's activities once an application finishes examining the
  1680.       print queue
  1681. SeeAlso: AX=0104h
  1682. --------c-2F0106-----------------------------
  1683. INT 2F - DOS 3.3+ PRINT.COM - GET PRINTER DEVICE
  1684.     AX = 0106h
  1685. Return: CF set if files in print queue
  1686.         AX = error code 0008h (queue full)
  1687.         DS:SI -> device driver header
  1688.     CF clear if print queue empty
  1689.         AX = 0000h
  1690. Desc:    determine which device, if any, PRINT is currently using for output
  1691. Notes:    documented for DOS 5+, but not documented for prior versions
  1692.     this function can be used to allow a program to avoid printing to the
  1693.       printer on which PRINT is currently performing output
  1694. SeeAlso: AX=0104h
  1695. --------c-2F0107-----------------------------
  1696. INT 2F U - PrintCache v3.1 PRINT.COM - SET TRAILING FORM FEEDS
  1697.     AX = 0107h
  1698.     CL bit 0: output form feed between print jobs
  1699. Return: AL destroyed
  1700. SeeAlso: AX=0100h/SI=20D6h,AX=0101h/SI=20D6h
  1701. --------N-2F0200-----------------------------
  1702. INT 2F U - PC LAN PROGRAM REDIR/REDIRIFS internal - INSTALLATION CHECK
  1703.     AX = 0200h
  1704. Return: AL = FFh if installed
  1705. Desc:    determine whether the PC LAN Program redirector is installed
  1706. SeeAlso: AX=0201h,AX=0203h
  1707. --------N-2F0201-----------------------------
  1708. INT 2F U - PC LAN PROGRAM REDIR/REDIRIFS internal - ???
  1709.     AX = 0201h
  1710. Return: nothing???
  1711. Notes:    this function is called by the DOS 3.3+ PRINT.COM
  1712.     AX=0202h appears to be the opposite function
  1713.     these functions are supposedly used to signal opening and closing of
  1714.       printers
  1715. SeeAlso: AX=0202h
  1716. --------N-2F0202-----------------------------
  1717. INT 2F U - PC LAN PROGRAM REDIR/REDIRIFS internal - ???
  1718.     AX = 0202h
  1719.     ???
  1720. Return: nothing???
  1721. Notes:    this function is called by the DOS 3.3+ PRINT.COM
  1722.     these functions are supposedly used to signal opening and closing of
  1723.       printers
  1724. SeeAlso: AX=0201h
  1725. --------N-2F0203-----------------------------
  1726. INT 2F U - PC LAN PROGRAM REDIR/REDIRIFS internal - ???
  1727.     AX = 0203h
  1728. Return: nothing???
  1729. Notes:    this function is called by the DOS 3.3+ PRINT.COM
  1730.     AX=0204h appears to be the opposite function
  1731.     these functions are supposedly used to signal opening and closing of
  1732.       printers
  1733. SeeAlso: AX=0200h,AX=0204h
  1734. --------N-2F0204-----------------------------
  1735. INT 2F U - PC LAN PROGRAM REDIR/REDIRIFS internal - ???
  1736.     AX = 0204h
  1737.     ???
  1738. Return: nothing???
  1739. Notes:    this function is called by the DOS 3.3+ PRINT.COM
  1740.     AX=0203h appears to be the opposite function
  1741.     these functions are supposedly used to signal opening and closing of
  1742.       printers
  1743. SeeAlso: AX=0200h,AX=0203h
  1744. --------N-2F---------------------------------
  1745. INT 2F U - PC LAN PROGRAM REDIR/REDIRIFS internal - ???
  1746.     AX = 02xxh
  1747.     ???
  1748. Return: ???
  1749. --------l-2F0500-----------------------------
  1750. INT 2F U - DOS 3+ CRITICAL ERROR HANDLER - INSTALLATION CHECK
  1751.     AX = 0500h
  1752. Return: AL = 00h not installed, OK to install
  1753.          01h not installed, can't install
  1754.          FFh installed
  1755. Desc:    determine whether a critical error message override is installed
  1756. Note:    this set of functions allows a user program to partially or completely
  1757.       override the default critical error handler's message in COMMAND.COM
  1758. SeeAlso: AH=05h,INT 24
  1759. --------l-2F05-------------------------------
  1760. INT 2F CU - DOS 3+ CRITICAL ERROR HANDLER - EXPAND ERROR INTO STRING
  1761.     AH = 05h
  1762. ---DOS 3.x---
  1763.     AL = extended error code (not zero)
  1764. ---DOS 4+ ---
  1765.     AL = error type
  1766.         01h DOS extended error code
  1767.         02h parameter error
  1768.     BX = error code
  1769. Return: CF clear if successful
  1770.         ES:DI -> ASCIZ error message (read-only)
  1771.         AL = completion state
  1772.         00h message requires completion with device name, drive, etc.
  1773.         01h message is complete as returned
  1774.     CF set if error code can't be converted to string
  1775.         AX,DI,ES destroyed
  1776.     other flags corrupted
  1777. Notes:    called at start of COMMAND.COM's default critical error handler if
  1778.       installed by a user program, allowing partial or complete overriding
  1779.       of the default error messages
  1780.     subfunction 02h is called by many DOS 4 external programs
  1781.     DR-DOS's COMMAND.COM appends additional info ("0 files copied") to the
  1782.       returned string
  1783. SeeAlso: AX=0500h,AX=122Eh,INT 24
  1784. --------U-2F0600-----------------------------
  1785. INT 2F - DOS 3+ ASSIGN - INSTALLATION CHECK
  1786.     AX = 0600h
  1787. Return: AL = status
  1788.         00h not installed
  1789.         01h not installed, but not OK to install
  1790.         FFh installed
  1791. Notes:    ASSIGN is not a TSR in DR-DOS 5.0; it is internally replaced by SUBST
  1792.       (see INT 21/AH=52h)
  1793.     undocumented prior to the release of DOS 5.0
  1794. SeeAlso: AX=0601h,INT 21/AH=52h
  1795. --------U-2F0601-----------------------------
  1796. INT 2F U - DOS 3+ ASSIGN - GET DRIVE ASSIGNMENT TABLE
  1797.     AX = 0601h
  1798. Return: ES = segment of ASSIGN work area and assignment table
  1799. Note:    under DOS 3+, the 26 bytes starting at ES:0103h specify which drive
  1800.       each of A: to Z: is mapped to.  Initially set to 01h 02h 03h....
  1801. SeeAlso: AX=0600h
  1802. --------D-2F0800-----------------------------
  1803. INT 2F U - DRIVER.SYS support - INSTALLATION CHECK
  1804.     AX = 0800h
  1805. Return: AL = 00h not installed, OK to install
  1806.          01h not installed, not OK to install
  1807.          FFh installed
  1808. Desc:    determine whether the internal support code used by DRIVER.SYS is
  1809.       present
  1810. Note:    supported by DR-DOS 5.0
  1811. --------D-2F0801-----------------------------
  1812. INT 2F U - DRIVER.SYS support - ADD NEW BLOCK DEVICE
  1813.     AX = 0801h
  1814.     DS:DI -> drive data table (see AX=0803h)
  1815. Return: AX,BX,SI,ES destroyed
  1816. Notes:    moves down internal list of drive data tables, copying and modifying
  1817.       the drive description flags word for tables referencing same physical
  1818.       drive
  1819.     the data table is appended to the chain of tables
  1820.     supported by DR-DOS 5.0
  1821. SeeAlso: AX=0803h
  1822. --------D-2F0802-----------------------------
  1823. INT 2F U - DRIVER.SYS support - EXECUTE DEVICE DRIVER REQUEST
  1824.     AX = 0802h
  1825.     ES:BX -> device driver request header (see below)
  1826. Return: request header updated as per requested operation
  1827. Notes:    supported by DR-DOS 5.0
  1828.     DOS 3.2 executes this function on any AL value from 02h through F7h;
  1829.       DOS 4+ executes this function on AL=02h and AL=04h-F7h
  1830.     the command codes and structures described below apply to all drivers
  1831.       which support the appropriate commands; this call is just one of a
  1832.       number of ways in which a device driver request may be invoked
  1833. SeeAlso: AX=0800h,AX=0801h,AX=0803h,INT 21/AH=52h,INT 21/AH=99h,INT 21/AH=9Ah
  1834.  
  1835. Values for command code:
  1836.  00h    INIT
  1837.  01h    MEDIA CHECK (block devices)
  1838.  02h    BUILD BPB (block devices)
  1839.  03h    IOCTL INPUT
  1840.  04h    INPUT
  1841.  05h    NONDESTRUCTIVE INPUT, NO WAIT (character devices)
  1842.  06h    INPUT STATUS (character devices)
  1843.  07h    INPUT FLUSH (character devices)
  1844.  08h    OUTPUT
  1845.  09h    OUTPUT WITH VERIFY
  1846.  0Ah    OUTPUT STATUS (character devices)
  1847.  0Bh    OUTPUT FLUSH (character devices)
  1848.  0Ch    IOCTL OUTPUT
  1849.  0Dh    (DOS 3+) DEVICE OPEN
  1850.  0Eh    (DOS 3+) DEVICE CLOSE
  1851.  0Fh    (DOS 3+) REMOVABLE MEDIA (block devices)
  1852.  10h    (DOS 3+) OUTPUT UNTIL BUSY (character devices)
  1853.  11h    (European MS-DOS 4.0) STOP OUTPUT (console screen drivers only)
  1854.  12h    (European MS-DOS 4.0) RESTART OUTPUT (console screen drivers only)
  1855.  13h    (DOS 3.2+) GENERIC IOCTL
  1856.  14h    unused
  1857.  15h    (European MS-DOS 4.0) RESET UNCERTAIN MEDIA FLAG
  1858.  16h    unused
  1859.  17h    (DOS 3.2+) GET LOGICAL DEVICE
  1860.  18h    (DOS 3.2+) SET LOGICAL DEVICE
  1861.  19h    (DOS 5+) CHECK GENERIC IOCTL SUPPORT
  1862.  80h    (CD-ROM) READ LONG
  1863.  81h    (CD-ROM) reserved
  1864.  82h    (CD-ROM) READ LONG PREFETCH
  1865.  83h    (CD-ROM) SEEK
  1866.  84h    (CD-ROM) PLAY AUDIO
  1867.  85h    (CD-ROM) STOP AUDIO
  1868.  86h    (CD-ROM) WRITE LONG
  1869.  87h    (CD-ROM) WRITE LONG VERIFY
  1870.  88h    (CD-ROM) RESUME AUDIO
  1871.  
  1872. Format of device driver request header:
  1873. Offset    Size    Description
  1874.  00h    BYTE    length of request header
  1875.  01h    BYTE    subunit within device driver
  1876.  02h    BYTE    command code (see above)
  1877.  03h    WORD    status (filled in by device driver)
  1878.         bit 15: error
  1879.         bits 14-11: reserved
  1880.         bit 10: ??? set by DOS kernel on entry to some driver calls
  1881.         bit 9: busy
  1882.         bit 8: done (may be clear on return under European MS-DOS 4.0)
  1883.         bits 7-0: error code if bit 15 set (see below)
  1884. ---DOS---
  1885.  05h  4 BYTEs    reserved (unused in DOS 2.x and 3.x)
  1886.  09h    DWORD    (European MS-DOS 4.0 only) pointer to next request header in
  1887.             device's request queue
  1888.         (other versions) reserved (unused in DOS 2.x and 3.x)
  1889. ---STARLITE architecture---
  1890.  05h    DWORD    pointer to next request header
  1891.  09h  4 BYTEs    reserved
  1892. ---command code 00h---
  1893.  0Dh    BYTE    (return) number of units
  1894.  0Eh    DWORD    (call) pointer to DOS device helper function (see below)
  1895.             (European MS-DOS 4.0 only)
  1896.         (call) pointer past end of memory available to driver (DOS 5+)
  1897.         (return) address of first free byte following driver
  1898.  12h    DWORD    (call) pointer to commandline arguments
  1899.         (return) pointer to BPB array (block drivers) or
  1900.                 0000h:0000h (character drivers)
  1901.  16h    BYTE    (DOS 3+) drive number for first unit of block driver (0=A)
  1902.    ---European MS-DOS 4.0---
  1903.  17h    DWORD    pointer to function to save registers on stack
  1904.    ---DOS 5+ ---
  1905.  17h    WORD    (return) error-message flag
  1906.             0001h MS-DOS should display error msg on init failure
  1907. ---command code 01h---
  1908.  0Dh    BYTE    media descriptor
  1909.  0Eh    BYTE    returned status
  1910.         00h don't know
  1911.         01h media has not changed
  1912.         FFh media has been changed
  1913.  0Fh    DWORD    (return, DOS 3+) pointer to previous volume ID if OPEN/CLOSE/RM
  1914.           bit in device header is set and disk changed
  1915. ---command code 02h---
  1916.  0Dh    BYTE    media descriptor
  1917.  0Eh    DWORD    transfer address
  1918.         -> scratch sector if NON-IBM FORMAT bit in device header set
  1919.         -> first FAT sector otherwise
  1920.  12h    DWORD    pointer to BPB (set by driver) (see INT 21/AH=53h)
  1921. ---command codes 03h,0Ch--- (see also INT 21/AX=4402h,INT 21/AX=4403h)
  1922.  0Dh    BYTE    media descriptor (block devices only)
  1923.  0Eh    DWORD    transfer address
  1924.  12h    WORD    (call) number of bytes to read/write
  1925.         (return) actual number of bytes read or written
  1926. ---command codes 04h,08h,09h---
  1927.  0Dh    BYTE    media descriptor (block devices only)
  1928.  0Eh    DWORD    transfer address
  1929.  12h    WORD    byte count (character devices) or sector count (block devices)
  1930.  14h    WORD    starting sector number (block devices only)
  1931.  16h    DWORD    (DOS 3+) pointer to volume ID if error 0Fh returned
  1932.  1Ah    DWORD    (DOS 4+) 32-bit starting sector number (block devices with
  1933.         device attribute word bit 1 set only) if starting sector number
  1934.         above is FFFFh (see INT 21/AH=52h)
  1935. ---command code 05h---
  1936.  0Dh    BYTE    byte read from device if BUSY bit clear on return
  1937. ---command codes 06h,07h,0Ah,0Bh,0Dh,0Eh,0Fh---
  1938.  no further fields
  1939. ---command code 10h---
  1940.  0Dh    BYTE    unused
  1941.  0Eh    DWORD    transfer address
  1942.  12h    WORD    (call) number of bytes to write
  1943.         (return) actual number of bytes written
  1944. ---command codes 11h,12h---
  1945.  0Dh    BYTE    reserved
  1946. ---command code 15h---
  1947.  no further fields
  1948. ---command codes 13h,19h---
  1949.  0Dh    BYTE    category code
  1950.         00h unknown
  1951.         01h COMn:
  1952.         03h CON
  1953.         05h LPTn:
  1954.         07h mouse (European MS-DOS 4.0)
  1955.         08h disk
  1956.         9Eh (STARLITE) Media Access Control driver
  1957.  0Eh    BYTE    function code
  1958.         00h (STARLITE) MAC Bind request
  1959.  0Fh    WORD    copy of DS at time of IOCTL call (apparently unused in DOS 3.3)
  1960.         SI contents (European MS-DOS 4.0)
  1961.  11h    WORD    offset of device driver header
  1962.         DI contents (European MS-DOS 4.0)
  1963.  13h    DWORD    pointer to parameter block from INT 21/AX=440Ch or AX=440Dh
  1964. ---command codes 80h,82h---
  1965.  0Dh    BYTE    addressing mode
  1966.         00h HSG (default)
  1967.         01h Phillips/Sony Red Book
  1968.  0Eh    DWORD    transfer address (ignored for command 82h)
  1969.  12h    WORD    number of sectors to read
  1970.         (if 0 for command 82h, request is an advisory seek)
  1971.  14h    DWORD    starting sector number
  1972.         logical sector number in HSG mode
  1973.         frame/second/minute/unused in Red Book mode
  1974.         (HSG sector = minute * 4500 + second * 75 + frame - 150)
  1975.  18h    BYTE    data read mode
  1976.         00h cooked (2048 bytes per frame)
  1977.         01h raw (2352 bytes per frame, including EDC/ECC)
  1978.  19h    BYTE    interleave size (number of sectors stored consecutively)
  1979.  1Ah    BYTE    interleave skip factor (# sectors between consec portions)
  1980. ---command code 83h---
  1981.  0Dh    BYTE    addressing mode (see above)
  1982.  0Eh    DWORD    transfer address (ignored)
  1983.  12h    WORD    number of sectors to read (ignored)
  1984.  14h    DWORD    starting sector number (see also above)
  1985. ---command code 84h---
  1986.  0Dh    BYTE    addressing mode (see above)
  1987.  0Eh    DWORD    starting sector number (see also above)
  1988.  12h    DWORD    number of sectors to play
  1989. ---command codes 85h,88h---
  1990.  no further fields
  1991. ---command codes 86h,87h---
  1992.  0Dh    BYTE    addressing mode (see above)
  1993.  0Eh    DWORD    transfer address (ignored in write mode 0)
  1994.  12h    WORD    number of sectors to write
  1995.  14h    DWORD    starting sector number (see also above)
  1996.  18h    BYTE    write mode
  1997.         00h mode 0 (write all zeros)
  1998.         01h mode 1 (default) (2048 bytes per sector)
  1999.         02h mode 2 form 1 (2048 bytes per sector)
  2000.         03h mode 2 form 2 (2336 bytes per sector)
  2001.  19h    BYTE    interleave size (number of sectors stored consecutively)
  2002.  1Ah    BYTE    interleave skip factor (# sectors between consec portions)
  2003.  
  2004. Values for error code:
  2005.  00h    write-protect violation
  2006.  01h    unknown unit
  2007.  02h    drive not ready
  2008.  03h    unknown command
  2009.  04h    CRC error
  2010.  05h    bad drive request structure length
  2011.  06h    seek error
  2012.  07h    unknown media
  2013.  08h    sector not found
  2014.  09h    printer out of paper
  2015.  0Ah    write fault
  2016.  0Bh    read fault
  2017.  0Ch    general failure
  2018.  0Dh    reserved
  2019.  0Eh    (CD-ROM) media unavailable
  2020.  0Fh    invalid disk change
  2021.  
  2022. Call European MS-DOS 4.0 device helper function with:
  2023.     DL = function
  2024.         00h "SchedClock" called on each timer tick
  2025.         AL = tick interval in milliseconds
  2026.         01h "DevDone" device I/O complete
  2027.         ES:BX -> request header
  2028.         Note:    must update status word first; may be called from
  2029.               an interrupt handler
  2030.         02h "PullRequest" pull next request from queue
  2031.         DS:SI -> DWORD pointer to start of device's request queue
  2032.         Return: ZF clear if pending request
  2033.                 ES:BX -> request header
  2034.             ZF set if no more requests
  2035.         03h "PullParticular" remove specific request from queue
  2036.         DS:SI -> DWORD pointer to start of device's request queue
  2037.         ES:BX -> request header
  2038.         Return: ZF set if request header not found
  2039.         04h "PushRequest" push the request onto the queue
  2040.         DS:SI -> DWORD pointer to start of device's request queue
  2041.         ES:BX -> request header
  2042.         interrupts disabled
  2043.         05h "ConsInputFilter" keyboard input check
  2044.         AX = character (high byte 00h if PC ASCII character)
  2045.         Return: ZF set if character should be discarded
  2046.             ZF clear if character should be handled normally
  2047.         Note:    called by keyboard interrupt handler so DOS can scan
  2048.               for special input characters
  2049.         06h "SortRequest" push request in sorted order by starting sector
  2050.         DS:SI -> DWORD pointer to start of device's request queue
  2051.         ES:BX -> request header
  2052.         interrupts disabled
  2053.         07h "SigEvent" send signal on keyboard event
  2054.         AH = event identifier
  2055.         Return: AL,FLAGS destroyed
  2056.         09h "ProcBlock" block on event
  2057.         AX:BX = event identifier (typically a pointer)
  2058.         CX = timeout in ms or 0000h for never
  2059.         DH = interruptable flag (nonzero if pause may be interrupted)
  2060.         interrupts disabled
  2061.         Return: after corresponding ProcRun call
  2062.             CF clear if event wakeup, set if unusual wakeup
  2063.             ZF set if timeout wakeup, clear if interrupted
  2064.             AL = wakeup code, nonzero if unusual wakeup
  2065.             interrupts enabled
  2066.             BX,CX,DX destroyed
  2067.         Note:    block process and schedules another to run
  2068.         0Ah "ProcRun" unblock process
  2069.         AX:BX = event identifier (typically a pointer)
  2070.         Return: AX = number of processes awakened
  2071.             ZF set if no processes awakened
  2072.             BX,CX,DX destroyed
  2073.         0Bh "QueueInit" initialize/clear character queue
  2074.         DS:BX -> character queue structure (see below)
  2075.         Note:    the queue size field must be set before calling
  2076.         0Dh "QueueWrite" put a character in the queue
  2077.         DS:BX -> character queue (see below)
  2078.         AL = character to append to end of queue
  2079.         Return: ZF set if queue is full
  2080.             ZF clear if character stored
  2081.         0Eh "QueueRead" get a character from the queue
  2082.         DS:BX -> character queue (see below)
  2083.         Return: ZF set if queue is empty
  2084.             ZF clear if characters in queue
  2085.                 AL = first character in queue
  2086.         10h "GetDOSVar" return pointer to DOS variable
  2087.         AL = index of variable
  2088.             03h current process ID
  2089.         BX = index into variable if AL specifies an array
  2090.         CX = expected length of variable
  2091.         Return: CF clear if successful
  2092.                 DX:AX -> variable
  2093.             CF set on error
  2094.                 AX,DX destroyed
  2095.             BX,CX destroyed
  2096.         Note:    the variables may not be modified
  2097.         14h "Yield" yield CPU if higher-priority task ready to run
  2098.         Return: FLAGS destroyed
  2099.         1Bh "CritEnter" begin system critical section
  2100.         DS:BX -> semaphore (6 BYTEs, initialized to zero)
  2101.         Return: AX,BX,CX,DX destroyed
  2102.         1Ch "CritLeave" end system critical section
  2103.         DS:BX -> semaphore (6 BYTEs, initialized to zero)
  2104.         Return: AX,BX,CX,DX destroyed
  2105.         Note:    must be called in the context of the process which
  2106.               called CritEnter on the semaphore
  2107. Note:    the DWORD pointing at the request queue must be allocated by the driver
  2108.       and initialized to 0000h:0000h.  It always points at the next request
  2109.       to be executed
  2110.  
  2111. Format of character queue:
  2112. Offset    Size    Description
  2113.  00h    WORD    size of queue in bytes
  2114.  02h    WORD    index of next character out
  2115.  04h    WORD    count of characters in the queue
  2116.  06h  N BYTEs    queue buffer
  2117. --------D-2F0803-----------------------------
  2118. INT 2F U - DOS 4+ DRIVER.SYS support - GET DRIVE DATA TABLE LIST
  2119.     AX = 0803h
  2120. Return: DS:DI -> first drive data table in list
  2121. Note:    not available under DR-DOS 5.0
  2122. SeeAlso: AX=0801h
  2123.  
  2124. Format of DOS 3.30 drive data table:
  2125. Offset    Size    Description
  2126.  00h    DWORD    pointer to next table (offset FFFFh if last table)
  2127.  04h    BYTE    physical unit number (for INT 13)
  2128.  05h    BYTE    logical drive number (0=A:)
  2129.  06h 19 BYTEs    BIOS Parameter Block (see also INT 21/AH=53h)
  2130.         Offset    Size    Description
  2131.          00h    WORD    bytes per sector
  2132.          02h    BYTE    sectors per cluster, FFh if unknown
  2133.          03h    WORD    number of reserved sectors
  2134.          05h    BYTE    number of FATs
  2135.          06h    WORD    number of root dir entries
  2136.          08h    WORD    total sectors
  2137.          0Ah    BYTE    media descriptor, 00h if unknown
  2138.          0Bh    WORD    sectors per FAT
  2139.          0Dh    WORD    sectors per track
  2140.          0Fh    WORD    number of heads
  2141.          11h    WORD    number of hidden sectors
  2142.  19h    BYTE    flags
  2143.         bit 6: 16-bit FAT instead of 12-bit FAT
  2144.  1Ah    WORD    number of DEVICE OPEN calls without corresponding DEVICE CLOSE
  2145.  1Ch 11 BYTEs    volume label or "NO NAME    " if none (always "NO NAME" for
  2146.         fixed media)
  2147.  27h    BYTE    terminating null for volume label???
  2148.  28h    BYTE    device type (see INT 21/AX=440Dh)
  2149.  29h    WORD    bit flags describing drive (see below)
  2150.  2Bh    WORD    number of cylinders
  2151.  2Dh 19 BYTEs    BIOS Parameter Block for highest capacity supported
  2152.  40h  3 BYTEs    ???
  2153.  43h  9 BYTEs    filesystem type???, default = "NO NAME    "
  2154.         (apparently only MS-DOS 3.30 fixed media, nulls for removable
  2155.         media and PC-DOS 3.30)
  2156.  4Ch    BYTE    least-significant byte of last-accessed cylinder number
  2157. ---removable media---
  2158.  4Dh    DWORD    time of last access in clock ticks (FFFFFFFFh if never)
  2159. ---fixed media---
  2160.  4Dh    WORD    partition (FFFFh = primary, 0001h = extended)
  2161.  4Fh    WORD    absolute cylinder number of partition's start on physical
  2162.         drive (always FFFFh if primary partition)
  2163.  
  2164. Format of COMPAQ DOS 3.31 drive data table:
  2165. Offset    Size    Description
  2166.  00h    DWORD    pointer to next table (offset FFFFh if last table)
  2167.  04h    BYTE    physical unit number (for INT 13)
  2168.  05h    BYTE    logical drive number (0=A:)
  2169.  06h 25 BYTEs    BIOS Parameter Block (see DOS 4.0-6.0 drive data table below)
  2170.  1Fh  6 BYTEs    reserved fields from BPB above???
  2171.  25h    BYTE    flags
  2172.         bit 6: 16-bit FAT instead of 12-bit FAT
  2173.         bit 5: large volume???
  2174.  26h    WORD    device-open count???
  2175.  28h 11 BYTEs    volume label or "NO NAME    " if none (always "NO NAME" for
  2176.         fixed media)
  2177.  33h    BYTE    terminating null for volume label
  2178.  34h    BYTE    device type (see INT 21/AX=440Dh)
  2179.  35h    WORD    bit flags describing drive (see below)
  2180.  37h    WORD    number of cylinders
  2181.  39h 25 BYTEs    BIOS parameter block for highest capacity drive supports
  2182.  52h  6 BYTEs    ??? apparently always zeros
  2183.  58h    BYTE    least-significant byte of last-accessed cylinder number
  2184. ---removable media---
  2185.  59h    DWORD    time of last access in clock ticks (FFFFFFFFh if never)
  2186. ---fixed media---
  2187.  59h    WORD    partition (FFFFh = primary, 0001h = extended)
  2188.  5Bh    WORD    absolute cylinder number of partition's start on physical
  2189.         drive (always FFFFh if primary partition)
  2190.  
  2191. Format of DOS 4.0-6.0 drive data table:
  2192. Offset    Size    Description
  2193.  00h    DWORD    pointer to next table (offset FFFFh if last table)
  2194.  04h    BYTE    physical unit number (for INT 13)
  2195.  05h    BYTE    logical drive number (0=A:)
  2196.  06h 25 BYTEs    BIOS Parameter Block (see also INT 21/AH=53h)
  2197.         Offset    Size    Description
  2198.          00h    WORD    bytes per sector
  2199.          02h    BYTE    sectors per cluster, FFh if unknown
  2200.          03h    WORD    number of reserved sectors
  2201.          05h    BYTE    number of FATs
  2202.          06h    WORD    number of root dir entries
  2203.          08h    WORD    total sectors (see offset 15h if zero)
  2204.          0Ah    BYTE    media descriptor, 00h if unknown
  2205.          0Bh    WORD    sectors per FAT
  2206.          0Dh    WORD    sectors per track
  2207.          0Fh    WORD    number of heads
  2208.          11h    DWORD    number of hidden sectors
  2209.          15h    DWORD    total sectors if WORD at 08h is zero
  2210.  1Fh    BYTE    flags
  2211.         bit 6: 16-bit FAT instead of 12-bit
  2212.         bit 7: unsupportable disk (all accesses will return Not Ready)
  2213.  20h    WORD    device-open count
  2214.  22h    BYTE    device type (see INT 21/AX=440Dh)
  2215.  23h    WORD    bit flags describing drive (see below)
  2216.  25h    WORD    number of cylinders
  2217.  27h 25 BYTEs    BIOS Parameter Block for default (highest) capacity supported
  2218.  40h  6 BYTEs    reserved (part of BPB above)
  2219.  46h    BYTE    last track accessed
  2220. ---removable media---
  2221.  47h    DWORD    time of last access in clock ticks (FFFFFFFFh if never)
  2222. ---fixed media---
  2223.  47h    WORD    partition (FFFFh = primary, 0001h = extended)
  2224.         always 0001h for DOS 5+
  2225.  49h    WORD    absolute cylinder number of partition's start on physical drive
  2226.         (FFFFh if primary partition in DOS 4.x)
  2227. ------
  2228.  4Bh 11 BYTEs    volume label or "NO NAME    " if none (apparently taken from
  2229.         extended boot record rather than root directory)
  2230.  56h    BYTE    terminating null for volume label
  2231.  57h    DWORD    serial number
  2232.  5Bh  8 BYTEs    filesystem type ("FAT12      " or "FAT16    ")
  2233.  63h    BYTE    terminating null for filesystem type
  2234.  
  2235. Bitfields for flags describing drive:
  2236.  bit 0    fixed media
  2237.  bit 1    door lock ("changeline") supported
  2238.  bit 2    current BPB locked
  2239.  bit 3    all sectors in a track are the same size
  2240.  bit 4    physical drive has multiple logical units
  2241.  bit 5    current logical drive for physical drive
  2242.  bit 6    disk change detected
  2243.  bit 7    set DASD before formatting
  2244.  bit 8    disk reformatted
  2245.  bit 9    unformatted (fixed media only, disables reads and writes)
  2246. --------f-2F1000-----------------------------
  2247. INT 2F - SHARE - INSTALLATION CHECK
  2248.     AX = 1000h
  2249. Return: AL = 00h  not installed, OK to install
  2250.          01h  not installed, not OK to install
  2251.          FFh  installed
  2252. BUGS:    values of AL other than 00h put DOS 3.x SHARE into an infinite loop
  2253.       (08E9: OR  AL,AL
  2254.        08EB: JNZ 08EB) <- the buggy instruction (DOS 3.3)
  2255.     values of AL other than described here put PC-DOS 4.00 into the same
  2256.       loop (the buggy instructions are the same)
  2257. Notes:    supported by OS/2 v1.3+ compatibility box, which always returns AL=FFh
  2258.     if DOS 4.01 SHARE was automatically loaded, file sharing is in an
  2259.       inactive state (due to the undocumented /NC flag used by the autoload
  2260.       code) until this call is made
  2261.     DOS 5+ chains to the previous handler if AL <> 00h on entry
  2262.     Windows Enhanced mode hooks this call and reports that SHARE is
  2263.       installed even when it is not
  2264. SeeAlso: AX=1080h,INT 21/AH=52h
  2265. --------d-2F1001-----------------------------
  2266. INT 2F U - DR-DOS 6.0 SHARE internal - SET ???
  2267.     AX = 1001h
  2268.     DX:BX -> ???function
  2269. Note:    this function is also supported by SuperStor, a disk-compression
  2270.       program by Addstor which is bundled with DR-DOS 6.0
  2271. SeeAlso: AX=1000h,X=F800h
  2272. --------f-2F1040-----------------------------
  2273. INT 2F U - DOS 4 only SHARE internal - ???
  2274.     AX = 1040h
  2275.     ???
  2276. Return: AL = FFh???
  2277. SeeAlso: AX=1000h
  2278. --------f-2F1080-----------------------------
  2279. INT 2F U - DOS 4 only SHARE internal - TURN ON FILE SHARING CHECKS
  2280.     AX = 1080h
  2281. Return: AL = status
  2282.         F0h successful
  2283.         FFh checking was already on
  2284. Note:    DOS 4.x SHARE has dual functions: FCB support for large (>32M) media
  2285.       and file sharing checks.  The undocumented commandline flag /NC can
  2286.       be used to disable the sharing code.
  2287. SeeAlso: AX=1000h,AX=1081h
  2288. --------f-2F1081-----------------------------
  2289. INT 2F U - DOS 4 only SHARE internal - TURN OFF FILE SHARING CHECKS
  2290.     AX = 1081h
  2291. Return: AL = status
  2292.         F0h successful
  2293.         FFh checking was already off
  2294. Note:    (see AX=1080h)
  2295. SeeAlso: AX=1000h,AX=1080h
  2296. --------O-2F10FF-----------------------------
  2297. INT 2F U - Multiplex - DR-DOS 5.0 - ???
  2298.     AX = 10FFh
  2299.     ES:BX -> ???
  2300. Note:    sets pointer in kernel
  2301. --------N-2F1100-----------------------------
  2302. INT 2F C - NETWORK REDIRECTOR - INSTALLATION CHECK
  2303.     AX = 1100h
  2304. Return: AL = status
  2305.         00h not installed, OK to install
  2306.         01h not installed, not OK to install
  2307.         FFh installed
  2308.         AH = product identifier (ad hoc by various manufacturers)
  2309.             00h if PC Tools v8 DRIVEMAP
  2310.             42h ('B') for Beame&Whiteside BWNFS v3.0a
  2311.             6Eh ('n') for NetWare Lite v1.1 CLIENT
  2312. Notes:    this function is called by the DOS 3.1+ kernel
  2313.     in DOS 4.x only, the 11xx calls are all in IFSFUNC.EXE, not in the
  2314.       PC LAN Program redirector; DOS 5+ moves the calls back into the
  2315.       redirector
  2316.     the PC Network 1.00 redirector (renamed to PC LAN Program in 1.1-1.3)
  2317.       only supports AL=00h-27h
  2318. --------d-2F1100-----------------------------
  2319. INT 2F - MSCDEX (MS CD-ROM Extensions) - INSTALLATION CHECK
  2320.     AX = 1100h
  2321.     STACK: WORD DADAh
  2322. Return: AL = status
  2323.         00h not installed, OK to install
  2324.         STACK unchanged
  2325.         01h not installed, not OK to install
  2326.         STACK unchanged
  2327.         FFh installed
  2328.         STACK: WORD ADADh
  2329. --------N-2F1101-----------------------------
  2330. INT 2F CU - NETWORK REDIRECTOR - REMOVE REMOTE DIRECTORY
  2331.     AX = 1101h
  2332.     SS = DOS DS
  2333.     SDA first filename pointer -> fully-qualified directory name
  2334.     SDA CDS pointer -> current directory structure for drive with dir
  2335. Return: CF set on error
  2336.         AX = DOS error code (see INT 21/AH=59h)
  2337.     CF clear if successful
  2338. Note:    this function is called by the DOS 3.1+ kernel
  2339. SeeAlso: AX=1103h,AX=1105h,INT 21/AH=3Ah,INT 21/AH=60h
  2340. --------N-2F1102-----------------------------
  2341. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - REMOVE REMOTE DIRECTORY
  2342.     AX = 1102h
  2343.     SS = DOS DS
  2344.     SDA first filename pointer -> fully-qualified directory name
  2345.     SDA CDS pointer -> current directory structure for drive with dir
  2346. Return: CF set on error
  2347.         AX = DOS error code (see INT 21/AH=59h)
  2348.     CF clear if successful
  2349. Note:    appears to be identical to AX=1101h; MS internal documentation calls
  2350.       this function "SEQ_RMDIR"
  2351. SeeAlso: AX=1101h
  2352. --------N-2F1103-----------------------------
  2353. INT 2F CU - NETWORK REDIRECTOR - MAKE REMOTE DIRECTORY
  2354.     AX = 1103h
  2355.     SS = DOS DS
  2356.     SDA first filename pointer -> fully-qualified directory name
  2357.     SDA CDS pointer -> current directory structure for drive with dir
  2358. Return: CF set on error
  2359.         AX = DOS error code (see INT 21/AH=59h)
  2360.     CF clear if successful
  2361. Note:    this function is called by the DOS 3.1+ kernel
  2362. SeeAlso: AX=1101h,AX=1105h,INT 21/AH=39h,INT 21/AH=60h
  2363. --------N-2F1104-----------------------------
  2364. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - MAKE REMOTE DIRECTORY
  2365.     AX = 1104h
  2366.     SS = DOS DS
  2367.     SDA first filename pointer -> fully-qualified directory name
  2368.     SDA CDS pointer -> current directory structure for drive with dir
  2369. Return: CF set on error
  2370.         AX = DOS error code (see INT 21/AH=59h)
  2371.     CF clear if successful
  2372. Note:    appears to be identical to AX=1103h
  2373. SeeAlso: AX=1103h
  2374. --------N-2F1105-----------------------------
  2375. INT 2F CU - NETWORK REDIRECTOR - CHDIR
  2376.     AX = 1105h
  2377.     SS = DOS DS
  2378.     SDA first filename pointer -> fully-qualified directory name
  2379.     SS:BX -> fully-qualified directory name
  2380.     SDA CDS pointer -> current directory structure for drive with dir
  2381. Return: CF set on error
  2382.         AX = DOS error code (see INT 21/AH=59h)
  2383.     CF clear if successful
  2384.         CDS updated with new path
  2385. Notes:    this function is called by the DOS 3.1+ kernel
  2386.     directory string in CDS should not have a terminating backslash unless
  2387.       the current directory is the root
  2388. SeeAlso: AX=1101h,AX=1103h,INT 21/AH=3Bh,INT 21/AH=60h
  2389. --------N-2F1106-----------------------------
  2390. INT 2F CU - NETWORK REDIRECTOR - CLOSE REMOTE FILE
  2391.     AX = 1106h
  2392.     BX = device info word from SFT
  2393.     ES:DI -> SFT
  2394.         SFT DPB field -> DPB of drive containing file
  2395. Return: CF set on error
  2396.         AX = DOS error code (see INT 21/AH=59h)
  2397.     CF clear if successful
  2398.         SFT updated (redirector must decrement open count, which may be
  2399.             done with INT 2F/AX=1208h)
  2400. Note:    this function is called by the DOS 3.1+ kernel
  2401. SeeAlso: AX=1116h,AX=1201h,AX=1208h,AX=1227h,INT 21/AH=3Eh
  2402. --------N-2F1107-----------------------------
  2403. INT 2F CU - NETWORK REDIRECTOR - COMMIT REMOTE FILE
  2404.     AX = 1107h
  2405.     ES:DI -> SFT
  2406.         SFT DPB field -> DPB of drive containing file
  2407. Return: CF set on error
  2408.         AX = DOS error code (see INT 21/AH=59h)
  2409.     CF clear if successful
  2410.         all buffers for file flushed
  2411.         directory entry updated
  2412. Note:    this function is called by the DOS 3.1+ kernel
  2413. SeeAlso: INT 21/AH=68h,INT 21/AX=5D01h
  2414. --------N-2F1108-----------------------------
  2415. INT 2F CU - NETWORK REDIRECTOR - READ FROM REMOTE FILE
  2416.     AX = 1108h
  2417.     ES:DI -> SFT
  2418.         SFT DPB field -> DPB of drive containing file
  2419.     CX = number of bytes
  2420.     SS = DOS DS
  2421.     SDA DTA field -> user buffer
  2422. Return: CF set on error
  2423.         AX = DOS error code (see INT 21/AH=59h)
  2424.     CF clear if successful
  2425.         CX = number of bytes read (0000h = end of file)
  2426.         SFT updated
  2427. Note:    this function is called by the DOS 3.1+ kernel
  2428. SeeAlso: AX=1109h,AX=1229h,INT 21/AH=3Fh,INT 21/AX=5D06h
  2429. --------N-2F1109-----------------------------
  2430. INT 2F CU - NETWORK REDIRECTOR - WRITE TO REMOTE FILE
  2431.     AX = 1109h
  2432.     ES:DI -> SFT
  2433.         SFT DPB field -> DPB of drive containing file
  2434.     CX = number of bytes
  2435.     SS = DOS DS
  2436.     SDA DTA field -> user buffer
  2437. Return: CF set on error
  2438.         AX = DOS error code (see INT 21/AH=59h)
  2439.     CF clear if successful
  2440.         CX = number of bytes written
  2441.         SFT updated
  2442. Notes:    this function is called by the DOS 3.1+ kernel
  2443.     PrintCache v3.1 PCACHE.EXE intercepts this function for SFTs where
  2444.       the Device Driver Header field points at PCACHE, but does not
  2445.       intercept any other network redirector functions
  2446. SeeAlso: AX=1107h,AX=1108h,INT 21/AH=40h,INT 21/AX=5D06h
  2447. --------N-2F110A-----------------------------
  2448. INT 2F CU - NETWORK REDIRECTOR (DOS 3.x only) - LOCK REGION OF FILE
  2449.     AX = 110Ah
  2450.     BX = file handle
  2451.     CX:DX = starting offset
  2452.     SI = high word of size
  2453.     STACK: WORD low word of size
  2454.     ES:DI -> SFT
  2455.         SFT DPB field -> DPB of drive containing file
  2456.     SS = DOS DS
  2457. Return: CF set on error
  2458.        AL = DOS error code (see INT 21/AH=59h)
  2459.     STACK unchanged
  2460. Notes:    this function is called by the DOS 3.10-3.31 kernel
  2461.     the redirector is expected to resolve lock conflicts
  2462. SeeAlso: AX=110Bh,INT 21/AH=5Ch
  2463. --------N-2F110A-----------------------------
  2464. INT 2F CU - NETWORK REDIRECTOR (DOS 4+) - LOCK/UNLOCK REGION OF FILE
  2465.     AX = 110Ah
  2466.     BL = function
  2467.         00h lock
  2468.         01h unlock
  2469.     CX = number of lock/unlock parameters (0001h for DOS 4.0-6.1)
  2470.     DS:DX -> parameter block (see below)
  2471.     ES:DI -> SFT
  2472.         SFT DPB field -> DPB of drive containing file
  2473.     SS = DOS DS
  2474. Return: CF set on error
  2475.        AL = DOS error code (see INT 21/AH=59h)
  2476. Notes:    this function is called by the DOS 4.0+ kernel
  2477.     the redirector is expected to resolve lock conflicts
  2478. SeeAlso: AX=110Bh,INT 21/AH=5Ch
  2479.  
  2480. Format of parameter block entry [array, but currently limited to single entry]:
  2481. Offset    Size    Description
  2482.  00h    DWORD    start offset
  2483.  04h    DWORD    size of region
  2484. --------N-2F110B-----------------------------
  2485. INT 2F CU - NETWORK REDIRECTOR (DOS 3.x only) - UNLOCK REGION OF FILE
  2486.     AX = 110Bh
  2487.     BX = file handle
  2488.     CX:DX = starting offset
  2489.     SI = high word of size
  2490.     STACK: WORD low word of size
  2491.     ES:DI -> SFT for file
  2492.         SFT DPB field -> DPB of drive containing file
  2493. Return: CF set on error
  2494.        AL = DOS error code (see INT 21/AH=59h)
  2495.     STACK unchanged
  2496. Note:    this function is called by the DOS 3.1-3.31 kernel; DOS 4.0+ calls AX=110Ah instead
  2497. SeeAlso: AX=110Ah,INT 21/AH=5Ch
  2498. --------N-2F110C-----------------------------
  2499. INT 2F CU - NETWORK REDIRECTOR - GET DISK INFORMATION
  2500.     AX = 110Ch
  2501.     ES:DI -> current directory structure for desired drive
  2502. Return: AL = sectors per cluster
  2503.     AH = media ID byte
  2504.     BX = total clusters
  2505.     CX = bytes per sector
  2506.     DX = number of available clusters
  2507. Note:    this function is called by the DOS 3.1+ kernel
  2508. SeeAlso: INT 21/AH=36h
  2509. --------N-2F110D-----------------------------
  2510. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - SET REMOTE FILE'S ATTRIBUTES
  2511.     AX = 110Dh
  2512.     SDA first filename pointer -> name of file
  2513.     ???
  2514. Return: ???
  2515. Note:    similar to AX=110Eh
  2516. SeeAlso: AX=110Eh
  2517. --------N-2F110E-----------------------------
  2518. INT 2F CU - NETWORK REDIRECTOR - SET REMOTE FILE'S ATTRIBUTES
  2519.     AX = 110Eh
  2520.     SS = DOS DS
  2521.     SDA first filename pointer -> fully-qualified name of file
  2522.     SDA CDS pointer -> current directory structure for drive with file
  2523.     STACK: WORD new file attributes
  2524. Return: CF set on error
  2525.         AX = DOS error code (see INT 21/AH=59h)
  2526.     CF clear if successful
  2527.     STACK unchanged
  2528. Note:    this function is called by the DOS 3.1+ kernel
  2529. SeeAlso: AX=110Dh,AX=110Fh,INT 21/AX=4301h,INT 21/AH=60h
  2530. --------N-2F110F-----------------------------
  2531. INT 2F CU - NETWORK REDIRECTOR - GET REMOTE FILE'S ATTRIBUTES AND SIZE
  2532.     AX = 110Fh
  2533.     SS = DOS DS
  2534.     SDA first filename pointer -> fully-qualified name of file
  2535.     SDA CDS pointer -> current directory structure for drive with file
  2536. Return: CF set on error
  2537.         AX = DOS error code (see INT 21/AH=59h)
  2538.     CF clear if successful
  2539.         AX = file attributes
  2540.         BX:DI = file size
  2541. Note:    this function is called by the DOS 3.1+ kernel
  2542. SeeAlso: AX=110Eh,INT 21/AX=4300h,INT 21/AH=60h
  2543. --------N-2F1110-----------------------------
  2544. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - GET REMOTE FILE'S ATTRIBUTES AND SIZE
  2545.     AX = 1110h
  2546.     SDA first filename pointer -> name of file
  2547.     ???
  2548. Return: ???
  2549. Note:    appears to be similar to AX=110Fh
  2550. SeeAlso: AX=110Eh
  2551. --------N-2F1111-----------------------------
  2552. INT 2F CU - NETWORK REDIRECTOR - RENAME REMOTE FILE
  2553.     AX = 1111h
  2554.     SS = DS = DOS DS
  2555.     SDA first filename pointer = offset of fully-qualified old name
  2556.     SDA second filename pointer = offset of fully-qualified new name
  2557.     SDA CDS pointer -> current directory structure for drive with file
  2558. Return: CF set on error
  2559.         AX = DOS error code (see INT 21/AH=59h)
  2560.     CF clear if successful
  2561. Note:    this function is called by the DOS 3.1+ kernel
  2562. SeeAlso: AX=1112h,INT 21/AH=56h,INT 21/AH=60h
  2563. --------N-2F1112-----------------------------
  2564. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - RENAME REMOTE FILE
  2565.     AX = 1112h
  2566.     SS = DS = DOS DS
  2567.     SDA first filename pointer -> name of file
  2568.     ???
  2569. Return: ???
  2570. Note:    similar to AX=1111h
  2571. SeeAlso: AX=1111h
  2572. --------N-2F1113-----------------------------
  2573. INT 2F CU - NETWORK REDIRECTOR - DELETE REMOTE FILE
  2574.     AX = 1113h
  2575.     SS = DS = DOS DS
  2576.     SDA first filename pointer -> fully-qualified filename in DOS DS
  2577.     SDA CDS pointer -> current directory structure for drive with file
  2578. Return: CF set on error
  2579.         AX = DOS error code (see INT 21/AH=59h)
  2580.     CF clear if successful
  2581. Notes:    this function is called by the DOS 3.1+ kernel
  2582.     the filespec may contain wildcards
  2583. SeeAlso: AX=1114h,INT 21/AH=41h,INT 21/AH=60h
  2584. --------N-2F1114-----------------------------
  2585. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - DELETE REMOTE FILE
  2586.     AX = 1114h
  2587.     SDA first filename pointer -> name of file
  2588.     ???
  2589. Return: ???
  2590. Note:    similar to AX=1113h
  2591. SeeAlso: AX=1113h
  2592. --------N-2F1115-----------------------------
  2593. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - OPEN REMOTE FILE
  2594.     AX = 1115h
  2595.     SS = DOS DS
  2596.     ES:DI -> SFT ???
  2597.     ???
  2598. Return: ???
  2599. Note:    similar to AX=1116h
  2600. SeeAlso: AX=1116h,AX=112Eh
  2601. --------N-2F1116-----------------------------
  2602. INT 2F CU - NETWORK REDIRECTOR - OPEN EXISTING REMOTE FILE
  2603.     AX = 1116h
  2604.     ES:DI -> uninitialized SFT
  2605.     SS = DOS DS
  2606.     SDA first filename pointer -> fully-qualified name of file to open
  2607.     STACK: WORD file access and sharing modes (see INT 21/AH=3Dh)
  2608. Return: CF set on error
  2609.         AX = DOS error code (see INT 21/AH=59h)
  2610.     CF clear if successful
  2611.         SFT filled (except handle count, which DOS manages itself)
  2612.     STACK unchanged
  2613. Note:    this function is called by the DOS 3.1+ kernel
  2614. SeeAlso: AX=1106h,AX=1115h,AX=1117h,AX=1118h,AX=112Eh,INT 21/AH=3Dh
  2615. SeeAlso: INT 21/AH=60h
  2616. --------N-2F1117-----------------------------
  2617. INT 2F CU - NETWORK REDIRECTOR - CREATE/TRUNCATE REMOTE FILE
  2618.     AX = 1117h
  2619.     ES:DI -> uninitialized SFT
  2620.     SS = DOS DS
  2621.     SDA first filename pointer -> fully-qualified name of file to open
  2622.     SDA CDS pointer -> current directory structure for drive with file
  2623.     STACK: WORD file creation mode
  2624.             low byte = file attributes (see INT 21/AH=3Ch)
  2625.             high byte = 00h normal create, 01h create new file
  2626. Return: CF set on error
  2627.         AX = DOS error code (see INT 21/AH=59h)
  2628.     CF clear if successful
  2629.         SFT filled (except handle count, which DOS manages itself)
  2630.     STACK unchanged
  2631. Note:    this function is called by the DOS 3.1+ kernel
  2632. SeeAlso: AX=1106h,AX=1116h,AX=1118h,AX=112Eh,INT 21/AH=3Ch,INT 21/AH=60h
  2633. --------N-2F1118-----------------------------
  2634. INT 2F CU - NETWORK REDIRECTOR - CREATE/TRUNCATE FILE WITHOUT CDS
  2635.     AX = 1118h
  2636.     ES:DI -> uninitialized SFT
  2637.     SS = DOS DS
  2638.     SDA first filename pointer -> fully-qualified name of file
  2639.     STACK: WORD file creation mode
  2640.             low byte = file attributes
  2641.             high byte = 00h normal create, 01h create new file
  2642. Return: ???
  2643.     STACK unchanged
  2644. Note:    this function is called by the DOS 3.1+ kernel when creating a file on a drive for which the
  2645.       SDA CDS pointer has offset FFFFh
  2646. SeeAlso: AX=1106h,AX=1116h,AX=1117h,AX=112Eh,INT 21/AH=60h
  2647. --------N-2F1119-----------------------------
  2648. INT 2F CU - NETWORK REDIRECTOR - FIND FIRST FILE WITHOUT CDS
  2649.     AX = 1119h
  2650.     SS = DS = DOS DS
  2651.     [DTA] = uninitialized 21-byte findfirst search data (see INT 21/AH=4Eh)
  2652.     SDA first filename pointer -> fully-qualified search template
  2653.     SDA search attribute = attribute mask for search
  2654. Return: CF set on error
  2655.         AX = DOS error code (see INT 21/AH=59h)
  2656.     CF clear if successful
  2657.         [DTA] = updated findfirst search data
  2658.             (bit 7 of first byte must be set)
  2659.         [DTA+15h] = standard directory entry for file
  2660. Notes:    this function is called by the DOS 3.1+ kernel
  2661.     DOS 4.x IFSFUNC returns CF set, AX=0003h
  2662. SeeAlso: AX=111Ah,AX=111Bh
  2663. --------N-2F111A-----------------------------
  2664. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - FIND NEXT FILE WITHOUT CDS
  2665.     AX = 111Ah
  2666.     ???
  2667. Return: CF set
  2668.         AX = error code (03h for DOS 4.01 IFSFUNC)
  2669. Note:    use AX=111Ch for DOS 5+
  2670. SeeAlso: AX=1119h,AX=111Ch
  2671. --------N-2F111B-----------------------------
  2672. INT 2F CU - NETWORK REDIRECTOR - FINDFIRST
  2673.     AX = 111Bh
  2674.     SS = DS = DOS DS
  2675.     [DTA] = uninitialized 21-byte findfirst search data (see INT 21/AH=4Eh)
  2676.     SDA first filename pointer -> fully-qualified search template
  2677.     SDA CDS pointer -> current directory structure for drive with file
  2678.     SDA search attribute = attribute mask for search
  2679. Return: CF set on error
  2680.         AX = DOS error code (see INT 21/AH=59h)
  2681.     CF clear if successful
  2682.         [DTA] = updated findfirst search data
  2683.             (bit 7 of first byte must be set)
  2684.         [DTA+15h] = standard directory entry for file
  2685. Note:    this function is called by the DOS 3.1+ kernel
  2686. SeeAlso: AX=1119h,AX=111Ch,INT 21/AH=4Eh,INT 21/AH=60h
  2687. --------N-2F111C-----------------------------
  2688. INT 2F CU - NETWORK REDIRECTOR - FINDNEXT
  2689.     AX = 111Ch
  2690.     SS = DS = DOS DS
  2691.     ES:DI -> CDS
  2692.     [DTA] = 21-byte findfirst search data (see INT 21/AH=4Eh)
  2693. Return: CF set on error
  2694.         AX = DOS error code (see INT 21/AH=59h)
  2695.     CF clear if successful
  2696.         [DTA] = updated findfirst search data
  2697.             (bit 7 of first byte must be set)
  2698.         [DTA+15h] = standard directory entry for file
  2699. Note:    this function is called by the DOS 3.1+ kernel
  2700. SeeAlso: AX=1119h,AX=111Bh,INT 21/AH=4Fh
  2701. --------N-2F111D-----------------------------
  2702. INT 2F CU - NETWORK REDIRECTOR - CLOSE ALL REMOTE FILES FOR PROCESS (ABORT)
  2703.     AX = 111Dh
  2704.     SS = DOS DS
  2705. Return: nothing
  2706. Notes:    used when a process is aborted; the process being terminated is
  2707.       indicated by the "sharing PSP" field in the SDA (offset 1Ah/1Ch)
  2708.     this function is called by the DOS 3.1+ kernel
  2709.     closes all FCBs opened by process
  2710. SeeAlso: INT 21/AX=5D04h
  2711. --------N-2F111E-----------------------------
  2712. INT 2F CU - NETWORK REDIRECTOR - DO REDIRECTION
  2713.     AX = 111Eh
  2714.     SS = DOS DS
  2715.     STACK: WORD function to execute
  2716.         5F00h  get redirection mode
  2717.             BL = type (03h printer, 04h disk)
  2718.             Return: BH = state (00h off, 01h on)
  2719.         5F01h  set redirection mode
  2720.             BL = type (03h printer, 04h disk)
  2721.             BH = state (00h off, 01h on)
  2722.         5F02h  get redirection list entry
  2723.             BX = redirection list index
  2724.             DS:SI -> 16-byte local device name buffer
  2725.             ES:DI -> 128-byte network name buffer
  2726.             Return: must set user's BX to device type and CX to
  2727.                 stored parameter value, using AX=1218h to get
  2728.                 stack frame address
  2729.         5F03h  redirect device
  2730.             BL = device type (see INT 21/AX=5F03h)
  2731.             CX = stored parameter value
  2732.             DS:SI -> ASCIZ source device name
  2733.             ES:DI -> destination ASCIZ network path + ASCIZ passwd
  2734.         5F04h  cancel redirection
  2735.             DS:SI -> ASCIZ device name or network path
  2736.         5F05h  get redirection list extended entry
  2737.             BX = redirection list index
  2738.             DS:SI -> buffer for ASCIZ source device name
  2739.             ES:DI -> buffer for destination ASCIZ network path
  2740.             Return: BH = status flag
  2741.                 BL = type (03h printer, 04h disk)
  2742.                 CX = stored parameter value
  2743.                 BP = NETBIOS local session number
  2744.         5F06h  similar to 5F05h???
  2745. Return: CF set on error
  2746.         AX = error code (see INT 21/AH=59h)
  2747.     STACK unchanged
  2748. Notes:    this function is called by the DOS 3.1+ kernel on INT 21/AH=5Fh
  2749.       (including LAN Manager calls)
  2750.     the PC Network 1.00 redirector does not support function 5F06h
  2751. SeeAlso: INT 21/AX=5F00h,INT 21/AX=5F01h,INT 21/AX=5F02h,INT 21/AX=5F03h
  2752. SeeAlso: INT 21/AX=5F04h,INT 21/AX=5F05h,INT 21/AX=5F06h
  2753. --------N-2F111F-----------------------------
  2754. INT 2F CU - NETWORK REDIRECTOR - PRINTER SETUP
  2755.     AX = 111Fh
  2756.     STACK: WORD function
  2757.         5E02h  set printer setup
  2758.         5E03h  get printer setup
  2759.         5E04h  set printer mode
  2760.         5E05h  get printer mode
  2761. Return: CF set on error
  2762.         AX = error code (see INT 21/AH=59h)
  2763.     STACK unchanged
  2764. Note:    this function is called by the DOS 3.1+ kernel
  2765. SeeAlso: INT 21/AX=5E02h,INT 21/AX=5E03h,INT 21/AX=5E04h,INT 21/AX=5E05h
  2766. --------N-2F1120-----------------------------
  2767. INT 2F CU - NETWORK REDIRECTOR - FLUSH ALL DISK BUFFERS
  2768.     AX = 1120h
  2769.     DS = DOS DS
  2770.     ???
  2771. Return: CF clear (successful)
  2772. Notes:    this function is called by the DOS 3.1+ kernel
  2773.     uses CDS array pointer and LASTDRIVE= entries in DOS list of lists
  2774. SeeAlso: INT 21/AH=0Dh,INT 21/AX=5D01h
  2775. --------N-2F1121-----------------------------
  2776. INT 2F CU - NETWORK REDIRECTOR - SEEK FROM END OF REMOTE FILE
  2777.     AX = 1121h
  2778.     CX:DX = offset (in bytes) from end
  2779.     ES:DI -> SFT
  2780.         SFT DPB field -> DPB of drive with file
  2781.     SS = DOS DS
  2782. Return: CF set on error
  2783.         AL = DOS error code (see INT 21/AH=59h)
  2784.     CF clear if successful
  2785.         DX:AX = new file position
  2786. Note:    this function is called by the DOS 3.1+ kernel
  2787. SeeAlso: AX=1228h,INT 21/AH=42h
  2788. --------N-2F1122-----------------------------
  2789. INT 2F CU - NETWORK REDIRECTOR - PROCESS TERMINATION HOOK
  2790.     AX = 1122h
  2791.     SS = DOS DS
  2792.     ???
  2793. Return: ???
  2794. Note:    this function is called by the DOS 3.1+ kernel
  2795. --------N-2F1123-----------------------------
  2796. INT 2F CU - NETWORK REDIRECTOR - QUALIFY REMOTE FILENAME
  2797.     AX = 1123h
  2798.     DS:SI -> ASCIZ filename to canonicalize
  2799.     ES:DI -> 128-byte buffer for qualified name
  2800. Return: CF set if not resolved
  2801. Notes:    called by MS-DOS 3.1+ kernel, but not called by DR-DOS 5.0 unless the
  2802.       filename matches the name of a character device
  2803.     called first when DOS attempts to resolve a filename (unless inside an
  2804.       AX=5D00h server call); if this fails, DOS resolves the name locally
  2805. SeeAlso: AX=1221h,INT 21/AH=60h
  2806. --------N-2F1124-----------------------------
  2807. INT 2F CU - NETWORK REDIRECTOR - TURN OFF REMOTE PRINTER
  2808.     AX = 1124h
  2809.     ES:DI -> SFT
  2810.     SS = DOS DS
  2811.     ???
  2812. Return: CX = ???
  2813. Note:    this function is called by the DOS 3.1+ kernel if AX=1126h returns CF set
  2814. SeeAlso: AX=1126h
  2815. --------N-2F1125-----------------------------
  2816. INT 2F CU - NETWORK REDIRECTOR - REDIRECTED PRINTER MODE
  2817.     AX = 1125h
  2818.     STACK: WORD subfunction
  2819.         5D07h get print stream state
  2820.             Return: DL = current state
  2821.         5D08h set print stream state
  2822.             DL = new state
  2823.         5D09h finish print job
  2824. Return: CF set on error
  2825.         AX = error code (see INT 21/AH=59h)
  2826.     STACK unchanged
  2827. Note:    this function is called by the DOS 3.1+ kernel
  2828. SeeAlso: INT 21/AX=5D07h,INT 21/AX=5D08h,INT 21/AX=5D09h
  2829. --------N-2F1126-----------------------------
  2830. INT 2F CU - NETWORK REDIRECTOR - REMOTE PRINTER ECHO ON/OFF
  2831.     AX = 1126h
  2832.     ES:DI -> SFT for file handle 4???
  2833.     SS = DOS DS???
  2834.     ???
  2835. Return: CF set on error
  2836. Notes:    this function is called by the DOS 3.1+ kernel
  2837.     called when print echoing (^P, ^PrtSc) changes state and STDPRN has
  2838.       bit 11 of the device information word in the SFT set
  2839. SeeAlso: AX=1124h
  2840. --------N-2F1127-----------------------------
  2841. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - UNUSED
  2842.     AX = 1127h
  2843. Return: CF set
  2844.         AX = 0001h (invalid function) (see INT 21/AH=59h)
  2845. --------N-2F1128-----------------------------
  2846. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - UNUSED
  2847.     AX = 1128h
  2848. Return: CF set
  2849.         AX = 0001h (invalid function) (see INT 21/AH=59h)
  2850. --------N-2F1129-----------------------------
  2851. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - UNUSED
  2852.     AX = 1129h
  2853. Return: CF set
  2854.         AX = 0001h (invalid function) (see INT 21/AH=59h)
  2855. --------N-2F112A-----------------------------
  2856. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - CLOSE ALL FILES FOR PROCESS
  2857.     AX = 112Ah
  2858.     DS = DOS DS
  2859.     ???
  2860. Return: ???
  2861. Note:    does something to each IFS driver
  2862. --------N-2F112B-----------------------------
  2863. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - GENERIC IOCTL
  2864.     AX = 112Bh
  2865.     SS = DOS DS
  2866.     CX = function/category
  2867.     DS:DX -> parameter block
  2868.     STACK: WORD value of AX on entry to INT 21 (440Ch or 440Dh)
  2869.     ???
  2870. Return: CF set on error
  2871.         AX = DOS error code (see INT 21/AH=59h)
  2872.     CF clear if successful
  2873. Note:    this function is called by the DOS 4.0 kernel
  2874. --------N-2F112C-----------------------------
  2875. INT 2F CU - NETWORK REDIRECTOR (DOS 4+) - "UPDATE_CB" - ???
  2876.     AX = 112Ch
  2877.     SS = DOS DS
  2878.     SDA current SFT pointer -> SFT for file
  2879.     ???
  2880. Return: CF set on error
  2881. Note:    called by SHARE in DOS 5.0-6.0
  2882. --------N-2F112D-----------------------------
  2883. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - EXTENDED ATTRIBUTES
  2884.     AX = 112Dh
  2885.     BL = subfunction (value of AL on INT 21)
  2886.         02h get extended attributes
  2887.         03h get extended attribute properties
  2888.         04h set extended attributes
  2889.         Return: CF clear
  2890.         else ???
  2891.         Return: CX = ??? (00h or 02h for DOS 4.01)
  2892.     ES:DI -> SFT for file
  2893.     SS = DOS DS
  2894. Return: DS = DOS DS
  2895. Note:    this function is called by the DOS 4.0 kernel on INT 21/AX=5702h,
  2896.       INT 21/AX=5703h, and INT 21/AX=5704h
  2897. SeeAlso: INT 21/AX=5702h,INT 21/AX=5703h,INT 21/AX=5704h,INT 21/AH=6Eh
  2898. --------N-2F112E-----------------------------
  2899. INT 2F CU - NETWORK REDIRECTOR (DOS 4+) - EXTENDED OPEN/CREATE FILE
  2900.     AX = 112Eh
  2901.     SS = DS = DOS DS
  2902.     ES:DI -> uninitialized SFT for file
  2903.     STACK: WORD file attribute for created/truncated file
  2904.             low byte = file attributes
  2905.             high byte = 00h normal create/open, 01h create new file
  2906.     SDA first filename pointer -> fully-qualified filename
  2907.     SDA extended file open action = action code (see INT 21/AX=6C00h)
  2908.     SDA extended file open mode = open mode for file (see INT 21/AX=6C00h)
  2909. Return: CF set on error
  2910.         AX = error code
  2911.     CF clear if successful
  2912.         CX = result code
  2913.         01h file opened
  2914.         02h file created
  2915.         03h file replaced (truncated)
  2916.         SFT initialized (except handle count, which DOS manages itself)
  2917. Note:    this function is called by the DOS 4+ kernel
  2918. SeeAlso: AX=1115h,AX=1116h,AX=1117h,INT 21/AX=6C00h
  2919. --------N-2F112F-----------------------------
  2920. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - IFS IOCTL
  2921.     AX = 112Fh
  2922.     SS = DOS DS
  2923.     STACK: WORD function in low byte
  2924.         00h ???
  2925.             DS:SI -> Current Directory Structure???
  2926.             CL = drive (1=A:)
  2927.         01h ???
  2928.             DS:SI -> ???
  2929.             CL = file handle???
  2930.         02h ???
  2931.             DS:SI -> Current Directory Structure???
  2932.             DI = ???
  2933.             CX = drive (1=A:)
  2934.     ???
  2935. Return: CF set on error
  2936.         AX = DOS error code (see INT 21/AH=59h)
  2937.     CF clear if successful
  2938. Note:    this function is called by the DOS 4.0 kernel
  2939. SeeAlso: INT 21/AH=6Bh
  2940. --------N-2F1130-----------------------------
  2941. INT 2F CU - IFSFUNC.EXE (DOS 4.x only) - GET IFSFUNC SEGMENT
  2942.     AX = 1130h
  2943. Return: ES = CS of resident IFSFUNC
  2944. --------N-2F1180-----------------------------
  2945. INT 2F - LAN Manager Enhanced DOS Services - ???
  2946.     AX = 1180h
  2947.     ???
  2948. Return: ???
  2949. --------N-2F1182-----------------------------
  2950. INT 2F - LAN Manager Enhanced DOS Services - INSTALL SERVICE
  2951.     AX = 1182h
  2952.     ???
  2953. Return: ???
  2954. --------N-2F1184-----------------------------
  2955. INT 2F - LAN Manager Enhanced DOS - ???
  2956.     AX = 1184h
  2957.     ???
  2958. Return: ???
  2959. --------N-2F1186-----------------------------
  2960. INT 2F - LAN Manager Enhanced DOS - DosReadAsynchNmPipe
  2961.     AX = 1186h
  2962.     DS:SI -> stack frame (see below)
  2963. Return: CF clear if successful
  2964.     CF set if error
  2965.         AX = error code
  2966. Note:    LAN Manager enhance mode adds features beyond the standard redirector
  2967.       file/printer services
  2968. SeeAlso: AX=118Fh,AX=1190h,AX=1191h,INT 21/AX=5F39h
  2969.  
  2970. Format of DosReadAsynchNmPipe stack frame:
  2971. Offset    Size    Description
  2972.  00h    DWORD    -> number of bytes read
  2973.  04h    WORD    size of buffer
  2974.  06h    DWORD    -> buffer
  2975.  0Ah    DWORD    -> return code
  2976.  0Eh    DWORD    function to call on completion as function( char far *buffer )
  2977.  12h    WORD    handle
  2978. --------N-2F118A-----------------------------
  2979. INT 2F - LAN Manager 2.0+ DOS Enhanced ENCRYPT.EXE - STREAM ENCRYPTION SERVICE
  2980.     AX = 118Ah
  2981.     BX = function (0000h or 0001h)
  2982. Return: CF clear if successful
  2983.         AX = 1100h success
  2984.     CF set if error
  2985.         AX = 0001h, etc.
  2986. SeeAlso: AX=1186h,AH=41h,AH=42h,AH=4Bh
  2987. --------N-2F118B-----------------------------
  2988. INT 2F - LAN Manager Enhanced DOS - ???
  2989.     AX = 118Bh
  2990.     ???
  2991. Return: ???
  2992. --------N-2F118C-----------------------------
  2993. INT 2F - LAN Manager Enhanced DOS - ???
  2994.     AX = 118Ch
  2995.     ???
  2996. Return: ???
  2997. --------N-2F118E-----------------------------
  2998. INT 2F - LAN Manager Enhanced DOS - ???
  2999.     AX = 118Eh
  3000.     ???
  3001. Return: ???
  3002. --------N-2F118F-----------------------------
  3003. INT 2F - LAN Manager Enhanced DOS - DosWriteAsynchNmPipe
  3004.     AX = 118Fh
  3005.     DS:SI -> stack frame (see below)
  3006. Return: CF clear if successful
  3007.     CF set if error
  3008.         AX = error code
  3009. SeeAlso: AX=1186h,AX=1191h,INT 21/AX=5F3Ah
  3010.  
  3011. Format of DosReadAsynchNmPipe stack frame:
  3012. Offset    Size    Description
  3013.  00h    DWORD    -> number of bytes read
  3014.  04h    WORD    Size of buffer
  3015.  06h    DWORD    -> buffer
  3016.  0Ah    DWORD    -> return code
  3017.  0Eh    DWORD    function to call on completion as function( char far *buffer )
  3018.  12h    WORD    handle
  3019. --------N-2F1190-----------------------------
  3020. INT 2F - LAN Manager Enhanced DOS - DosReadAsynchNmPipe2
  3021.     AX = 1190h
  3022.     DS:SI -> stack frame
  3023. Return: CF clear if successful
  3024.     CF set if error
  3025.         AX = error code
  3026. SeeAlso: AX=1186h,AX=1191h
  3027.  
  3028. Format of DosReadAsynchNmPipe2 stack frame:
  3029. Offset    Size    Description
  3030.  00h    DWORD    -> number of bytes read
  3031.  04h    WORD    size of buffer
  3032.  06h    DWORD    -> buffer
  3033.  0Ah    DWORD    -> return code
  3034.  0Eh    DWORD    function to call on completion as function( char far *buffer )
  3035.  12h    WORD    handle
  3036.  14h    DWORD    ???
  3037. --------N-2F1191-----------------------------
  3038. INT 2F - LAN Manager Enhanced DOS - DosWriteAsynchNmPipe2
  3039.     AX = 1191h
  3040.     DS:SI -> stack frame (see below)
  3041. Return: CF clear if successful
  3042.     CF set if error
  3043.         AX = error code
  3044. SeeAlso: AX=118Fh,AX=1190h,INT 21/AX=5F3Ah
  3045.  
  3046. Format of DosReadAsynchNmPipe2 stack frame:
  3047. Offset    Size    Description
  3048.  00h    DWORD    -> number of bytes read
  3049.  04h    WORD    size of buffer
  3050.  06h    DWORD    -> buffer
  3051.  0Ah    DWORD    -> return code
  3052.  0Eh    DWORD    function to call on completion as function( char far *buffer )
  3053.  12h    WORD    handle
  3054.  14h    DWORD    ???
  3055. --------D-2F1200-----------------------------
  3056. INT 2F U - DOS 3+ internal - INSTALLATION CHECK
  3057.     AX = 1200h
  3058. Return: AL = FFh (for compatibility with other INT 2F functions)
  3059. --------D-2F1201-----------------------------
  3060. INT 2F U - DOS 3+ internal - CLOSE CURRENT FILE
  3061.     AX = 1201h
  3062.     SS = DOS DS (must be using a DOS internal stack)
  3063.     SDA current SFT pointer -> SFT of file to close
  3064. Return: CF set on error
  3065.     BX???
  3066.     CX new reference count of SFT
  3067.     ES:DI -> SFT for file
  3068. SeeAlso: AX=1106h,AX=1227h,INT 21/AH=3Eh
  3069. --------D-2F1202-----------------------------
  3070. INT 2F U - DOS 3+ internal - GET INTERRUPT ADDRESS
  3071.     AX = 1202h
  3072.     STACK: WORD vector number
  3073. Return: ES:BX -> interrupt vector
  3074.     STACK unchanged
  3075. --------D-2F1203-----------------------------
  3076. INT 2F U - DOS 3+ internal - GET DOS DATA SEGMENT
  3077.     AX = 1203h
  3078. Return: DS = data segment of IBMDOS.COM/MSDOS.SYS
  3079. Note:    for DOS prior to version 5.0, the data segment is the same as the code
  3080.       segment
  3081. --------D-2F1204-----------------------------
  3082. INT 2F U - DOS 3+ internal - NORMALIZE PATH SEPARATOR
  3083.     AX = 1204h
  3084.     STACK: WORD character to normalize
  3085. Return: AL = normalized character (forward slash turned to backslash, all
  3086.         others unchanged)
  3087.     ZF set if path separator
  3088.     STACK unchanged
  3089. --------D-2F1205-----------------------------
  3090. INT 2F U - DOS 3+ internal - OUTPUT CHARACTER TO STANDARD OUTPUT
  3091.     AX = 1205h
  3092.     STACK: WORD character to output
  3093. Return: STACK unchanged
  3094. Note:    can be called only from within DOS
  3095. --------D-2F1206-----------------------------
  3096. INT 2F U - DOS 3+ internal - INVOKE CRITICAL ERROR
  3097.     AX = 1206h
  3098.     DI = error code
  3099.     BP:SI -> device driver header
  3100.     SS = DOS DS (must be using a DOS internal stack)
  3101.     STACK: WORD value to be passed to INT 24 in AX
  3102. Return: AL = 0-3 for Abort, Retry, Ignore, Fail
  3103.     STACK unchanged
  3104. SeeAlso: INT 24
  3105. --------D-2F1207-----------------------------
  3106. INT 2F U - DOS 3+ internal - MAKE DISK BUFFER MOST-RECENTLY USED
  3107.     AX = 1207h
  3108.     DS:DI -> disk buffer
  3109. Return: nothing
  3110. Desc:    move the indicated buffer to the end of the disk buffer chain (least-
  3111.       recently used is first); under DOS 3.3, the buffer is then moved to
  3112.       the start of the disk buffer chain if it was marked unused
  3113. Notes:    can be called only from within DOS
  3114.     this function is nearly the same as AX=120Fh
  3115. SeeAlso: AX=120Fh
  3116. --------D-2F1208-----------------------------
  3117. INT 2F U - DOS 3+ internal - DECREMENT SFT REFERENCE COUNT
  3118.     AX = 1208h
  3119.     ES:DI -> SFT
  3120. Return: AX = original value of reference count
  3121. Notes:    if the reference count was 1, it is set to FFFFh (since 0 indicates
  3122.       that the SFT is not in use).    It is the caller's responsibility to
  3123.       set the reference count to zero after cleaning up.
  3124.     used by network redirectors such as MSCDEX
  3125. SeeAlso: AX=1106h
  3126. --------D-2F1209-----------------------------
  3127. INT 2F U - DOS 3+ internal - FLUSH AND FREE DISK BUFFER
  3128.     AX = 1209h
  3129.     DS:DI -> disk buffer
  3130. Return: disk buffer marked unused, contents written to disk if buffer dirty
  3131. Note:    can be called only from within DOS
  3132. SeeAlso: AX=120Eh,AX=1215h
  3133. --------D-2F120A-----------------------------
  3134. INT 2F U - DOS 3+ internal - PERFORM CRITICAL ERROR INTERRUPT
  3135.     AX = 120Ah
  3136.     DS = SS = DOS DS (must be using a DOS internal stack)
  3137.     STACK: WORD extended error code
  3138. Return: AL = user response (0=ignore, 1=retry, 2=abort, 3=fail)
  3139.     CF clear if retry, set otherwise
  3140.     STACK unchanged
  3141. Notes:    can only be called during a DOS function call, as it uses various
  3142.       fields in the SDA to set up the registers for the INT 24
  3143.     reportedly sets current DPB's first root directory sector to 1
  3144. SeeAlso: INT 24
  3145. --------D-2F120B-----------------------------
  3146. INT 2F U - DOS 3+ internal - SIGNAL SHARING VIOLATION TO USER
  3147.     AX = 120Bh
  3148.     ES:DI -> system file table entry for previous open of file
  3149.     STACK: WORD extended error code (should be 20h--sharing violation)
  3150. Return: CF clear if operation should be retried
  3151.     CF set if operation should not be retried
  3152.         AX = error code (20h) (see INT 21/AH=59h)
  3153.     STACK unchanged
  3154. Notes:    can only be called during a DOS function call
  3155.     should only be called if an attempt was made to open an already-open
  3156.       file contrary to the sharing rules
  3157.     invokes INT 24 if SFT file opened via FCB or in compatibility mode with
  3158.       inheritance allowed
  3159. --------D-2F120C-----------------------------
  3160. INT 2F U - DOS 3+ internal - OPEN DEVICE AND SET SFT OWNER/MODE
  3161.     AX = 120Ch
  3162.     SDA current SFT pointer -> SFT for file
  3163.     DS = DOS DS
  3164.     SS = DOS DS (must be using a DOS internal stack)
  3165. Return: ES, DI, AX destroyed
  3166. Notes:    invokes "device open" call on device driver for SFT
  3167.     changes owner of last-accessed SFT to calling process if it was opened
  3168.       via FCB
  3169.     called by network redirectors such as MSCDEX
  3170. --------D-2F120D-----------------------------
  3171. INT 2F U - DOS 3+ internal - GET DATE AND TIME
  3172.     AX = 120Dh
  3173.     SS = DOS DS (must be using a DOS internal stack)
  3174. Return: AX = current date in packed format (see INT 21/AX=5700h)
  3175.     DX = current time in packed format (see INT 21/AX=5700h)
  3176. SeeAlso: INT 21/AH=2Ah,INT 21/AH=2Ch
  3177. --------D-2F120E-----------------------------
  3178. INT 2F U - DOS 3+ internal - MARK ALL DISK BUFFERS UNREFERENCED
  3179.     AX = 120Eh
  3180.     SS = DOS DS (must be using a DOS internal stack)
  3181. Return: DS:DI -> first disk buffer
  3182. Notes:    clears "referenced" flag on all disk buffers
  3183.     in DOS 5+, this has become essentially a NOP, invoking the same code
  3184.       used by AX=1224h (SHARING DELAY)
  3185. SeeAlso: AX=1209h,AX=1210h,INT 21/AH=0Dh
  3186. --------D-2F120F-----------------------------
  3187. INT 2F U - DOS 3+ internal - MAKE BUFFER MOST RECENTLY USED
  3188.     AX = 120Fh
  3189.     DS:DI -> disk buffer
  3190.     SS = DOS DS (must be using a DOS internal stack)
  3191. Return: DS:DI -> next buffer in buffer list
  3192. Desc:    move the indicated buffer to the end of the disk buffer chain (least-
  3193.       recently used is first); under DOS 3.3, the buffer is then moved to
  3194.       the start of the disk buffer chain if it was marked unused
  3195. Note:    this function is the same as AX=1207h except that it returns a
  3196.       pointer to the buffer following the specified buffer in the buffer
  3197.       chain
  3198. SeeAlso: AX=1207h
  3199. --------D-2F1210-----------------------------
  3200. INT 2F U - DOS 3+ internal - FIND UNREFERENCED DISK BUFFER
  3201.     AX = 1210h
  3202.     DS:DI -> first disk buffer to check
  3203. Return: ZF clear if found
  3204.         DS:DI -> first unreferenced disk buffer
  3205.     ZF set if not found
  3206. Note:    in DOS 5+, this has become essentially a NOP, invoking the same code
  3207.       used by AX=1224h (SHARING DELAY)
  3208. SeeAlso: AX=120Eh
  3209. --------D-2F1211-----------------------------
  3210. INT 2F U - DOS 3+ internal - NORMALIZE ASCIZ FILENAME
  3211.     AX = 1211h
  3212.     DS:SI -> ASCIZ filename to normalize
  3213.     ES:DI -> buffer for normalized filename
  3214. Return: destination buffer filled with uppercase filename, with slashes turned
  3215.     to backslashes
  3216. SeeAlso: AX=121Eh,AX=1221h
  3217. --------D-2F1212-----------------------------
  3218. INT 2F U - DOS 3+ internal - GET LENGTH OF ASCIZ STRING
  3219.     AX = 1212h
  3220.     ES:DI -> ASCIZ string
  3221. Return: CX = length of string
  3222. SeeAlso: AX=1225h
  3223. --------D-2F1213-----------------------------
  3224. INT 2F U - DOS 3+ internal - UPPERCASE CHARACTER
  3225.     AX = 1213h
  3226.     STACK: WORD character to convert to uppercase
  3227. Return: AL = uppercase character
  3228.     STACK unchanged
  3229. --------D-2F1214-----------------------------
  3230. INT 2F U - DOS 3+ internal - COMPARE FAR POINTERS
  3231.     AX = 1214h
  3232.     DS:SI = first pointer
  3233.     ES:DI = second pointer
  3234. Return: ZF set if pointers are equal, ZF clear if not equal
  3235. --------D-2F1215-----------------------------
  3236. INT 2F U - DOS 3+ internal - FLUSH BUFFER
  3237.     AX = 1215h
  3238.     DS:DI -> disk buffer
  3239.     SS = DOS DS (must be using a DOS internal stack)
  3240.     STACK: WORD drives for which to skip buffer
  3241.         ignore buffer if drive same as high byte, or bytes differ and
  3242.         the buffer is for a drive OTHER than that given in low byte
  3243. Return: STACK unchanged
  3244. Note:    can be called only from within DOS
  3245. SeeAlso: AX=1209h
  3246. --------D-2F1216-----------------------------
  3247. INT 2F U - DOS 3+ internal - GET ADDRESS OF SYSTEM FILE TABLE ENTRY
  3248.     AX = 1216h
  3249.     BX = system file table entry number
  3250. Return: CF clear if successful
  3251.         ES:DI -> system file table entry
  3252.     CF set if BX greater than FILES=
  3253. Note:    supported by DR-DOS 5+
  3254. SeeAlso: AX=1220h
  3255. --------D-2F1217-----------------------------
  3256. INT 2F U - DOS 3+ internal - GET CURRENT DIRECTORY STRUCTURE FOR DRIVE
  3257.     AX = 1217h
  3258.     SS = DOS DS (must be using a DOS internal stack)
  3259.     STACK: WORD drive (0 = A:, 1 = B:, etc)
  3260. Return: CF set on error
  3261.         (drive > LASTDRIVE)
  3262.     CF clear if successful
  3263.         DS:SI -> current directory structure for specified drive
  3264.     STACK unchanged
  3265. SeeAlso: AX=1219h
  3266. --------D-2F1218-----------------------------
  3267. INT 2F U - DOS 3+ internal - GET CALLER'S REGISTERS
  3268.     AX = 1218h
  3269. Return: DS:SI -> saved caller's AX,BX,CX,DX,SI,DI,BP,DS,ES (on stack)
  3270. Note:    only valid while within DOS
  3271. --------D-2F1219-----------------------------
  3272. INT 2F U - DOS 3+ internal - SET DRIVE???
  3273.     AX = 1219h
  3274.     SS = DOS DS (must be using a DOS internal stack)
  3275.     STACK: WORD drive (0 = default, 1 = A:, etc)
  3276. Return: ???
  3277.     STACK unchanged
  3278. Notes:    calls AX=1217h
  3279.     builds a current directory structure if inside server call
  3280.       (INT 21/AX=5D00h)
  3281. SeeAlso: AX=1217h,AX=121Fh
  3282. --------D-2F121A-----------------------------
  3283. INT 2F U - DOS 3+ internal - GET FILE'S DRIVE
  3284.     AX = 121Ah
  3285.     DS:SI -> filename
  3286. Return: AL = drive (0 = default, 1 = A:, etc, FFh = invalid)
  3287.     DS:SI -> filename without leading X: (if present)
  3288. SeeAlso: INT 21/AH=19h,INT 21/AH=60h
  3289. --------D-2F121B-----------------------------
  3290. INT 2F U - DOS 3+ internal - SET YEAR/LENGTH OF FEBRUARY
  3291.     AX = 121Bh
  3292.     CL = year - 1980
  3293. Return: AL = number of days in February
  3294. Note:    requires DS to be set to the DOS data segment
  3295. SeeAlso: INT 21/AH=2Bh
  3296. --------D-2F121C-----------------------------
  3297. INT 2F U - DOS 3+ internal - CHECKSUM MEMORY
  3298.     AX = 121Ch
  3299.     DS:SI -> start of memory to checksum
  3300.     CX = number of bytes
  3301.     DX = initial checksum
  3302.     SS = DOS DS (must be using a DOS internal stack)
  3303. Return: AX, CX destroyed
  3304.     DX = checksum
  3305.     DS:SI -> first byte after checksummed range
  3306. Notes:    used by DOS to determine day count since 1/1/80 given a date
  3307.     supported by DR-DOS 5.0+
  3308. SeeAlso: AX=121Dh
  3309. --------D-2F121D-----------------------------
  3310. INT 2F U - DOS 3+ internal - SUM MEMORY
  3311.     AX = 121Dh
  3312.     DS:SI -> memory to add up
  3313.     CX = 0000h
  3314.     DX = limit
  3315. Return: AL = byte which exceeded limit
  3316.     CX = number of bytes before limit exceeded
  3317.     DX = remainder after adding first CX bytes
  3318.     DS:SI -> byte beyond the one which exceeded the limit
  3319. Notes:    used by DOS to determine year or month given day count since 1/1/80
  3320.     supported by DR-DOS 5.0+
  3321. SeeAlso: AX=121Ch
  3322. --------D-2F121E-----------------------------
  3323. INT 2F U - DOS 3+ internal - COMPARE FILENAMES
  3324.     AX = 121Eh
  3325.     DS:SI -> first ASCIZ filename
  3326.     ES:DI -> second ASCIZ filename
  3327. Return: ZF set if filenames equivalent, ZF clear if not
  3328. Note:    supported by DR-DOS 5.0+
  3329. SeeAlso: AX=1211h,AX=1221h
  3330. --------D-2F121F-----------------------------
  3331. INT 2F U - DOS 3+ internal - BUILD CURRENT DIRECTORY STRUCTURE
  3332.     AX = 121Fh
  3333.     SS = DOS DS (must be using a DOS internal stack)
  3334.     STACK: WORD drive letter
  3335. Return: ES:DI -> current directory structure (will be overwritten by next call)
  3336.     STACK unchanged
  3337. --------D-2F1220-----------------------------
  3338. INT 2F U - DOS 3+ internal - GET JOB FILE TABLE ENTRY
  3339.     AX = 1220h
  3340.     BX = file handle
  3341. Return: CF set on error
  3342.         AL = 6 (invalid file handle)
  3343.     CF clear if successful
  3344.         ES:DI -> JFT entry for file handle in current process
  3345. Notes:    the byte pointed at by ES:DI contains the number of the SFT for the
  3346.       file handle, or FFh if the handle is not open
  3347.     supported by DR-DOS 5.0+
  3348. SeeAlso: AX=1216h,AX=1229h
  3349. --------D-2F1221-----------------------------
  3350. INT 2F U - DOS 3+ internal - CANONICALIZE FILE NAME
  3351.     AX = 1221h
  3352.     DS:SI -> file name to be fully qualified
  3353.     ES:DI -> 128-byte buffer for resulting canonical file name
  3354.     SS = DOS DS (must be using a DOS internal stack)
  3355. Return: (see INT 21/AH=60h)
  3356. Note:    identical to INT 21/AH=60h
  3357. SeeAlso: AX=1123h,INT 21/AH=60h
  3358. --------D-2F1222-----------------------------
  3359. INT 2F U - DOS 3+ internal - SET EXTENDED ERROR INFO
  3360.     AX = 1222h
  3361.     SS = DOS data segment
  3362.     SS:SI -> 4-byte records
  3363.         BYTE    error code, FFh = last record
  3364.         BYTE    error class, FFh = don't change
  3365.         BYTE    suggested action, FFh = don't change
  3366.         BYTE    error locus, FFh = don't change
  3367.     SDA error code set
  3368. Return: SI destroyed
  3369.     SDA error class, error locus, and suggested action fields set
  3370. Note:    can be called only from within DOS
  3371. SeeAlso: AX=122Dh,INT 21/AH=59h,INT 21/AX=5D0Ah
  3372. --------D-2F1223-----------------------------
  3373. INT 2F U - DOS 3+ internal - CHECK IF CHARACTER DEVICE
  3374.     AX = 1223h
  3375.     DS = DOS DS
  3376.     SS = DOS DS (must be using a DOS internal stack)
  3377.     SDA+218h (DOS 3.10-3.30) = eight-character blank-padded name
  3378.     SDA+22Bh (DOS 4.0-6.0) = eight-character blank-padded name
  3379. Return: CF set if no character device by that name found
  3380.     CF clear if found
  3381.         BH = low byte of device attribute word
  3382. Note:    can only be called from within DOS
  3383. SeeAlso: INT 21/AX=5D06h,INT 21/AX=5D0Bh
  3384. --------D-2F1224-----------------------------
  3385. INT 2F U - DOS 3+ internal - SHARING RETRY DELAY
  3386.     AX = 1224h
  3387.     SS = DOS DS (must be using a DOS internal stack)
  3388. Return: after delay set by INT 21/AX=440Bh, unless in server call
  3389.       (INT 21/AX=5D00h)
  3390. Note:    delay is dependent on the processor speed, and is skipped entirely if
  3391.       inside a server call
  3392. SeeAlso: INT 21/AX=440Bh,INT 21/AH=52h,INT 62/AX=0097h
  3393. --------D-2F1225-----------------------------
  3394. INT 2F U - DOS 3+ internal - GET LENGTH OF ASCIZ STRING
  3395.     AX = 1225h
  3396.     DS:SI -> ASCIZ string
  3397. Return: CX = length of string
  3398. Note:    supported by DR-DOS 5.0+
  3399. SeeAlso: AX=1212h
  3400. --------D-2F1226-----------------------------
  3401. INT 2F U - DOS 3.3+ internal - OPEN FILE
  3402.     AX = 1226h
  3403.     CL = access mode
  3404.     DS:DX -> ASCIZ filename
  3405.     SS = DOS DS (must be using a DOS internal stack)
  3406. Return: CF set on error
  3407.         AL = error code (see INT 21/AH=59h)
  3408.     CF clear if successful
  3409.         AX = file handle
  3410. Notes:    can only be called from within DOS
  3411.     equivalent to INT 21/AH=3Dh
  3412.     used by NLSFUNC to access COUNTRY.SYS when invoked by the DOS kernel
  3413. SeeAlso: AX=1227h,INT 21/AH=3Dh
  3414. --------D-2F1227-----------------------------
  3415. INT 2F U - DOS 3.3+ internal - CLOSE FILE
  3416.     AX = 1227h
  3417.     BX = file handle
  3418.     SS = DOS DS (must be using a DOS internal stack)
  3419. Return: CF set on error
  3420.         AL = 06h invalid file handle
  3421.     CF clear if successful
  3422. Notes:    can only be called from within DOS
  3423.     equivalent to INT 21/AH=3Eh
  3424.     used by NLSFUNC to access COUNTRY.SYS when invoked by the DOS kernel
  3425. SeeAlso: AX=1106h,AX=1201h,AX=1226h,INT 21/AH=3Eh
  3426. --------D-2F1228BP4200-----------------------
  3427. INT 2F U - DOS 3.3+ internal - MOVE FILE POINTER
  3428.     AX = 1228h
  3429.     BP = 4200h, 4201h, 4202h (see INT 21/AH=42h)
  3430.     BX = file handle
  3431.     CX:DX = offset in bytes
  3432.     SS = DOS DS (must be using a DOS internal stack)
  3433. Return: as for INT 21/AH=42h
  3434. Notes:    equivalent to INT 21/AH=42h, but may only be called from inside a DOS
  3435.       function call
  3436.     sets user stack frame pointer to dummy buffer, moves BP to AX, performs
  3437.       LSEEK, and restores frame pointer
  3438.     used by NLSFUNC to access COUNTRY.SYS when invoked by the DOS kernel
  3439. SeeAlso: INT 21/AH=42h
  3440. --------D-2F1229-----------------------------
  3441. INT 2F U - DOS 3.3+ internal - READ FROM FILE
  3442.     AX = 1229h
  3443.     BX = file handle
  3444.     CX = number of bytes to read
  3445.     DS:DX -> buffer
  3446.     SS = DOS DS (must be using a DOS internal stack)
  3447. Return: as for INT 21/AH=3Fh
  3448. Notes:    equivalent to INT 21/AH=3Fh, but may only be called when already inside
  3449.       a DOS function call
  3450.     used by NLSFUNC to access COUNTRY.SYS when invoked by the DOS kernel
  3451. SeeAlso: AX=1226h,INT 21/AH=3Fh
  3452. --------D-2F122A-----------------------------
  3453. INT 2F U - DOS 3.3+ internal - SET FASTOPEN ENTRY POINT
  3454.     AX = 122Ah
  3455.     BX = entry point to set (0001h or 0002h)
  3456.     DS:SI -> FASTOPEN entry point
  3457.         (entry point not set if SI = FFFFh for DOS 4+)
  3458. Return: CF set if specified entry point already set
  3459. Notes:    entry point in BX is ignored under DOS 3.30
  3460.     both entry points set to same handler by DOS 4.01
  3461.     DOS 5.0 and 6.0 only set entry point 1
  3462.  
  3463. DOS 3.30+ FASTOPEN is called with:
  3464.     AL = 01h  Lookup
  3465.         CX = ??? seems to be offset
  3466.         DI = ??? seems to be offset
  3467.         SI = offset in DOS DS of filename
  3468.     AL = 02h  insert file into FASTOPEN cache
  3469.     AL = 03h  delete file from FASTOPEN cache
  3470.         SI = offset in DOS DS of filename
  3471.     AL = 04h  purge FASTOPEN cache
  3472.         AH = subfunction (00h,01h,02h)
  3473.         ES:DI -> ???
  3474.         CX = ??? (subfunctions 01h and 02h only)
  3475. Returns: CF set on error or not installed
  3476. Note: function 03h calls function 01h first
  3477.  
  3478. PC-DOS 4.01 FASTOPEN is additionally called with:
  3479.     AL = 04h ???
  3480.         AH = 03h
  3481.         ???
  3482.     AL = 05h ???
  3483.     AL = 0Bh ???
  3484.     AL = 0Ch ???
  3485.     AL = 0Dh ???
  3486.     AL = 0Eh ???
  3487.     AL = 0Fh ???
  3488.     AL = 10h ???
  3489.  
  3490. MS-DOS 5.0-6.0 FASTOPEN is additionally called with:
  3491.     AL = 04h  purge FASTOPEN cache
  3492.         AH = 03h
  3493.         ???
  3494.     AL = 05h ???
  3495.         DL = drive (00h = A:)
  3496.         ???
  3497.     AL = 06h ???
  3498.         ???
  3499. --------D-2F122B-----------------------------
  3500. INT 2F U - DOS 3.3+ internal - IOCTL
  3501.     AX = 122Bh
  3502.     BP = 44xxh
  3503.     SS = DOS DS (must be using a DOS internal stack)
  3504.     additional registers as appropriate for INT 21/AX=44xxh
  3505. Return: as for INT 21/AH=44h
  3506. Notes:    equivalent to INT 21/AH=44h, but may only be called when already inside
  3507.       a DOS function call
  3508.     sets user stack frame pointer to dummy buffer, moves BP to AX, performs
  3509.       IOCTL, and restores frame pointer
  3510.     used by NLSFUNC in accessing COUNTRY.SYS when invoked by the DOS kernel
  3511. SeeAlso: INT 21/AH=44h
  3512. --------D-2F122C-----------------------------
  3513. INT 2F U - DOS 3.3+ internal - GET DEVICE CHAIN
  3514.     AX = 122Ch
  3515. Return: BX:AX -> header of second device driver (NUL is first) in driver chain
  3516. Note:    although this function exists in DR-DOS 5.0, it returns 0000h:0000h
  3517. SeeAlso: INT 21/AH=52h
  3518. --------D-2F122D-----------------------------
  3519. INT 2F U - DOS 3.3+ internal - GET EXTENDED ERROR CODE
  3520.     AX = 122Dh
  3521. Return: AX = current extended error code
  3522. SeeAlso: AX=1222h,INT 21/AH=59h
  3523. --------D-2F122E-----------------------------
  3524. INT 2F U - DOS 4+ internal - GET OR SET ERROR TABLE ADDRESSES
  3525.     AX = 122Eh
  3526.     DL = subfunction
  3527.         00h get standard DOS error table
  3528.         Return: ES:DI -> error table
  3529.                  (DOS 4: errors 00h-12h,50h-5Bh)
  3530.                  (DOS 5: errors 00h-26h,4Fh,51h-59h)
  3531.         01h set standard DOS error table
  3532.         ES:DI -> error table
  3533.         02h get parameter error table (errors 00h-0Ah)
  3534.         Return: ES:DI -> error table
  3535.         03h set parameter error table
  3536.         ES:DI -> error table
  3537.         04h get critical/SHARE error table (errors 13h-2Bh)
  3538.         Return: ES:DI -> error table
  3539.         05h set critical/SHARE error table
  3540.         ES:DI -> error table
  3541.         06h get ??? error table
  3542.         Return: ES:DI -> error table or 0000h:0000h
  3543.         07h set ??? error table
  3544.         ES:DI -> error table
  3545.         08h get error message retriever (see below)
  3546.         Return: ES:DI -> FAR procedure to fetch error message
  3547.         09h set ??? error table
  3548.         ES:DI -> error table
  3549. Notes:    if the returned segment on a "get" is 0001h, then the offset specifies
  3550.       the offset of the error message table within COMMAND.COM, and the
  3551.       procedure returned by DL=08h should be called
  3552.     DOS 5+ COMMAND.COM does not allow setting any of the addresses (calls
  3553.       with DL odd are ignored); they are always returned with segment 0001h
  3554.     for DOS 5.0, the standard and critical/SHARE error tables are combined
  3555.       into a single error table
  3556. SeeAlso: AX=0500h,INT 21/AH=59h
  3557.  
  3558. Format of DOS 4.x error table:
  3559. Offset    Size    Description
  3560.  00h    BYTE    FFh
  3561.  01h  2 BYTEs    04h,00h (DOS version???)
  3562.  03h    BYTE    number of error headers following
  3563.  04h 2N WORDs    table of all error headers for table
  3564.         Offset    Size    Description
  3565.          00h    WORD    error message number
  3566.          02h    WORD    offset of error message from start of header
  3567.                 error messages are count byte followed by msg
  3568. Note:    DOS 5 error tables consist of one word per error number; each word
  3569.       contains either the offset of a counted string or 0000h
  3570.  
  3571. Call error retrieval function with:
  3572.     AX = error number
  3573.     DI = offset of error table
  3574. Return: ES:DI -> error message (counted string)
  3575. Notes:    this function needs to access COMMAND.COM if the messages were not
  3576.       loaded into memory permanently with /MSG; the caller should assume
  3577.       that the returned message will be overwritten by the next call of
  3578.       the function
  3579.     supported by DR-DOS 5.0
  3580.  
  3581. Values for parameter errors:
  3582.  01h    Too many parameters
  3583.  02h    Required Parameter missing
  3584.  03h    Invalid switch
  3585.  04h    Invalid keyword
  3586.  06h    Parameter value not in allowed range
  3587.  07h    Parameter value not allowed
  3588.  08h    Parameter value not allowed
  3589.  09h    Parameter format not correct
  3590.  0Ah    Invalid parameter
  3591.  0Bh    Invalid parameter combination
  3592. --------D-2F122F-----------------------------
  3593. INT 2F U - DOS 4.x internal - SET DOS VERSION NUMBER TO RETURN
  3594.     AX = 122Fh
  3595.     DX = DOS version number (0000h = return true DOS version)
  3596. Note:    not available under DR-DOS 5.0 or 6.0
  3597. SeeAlso: INT 21/AH=30h,INT 21/AX=3306h
  3598. --------O-2F12FFBX0006-----------------------
  3599. INT 2F U - DR-DOS 6 - VIDEO MEMORY SPACE CONTROL
  3600.     AX = 12FFh
  3601.     BX = 0006h
  3602.     DX = 0000h
  3603.     CX = function
  3604.         0000h get status of video memory space (MEMMAX /V)
  3605.         0001h map memory into video memory space (MEMMAX +V)
  3606.         0002h unmap memory from video memory space (MEMMAX -V)
  3607. Return: CF clear if successful
  3608.         AX = 0000h (successful)
  3609.         BX = segment of reserved video RAM
  3610.         CX = segment of used video RAM
  3611.         DX = segment of first upper MCB
  3612. Note:    this functionality is provided by EMM386, and partially supported by
  3613.       HIDOS.SYS
  3614. SeeAlso: AX=D201h/BX=4849h
  3615. --------D-2F13-------------------------------
  3616. INT 2F U - DOS 3.2+ - SET DISK INTERRUPT HANDLER
  3617.     AH = 13h
  3618.     DS:DX -> interrupt handler disk driver calls on read/write
  3619.     ES:BX = address to restore INT 13 to on system halt (exit from root
  3620.          shell) or warm boot (INT 19)
  3621. Return: DS:DX set by previous invocation of this function
  3622.     ES:BX set by previous invocation of this function
  3623. Notes:    IO.SYS hooks INT 13 and inserts one or more filters ahead of the
  3624.       original INT 13 handler.  The first is for disk change detection
  3625.       on floppy drives, the second is for tracking formatting calls and
  3626.       correcting DMA boundary errors, the third is for working around
  3627.       problems in a particular version of IBM's ROM BIOS
  3628.     before the first call, ES:BX points at the original BIOS INT 13; DS:DX
  3629.       also points there unless IO.SYS has installed a special filter for
  3630.       hard disk reads (on systems with model byte FCh and BIOS date
  3631.       "01/10/84" only), in which case it points at the special filter
  3632.     most DOS 3.2+ disk access is via the vector in DS:DX, although a few
  3633.       functions are still invoked via an INT 13 instruction
  3634.     this is a dangerous security loophole for any virus-monitoring software
  3635.       which does not trap this call ("INT13", "Nomenklatura", and many
  3636.       Bulgarian viruses are known to use it to get the original ROM entry
  3637.       point)
  3638. SeeAlso: INT 13/AH=01h,INT 19,INT 9D"VIRUS"
  3639. --------N-2F13-------------------------------
  3640. INT 2F U - MS-NET - ???
  3641.     AH = 13h
  3642.     ???
  3643. Return: ???
  3644. Note:    supposedly used to move (or control the movement of) NCBs
  3645. --------U-2F1400-----------------------------
  3646. INT 2F C - NLSFUNC.COM - INSTALLATION CHECK
  3647.     AX = 1400h
  3648. Return: AL = 00h not installed, OK to install
  3649.          01h not installed, not OK
  3650.          FFh installed
  3651. Notes:    this function is called by the DOS v3.3+ kernel
  3652.     supported by OS/2 v1.3+ compatibility box, which always returns AL=FFh
  3653.     supported by DR-DOS 5.0
  3654.     documented for MS-DOS 5+, but undocumented in prior versions
  3655. SeeAlso: AX=1401h"NLSFUNC",AX=1402h"NLSFUNC"
  3656. --------D-2F1400-----------------------------
  3657. INT 2F - European MS-DOS 4.0 POPUP - "CheckPu" - INSTALLATION CHECK
  3658.     AX = 1400h
  3659. Return: AX = FFFFh if installed
  3660.         BX = maximum memory required to save screen and keyboard info
  3661.     CF clear if successful
  3662.     CF set on error
  3663.         AX = error code
  3664.         0002h invalid function
  3665.         0004h unknown error
  3666. Note:    the POPUP interface is used by background programs (see INT 21/AH=80h)
  3667.       to communicate with the user
  3668. SeeAlso: AX=1401h"POPUP",AX=1402h"POPUP",AX=1403h"POPUP"
  3669. --------U-2F1401-----------------------------
  3670. INT 2F CU - NLSFUNC.COM - CHANGE CODE PAGE
  3671.     AX = 1401h
  3672.     DS:SI -> internal code page structure (see below)
  3673.     BX = new code page (see INT 21/AX=6602h)
  3674.     DX = country code???
  3675. Return: AL = status
  3676.          00h successful
  3677.          else DOS error code
  3678. Note:    this function is called by the DOS v3.3+ kernel
  3679. SeeAlso: AX=1400h"NLSFUNC",AX=1402h"NLSFUNC",INT 21/AH=66h
  3680.  
  3681. Format of DOS 3.30 internal code page structure:
  3682. Offset    Size    Description
  3683.  00h  8 BYTEs    ???
  3684.  08h 64 BYTEs    name of country information file
  3685.  48h    WORD    system code page
  3686.  4Ah    WORD    number of supported subfunctions
  3687.  4Ch  5 BYTEs    data to return for INT 21/AX=6502h
  3688.  51h  5 BYTEs    data to return for INT 21/AX=6504h
  3689.  56h  5 BYTEs    data to return for INT 21/AX=6505h
  3690.  5Bh  5 BYTEs    data to return for INT 21/AX=6506h
  3691.  60h 41 BYTEs    data to return for INT 21/AX=6501h
  3692. --------D-2F1401-----------------------------
  3693. INT 2F - European MS-DOS 4.0 POPUP - "PostPu" - OPEN/CLOSE POPUP SCREEN
  3694.     AX = 1401h
  3695.     DL = function (00h open, 01h close)
  3696.     DH = wait flag
  3697.         00h block until screen opens
  3698.         01h return error if screen is not available
  3699.         02h urgent--always open screen immediately
  3700. Return: CF clear if successful
  3701.         BX = amount of memory needed to save screen and keyboard info,
  3702.         0000h if default save location can be used (only if DH was 02h)
  3703.     CF set on error
  3704. Note:    the application using the screen is frozen until the popup screen is
  3705.       closed
  3706. SeeAlso: AX=1400h"POPUP",AX=1402h"POPUP",AX=1403h"POPUP"
  3707. --------U-2F1402-----------------------------
  3708. INT 2F CU - NLSFUNC.COM - GET EXTENDED COUNTRY INFO
  3709.     AX = 1402h
  3710.     BP = subfunction (same as AL for INT 21/AH=65h)
  3711.     BX = code page (see INT 21/AX=6602h)
  3712.     DX = country code (see INT 21/AH=38h)
  3713.     DS:SI -> internal code page structure (see AX=1401h)
  3714.     ES:DI -> user buffer
  3715.     CX = size of user buffer
  3716. Return: AL = status
  3717.         00h successful
  3718.         else DOS error code
  3719. Notes:    this function is called by the DOS v3.3+ kernel on INT 21/AH=65h
  3720.     code page structure apparently only needed for COUNTRY.SYS pathname
  3721. SeeAlso: AX=1401h"NLSFUNC",AX=1403h"NLSFUNC",AX=1404h,INT 21/AH=65h
  3722. --------D-2F1402-----------------------------
  3723. INT 2F - European MS-DOS 4.0 POPUP - "SavePu" - SAVE POPUP SCREEN
  3724.     AX = 1402h
  3725.     ES:DI -> save buffer (0000h:0000h for default buffer in POPUP)
  3726. Return: CF clear if successful
  3727.     CF set on error
  3728.         AX = error code
  3729.         0001h process does not own screen
  3730.         0004h unknown error
  3731.         0005h invalid pointer
  3732. SeeAlso: AX=1400h"POPUP",AX=1401h"POPUP",AX=1403h"POPUP"
  3733. --------U-2F1403-----------------------------
  3734. INT 2F CU - NLSFUNC.COM - SET CODE PAGE
  3735.     AX = 1403h
  3736.     DS:SI -> internal code page structure (see AX=1401h)
  3737.     BX = code page (see INT 21/AX=6602h)
  3738.     DX = country code (see INT 21/AH=38h)
  3739. Return: AL = status
  3740.          ???
  3741. Note:    this function is called by the DOS v3.3+ kernel on INT 21/AH=38h
  3742. SeeAlso: AX=1402h"NLSFUNC",AX=1404h,INT 21/AH=38h"SET"
  3743. --------D-2F1403-----------------------------
  3744. INT 2F - European MS-DOS 4.0 POPUP - "RestorePu" - RESTORE SCREEN
  3745.     AX = 1403h
  3746.     ES:DI -> buffer containing saved screen
  3747.         (0000h:0000h for default buffer in POPUP)
  3748. Return: CF clear if successful
  3749.     CF set on error
  3750.         AX = error code (see AX=1402h"POPUP")
  3751. SeeAlso: AX=1400h"POPUP",AX=1401h"POPUP",AX=1402h"POPUP"
  3752. --------U-2F1404-----------------------------
  3753. INT 2F CU - NLSFUNC.COM - GET COUNTRY INFO
  3754.     AX = 1404h
  3755.     BX = code page (see INT 21/AX=6602h)
  3756.     DX = country code (see INT 21/AH=38h)
  3757.     DS:SI -> internal code page structure (see AX=1401h)
  3758.     ES:DI -> user buffer
  3759. Return: AL = status
  3760.          ???
  3761. Notes:    this function is called by the DOS v3.3+ kernel on INT 21/AH=38h
  3762.     code page structure apparently only needed for COUNTRY.SYS pathname
  3763. SeeAlso: AX=1402h,AX=1403h,INT 21/AH=38h"GET"
  3764. --------U-2F14FE-----------------------------
  3765. INT 2F U - DR-DOS 5.0 NLSFUNC - GET EXTENDED COUNTRY INFORMATION
  3766.     AX = 14FEh
  3767.     BX = code page (FFFFh=global code page) (see INT 21/AX=6602h)
  3768.     DX = country ID (FFFFh=current country) (see INT 21/AH=38h)
  3769.     ES:DI -> country information buffer
  3770.     CL = info ID
  3771.         01h get general internationalization info
  3772.         02h get pointer to uppercase table
  3773.         04h get pointer to filename uppercase table
  3774.         05h get pointer to filename terminator table
  3775.         06h get pointer to collating sequence table
  3776.         07h get pointer to Double-Byte Character Set table
  3777.     CF set (used to return error if not installed)
  3778. Return: CF clear if successful
  3779.         DS:SI -> requested information
  3780.     CF set on error
  3781. Notes:    DR-DOS 5.0 NLSFUNC returns CF set and AX=0001h if AL was not 00h, FEh,
  3782.       or FFh on entry.
  3783.     the DR-DOS kernel calls this function on INT 21/AX=6501h
  3784.     the value in CL is not range-checked by the DR-DOS 5.0 NLSFUNC
  3785. SeeAlso: AX=14FFh,INT 21/AH=65h
  3786.  
  3787. Format of DR-DOS COUNTRY.SYS file:
  3788. Offset    Size    Description
  3789.  00h 126 BYTEs    copyright notice (terminated with Ctrl-Z, padded with NULs)
  3790.  7Eh    WORD    signature EDC1h
  3791.  80h    var    country pointer records
  3792.     Offset    Size    Description
  3793.      00h    WORD    country code (0000h if end of array)
  3794.      02h    WORD    code page
  3795.      04h    WORD    ??? (0000h)
  3796.      06h  7 WORDs    offsets in file for data tables for subfunctions
  3797.             01h-07h
  3798.  var    var    country information
  3799. --------U-2F14FF-----------------------------
  3800. INT 2F U - DR-DOS 5.0 NLSFUNC - PREPARE CODE PAGE
  3801.     AX = 14FFh
  3802.     BX = code page
  3803. Return: AX = ???
  3804.     ZF set if AX=0000h
  3805. Notes:    DR-DOS 5.0 NLSFUNC returns CF set and AX=0001h if AL was not 00h, FEh,
  3806.       or FFh on entry.
  3807.     passes codepage preparation request to each character device supporting
  3808.       the generic IOCTL call
  3809. SeeAlso: AX=14FEh,INT 21/AX=440Ch,INT 21/AX=6602h
  3810. --------U-2F1500-----------------------------
  3811. INT 2F - DOS 4.00 GRAPHICS.COM - INSTALLATION CHECK
  3812.     AX = 1500h
  3813. Return: AX = FFFFh
  3814.     ES:DI -> ??? (graphics data?)
  3815. Note:    this installation check conflicts with the CD-ROM Extensions
  3816.       installation check; moved to AX=AC00h in later versions
  3817. SeeAlso: AX=AC00h
  3818. --------d-2F1500BX0000-----------------------
  3819. INT 2F - CD-ROM - INSTALLATION CHECK
  3820.     AX = 1500h
  3821.     BX = 0000h
  3822. Return: BX = number of CD-ROM drive letters used
  3823.     CX = starting drive letter (0=A:)
  3824. Notes:    this installation check DOES NOT follow the format used by other
  3825.       software
  3826.     this installation check conflicts with the DOS 4.00 GRAPHICS.COM
  3827.       installation check
  3828. SeeAlso: INT 2F/AX=D000h"Lotus"
  3829. --------d-2F1501-----------------------------
  3830. INT 2F - CD-ROM - GET DRIVE DEVICE LIST
  3831.     AX = 1501h
  3832.     ES:BX -> buffer to hold drive letter list (5 bytes per drive letter)
  3833. Return: buffer filled, for each drive letter
  3834.       BYTE    subunit number in driver
  3835.       DWORD address of device driver header
  3836. --------d-2F1502-----------------------------
  3837. INT 2F - CD-ROM - GET COPYRIGHT FILE NAME
  3838.     AX = 1502h
  3839.     ES:BX -> 38-byte buffer for name of copyright file
  3840.     CX = drive number (0=A:)
  3841. Return: CF set if drive is not a CD-ROM drive
  3842.         AX = 000Fh (invalid drive)
  3843.     CF clear if successful
  3844. SeeAlso: AX=1503h
  3845. --------d-2F1503-----------------------------
  3846. INT 2F - CD-ROM - GET ABSTRACT FILE NAME
  3847.     AX = 1503h
  3848.     ES:BX -> 38-byte buffer for name of abstract file
  3849.     CX = drive number (0=A:)
  3850. Return: CF set if drive is not a CD-ROM drive
  3851.         AX = 000Fh (invalid drive)
  3852.     CF clear if successful
  3853. SeeAlso: AX=1502h,AX=1504h
  3854. --------d-2F1504-----------------------------
  3855. INT 2F - CD-ROM - GET BIBLIOGRAPHIC DOC FILE NAME
  3856.     AX = 1504h
  3857.     ES:BX -> 38-byte buffer for name of bibliographic documentation file
  3858.     CX = drive number (0=A:)
  3859. Return: CF set if drive is not a CD-ROM drive
  3860.         AX = 000Fh (invalid drive)
  3861.     CF clear if successful
  3862. SeeAlso: AX=1502h,AX=1503h
  3863. --------d-2F1505-----------------------------
  3864. INT 2F - CD-ROM - READ VTOC
  3865.     AX = 1505h
  3866.     ES:BX -> 2048-byte buffer
  3867.     CX = drive number (0=A:)
  3868.     DX = sector index (0=first volume descriptor,1=second,...)
  3869. Return: CF set on error
  3870.         AX = error code (15=invalid drive,21=not ready)
  3871.     CF clear if successful
  3872.         AX = volume descriptor type (1=standard,FFh=terminator,0=other)
  3873. --------d-2F1506-----------------------------
  3874. INT 2F - CD-ROM - TURN DEBUGGING ON
  3875.     AX = 1506h
  3876.     BX = debugging function to enable
  3877. Note:    reserved for development
  3878. SeeAlso: AX=1507h
  3879. --------d-2F1507-----------------------------
  3880. INT 2F - CD-ROM - TURN DEBUGGING OFF
  3881.     AX = 1507h
  3882.     BX = debugging function to disable
  3883. Note:    reserved for development
  3884. SeeAlso: AX=1506h
  3885. --------d-2F1508-----------------------------
  3886. INT 2F - CD-ROM - ABSOLUTE DISK READ
  3887.     AX = 1508h
  3888.     ES:BX -> buffer
  3889.     CX = drive number (0=A:)
  3890.     SI:DI = starting sector number
  3891.     DX = number of sectors to read
  3892. Return: CF set on error
  3893.         AL = error code (15=invalid drive,21=not ready)
  3894.     CF clear if successful
  3895. SeeAlso: AX=1509h
  3896. --------d-2F1509-----------------------------
  3897. INT 2F - CD-ROM - ABSOLUTE DISK WRITE
  3898.     AX = 1509h
  3899.     ES:BX -> buffer
  3900.     CX = drive number (0=A:)
  3901.     SI:DI = starting sector number
  3902.     DX = number of sectors to write
  3903. Note:    corresponds to INT 26h and is currently reserved and nonfunctional
  3904. SeeAlso: AX=1508h
  3905. --------d-2F150A-----------------------------
  3906. INT 2F - CD-ROM - RESERVED
  3907.     AX = 150Ah
  3908. --------d-2F150B-----------------------------
  3909. INT 2F - CD-ROM v2.00+ - DRIVE CHECK
  3910.     AX = 150Bh
  3911.     CX = drive number (0=A:)
  3912. Return: BX = ADADh if MSCDEX.EXE installed
  3913.         AX = 0000h if drive not supported
  3914.         nonzero if supported
  3915. SeeAlso: AX=150Dh
  3916. --------d-2F150C-----------------------------
  3917. INT 2F - CD-ROM v2.00+ - GET MSCDEX.EXE VERSION
  3918.     AX = 150Ch
  3919. Return: BH = major version
  3920.     BL = minor version
  3921. Note:    MSCDEX.EXE versions prior to 2.00 return BX=0
  3922. --------d-2F150D-----------------------------
  3923. INT 2F - CD-ROM v2.00+ - GET CD-ROM DRIVE LETTERS
  3924.     AX = 150Dh
  3925.     ES:BX -> buffer for drive letter list (1 byte per drive)
  3926. Return: buffer filled with drive numbers (0=A:).  Each byte corresponds
  3927.     to the drive in the same position for function 1501h
  3928. SeeAlso: AX=150Bh
  3929. --------d-2F150E-----------------------------
  3930. INT 2F - CD-ROM v2.00+ - GET/SET VOLUME DESCRIPTOR PREFERENCE
  3931.     AX = 150Eh
  3932.     BX = subfunction
  3933.         00h get preference
  3934.         DX = 0000h
  3935.         Return: DX = preference settings
  3936.         01h set preference
  3937.         DH = volume descriptor preference
  3938.             01h = primary volume descriptor
  3939.             02h = supplementary volume descriptor
  3940.         DL = supplementary volume descriptor preference
  3941.             01h = shift-Kanji
  3942.     CX = drive number (0=A:)
  3943. Return: CF set on error
  3944.         AX = error code (15=invalid drive,1=invalid function)
  3945.     CF clear if successful
  3946. --------d-2F150F-----------------------------
  3947. INT 2F - CD-ROM v2.00+ - GET DIRECTORY ENTRY
  3948.     AX = 150Fh
  3949.     CL = drive number (0=A:)
  3950.     CH bit 0 = copy flag
  3951.         clear if direct copy
  3952.         set if copy to structure which removes ISO/High Sierra diffs
  3953.     ES:BX -> ASCIZ path name
  3954.     SI:DI -> buffer for directory entry (see below)
  3955.          minimum 255 bytes for direct copy
  3956. Return: CF set on error
  3957.         AX = error code
  3958.     CF clear if successful
  3959.         AX = disk format (0=High Sierra,1=ISO 9660)
  3960.  
  3961. Format of directory entry (direct copy):
  3962. Offset    Size    Description
  3963.  00h    BYTE  length of directory entry
  3964.  01h    BYTE  length of XAR in Logical Block Numbers
  3965.  02h    DWORD LBN of data, Intel (little-endian) format
  3966.  06h    DWORD LBN of data, Motorola (big-endian) format
  3967.  0Ah    DWORD length of file, Intel format
  3968.  0Eh    DWORD length of file, Motorola format
  3969. ---High Sierra---
  3970.  12h  6 BYTEs date and time
  3971.  18h    BYTE  bit flags
  3972.  19h    BYTE  reserved
  3973. ---ISO 9660---
  3974.  12h  7 BYTEs date and time
  3975.  19h    BYTE  bit flags
  3976. ---both formats---
  3977.  1Ah    BYTE  interleave size
  3978.  1Bh    BYTE  interleave skip factor
  3979.  1Ch    WORD  volume set sequence number, Intel format
  3980.  1Eh    WORD  volume set sequence number, Motorola format
  3981.  20h    BYTE  length of file name
  3982.  21h  N BYTEs file name
  3983.     BYTE (optional) padding if filename is odd length
  3984.       N BYTEs system data
  3985.  
  3986. Format of directory entry (canonicalized):
  3987. Offset    Size    Description
  3988.  00h    BYTE    length of XAR in Logical Block Numbers
  3989.  01h    DWORD    Logical Block Number of file start
  3990.  05h    WORD    size of disk in logical blocks
  3991.  07h    DWORD    file length in bytes
  3992.  0Bh  7 BYTEs    date and time
  3993.  12h    BYTE    bit flags
  3994.  13h    BYTE    interleave size
  3995.  14h    BYTE    interleave skip factor
  3996.  15h    WORD    volume set sequence number
  3997.  17h    BYTE    length of file name
  3998.  18h 38 BYTEs    ASCIZ filename
  3999.  3Eh    WORD    file version number
  4000.  40h    BYTE    number of bytes of system use data
  4001.  41h 220 BYTEs    system use data
  4002. --------d-2F1510-----------------------------
  4003. INT 2F - CD-ROM v2.10+ - SEND DEVICE DRIVER REQUEST
  4004.     AX = 1510h
  4005.     CX = CD-ROM drive letter (0 = A, 1 = B, etc)
  4006.     ES:BX -> CD-ROM device driver request header (see AX=0802h)
  4007. --------W-2F1600-----------------------------
  4008. INT 2F - MS Windows - WINDOWS ENHANCED MODE INSTALLATION CHECK
  4009.     AX = 1600h
  4010. Return: AL = status
  4011.         00h neither Windows 3.x enhanced mode nor Windows/386 2.x running
  4012.         01h Windows/386 2.x running
  4013.         80h XMS version 1 driver installed (neither Windows 3.x enhanced
  4014.          mode nor Windows/386 2.x running) (obsolete--see note)
  4015.         FFh Windows/386 2.x running
  4016.     AL = anything else
  4017.         AL = Windows major version number >= 3
  4018.         AH = Windows minor version number
  4019. Notes:    INT 2F/AH=16h comprises an API for non-Windows programs (DOS device
  4020.       drivers, TSRs, and applications) to cooperate with multitasking
  4021.       Windows/386 2.x and Windows 3.x and higher enhanced mode.
  4022.     certain calls are also supported in the Microsoft 80286 DOS extender in
  4023.       Windows standard mode
  4024.     this function served as the installation check and AX=1610h served to
  4025.       get the driver entry point for XMS version 1, which is now obsolete.
  4026.       Use AX=4300h and AX=4310h instead
  4027. SeeAlso: AX=160Ah,AX=1610h,AX=4300h,AX=4680h
  4028. Index:    installation check;XMS version 1
  4029. --------W-2F1602-----------------------------
  4030. INT 2F - MS Windows/386 2.x - GET API ENTRY POINT
  4031.     AX = 1602h
  4032. Return: ES:DI -> Windows/386 2.x API procedure entry point
  4033. Notes:    this interface is supported in Windows 3.x only for 2.x compatibility
  4034.     to get the current virtual machine (VM) ID in Windows/386 2.x:
  4035.         AX = 0000h
  4036.         ES:DI -> return address
  4037.         JUMP to address returned from INT 2F/AX=1602h
  4038.     After JUMP, at return address:
  4039.         BX = current VM ID.
  4040. SeeAlso: AX=C020h
  4041. --------W-2F1603-----------------------------
  4042. INT 2F - MS Windows/386 - GET INSTANCE DATA
  4043.     AX = 1603h
  4044. Return: AX = 5248h ('RH') if supported
  4045.         DS:SI -> Windows/386 instance data (see below)
  4046. Notes:    reportedly supported by RM Nimbus MS-DOS 3.3 kernel
  4047.     this function is called by DOSMGR when AX=1607h/BX=0015h is not
  4048.       supported, as is the case in DOS versions prior to 5.0
  4049.     see Geoff Chappell's book _DOS_Internals_ for additional discussions of
  4050.       this function, DOSMGR's behavior, and instancing in general
  4051. SeeAlso: AX=1607h/BX=0015h
  4052.  
  4053. Format of Windows/386 instance data:
  4054. Offset    Size    Description
  4055.  00h    WORD    segment of IO.SYS (0000h = default 0070h)
  4056.  02h    WORD    offset in IO.SYS of STACKS data structure (DOS 3.2x)
  4057.         0000h if not applicable
  4058.  04h    WORD    number of instance data entries (max 32)
  4059.  06h    Array of instance data entries
  4060.     Offset    Size    Description
  4061.      00h    WORD    segment (0002h = DOS kernel)
  4062.      02h    WORD    offset
  4063.      04h    WORD    size
  4064. --------W-2F1605-----------------------------
  4065. INT 2F - MS Windows - WINDOWS ENH MODE & 286 DOSX INIT BROADCAST
  4066.     AX = 1605h
  4067.     ES:BX = 0000h:0000h
  4068.     DS:SI = 0000h:0000h
  4069.     CX = 0000h
  4070.     DX = flags
  4071.         bit 0 = 0 if Windows enhanced-mode initialization
  4072.         bit 0 = 1 if Microsoft 286 DOS extender initialization
  4073.         bits 1-15 reserved (undefined)
  4074.     DI = version number (major in upper byte, minor in lower)
  4075. Return: CX = 0000h if okay for Windows to load
  4076.     CX = FFFFh (other registers unchanged) if Windows 3.0 in standard mode
  4077.     CX <> 0 if Windows should not load
  4078.     ES:BX -> startup info structure (see below)
  4079.     DS:SI -> virtual86 mode enable/disable callback or 0000h:0000h
  4080. Notes:    the Windows enhanced mode loader and Microsoft 286 DOS extender will
  4081.       broadcast an INT 2F/AX=1605h call when initializing.    Any DOS device
  4082.       driver or TSR can watch for this broadcast and return the appropriate
  4083.       values.  If the driver or TSR returns CX <> 0, it is also its
  4084.       responsibility to display an error message.
  4085.     each handler must first chain to the prior INT 2F handler with
  4086.       registers unchanged before processing the call
  4087.     if the handler requires local data on a per-VM basis, it must store the
  4088.       returned ES:BX in the "next" field of a startup info structure and
  4089.       return a pointer to that structure in ES:BX
  4090.     a single TSR may set the V86 mode enable/disable callback; if DS:SI is
  4091.       already nonzero, the TSR must fail the initialization by setting CX
  4092.       nonzero
  4093.     MSD checks for Windows 3.0 running in standard mode by testing whether
  4094.       CX=FFFFh and other registers are unchanged on return
  4095. SeeAlso: AX=1606h,AX=1608h,AX=4B05h
  4096.  
  4097. Format of Startup Information Structure:
  4098. Offset    Size    Description
  4099.  00h  2 BYTEs    major, minor version of info structure
  4100.  02h    DWORD    pointer to next startup info structure or 0000h:0000h
  4101.  06h    DWORD    pointer to ASCIZ name of virtual device file or 0000h:0000h
  4102.  0Ah    DWORD    virtual device reference data (see below)
  4103.         (only used if above nonzero)
  4104.  0Eh    DWORD    pointer to instance data records or 0000h:0000h
  4105.  
  4106. Format of one Instance Item in array:
  4107. Offset    Size    Description
  4108.  00h    DWORD    address of instance data (end of array if 0000h:0000h)
  4109.  04h    WORD    size of instance data
  4110.  
  4111. Format of Virtual Device Reference Data:
  4112. Offset    Size    Description
  4113.  00h    DWORD    physical address of ??? or 00000000h
  4114.  04h    DWORD    physical address of ??? table
  4115.  08h    DWORD    "DEST_PAGE" address to which pages must be mapped
  4116.  0Ch  N DWORDs    "SRC_PAGE" physical addresses of the pages
  4117.         00000000h = end of table
  4118. Note:    EMM386.EXE sets the first pointer to the start of the device driver
  4119.       chain, the second pointer to a field of 40h bytes followed by a
  4120.       16-bit offset to the end of the SRC_PAGE table, and DEST_PAGE to
  4121.       the start segment of the UMB area
  4122.  
  4123. Virtual mode enable/disable procedure called with:
  4124.     AX = 0000h disable V86 mode
  4125.     AX = 0001h enable V86 mode
  4126.     interrupts disabled
  4127. Return: CF set on error
  4128.     CF clear if successful
  4129.     interrupts disabled
  4130. --------W-2F1606-----------------------------
  4131. INT 2F - MS Windows - WINDOWS ENH MODE & 286 DOSX EXIT BROADCAST
  4132.     AX = 1606h
  4133.     DX = flags
  4134.         bit 0 = 0 if Windows enhanced-mode exit
  4135.         bit 0 = 1 if Microsoft 286 DOS extender exit
  4136.         bits 1-15 reserved (undefined)
  4137. Notes:    if the init broadcast fails (AX=1605h returned CX <> 0), then this
  4138.       broadcast will be issued immediately.
  4139.     this call will be issued in real mode
  4140. SeeAlso: AX=1605h,AX=1609h
  4141. --------W-2F1607-----------------------------
  4142. INT 2F - MS Windows - VIRTUAL DEVICE CALL OUT API
  4143.     AX = 1607h
  4144.     BX = virtual device ID (see INT 2F/AX=1684h)
  4145.     CX = (usually) callout subfunction
  4146. Return: (usually) AX,BX,CX,DX,ES contain results
  4147. Notes:    more of a convention than an API, this call specifies a standard
  4148.       mechanism for Windows enhanced-mode virtual devices (VxD's) to talk
  4149.       to DOS device drivers and TSRs
  4150.     see below for details on several virtual devices
  4151. SeeAlso: AX=1605h,AX=1607h/BX=000Ch,AX=1607h/BX=0014h,AX=1607h/BX=0015h
  4152. SeeAlso: AX=1684h,AX=C020h
  4153. --------W-2F1607BX0006-----------------------
  4154. INT 2F - MS Windows - "V86MMGR" VIRTUAL DEVICE API
  4155.     AX = 1607h
  4156.     BX = 0006h (VxD identifier of "V86MMGR")
  4157.     CX = 0000h
  4158. Return: AX = status
  4159.         0000h if local A20 state changed
  4160.         1607h if A20 unchanged
  4161.         other if global A20 state changed
  4162. --------W-2F1607BX000C-----------------------
  4163. INT 2F - MS Windows - "VMD" VIRTUAL MOUSE DEVICE API
  4164.     AX = 1607h
  4165.     BX = 000Ch (VxD identifier of "VMD")
  4166. Return: CX = nonzero if mouse driver already virtualized
  4167. Note:    VMD (Virtual Mouse Driver) calls this and then checks whether CX is
  4168.       nonzero; if yes, it will not automatically virtualize the mouse
  4169.       driver.  This would be used if MOUSE.COM already virtualizes
  4170.       itself using the Windows API.
  4171. SeeAlso: AX=1607h/BX=0014h,AX=1607h/BX=0015h
  4172. --------W-2F1607BX0014-----------------------
  4173. INT 2F - MS Windows - "VNETBIOS" VIRTUAL DEVICE API
  4174.     AX = 1607h
  4175.     BX = 0014H (VxD identifier of "VNETBIOS")
  4176. Return: ES:DI -> 128-byte table specifying VNETBIOS actions for each NetBIOS
  4177.         command code (see below)
  4178. Note:    VNETBIOS (Virtual NetBIOS) calls this function to determine whether
  4179.       the NetBIOS has an extensions Windows should know about
  4180. SeeAlso: AX=1607h/BX=000Ch,AX=1607h/BX=0015h
  4181.  
  4182. Values for action code:
  4183.  00h    "VN_Unknown" unknown command
  4184.  04h    "VN_No_Map"  no memory mapping necessary
  4185.  08h    "VN_Map_In"  input buffer is quickly used, so no global mapping needed
  4186.  0Ch    "VN_Map_In"  output buffer is quickly used, so no global mapping needed
  4187.  10h    "VN_Map_In_Out"     buffer is quickly used, so no global mapping needed
  4188.  14h    "VN_Chain_Send"     the chain-send command
  4189.  18h    "VN_Cancel"    special case for cancel command
  4190.  1Ch    "VN_Buffer_In"    buffer is incoming
  4191.  20h    "VN_Buffer_Out" buffer is outgoing
  4192.  24h    "VN_Buffer_In_Out" buffer used for both incoming and outgoing data
  4193. --------D-2F1607BX0015-----------------------
  4194. INT 2F - MS Windows - "DOSMGR" VIRTUAL DEVICE API
  4195.     AX = 1607h
  4196.     BX = 0015h (VxD identifier of "DOSMGR")
  4197.     CX = function
  4198.         0000h query instance processing
  4199.         DX = 0000h
  4200.         Return: CX = state
  4201.                 0000h not instanced
  4202.                 other instanced (DOS 5+ kernel returns 0001h)
  4203.                 DX = segment of DOS drivers or 0000h for
  4204.                     default of 0070h
  4205.                 ES:BX -> patch table (see below)
  4206.         0001h set patches in DOS
  4207.         DX = bit mask of patch requests
  4208.             bit 0 enable critical sections
  4209.             bit 1 NOP setting/checking user ID
  4210.             bit 2 turn INT 21/AH=3Fh on STDIN into polling loop
  4211.             bit 3 trap stack fault in "SYSINIT" to WIN386
  4212.             bit 4 BIOS patch to trap "Insert disk X:" to WIN386
  4213.         Return: AX = B97Ch
  4214.             BX = bit mask of patches applied
  4215.             DX = A2ABh
  4216.         0002h remove patches in DOS (ignored by DOS 5.0 kernel)
  4217.         DX = bit mask of patch requests (see function 0001h)
  4218.         0003h get size of DOS data structures
  4219.         DX = bit mask of request (only one bit can be set)
  4220.             bit 0: Current Directory Structure size
  4221.         Return: if supported request:
  4222.                 AX = B97Ch
  4223.                 CX = size in bytes of requested structure
  4224.                 DX = A2ABh
  4225.             else:
  4226.                 all registers preserved
  4227.         0004h determine instanced data structures
  4228.         Return: AX = B97Ch if supported
  4229.             DX = A2ABh if supported (DOS 5+ kernel returns 0000h)
  4230.             BX = bit mask of instanced items
  4231.                 bit 0: CDS
  4232.                 bit 1: SFT
  4233.                 bit 2: device list
  4234.                 bit 3: DOS swappable data area
  4235.         0005h get device driver size
  4236.         ES = segment of device driver
  4237.         Return: DX:AX = 0000h:0000h on error (not dev. driver segment)
  4238.             DX:AX = A2ABh:B97Ch if successful
  4239.                 BX:CX = size of device driver in bytes
  4240. Notes:    DOSMGR (DOS Manager) will check whether the OEM DOS/BIOS data has
  4241.       been instanced via this API and will not perform its own default
  4242.       instancing of the normal DOS/BIOS data if so; if this API is not
  4243.       supported, DOSMGR will also try to access instancing data through
  4244.       INT 2F/AX=1603h
  4245.     these functions are supported by the DOS 5+ kernel; DOSMGR contains
  4246.       tables of instancing information for earlier versions of DOS
  4247.     see Geoff Chappell's book _DOS_Internals_ for additional discussions of
  4248.       DOSMGR's behavior and instancing in general
  4249. SeeAlso: AX=1603h,AX=1605h,AX=1607h/BX=000Ch,AX=1607h/BX=0014h,AX=1684h
  4250.  
  4251. Format of patch table:
  4252. Offset    Size    Description
  4253.  00h  2 BYTEs    DOS version (major, minor)
  4254.  02h    WORD    offset in DOS data segment of "SAVEDS"
  4255.  04h    WORD    offset in DOS data segment of "SAVEBX"
  4256.  06h    WORD    offset in DOS data segment of InDOS flag
  4257.  08h    WORD    offset in DOS data segment of User ID word
  4258.  0Ah    WORD    offset in DOS data segment of "CritPatch" table to enable
  4259.         critical section calls (see INT 2A/AH=80h)
  4260.  0Ch    WORD    (DOS 5+ only) offset in DOS data segment of "UMB_HEAD",
  4261.         containing segment of last MCB in conventional memory
  4262. --------E-2F1607BX22C0-----------------------
  4263. INT 2F - Rational Systems DOS/4GW - ???
  4264.     AX = 1607h
  4265.     BX = 22C0h
  4266.     ???
  4267. Return: ???
  4268. SeeAlso: INT 15/AX=BF02h,INT 15/AX=BF04h
  4269. --------W-2F1608-----------------------------
  4270. INT 2F C - MS Windows - WINDOWS ENHANCED MODE INIT COMPLETE BROADCAST
  4271.     AX = 1608h
  4272. Notes:    called after all installable devices have been initialized
  4273.     real-mode software may be called between the Windows enhanced-mode init
  4274.       call (AX=1605h) and this call; the software must detect this
  4275.       situation
  4276. SeeAlso: AX=1605h,AX=1609h
  4277. --------W-2F1609-----------------------------
  4278. INT 2F C - MS Windows - WINDOWS ENHANCED MODE BEGIN EXIT BROADCAST
  4279.     AX = 1609h
  4280. Note:    called at the beginning of a normal exit sequence; not made in the
  4281.       event of a fatal system crash
  4282. SeeAlso: AX=1606h,AX=1608h
  4283. --------W-2F160A-----------------------------
  4284. INT 2F - MS Windows 3.1 - IDENTIFY WINDOWS VERSION AND TYPE
  4285.     AX = 160Ah
  4286. Return: AX = 0000h if call supported
  4287.         BX = version (BH=major, BL=minor)
  4288.         CX = mode (0002h = standard, 0003h = enhanced)
  4289. SeeAlso: AX=1600h,AX=4680h
  4290. --------W-2F160B-----------------------------
  4291. INT 2F - MS Windows 3.1 - IDENTIFY TSRs
  4292.     AX = 160Bh
  4293.     ES:DI -> communication structure (see below) or 0000h:0000h
  4294. Return: ES:DI -> communication structure
  4295. Desc:    this call allows Windows-aware TSRs to make themselves known to
  4296.       Windows.
  4297. Note:    the TSR should allocate a communication structure, place the given
  4298.       ES:DI pointer in the first field, and return a pointer to the new
  4299.       structure
  4300. SeeAlso: AX=1605h,AX=160Ch,AX=4B01h,AX=4B05h
  4301.  
  4302. Format of TSR-to-Windows communication structure:
  4303. Offset    Size    Description
  4304.  00h    DWORD    pointer to next structure
  4305.  04h    WORD    PSP segment
  4306.  06h    WORD    API version ID (0100h)
  4307.  08h    WORD    EXEC flags
  4308.         bit 0: "WINEXEC"
  4309.         bit 1: "LOADLIBRARY"
  4310.         bit 2: "OPENDRIVER"
  4311.  0Ah    WORD    "exec_cmd_show"
  4312.  0Ch    DWORD    "exec_cmd"
  4313.  10h  4 BYTEs    reserved (0)
  4314.  14h    DWORD    pointer to TSR ID block (see below)
  4315.  18h    DWORD    pointer to TSR data block or 0000h:0000h
  4316.  
  4317. Format of Norton Utilities 6.0 TSR ID block:
  4318. Offset    Size    Description
  4319.  00h    WORD    length of name string
  4320.  02h  N BYTEs    name of TSR's executable
  4321. --------W-2F160C-----------------------------
  4322. INT 2F - MS Windows 3.1 - DETECT ROMs
  4323.     AX = 160Ch
  4324.     ???
  4325. Return: ???
  4326. Note:    used by ROM Windows
  4327. SeeAlso: AX=160Bh
  4328. --------m-2F1610-----------------------------
  4329. INT 2F - XMS v1.x only - GET DRIVER ADDRESS
  4330.     AX = 1610h
  4331.     details unavailable
  4332. Note:    this function and AX=1600h were only used in XMS version 1 and are now
  4333.       obsolete.  Use AX=4300h and AX=4310h instead
  4334. SeeAlso: AX=1600h,AX=4310h
  4335. --------W-2F1680-----------------------------
  4336. INT 2F - MS Windows, DPMI, various - RELEASE CURRENT VIRTUAL MACHINE TIME-SLICE
  4337.     AX = 1680h
  4338. Return: AL = 00h if the call is supported
  4339.     AL = 80h (unchanged) if the call is not supported
  4340. Notes:    programs can use this function in idle loops to enhance performance
  4341.       under multitaskers; this call is supported by MS Windows 3.0, DOS 5+,
  4342.       DPMI 1.0+, and will be supported in OS/2 2.0 for multitasking DOS
  4343.       applications
  4344.     does not block the program; it just gives up the remainder of the time
  4345.       slice
  4346.     should not be used by Windows-specific programs
  4347. SeeAlso: INT 15/AX=1000h,INT 15/AX=5305h,INT 21/AH=89h,INT 7A/BX=000Ah
  4348. --------W-2F1681-----------------------------
  4349. INT 2F - MS Windows 3+ - BEGIN CRITICAL SECTION
  4350.     AX = 1681h
  4351. Notes:    used to prevent a task switch from occurring
  4352.     should be followed by an INT 2F/AX=1682h call as soon as possible
  4353.     nested calls are allowed, and must be followed by an appropriate number
  4354.       of "end critical section" calls
  4355.     not supported in Windows/386 2.x. Get INDOS flag with INT 21/AH=34h and
  4356.       increment by hand.
  4357. SeeAlso: AX=1682h,INT 15/AX=101Bh,INT 21/AH=34h
  4358. --------W-2F1682-----------------------------
  4359. INT 2F - MS Windows 3+ - END CRITICAL SECTION
  4360.     AX = 1682h
  4361. Notes:    not supported in Windows/386 2.x.  Get InDOS flag with INT 21/AH=34h
  4362.       and decrement by hand, taking care not to decrement InDOS flag
  4363.       through zero
  4364. SeeAlso: AX=1681h,INT 15/AX=101Ch,INT 21/AH=34h
  4365. --------W-2F1683-----------------------------
  4366. INT 2F - MS Windows 3+ - GET CURRENT VIRTUAL MACHINE ID
  4367.     AX = 1683h
  4368. Return: BX = current virtual machine (VM) ID
  4369. Notes:    Windows itself currently runs in VM 1, but this can't be relied upon
  4370.     VM IDs are reused when VMs are destroyed
  4371.     an ID of 0 will never be returned
  4372. SeeAlso: AX=1684h,AX=1685h,AX=168Bh
  4373. --------W-2F1684-----------------------------
  4374. INT 2F - MS Windows - GET DEVICE API ENTRY POINT
  4375.     AX = 1684h
  4376.     BX = virtual device (VxD) ID (see below)
  4377.     ES:DI = 0000h:0000h
  4378. Return: ES:DI -> VxD API entry point, or 0:0 if the VxD does not support an API
  4379. Note:    some Windows enhanced-mode virtual devices provide services that
  4380.       applications can access.  For example, the Virtual Display Device
  4381.       (VDD) provides an API used in turn by WINOLDAP.
  4382. SeeAlso: AX=1683h
  4383.  
  4384. Values for VxD ID:
  4385. Value  Name    CallOut V86 PM    Description
  4386.  01h    VMM        N  N    Virtual Machine Manager
  4387.  02h    Debug
  4388.  03h    VPICD        Y  Y    Virtual Prog. Interrupt Controller (PIC) Device
  4389.  04h    VDMAD        N  N    Virtual Direct Memory Access (DMA) Device
  4390.  05h    VTD        Y  Y    Virtual Timer Device
  4391.  06h    V86MMGR        N  N    Virtual 8086 Mode Device
  4392.  07h    PageSwap    N  N    Paging Device
  4393.  08h    Parity        N  N    Parity-check trapper
  4394.  09h    Reboot        N  Y    Ctrl-Alt-Del handler
  4395.  0Ah    VDD        N  Y    Virtual Display Device (GRABBER)
  4396.  0Bh    VSD        N  N    Virtual Sound Device
  4397.  0Ch    VMD      Y    Y  Y    Virtual Mouse Device
  4398.  0Dh    VKD        N  Y    Virtual Keyboard Device
  4399.  0Eh    VCD        N  Y    Virtual COMM Device
  4400.  0Fh    VPD            Virtual Printer Device
  4401.  10h    VHD            Virtual Hard Disk Device (Windows 3.0)
  4402.  10h    BLOCKDEV    N  N    Virtual Hard Disk Device (Windows 3.1)
  4403.  10h    IOS        N  Y    (Chicago)
  4404.  11h    VMCPD        Y  Y    Virtual Math CoProcessor Device
  4405.  12h    EBIOS        N  N    Reserve EBIOS page (e.g., on PS/2)
  4406.  13h    BIOSXLAT    N  N    Map ROM BIOS API between prot & V86 mode
  4407.  14h    VNETBIOS  Y    N  N    Virtual NetBIOS Device
  4408.  15h    DOSMGR        Y  N
  4409.  16h    WINLOAD
  4410.  17h    SHELL        N  Y
  4411.  18h    VMPOLL        N  N
  4412.  19h    VPROD
  4413.  1Ah    DOSNET        N  N    assures network integrity across VMs
  4414.  1Ah    VNETWARE    Y  Y    Novell NetWare DOSNET replacement
  4415.  1Bh    VFD        N  N    Virtual Floppy Device
  4416.  1Ch    VDD2            Secondary display adapter
  4417.  1Ch    LoadHi        N  N    Netroom LoadHi Device (RMLODHI.VXD)
  4418.  1Ch    LoadHi        N  N    386MAX LoadHi Device (386MAX.VXD)
  4419.  1Ch    LoadHi        N  N    Win386 LoadHi Device (EMM386.EXE)
  4420.  1Dh    WINDEBUG    N  Y
  4421.  1Dh    TDDebug        N  Y
  4422.  1Eh    TSRLoad            TSR instance utility
  4423.  1Fh    BiosHook        BIOS interrupt hooker VxD
  4424.  20h    Int13       N    N  N
  4425.  21h    PageFile    N  Y    Paging File device
  4426.  22h    SCSI
  4427.  23h    MCA_POS
  4428.  24h    SCSIFD            SCSI FastDisk device
  4429.  25h    VPEND            Pen device
  4430.  26h    APM            Advanced Power Management
  4431.  27h    VXDLDR        Y  Y    (Chicago)
  4432.  2Ah    VWIN32        N  Y    (Chicago)
  4433.  2Bh    VCOMM        Y  Y    (Chicago)
  4434.  30h    MACH32        N  Y    ATI Mach32 video card
  4435.  33h    CONFIGMG    Y  Y    (Chicago)
  4436.  33h    EDOS        N  N    Windows DOS Box Enhancer by Mom's Software
  4437.  36h    VFBACKUP    Y  Y    (Chicago)
  4438.  38h    VCOND        Y  Y    (Chicago)
  4439.  51h    ISAPNP        N  N
  4440.  8Dh    ESDI_506    N  N    (Chicago)
  4441.  90h    voltrack    N  N
  4442.  FDh    FAKEIDE        N  N    (Chicago)
  4443. 0102h    CV1        N  N    Microsoft C/C++ 7.00+ CodeView for Windows
  4444. 0200h    VIPX        Y  Y    NetWare Virtual IPX Driver
  4445. 0201h    VNWLSERV    N  N    NetWare Lite 1.1 Server (SERVER.EXE)
  4446. 0202h    WINICE        Y  Y    SoftICE/W
  4447. 0203h    VCLIENT        N  Y    NetWare Lite 1.1+ Client
  4448. 0205h    VCAFT        N  N    Novell Virtual CAFT Driver (LANalyzer for Win)
  4449. 0206h    VTXRX        N  N    Novell Virtual TXRX Driver (LANalyzer for Win)
  4450. 0234h    VCOMMUTE    Y  Y    PC Tools Commute
  4451. 0442h    VTDAPI        N  Y    MMSys Win386 VTAPI Device
  4452. 0444h    VADMAD            Autoinitialize DMA (Windows 3.0)
  4453. 0445h    VSBD        Y  Y    WinResKit: Sound Blaster Device
  4454. 0460h    UNIMODEM    N  Y
  4455. 0483h    VSHARE        N  N    Windows for Workgroups Virtual SHARE
  4456. 0484h    IFSMgr        Y  N    (Chicago) installable file system manager
  4457. 0486h    VFAT        Y  Y    (Chicago)
  4458. 048Bh    VCACHE        Y  Y
  4459. 1021h    VMB        Y  Y    Microsoft C/C++ 7.00 WXSRVR
  4460. 1022h    Vpfd        Y  Y    Microsoft C/C++ 7.00
  4461. 1025h    MMD        Y  Y    Microsoft C/C++ 8.00, Visual C/C++ 1.00
  4462. 21EAh    VADLIBWD    N  Y    Adlib Waveform Driver by John Ridges
  4463. 2200h    VFINTD        Y  Y    Norton VFINTD (Norton Desktop)
  4464. 2402h    ZMAX        N  N    Qualitas 386MAX v7 DOSMAX handler
  4465. 24A0h    VNSS        N  Y    Norton Screen Saver (Norton Desktop)
  4466. 24A1h    VNDWD        Y  Y    Norton VNDWD Device (Norton Desktop)
  4467. 2640h    VASBID        N  Y    WinResKit: Artisoft Sounding Board Device
  4468. 2860h    COMMTASK   N    N  Y    Windows 386-mode preemptive tasker by James
  4469.                 A. Kenemuth of Interabang Computing
  4470. 28C0h    VXD       N    Y  Y    Generic VxD for real and protected mode by
  4471.                 Andrew Schulman in MSJ February 1993
  4472. 292Dh    VSBPD        Y  Y    Sound Blaster Pro
  4473. 3098h    VstlthD       N    N  N    for QEMM Stealth ROM mode
  4474. 310eh    WPS        N  N    MS DevNet CD-ROM: Windows Process Status
  4475. 7FE0h    VWFD       N    Y  Y    ??? by Neil Sandlin of Microsoft
  4476. 7FE1h    VWATCHD       N    Y  Y    basic driver w/ no functionality except tracing
  4477.                 by Keith Jin of Microsoft PSS
  4478. 7FE5h    VFINTD       N    Y  Y    Virtual Floppy Interrupt trapper by Neil
  4479.                 Sandlin of Microsoft
  4480. 7FE7h    VMPAGES       N    Y  Y    demonstration of exporting VxD services, by
  4481.                 Neil Sandlin of Microsoft
  4482. 7FE9h    VIdleD       N    N  N    demonstration of Call_When_Idle function, by
  4483.                 Bernie McIlroy of Microsoft
  4484. 7FEBh    VMIOD       N    N  N    Virtual Monitor I/O Traffic Device, by Neil
  4485.                 Sandlin of Microsoft
  4486. 7FEDh    VMIRQD       N    N  N    Virtual Monitor IRQ Traffic Device, by Neil
  4487.                 Sandlin of Microsoft
  4488. Note:    The high bit of the VxD ID is reserved for future use. The
  4489.     next 10 bits are the OEM # which is assigned by Microsoft. The
  4490.     low 5 bits are the device number.  Naturally, this scheme has not
  4491.     been adhered to since there are now more than 32 different VxDs.
  4492.  
  4493. Call VTD.386 entry point with:
  4494.     AX = 0000h get VTD version number
  4495.         Return: AH = major version
  4496.             AL = minor version
  4497.     AX = 0100h get current clock tick time
  4498.         Return: EDX:EAX = clock tick time in 840ns units since Windows was
  4499.                 started
  4500.     AX = 0101h get current system time in milliseconds
  4501.         Return: EAX = time in milliseconds that Windows has been running
  4502.     AX = 0102h get current virtual machine time
  4503.         Return: EAX = cumulative amount of time the virtual machine has
  4504.             been active, in milliseconds
  4505. Note:    should only be called directly when TOOLHELP.DLL TimerCount() cannot
  4506.       be called
  4507.  
  4508. Call VADMAD entry point with:
  4509.     DX = operation
  4510.         0000h set VADMAD mode
  4511.         AX = desired mode
  4512.         0001h set VADMAD channel
  4513.         AX = desired channel
  4514. Note:    after setting mode/channel, start the DMA operation with an OUT to
  4515.       I/O port 0Bh (channels 0-3) or D6h (channels 4-7)
  4516. --------W-2F1685-----------------------------
  4517. INT 2F - MS Windows - SWITCH VMs AND CALLBACK
  4518.     AX = 1685h
  4519.     BX = VM ID of virtual machine to switch to
  4520.     CX = flags
  4521.         bit 0 wait until interrupts enabled
  4522.         bit 1 wait until critical section unowned
  4523.         bits 2-15 reserved (zero)
  4524.     DX:SI = priority boost (see VMM.INC)
  4525.     ES:DI -> FAR procedure to callback
  4526. Return: CF set on error
  4527.         AX = error code
  4528.         01h invalid VM ID
  4529.         02h invalid priority boost
  4530.         03h invalid flags
  4531.     CF clear if successful
  4532.         event will be or has been called
  4533. Notes:    some DOS devices, such as networks, need to call functions in a
  4534.       specific VM. This call forces the appropriate VM to be installed.
  4535.     the callback procedure must preserve all registers and return with IRET
  4536. SeeAlso: AX=1683h,INT 15/AX=1117h
  4537. --------E-2F1686-----------------------------
  4538. INT 2F - DOS Protected-Mode Interface - DETECT MODE
  4539.     AX = 1686h
  4540. Return: AX = 0000h if operating in protected mode under DPMI (INT 31 available)
  4541.     AX nonzero if in real/V86 mode or no DPMI (INT 31 not available)
  4542. SeeAlso: AX=1687h
  4543. --------E-2F1687-----------------------------
  4544. INT 2F - DOS Protected-Mode Interface - INSTALLATION CHECK
  4545.     AX = 1687h
  4546. Return: AX = 0000h if installed
  4547.         BX = flags
  4548.         bit 0: 32-bit programs supported
  4549.         CL = processor type (02h=80286, 03h=80386, 04h=80486)
  4550.         DH = DPMI major version
  4551.         DL = two-digit DPMI minor version (binary)
  4552.         SI = number of paragraphs of DOS extender private data
  4553.         ES:DI -> DPMI mode-switch entry point
  4554.     AX nonzero if not installed
  4555. SeeAlso: AX=1686h,AX=43E0h,AX=DE01h/BX=4450h,AX=FB42h/BX=0001h
  4556. SeeAlso: INT 31/AX=0400h,INT 31/AX=5702h,INT 38/AH=10h
  4557.  
  4558. Call mode switch entry point with:
  4559.     AX = flags
  4560.         bit 0: set if 32-bit program
  4561.     ES = real mode segment of buffer for DPMI private data (ignored if
  4562.         SI was zero)
  4563. Return: CF set on error
  4564.         program still in real mode
  4565.         AX = error code (DPMI 1.0+)
  4566.            8011h unable to allocate all necessary descriptors
  4567.            8021h 32-bit program specified, but 16-bit DPMI host
  4568.     CF clear if successful
  4569.         CS = 16-bit selector corresponding to real-mode CS
  4570.         SS = selector corresponding to real-mode SS (64K limit)
  4571.         DS = selector corresponding to real-mode DS (64K limit)
  4572.         ES = selector to program's PSP (100h byte limit)
  4573.         FS = GS = 0
  4574.         high word of ESP = 0 if 32-bit program
  4575.         program now in protected mode
  4576. Note:    this entry point is only called for the initial switch to protected
  4577.       mode
  4578. --------W-2F1688-----------------------------
  4579. INT 2F U - MS Windows 3.0, 386MAX v6.01 - GET SELECTOR TO LDT
  4580.     AX = 1688h
  4581. Return: AX = status??? (0000h for 386MAX)
  4582.     BX = selector for ???
  4583. --------W-2F1689-----------------------------
  4584. INT 2F U - MS Windows 3.0+ - KERNEL IDLE CALL
  4585.     AX = 1689h
  4586.     ???
  4587. Return: ???
  4588. SeeAlso: AX=1680h,INT 15/AX=1000h,INT 28
  4589. --------E-2F168A-----------------------------
  4590. INT 2F - DPMI 0.9+ - GET VENDOR-SPECIFIC API ENTRY POINT
  4591.     AX = 168Ah
  4592.     DS:(E)SI = selector:offset of ASCIZ vendor name
  4593. Return: AL = status
  4594.         00h successful
  4595.            ES:(E)DI -> extended API entry point
  4596.         8Ah unsuccessful
  4597. Notes:    the vendor name is used to determine which entry point to return; it is
  4598.       case-sensitive
  4599.     available in protected mode only
  4600.     32-bit applications use ESI and EDI, 16-bit applications use SI and DI
  4601.     this call is present but not documented for DPMI 0.9
  4602.     the Borland C++ 3.1 DPMILOAD does not handle requests for entry points
  4603.       other than the MS-DOS one gracefully, producing an unhandled
  4604.       exception report; this has been fixed in the Borland Pascal 7 version
  4605. SeeAlso: INT 31/AX=0A00h,INT 31/AH=57h
  4606.  
  4607. Vendor names:
  4608.  "MS-DOS"    ??? and 386MAX v6.00+
  4609.  "386MAX"    386MAX v6.00+
  4610.  "HELIX_DPMI"    Helix Netroom's DPMI server
  4611.  "Phar Lap"    Phar Lap 286|DOS-Extender RUN286
  4612.  
  4613. Call Phar Lap RUN286 entry point with:
  4614.     AX = 0000h (function "load MSW")
  4615.     BX = new value for MSW register (low word of CR0)
  4616. Return: ???
  4617. --------W-2F168B-----------------------------
  4618. INT 2F - MS Windows 3.1 - SET FOCUS TO SPECIFIED VIRTUAL MACHINE
  4619.     AX = 168Bh
  4620.     BX = virtual machine ID (see AX=1683h)
  4621. Return: AL = 00h if focus set to specified VM
  4622. Note:    documented on the Microsoft Developer's Network CD-ROM
  4623. SeeAlso: AX=1683h
  4624. --------W-2F168C-----------------------------
  4625. INT 2F - MS Windows 3.1 - RESTART COMMAND
  4626.     AX = 168Ch
  4627.     ???
  4628. Return: ???
  4629. Note:    WIN.COM executes specified application
  4630. --------W-2F1700-----------------------------
  4631. INT 2F - MS Windows "WINOLDAP" - IDENTIFY WinOldAp VERSION
  4632.     AX = 1700h
  4633. Return: AX = 1700h if this version of WINOLDAP doesn't support clipboard
  4634.     AX <> 1700h
  4635.         AL = WINOLDAP major version
  4636.         AH = WINOLDAP minor version
  4637. Program: WinOldAp (WINOLDAP.MOD) is a Microsoft Windows extension supporting
  4638.       "old" (character-mode) application access to Dynamic Data Exchange,
  4639.       menus, and the Windows clipboard.
  4640. Note:    this installation check DOES NOT follow the format used by other
  4641.       software of returning AL=FFh
  4642. Index:    installation check;WINOLDAP
  4643. --------W-2F1701-----------------------------
  4644. INT 2F - MS Windows "WINOLDAP" - OPEN CLIPBOARD
  4645.     AX = 1701h
  4646. Return: AX <> 0     success
  4647.     AX = 0     clipboard is already open
  4648. --------W-2F1702-----------------------------
  4649. INT 2F - MS Windows "WINOLDAP" - EMPTY CLIPBOARD
  4650.     AX = 1702h
  4651. Return: AX <> 0     clipboard has been emptied
  4652.     AX = 0     failure
  4653. --------W-2F1703-----------------------------
  4654. INT 2F - MS Windows "WINOLDAP" - SET CLIPBOARD DATA
  4655.     AX = 1703h
  4656.     DX = clipboard format supported by WinOldAp:
  4657.         01h text
  4658.         02h bitmap
  4659.         03h metafile picture
  4660.         04h SYLK
  4661.         05h DIF
  4662.         06h TIFF
  4663.         07h OEM text
  4664.         81h DSP text
  4665.         82h DSP bitmap
  4666.     ES:BX -> data (see below)
  4667.     SI:CX = size of data
  4668. Return: AX <> 0 data copied into the Clipboard
  4669.     AX = 0 failure
  4670.  
  4671. Format of bitmap:
  4672. Offset    Size    Description
  4673.  00h    WORD    type (0000h)
  4674.  02h    WORD    width of bitmap in pixels
  4675.  04h    WORD    height of bitmap in pixels
  4676.  06h    WORD    bytes per line
  4677.  08h    BYTE    number of color planes
  4678.  09h    BYTE    number of adjacent color bits in pixel
  4679.  0Ah    DWORD    pointer to start of data
  4680.  0Eh    WORD    width in 0.1mm units
  4681.  10h    WORD    height in 0.1mm units
  4682.  12h  N BYTEs    bitmap data
  4683.  
  4684. Format of metafile picture:
  4685. Offset    Size    Description
  4686.  00h    WORD    mapping mode
  4687.  02h    WORD    X extent
  4688.  04h    WORD    Y extent
  4689.  06h    WORD    picture data
  4690. --------W-2F1704-----------------------------
  4691. INT 2F - MS Windows "WINOLDAP" - GET CLIPBOARD DATA SIZE
  4692.     AX = 1704h
  4693.     DX = clipboard format supported by WinOldAp (see AX=1703h)
  4694. Return:     DX:AX = size of data in bytes, including any headers
  4695. Failure: DX:AX = 0  no data in this format in the Clipboard
  4696. --------W-2F1705-----------------------------
  4697. INT 2F - MS Windows "WINOLDAP" - GET CLIPBOARD DATA
  4698.     AX = 1705h
  4699.     DX = clipboard format supported by WinOldAp (see AX=1703h)
  4700.     ES:BX -> buffer
  4701. Return: AX <> 0     success
  4702.     AX = 0     error, or no data in this format in Clipboard
  4703. --------W-2F1708-----------------------------
  4704. INT 2F - MS Windows "WINOLDAP" - CloseClipboard
  4705.     AX = 1708h
  4706. Return: AX <> 0 success
  4707.     AX = 0 failure
  4708. --------W-2F1709-----------------------------
  4709. INT 2F - MS Windows "WINOLDAP" - COMPACT CLIPBOARD
  4710.     AX = 1709h
  4711.     SI:CX = desired size in bytes
  4712. Return: DX:AX = number of bytes in largest block of free memory
  4713. Note:    WinOldAp is responsible for including the size of any headers
  4714. --------W-2F170A-----------------------------
  4715. INT 2F - MS Windows "WINOLDAP" - GET DEVICE CAPABILITIES
  4716.     AX = 170Ah
  4717.     DX = GDI information index
  4718.         00h device driver version
  4719.         02h device classification
  4720.         04h width in mm
  4721.         06h height in mm
  4722.         08h width in pixels
  4723.         0Ah height in pixels
  4724.         0Ch bits per pixel
  4725.         0Eh number of bit planes
  4726.         10h number of brushes supported by device
  4727.         12h number of pens supported by device
  4728.         14h number of markers supported by device
  4729.         16h number of fonts supported by device
  4730.         18h number of colors
  4731.         1Ah size required for device descriptor
  4732.         1Ch curve capabilities
  4733.         1Eh line capabilities
  4734.         20h polygon capabilities
  4735.         22h text capabilities
  4736.         24h clipping capabilities
  4737.         26h bitblt capabilities
  4738.         28h X aspect
  4739.         2Ah Y aspect
  4740.         2Ch length of hypotenuse of aspect
  4741.         58h logical pixels per inch of width
  4742.         5Ah logical pixels per inch of height
  4743. Return:     AX = integer value of the desired item (see below)
  4744. Note:  This function returns the device-capability bits for the given display
  4745.  
  4746. Values for device classification:
  4747.  00h    vector plotter
  4748.  01h    raster display
  4749.  02h    raster printer
  4750.  03h    raster camera
  4751.  04h    character-stream, PLP
  4752.  05h    Metafile, VDM
  4753.  06h    display-file
  4754.  
  4755. Bitfields for curve capabilities:
  4756.  bit 0    circles
  4757.  bit 1    pie wedges
  4758.  bit 2    chord arcs
  4759.  bit 3    ellipses
  4760.  bit 4    wide lines
  4761.  bit 5    styled lines
  4762.  bit 6    wide styled lines
  4763.  bit 7    interiors
  4764.  
  4765. Bitfields for line capabilities:
  4766.  bit 1    polylines
  4767.  bit 2    markers
  4768.  bit 3    polymarkers
  4769.  bit 4    wide lines
  4770.  bit 5    styled lines
  4771.  bit 6    wide styled lines
  4772.  bit 7    interiors
  4773.  
  4774. Bitfields for polygon capabilities:
  4775.  bit 0    polygons
  4776.  bit 1    rectangles
  4777.  bit 2    trapezoids
  4778.  bit 3    scanlines
  4779.  bit 4    wide borders
  4780.  bit 5    styled borders
  4781.  bit 6    wide styled borders
  4782.  bit 7    interiors
  4783.  
  4784. Bitfields for text capabilities:
  4785.  bit 0    output precision character
  4786.  bit 1    output precision stroke
  4787.  bit 2    clippping precision stroke
  4788.  bit 3    90-degree character rotation
  4789.  bit 4    arbitrary character rotation
  4790.  bit 5    independent X and Y scaling
  4791.  bit 6    double-size
  4792.  bit 7    integer scaling
  4793.  bit 8    continuous scaling
  4794.  bit 9    bold
  4795.  bit 10 italic
  4796.  bit 11 underline
  4797.  bit 12 strikeout
  4798.  bit 13 raster fonts
  4799.  bit 14 vector fonts
  4800.  bit 15 reserved
  4801.  
  4802. Values for clipping capabilities:
  4803.  00h    none
  4804.  01h    clipping to rectangles
  4805.  
  4806. Bitfields for raster capabilities:
  4807.  bit 0    simple bitBLT
  4808.  bit 1    device requires banding support
  4809.  bit 2    device requires scaling support
  4810.  bit 3    supports >64K bitmap
  4811. ----------2F18-------------------------------
  4812. INT 2F U - MS-Manager
  4813.     AH = 18h
  4814.     ???
  4815. Return: ???
  4816. --------l-2F1900-----------------------------
  4817. INT 2F U - DOS 4.x only SHELLB.COM - INSTALLATION CHECK
  4818.     AX = 1900h
  4819. Return: AL = 00h  not installed
  4820.          FFh  installed
  4821. --------l-2F1901BL00-------------------------
  4822. INT 2F U - DOS 4.x only SHELLB.COM - SHELLC.EXE INTERFACE
  4823.     AX = 1901h
  4824.     BL = 00h if SHELLC transient
  4825.          01h if SHELLC resident
  4826.     DS:DX -> far call entry point for resident SHELLC.EXE
  4827. Return: ES:DI -> SHELLC.EXE workspace within SHELLB.COM
  4828. Note:    SHELLB.COM and SHELLC.EXE are parts of the DOS 4.x shell
  4829. --------l-2F1902-----------------------------
  4830. INT 2F U - DOS 4.x only SHELLB.COM - COMMAND.COM INTERFACE
  4831.     AX = 1902h
  4832.     ES:DI -> ASCIZ full filename of current batch file, with at least the
  4833.          final filename element uppercased
  4834.     DS:DX -> buffer for results
  4835. Return: AL = 00h  failed, either
  4836.           (a) final filename element quoted at ES:DI does not match
  4837.               identity of shell batch file quoted as parameter of most
  4838.               recent call of SHELLB command, or
  4839.           (b) no more Program Start Commands available.
  4840.     AL= FFh     success, then:
  4841.         memory at DS:[DX+1] onwards filled as:
  4842.         DX+1:    BYTE    count of bytes of PSC
  4843.         DX+2: N BYTEs    Program Start Command text
  4844.             BYTE    0Dh terminator
  4845. Explanation: COMMAND.COM executes the result of this call in preference to
  4846.     reading a command from a batch file. Thus the batch file does not
  4847.     advance in execution for so long as SHELLB provides PSCs from its
  4848.     workspace. The PSCs are planted in SHELLB workspace by SHELLC, the user
  4849.     menu interface. The final PSC of a sequence is finished with a
  4850.     GOTO COMMON, which causes a loop back in the batch file which called
  4851.     SHELLC so as to execute SHELLC again. The check on batch file name
  4852.     permits PSCs to CALL nested batch files while PSCs are still stacked
  4853.     up for subsequent execution.
  4854. --------l-2F1903-----------------------------
  4855. INT 2F U - DOS 4.x only SHELLB.COM - COMMAND.COM interface
  4856.     AX = 1903h
  4857.     ES:DI -> ASCIZ batch file name as for AX=1902h
  4858. Return: AL = FFh if quoted batch file name matches last SHELLB parameter
  4859.     AL = 00h if it does not
  4860. --------l-2F1904-----------------------------
  4861. INT 2F U - DOS 4.x only SHELLB.COM - SHELLB transient to TSR intrface
  4862.     AX = 1904h
  4863. Return: ES:DI -> name of current shell batch file:
  4864.         WORD    number of bytes of name following
  4865.         BYTEs    (8 max) uppercase name of shell batch file
  4866. --------V-2F1A00-----------------------------
  4867. INT 2F - DOS 4+ ANSI.SYS - INSTALLATION CHECK
  4868.     AX = 1A00h
  4869. Return: AL = FFh if installed
  4870. Notes:    AVATAR.SYS also responds to this call
  4871.     documented for DOS 5+, but undocumented for DOS 4.x
  4872. --------V-2F1A00BX414E-----------------------
  4873. INT 2F - ANSIPLUS.SYS - INSTALLATION CHECK
  4874.     AX = 1A00h
  4875.     BX = 414Eh ('AN')
  4876.     CX = 5349h ('SI')
  4877.     DX = 2B2Bh ('++')
  4878. Return: AL = FFh if installed
  4879.         CF clear
  4880.         ES:BX -> INT 29 entry point
  4881. Program: ANSIPLUS.SYS is a CON device driver by Kristofer Sweger which
  4882.       replaces the normal ANSI.SYS is a more powerful version with many
  4883.       additional features
  4884. Note:    ANSIPLUS also identifies itself as ANSI.SYS if BX,CX, or DX differ
  4885.       from the magic values above
  4886. --------V-2F1A00BX4156-----------------------
  4887. INT 2F - AVATAR.SYS - INSTALLATION CHECK
  4888.     AX = 1A00h
  4889.     BX = 4156h ('AV')
  4890.     CX = 4154h ('AT')
  4891.     DX = 4152h ('AR')
  4892. Return: AL = FFh if installed
  4893.         CF clear
  4894.         BX = AVATAR protocol level supported
  4895.         CX = driver type
  4896.         0000h AVATAR.SYS
  4897.         4456h DVAVATAR.COM inside DESQview window
  4898.         DX = 0016h
  4899. Program: AVATAR.SYS is a CON replacement by George Adam Stanislav which
  4900.       interprets AVATAR command codes in the same way that ANSI interprets
  4901.       ANSI command codes
  4902. Notes:    AVATAR also identifies itself as ANSI.SYS if BX, CX, or DX differ from
  4903.       the magic values
  4904. --------V-2F1A01-----------------------------
  4905. INT 2F U - DOS 4+ ANSI.SYS internal - GET/SET DISPLAY INFORMATION
  4906.     AX = 1A01h
  4907.     CL = function
  4908.         7Fh for GET
  4909.         5Fh for SET
  4910.     DS:DX -> parm block as for INT 21,AX=440Ch,CX=037Fh/035Fh respectively
  4911. Return: CF set on error
  4912.         AX = error code (many non-standard)
  4913.     CF clear if successful
  4914.         AX destroyed
  4915. Note:    presumably this is the DOS IOCTL interface to ANSI.SYS
  4916. SeeAlso: AX=1A02h,INT 21/AX=440Ch
  4917. --------V-2F1A02-----------------------------
  4918. INT 2F U - DOS 4+ ANSI.SYS internal - MISCELLANEOUS REQUESTS
  4919.     AX = 1A02h
  4920.     DS:DX -> parameter block (see below)
  4921. Note:    DOS 5+ chains to previous handler if AL > 02h on call
  4922. SeeAlso: AX=1A01h
  4923.  
  4924. Format of parameter block:
  4925. Offset    Size    Description
  4926.  00h    BYTE    subfunction
  4927.         00h set/reset interlock
  4928.         01h get /L flag
  4929.  01h    BYTE    interlock state
  4930.         00h=reset, 01h=set
  4931.           This interlock prevents some of the ANSI.SYS post-processing
  4932.           in its hook onto INT 10, AH=00h mode set
  4933.  02h    BYTE    (returned)
  4934.         00h if /L not in effect
  4935.         01h if /L in effect
  4936. --------V-2F1A21-----------------------------
  4937. INT 2F - AVATAR.SYS - SET DRIVER STATE
  4938.     AX = 1A21h (AL='!')
  4939.     DS:SI -> command string with one or more state characters
  4940.     CX = length of command string
  4941. Return: CF set on error (invalid subfunction)
  4942.     CF clear if successful
  4943. Note:    the characters in the state string are interpreted left to right, and
  4944.       need not be in any particular order
  4945. SeeAlso: AX=1A3Fh
  4946.  
  4947. Values for state characters:
  4948.  'a'    activate driver
  4949.  'd'    disable driver
  4950.  'f'    use fast screen output
  4951.  'g'    always convert gray keys (+ and -) to function keys
  4952.  'G'    never convert gray keys
  4953.  'l'    convert gray keys only when ScrollLock active
  4954.  's'    use slow screen output
  4955.  't'    Tandy 1000 keyboard (not yet implemented)
  4956. --------V-2F1A3C-----------------------------
  4957. INT 2F U - AVATAR.SYS v0.11 - ???
  4958.     AX = 1A3Ch
  4959.     ???
  4960. Return: CX = 0000h
  4961. --------V-2F1A3E-----------------------------
  4962. INT 2F U - AVATAR.SYS v0.11 - ???
  4963.     AX = 1A3Eh
  4964.     CL = ???
  4965.     CH = ???
  4966.     DL = ???
  4967.     DH = ???
  4968. Return: CL = ???
  4969.     CH = ???
  4970.     DL = ???
  4971.     DH = ???
  4972. --------V-2F1A3F-----------------------------
  4973. INT 2F - AVATAR.SYS - QUERY DRIVER STATE
  4974.     AX = 1A3Fh (AL='?')
  4975.     ES:DI -> buffer
  4976.     CX = length of buffer in bytes
  4977. Return: CF clear
  4978.     CX = actual size of returned info
  4979. Note:    the returned information consists of multiple letters whose meanings
  4980.       are described under AX=1A21h
  4981. SeeAlso: AX=1A21h
  4982. --------S-2F1A42BX4156-----------------------
  4983. INT 2F - AVATAR Serial Dispatcher - INSTALL IRQ3 HANDLER
  4984.     AX = 1A42h
  4985.     BX = 4156h ('AV')
  4986.     ES:DI -> FAR handler for serial port using IRQ3
  4987.     DS = data segment needed by handler
  4988. Return: AX = 1A42h if ASD not installed
  4989.        = 0000h if no more room
  4990.        else handle to use when uninstalling
  4991. Notes:    the handler need not save/restore registers or signal EOI to the
  4992.       interrupt controller
  4993.     the handler should return AX=0000h if the interrupt was meant for it,
  4994.       and either leave AX unchanged or return a non-zero value otherwise
  4995.     the most recently installed handler will be called first, continuing
  4996.       to earlier handlers until one returns AX=0000h
  4997. SeeAlso: AX=1A43h,AX=1A62h
  4998. --------S-2F1A43BX4156-----------------------
  4999. INT 2F - AVATAR Serial Dispatcher - INSTALL IRQ4 HANDLER
  5000.     AX = 1A43h
  5001.     BX = 4156h ('AV')
  5002.     ES:DI -> FAR handler for serial port using IRQ4
  5003.     DS = data segment needed by handler
  5004. Return: AX = 1A43h if ASD not installed
  5005.        = 0000h if no more room
  5006.        else handle to use when uninstalling
  5007. Notes:    (see AX=1A42h)
  5008. SeeAlso: AX=1A42h,AX=1A63h
  5009. --------V-2F1A44BX4156-----------------------
  5010. INT 2F - AVATAR.SYS v0.11+ - GET DATA SEGMENT
  5011.     AX = 1A44h
  5012.     BX = 4156h ('AV')
  5013. Return: AX = 0000h
  5014.     DS = data segment
  5015.     CX = size of data segment
  5016. Note:    AVATAR.SYS calls this function whenever it is invoked.    If each
  5017.       process under a multitasker hooks this function and provides a
  5018.       separate data segment, AVATAR.SYS becomes fully reentrant.
  5019. SeeAlso: AX=1A21h,AX=1A3Fh
  5020. --------V-2F1A52-----------------------------
  5021. INT 2F U - AVATAR.SYS v0.11 - GET ???
  5022.     AX = 1A52h
  5023.     CX = size of buffer
  5024.     ES:DI -> buffer
  5025. Return: ??? copied into user buffer
  5026. Note:    the maximum size of the data which may be copied is returned by
  5027.       AX=1A72h
  5028. SeeAlso: AX=1A72h
  5029. --------V-2F1A53-----------------------------
  5030. INT 2F U - AVATAR.SYS v0.11 - ???
  5031.     AX = 1A53h
  5032.     CL = ??? (00h-05h)
  5033.     ???
  5034. Return: ???
  5035. --------S-2F1A62BX4156-----------------------
  5036. INT 2F - AVATAR Serial Dispatcher - UNINSTALL IRQ3 HANDLER
  5037.     AX = 1A62h
  5038.     BX = 4156h ('AV')
  5039.     CX = handle for IRQ routine returned by AX=1A42h
  5040. SeeAlso: AX=1A42h,AX=1A63h
  5041. --------S-2F1A63BX4156-----------------------
  5042. INT 2F - AVATAR Serial Dispatcher - UNINSTALL IRQ4 HANDLER
  5043.     AX = 1A63h
  5044.     BX = 4156h ('AV')
  5045.     CX = handle for IRQ routine returned by AX=1A43h
  5046. SeeAlso: AX=1A43h,AX=1A62h
  5047. --------V-2F1A72-----------------------------
  5048. INT 2F U - AVATAR.SYS v0.11 - GET ??? SIZE
  5049.     AX = 1A72h
  5050. Return: CX = maximum size of ???
  5051. SeeAlso: AX=1A52h
  5052. --------V-2F1A7B-----------------------------
  5053. INT 2F U - AVATAR.SYS v0.11 - ???
  5054.     AX = 1A7Bh
  5055. Return: AX = 0000h
  5056.     CX = 0000h
  5057. --------V-2F1A7D-----------------------------
  5058. INT 2F U - AVATAR.SYS v0.11 - ???
  5059.     AX = 1A7Dh
  5060. Return: AX = ???
  5061. --------V-2F1AADDX0000-----------------------
  5062. INT 2F U - AVATAR.SYS v0.11 - ???
  5063.     AX = 1AADh
  5064.     DX = 0000h
  5065.     CX = subfunction (00h-0Ch)
  5066.     ???
  5067. Return: AX = 0000h if DX was nonzero
  5068.     ???
  5069. --------m-2F1B00-----------------------------
  5070. INT 2F U - DOS 4+ XMA2EMS.SYS extension internal - INSTALLATION CHECK
  5071.     AX = 1B00h
  5072. Return: AL = FFh if installed
  5073. Note:    XMA2EMS.SYS extension is only installed if DOS has page frames to hide.
  5074.     This extension hooks onto INT 67/AH=58h and returns from that call data
  5075.       which excludes the physical pages being used by DOS.
  5076. SeeAlso: AH=1Bh"FRAME INFO"
  5077. --------m-2F1B-------------------------------
  5078. INT 2F U - DOS 4+ XMA2EMS.SYS extension internal - GET HIDDEN FRAME INFORMATION
  5079.     AH = 1Bh
  5080.     AL <> 00h
  5081.     DI = hidden physical page number
  5082. Return: AX = FFFFh if failed (no such hidden page)
  5083.     AX = 0000h if OK, then
  5084.          ES = segment of page frame
  5085.          DI = physical page number
  5086. Notes:    this corresponds to the data edited out of the INT 67/AH=58h call
  5087.     FASTOPEN makes this call with AL = FFh
  5088. SeeAlso: AX=1B00h
  5089. --------V-2F2300-----------------------------
  5090. INT 2F - DR-DOS 5.0 GRAFTABL - INSTALLATION CHECK
  5091.     AX = 2300h
  5092. Return: AH = FFh
  5093. Note:    this installation check does not follow the usual format
  5094. SeeAlso: AH=23h
  5095. --------V-2F23-------------------------------
  5096. INT 2F - DR-DOS 5.0 GRAFTABL - GET GRAPHICS DATA
  5097.     AH = 23h
  5098.     AL nonzero
  5099. Return: AH = FFh
  5100.     ES:BX -> graphics data
  5101. SeeAlso: AX=2300h
  5102. --------T-2F2700-----------------------------
  5103. INT 2F - DR-DOS 6.0 TaskMAX - INSTALLATION CHECK
  5104.     AX = 2700h
  5105. Return: AL = 00h not installed
  5106.        = FFh installed
  5107. --------T-2F2701-----------------------------
  5108. INT 2F - DR-DOS 6.0 TaskMAX - GET STATUS
  5109.     AX = 2701h
  5110. Return: AX = maximum simultaneous tasks
  5111.     BX = index into TASK_IDS of current foreground task
  5112.     CX = currently-active tasks
  5113.     DX = version number (DR-DOS 6.0 = 0001h)
  5114.     ES:SI -> TASK_IDS
  5115.     ES:DI -> name table (array of 8-byte names, NUL-terminated if <8 chars)
  5116. Notes:    do not attempt to create a new task if CX == AX
  5117.     the task's index is its position on the task menu, while its ID is the
  5118.       position within the internal task name table
  5119. SeeAlso: AX=2714h,AX=2716h
  5120. --------T-2F2702-----------------------------
  5121. INT 2F - DR-DOS 6.0 TaskMAX - GET PER-TASK EMS LIMIT
  5122.     AX = 2702h
  5123. Return: DX = maximum pages INT 67/AH=42h will report available
  5124. Note:    TaskMAX does not limit EMS allocations other than by limiting the
  5125.       amount which is reported as being available at a given time
  5126. SeeAlso: AX=2703h,INT 67/AH=42h
  5127. --------T-2F2703-----------------------------
  5128. INT 2F - DR-DOS 6.0 TaskMAX - SET PER-TASK EMS LIMIT
  5129.     AX = 2703h
  5130.     DX = maximum pages INT 67/AH=42h should report available
  5131. Return: DX = new maximum for reporting
  5132. SeeAlso: AX=2702h,INT 67/AH=42h
  5133. --------T-2F2704-----------------------------
  5134. INT 2F - DR-DOS 6.0 TaskMAX - REGISTER/UNREGISTER TASK MANAGER
  5135.     AX = 2704h
  5136.     DL = subfunction
  5137.         00h unregister task manager
  5138.         01h register task manager
  5139. Return: DL = status
  5140.         00h registered
  5141.         01h unregistered
  5142. Notes:    a task manager replaces TaskMAX's menu system with its own user
  5143.       interface; while one is registered, the TaskMAX hotkeys and
  5144.       Ctrl-Alt-Del invoke the manager rather than the built-in menu system
  5145.     unregister the task manager before terminating it
  5146. SeeAlso: AX=2705h
  5147. Index:    hotkeys;TaskMAX
  5148. --------T-2F2705-----------------------------
  5149. INT 2F - DR-DOS 6.0 TaskMAX - ENABLE/DISABLE DIRECT SWITCHING
  5150.     AX = 2705h
  5151.     DL = subfunction
  5152.         00h disable keystrokes for switching to next/prev/specified task
  5153.         01h enable
  5154. Return: nothing
  5155. Note:    should only be called by a registered task manager (see AX=2704h)
  5156. SeeAlso: AX=2704h,AX=2706h
  5157. --------T-2F2706-----------------------------
  5158. INT 2F - DR-DOS 6.0 TaskMAX - SWITCH TO SPECIFIED TASK
  5159.     AX = 2706h
  5160.     DX = task index (see AX=2701h) of task to be activated
  5161. Return: DX = task index of previously-active task
  5162. SeeAlso: AX=2705h,AX=2707h,AX=2715h
  5163. --------T-2F2707-----------------------------
  5164. INT 2F - DR-DOS 6.0 TaskMAX - CREATE NEW TASK
  5165.     AX = 2707h
  5166.     DS:DX -> ASCIZ pathname of executable
  5167.     ES:BX -> parameter block (see below)
  5168.     CX = number of ticks before automatic return to task manager
  5169.         (0000h = run until termination or explicitly switched)
  5170. Return: DX = new task's task index (FFFFh if task terminated)
  5171. SeeAlso: AX=2706h,AX=2708h
  5172.  
  5173. Format of parameter block:
  5174. Offset    Size    Description
  5175.  00h    WORD    reserved, should be 0000h
  5176.  02h    DWORD    pointer to command tail to be copied into child's PSP
  5177.  06h    DWORD    pointer to first FCB to be copied into child's PSP
  5178.  0Ah    DWORD    pointer to second FCB to be copied into child's PSP
  5179. --------T-2F2708-----------------------------
  5180. INT 2F - DR-DOS 6.0 TaskMAX - DELETE TASK
  5181.     AX = 2708h
  5182.     DX = task index
  5183. Return: DX = FFFFh (task deleted)
  5184. Notes:    this call should only be used for abnormal task termination, after
  5185.       first checking for open files with AX=270Ch; should not be used
  5186.       with programs that allocate EMS or XMS memory
  5187.     switches to specified task first
  5188. SeeAlso: AX=2707h
  5189. --------T-2F2709-----------------------------
  5190. INT 2F - DR-DOS 6.0 TaskMAX - NAME TASK
  5191.     AX = 2709h
  5192.     DX = task index
  5193.     DS:SI -> 8-byte name (8 NULs = remove name)
  5194. Return: AL = task flags
  5195.         00h ID unused or task terminated
  5196.         01h ID in use, task name table entry valid
  5197.         81h ID in use, task name fixed
  5198.     BX = task ID
  5199.     ES:DI -> name in task name table (see AX=2701h)
  5200. Note:    the task retains the given name until it terminates or the name is
  5201.       removed by specifying a name of 8 NULs.
  5202. SeeAlso: AX=2701h,AX=2707h
  5203. --------T-2F270A-----------------------------
  5204. INT 2F - DR-DOS 6.0 TaskMAX - CONVERT TASK INDEX TO TASK ID
  5205.     AX = 270Ah
  5206.     DX = task index
  5207. Return: DX = task ID (FFFFh if index invalid)
  5208. Note:    task IDs stay constant, while indexes can change when other tasks are
  5209.       deleted
  5210. SeeAlso: AX=2701h,AX=270Bh
  5211. --------T-2F270B-----------------------------
  5212. INT 2F - DR-DOS 6.0 TaskMAX - CONVERT TASK ID TO TASK INDEX
  5213.     AX = 270Bh
  5214.     DX = task ID
  5215. Return: DX = task index (FFFFh if task not active)
  5216. SeeAlso: AX=270Ah
  5217. --------T-2F270C-----------------------------
  5218. INT 2F - DR-DOS 6.0 TaskMAX - CHECK OPEN FILES
  5219.     AX = 270Ch
  5220.     DX = task index
  5221. Return: AX = number of files currently open for specified task
  5222. SeeAlso: AX=2708h
  5223. --------T-2F270D-----------------------------
  5224. INT 2F - DR-DOS 6.0 TaskMAX - CHECK IF TASK RUNNING PRIMARY COMMAND INTERPRETER
  5225.     AX = 270Dh
  5226.     DX = task index
  5227. Return: DX = status
  5228.         0000h if primary command interpreter (COMMAND.COM, etc.) running
  5229.         0001h if not in root shell for task
  5230. Note:    TaskMAX will return 0001h if the specified task has spawned another
  5231.       command interpreter with AX=2707h
  5232. SeeAlso: AX=2707h,AX=270Ch
  5233. --------T-2F270E-----------------------------
  5234. INT 2F - DR-DOS 6.0 TaskMAX - GET/SET TEXT PASTE LEAD-IN
  5235.     AX = 270Eh
  5236.     CX = length of string (max 15 keystrokes, 0000h to get current string)
  5237.     DS:SI -> pasting lead-in string (character/scan-code pairs)
  5238. Return: ES:DI -> current lead-in string
  5239. Note:    the specified sequence of keystrokes is sent to the application before
  5240.       every line of a text-mode spreadsheet paste
  5241. SeeAlso: AX=270Fh,AX=2710h,AX=2713h
  5242. --------T-2F270F-----------------------------
  5243. INT 2F - DR-DOS 6.0 TaskMAX - GET/SET NUMERIC PASTE LEAD-IN
  5244.     AX = 270Fh
  5245.     CX = length of string (max 15 keystrokes, 0000h to get current string)
  5246.     DS:SI -> pasting lead-in string (character/scan-code pairs)
  5247. Return: ES:DI -> current lead-in string
  5248. Note:    the specified sequence of keystrokes is sent to the application before
  5249.       every number in a numeric-mode spreadsheet paste
  5250. SeeAlso: AX=270Eh,AX=2710h,AX=2711h,AX=2713h
  5251. --------T-2F2710-----------------------------
  5252. INT 2F - DR-DOS 6.0 TaskMAX - GET/SET PASTE LINE TERMINATOR STRING
  5253.     AX = 2710h
  5254.     CX = length of string (max 15 keystrokes, 0000h to get current string)
  5255.     DS:SI -> pasting terminator string (character/scan-code pairs)
  5256. Return: ES:DI -> current terminator string
  5257. Note:    the specified sequence of keystrokes is sent to the application after
  5258.       every line of a spreadsheet paste operation
  5259. SeeAlso: AX=270Eh,AX=270Fh,AX=2713h
  5260. --------T-2F2711-----------------------------
  5261. INT 2F - DR-DOS 6.0 TaskMAX - GET/SET NUMERIC PASTE DECIMAL POINT
  5262.     AX = 2711h
  5263.     DX = ASCII code for separator (FFFFh to get current)
  5264. Return: DL = current separator character
  5265. SeeAlso: AX=270Fh
  5266. --------T-2F2712-----------------------------
  5267. INT 2F - DR-DOS 6.0 TaskMAX - INITIATE EXPORTING TASK DATA
  5268.     AX = 2712h
  5269.     DX = task index
  5270. --------T-2F2713-----------------------------
  5271. INT 2F - DR-DOS 6.0 TaskMAX - INITIATE PASTE OPERATION
  5272.     AX = 2713h
  5273.     DX = task index
  5274.     CX = paste mode
  5275.         0000h alphanumeric
  5276.         0001h numeric
  5277.         0002h text
  5278. SeeAlso: AX=270Eh,AX=270Fh,AX=2710h,AX=2711h
  5279. --------T-2F2714-----------------------------
  5280. INT 2F - DR-DOS 6.0 TaskMAX - GET SWAP SPACE INFO
  5281.     AX = 2714h
  5282. Return: CX = total KB of swap space
  5283.     DX = available KB of swap space
  5284. SeeAlso: AX=2701h
  5285. --------T-2F2715-----------------------------
  5286. INT 2F - DR-DOS 6.0 TaskMAX - SWITCH TO TASK MANAGER
  5287.     AX = 2715h
  5288. Return: only after calling task is again selected
  5289. SeeAlso: AX=2706h
  5290. --------T-2F2716-----------------------------
  5291. INT 2F - DR-DOS 6.0 TaskMAX - GET PASTE BUFFER STATUS
  5292.     AX = 2716h
  5293. Return: AX = 0000h if AX=2716h,AX=2717h,AX=2718h supported
  5294.         CX = bytes in paste buffer
  5295.         DX = current generation number (updated after every copy operation)
  5296. SeeAlso: AX=2701h,AX=2713h,AX=2714h,AX=2717h,AX=2718h
  5297. --------T-2F2717-----------------------------
  5298. INT 2F - DR-DOS 6.0 TaskMAX - PASTE DATA DIRECTLY TO APPLICATION BUFFER
  5299.     AX = 2717h
  5300.     CX = bytes in destination buffer
  5301.     ES:DI -> destination buffer
  5302. Return: AX = 0000h if function supported
  5303.         CX = bytes actually copied (FFFFh if buffer too small)
  5304.         DX = current generation number for paste buffer
  5305. Note:    the destination buffer may be too small if another task adds more data
  5306.       to the paste buffer after the AX=2716h call but before this call
  5307. SeeAlso: AX=2713h,AX=2716h,AX=2718h
  5308. --------T-2F2718-----------------------------
  5309. INT 2F - DR-DOS 6.0 TaskMAX - COPY DATA DIRECTLY INTO PASTE BUFFER
  5310.     AX = 2718h
  5311.     CX = bytes in source buffer
  5312.     DS:SI -> source buffer (plain ASCII, lines terminated with CR LF)
  5313. Return: AX = 0000h if function supported
  5314.         CX = bytes actually copied
  5315.         DX = current generation number for paste buffer
  5316. SeeAlso: AX=2712h,AX=2716h,AX=2717h
  5317. --------F-2F2A-------------------------------
  5318. INT 2F - Gammafax DOS Dispatcher INTERFACE
  5319.     AH = 2Ah
  5320. Note:    details not available at this time
  5321. SeeAlso: AX=8000h"FaxBIOS",AX=C000h"MTEZ",AX=CB00h,AX=CBDDh,INT 66"BitFax"
  5322. --------t-2F3900-----------------------------
  5323. INT 2F - Kingswood TSR INTERFACE - COMPATIBILITY MODE
  5324.     AX = 3900h
  5325. Return: AL = status
  5326.         00h not installed
  5327.         FFh one or more TSRs using this interface is installed
  5328.         DX may be destroyed
  5329. Note:    this function is provided to that the multiplex number will appear used
  5330.       to other programs
  5331. SeeAlso: AH=39h/BL=00h
  5332. --------t-2F39--BL00-------------------------
  5333. INT 2F - Kingswood TSR INTERFACE - INSTALLATION CHECK
  5334.     AH = 39h
  5335.     BL = 00h
  5336.     AL = TSR ID number (01h-FFh, currently only 01h-1Bh used) (see below)
  5337. Return: AL = status
  5338.         00h not installed
  5339.         FFh installed
  5340.         DX = segment address of resident module
  5341. Note:    All of Kingswood Software's TSRs use this interface.  Usually the
  5342.       resident module is installed by allocating a block of upper memory,
  5343.       setting its owner ID to 000Ah (used by DOS), and filling the MCB name
  5344.       field with the TSR's name.
  5345. SeeAlso: AX=3900h,AH=39h/BL=01h
  5346.  
  5347. Values for TSR ID number:
  5348.  01h    TSR Windows
  5349.  02h    NOBUSY
  5350.  03h    CD STACK
  5351.  04h    DISK WATCH
  5352.  05h    PUSHBP
  5353.  06h    ALIAS
  5354.  07h    KEYMACRO
  5355.  08h    SLOWDOWN
  5356.  09h    ANSIGRAB
  5357.  0Ah    TEE
  5358.  0Bh    FASTMOUS
  5359.  0Ch    EXTWILD
  5360.  0Dh    BREAKOUT
  5361.  0Eh    STOPDISK
  5362.  0Fh    MEMINIT
  5363.  10h    JANUSEXT
  5364.  11h    CAPS
  5365.  12h    ANSI
  5366.  13h    TRAPPER
  5367.  14h    EATMEM
  5368.  15h    WPJOKE
  5369.  16h    SHOWDOS
  5370.  17h    LOGINTS
  5371.  18h    BLANKVGA
  5372.  19h    SWAPEXEC
  5373.  1Ah    SHELL
  5374.  1Bh    TSRGAMES
  5375.  
  5376. Format of TSR modules:
  5377. Offset    Size    Description
  5378.  00h  4 BYTEs    signature "FTSR"
  5379.  04h    WORD    segment address of this module (used to check validity)
  5380.  06h    WORD    number of words to skip (usually 0000h if no PSP present)
  5381.  08h  N WORDs    module-defined data that must be at a fixed segment offset
  5382.         (usually only a PSP if file access is required)
  5383.      5N BYTEs    interrupt list (see below)
  5384.     BYTE    FFh terminator
  5385.  
  5386. Format of interrupt list entry:
  5387. Offset    Size    Description
  5388.  00h    BYTE    interrupt number (00h-FEh)
  5389.  01h    WORD    offset within segment of DWORD pointer to previous interrupt
  5390.  03h    WORD    offset within segment of begin of interrupt handler code
  5391. --------t-2F39--BL01-------------------------
  5392. INT 2F - Kingswood TSR INTERFACE - REMOVAL CHECK
  5393.     AH = 39h
  5394.     BL = 01h
  5395.     AL = TSR ID number (01h-FFh) (see AH=39h/BL=00h)
  5396. Return: AL = status
  5397.         00h not ready to be removed
  5398.         FFh resident module may be removed by deassigning the interrupts
  5399.         hooked by the TSR and deallocating the TSR's memory block
  5400.     AH,BX,CX,DX,ES may be destroyed
  5401. SeeAlso: AX=3900h,AH=39h/BL=00h
  5402. --------t-2F39-------------------------------
  5403. INT 2F - Kingswood TSR INTERFACE - APPLICATION-SPECIFIC FUNCTION CALLS
  5404.     AH = 39h
  5405.     BL = function number (02h-FFh)
  5406.     AL = TSR ID number (01h-FFh)
  5407.     CX,DX,SI,DI,DS,ES may contain parameters
  5408.     BH reserved for use by the function dispatcher
  5409. Return: as appropriate for the called function
  5410. SeeAlso: AX=3900h,AH=39h/BL=00h,AX=3901h/BL=02h
  5411. --------r-2F3901BL02-------------------------
  5412. INT 2F - Kingswood TSR Windows - OPEN WINDOW
  5413.     AX = 3901h
  5414.     BL = 02h
  5415. Return: AX = error code (0000h if successful)
  5416.     SI,DI,DS,ES preserved
  5417. Notes:    opens the next TSR window on top of any others.     Only three
  5418.       TSR windows can be opened at any one time.  The three windows
  5419.       are all 40x11 characters, partly overlapping.
  5420. SeeAlso: AH=39h/BL=00h,AX=3901h/BL=03h,AX=3901h/BL=05h,AX=3901h/BL=06h
  5421. --------r-2F3901BL03-------------------------
  5422. INT 2F - Kingswood TSR Windows - HIDE WINDOWS
  5423.     AX = 3901h
  5424.     BL = 03h
  5425. Return: AX = error code (0000h if successful)
  5426.     SI,DI,DS,ES preserved
  5427. Notes:    Hide any visible TSR windows from view.
  5428. SeeAlso: AH=39h/BL=00h,AX=3901h/BL=02h,AX=3901h/BL=05h
  5429. --------r-2F3901BL04-------------------------
  5430. INT 2F - Kingswood TSR Windows - SHOW WINDOWS
  5431.     AX = 3901h
  5432.     BL = 04h
  5433. Return: AX = error code (0000h if successful)
  5434.     SI,DI,DS,ES preserved
  5435. Notes:    Re-display all TSR windows after a HIDE WINDOWS call.
  5436. SeeAlso: AH=39h/BL=00h,AX=3901h/BL=02h,AX=3901h/BL=03h
  5437. --------r-2F3901BL05-------------------------
  5438. INT 2F - Kingswood TSR Windows - CLOSE WINDOW
  5439.     AX = 3901h
  5440.     BL = 05h
  5441. Return: AX = error code (0000h if successful)
  5442.     SI,DI,DS,ES preserved
  5443. Notes:    Close the last opened TSR window.
  5444. SeeAlso: AH=39h/BL=00h,AX=3901h/BL=02h
  5445. --------r-2F3901BL06-------------------------
  5446. INT 2F - Kingswood TSR Windows - SET WINDOW TITLE
  5447.     AX = 3901h
  5448.     BL = 06h
  5449.     DS:SI -> title string
  5450. Return: AX = error code (0000h if successful)
  5451.     SI,DI,DS,ES preserved
  5452. SeeAlso: AH=39h/BL=00h,AX=3901h/BL=02h
  5453. --------r-2F3901BL07-------------------------
  5454. INT 2F - Kingswood TSR Windows - POSITION CURSOR
  5455.     AX = 3901h
  5456.     BL = 07h
  5457.     CH = Y coordinate (0-10)
  5458.     CL = X coordinate (0-39)
  5459. Return: AX = error code (0000h if successful)
  5460.     SI,DI,DS,ES preserved
  5461. Note:    the hardware cursor is always disabled when a TSR window is opened;
  5462.       this call only sets a text position
  5463. SeeAlso: AH=39h/BL=00h,AX=3901h/BL=08h,AX=3901h/BL=09h
  5464. --------r-2F3901BL08-------------------------
  5465. INT 2F - Kingswood TSR Windows - DISPLAY STRING
  5466.     AX = 3901h
  5467.     BL = 08h
  5468.     DS:SI -> string
  5469. Return: AX = error code (0000h if successful)
  5470.     SI,DI,DS,ES preserved
  5471. Notes:    The text is not clipped.
  5472.     This routine understands Tab, NewLine and Carriage Return
  5473. SeeAlso: AH=39h/BL=00h,AX=3901h/BL=07h
  5474. --------r-2F3901BL09-------------------------
  5475. INT 2F - Kingswood TSR Windows - SCROLL WINDOW
  5476.     AX = 3901h
  5477.     BL = 09h
  5478.     CL = scroll direction: 01h up, FFh down, 00h clear window
  5479. Return: AX = error code (0000h if successful)
  5480.     SI,DI,DS,ES preserved
  5481. SeeAlso: AH=39h/BL=00h,AX=3901h/BL=07h
  5482. --------r-2F3901BL0A-------------------------
  5483. INT 2F - Kingswood TSR Windows - SOUND BEEPER
  5484.     AX = 3901h
  5485.     BL = 0Ah
  5486.     DX = sound divisor, or 0 for silence.
  5487.          (divide 1843200 by required frequency to get value for DX)
  5488.     CL = sound length in 18.2 Hz clock ticks
  5489. Return: AX = error code (0000h if successful)
  5490.     SI,DI,DS,ES preserved
  5491. SeeAlso: AH=39h/BL=00h
  5492. --------r-2F3901BL0B-------------------------
  5493. INT 2F - Kingswood TSR Windows - ADD OR REMOVE USER
  5494.     AX = 3901h
  5495.     BL = 0Bh
  5496.     CL = number of users increment: +1 if adding a new user
  5497.                     -1 if removing a user
  5498. Return: AX = error code (0000h if successful)
  5499.     SI,DI,DS,ES preserved
  5500. Note:    the TSR windows resident module may only be removed when the internal
  5501.       user count is zero
  5502. SeeAlso: AH=39h/BL=00h,AX=3901h/BL=02h
  5503. --------V-2F3912BL03-------------------------
  5504. INT 2F - Kingswood ANSI display driver - SET COMPATIBILITY MODE
  5505.     AX = 3912h
  5506.     BL = 03h
  5507.     CL = new mode (00h fast, FFh BIOS)
  5508. Return: AL = old compatibility mode
  5509.     SI,DI,DS,ES preserved
  5510. SeeAlso: AX=3900h,AX=3912h/BL=04h
  5511. --------V-2F3912BL04-------------------------
  5512. INT 2F - Kingswood ANSI display driver - SET FLAGS
  5513.     AX = 3912h
  5514.     BL = 04h
  5515.     CL = new flags
  5516.         bit 0: do not wrap at end of line
  5517.         bit 1: wait for beeps to end before displaying next character
  5518.         bit 2: do not use graphics cursor
  5519. Return: AL = old flags
  5520.     SI,DI,DS,ES preserved
  5521. SeeAlso: AX=3900h,AX=3912h/BL=03h
  5522. --------W-2F4000-----------------------------
  5523. INT 2F - Windows 3.x (OS/2 2.x???) - GET VIRTUAL DEVICE DRIVER (VDD) CAPABLTIES
  5524.     AX = 4000h
  5525. Return: AL = 01h does not virtualize video access
  5526.          02h virtualizes the video when in text mode
  5527.          03h virtualizes the video when in text mode or single plane
  5528.          graphics modes
  5529.          04h virtualizes the video when in text mode, single plane
  5530.          graphics modes, and VGA multiplane modes
  5531.          FFh virtualizes the video fully
  5532. Note:    this function is used by display drivers to find out what capabilities
  5533.       exist for the VDD driver and also trigger the VDD driver to call
  5534.       functions 4005h and 4006h.  This function also gives the Video Driver
  5535.       hardware access to the video registers.
  5536. --------O-2F4001-----------------------------
  5537. INT 2F C - OS/2 compatibility box - SWITCHING DOS TO BACKGROUND
  5538.     AX = 4001h
  5539. Note:    called by OS/2 when the DOS box is about to be placed in the background
  5540.       and the video driver should save any necessary state
  5541. SeeAlso: AX=4002h,AX=4005h
  5542. --------O-2F4002-----------------------------
  5543. INT 2F C - OS/2 compatibility box - SWITCHING DOS TO FOREGROUND
  5544.     AX = 4002h
  5545. Note:    called by OS/2 when the DOS box is about to be placed in the foreground
  5546.       and the video driver should restore the previously-saved state
  5547. SeeAlso: AX=4001h,AX=4006h
  5548. --------W-2F4003-----------------------------
  5549. INT 2F - Windows 3.x - ENTERING VIDEO DRIVER CRITICAL SECTION
  5550.     AX = 4003h
  5551. Note:    This critical section must be exited within 1 second.
  5552. SeeAlso: AX=4004h
  5553. --------W-2F4004-----------------------------
  5554. INT 2F - Windows 3.x - EXITING VIDEO DRIVER CRITICAL SECTION
  5555.     AX = 4004h
  5556. SeeAlso: AX=4003h
  5557. --------W-2F4005-----------------------------
  5558. INT 2F C - Windows 3.x - SWITCHING DOS TO BACKGROUND
  5559.     AX = 4005h
  5560. Note:    called by Windows when the DOS box is about to be placed in the
  5561.       background and the video driver should save any necessary state
  5562.       information
  5563. SeeAlso: AX=4001h,AX=4006h
  5564. --------W-2F4006-----------------------------
  5565. INT 2F C - Windows 3.x - SWITCHING DOS TO FOREGROUND
  5566.     AX = 4006h
  5567. Note:    called by Windows when the DOS box is about to be placed in the
  5568.       foreground and the video driver should restore any necessary state
  5569.       information
  5570. SeeAlso: AX=4002h,AX=4005h
  5571. --------W-2F4007-----------------------------
  5572. INT 2F - Windows 3.x - ENABLE VDD TRAPPING OF VIDEO REGISTERS
  5573.     AX = 4007h
  5574. Note:    used by Windows Standard mode
  5575. --------E-2F4040-----------------------------
  5576. INT 2F - PharLap 286|DOS-Extender Lite v2.5 - ???
  5577.     AX = 4040h
  5578. Return: BX:CX -> ???
  5579. --------N-2F4100-----------------------------
  5580. INT 2F - DOS Enhanced LAN Manager 2.0+ MINIPOP/NETPOPUP - INSTALLATION CHECK
  5581.     AX = 4100h
  5582. Return: CF clear if successful
  5583.         AL = FFh
  5584.     CF set on error
  5585.         AX = ???
  5586. Notes:    MINIPOP and NETPOPUP provide a network message popup service
  5587.     LAN Manager enhanced mode adds features beyond the standard redirector
  5588.       file/printer services
  5589. SeeAlso: AX=118Ah,AX=4103h,AX=4104h,AH=42h,AH=4Bh
  5590. --------N-2F4103-----------------------------
  5591. INT 2F - DOS Enhanced LAN Manager 2.0+ MINIPOP/NETPOPUP - ???
  5592.     AX = 4103h
  5593. Return: ???
  5594. SeeAlso: AX=4100h,AX=4104h
  5595. --------N-2F4104-----------------------------
  5596. INT 2F - DOS Enhanced LAN Manager 2.0+ MINIPOP/NETPOPUP - ???
  5597.     AX = 4104h
  5598. Return: ???
  5599. SeeAlso: AX=4100h,AX=4103h
  5600. --------N-2F42-------------------------------
  5601. INT 2F - LAN Manager 2.0 DOS Enhanced MSRV.EXE - MESSENGER SERVICE
  5602.     AH = 42h
  5603.     ???
  5604. Return: ???
  5605. Note:    LAN Manager enhanced mode adds features beyond the standard redirector
  5606.       file/printer services
  5607. SeeAlso: AX=118Ah,AX=4100h,AH=4Bh
  5608. --------m-2F4300-----------------------------
  5609. INT 2F - EXTENDED MEMORY SPECIFICATION (XMS) v2+ - INSTALLATION CHECK
  5610.     AX = 4300h
  5611. Return: AL = 80h XMS driver installed
  5612.     AL <> 80h no driver
  5613. Notes:    XMS gives access to extended memory and noncontiguous/nonEMS memory
  5614.       above 640K
  5615.     this installation check DOES NOT follow the format used by other
  5616.       software
  5617. SeeAlso: AX=4310h
  5618. Index:    installation check;XMS version 2+
  5619. --------m-2F4308-----------------------------
  5620. INT 2F U - HIMEM.SYS v2.77+ - GET A20 HANDLER NUMBER
  5621.     AX = 4308h
  5622. Return: AL = 43h if supported
  5623.         BL = A20 handler number (value of /MACHINE:nn switch)
  5624.         BH = AT A20 switch time (00h medium, 01h fast, 02h slow)
  5625. SeeAlso: AX=4309h,AX=4330h
  5626. --------m-2F4309-----------------------------
  5627. INT 2F U - HIMEM.SYS v3.09+ - GET XMS HANDLE TABLE
  5628.     AX = 4309h
  5629. Return: AL = 43h if function supported
  5630.         ES:BX -> XMS handle table (see below)
  5631. Note:    HIMEM.SYS v3.09 is part of MS-DOS 6.0.
  5632. SeeAlso: AX=4308h
  5633.  
  5634. Format of XMS handle table:
  5635. Offset    Size    Description
  5636.  00h    BYTE    ??? (01h in HIMEM.SYS v3.09)
  5637.  01h    BYTE    size of one handle??? (0Ah in HIMEM.SYS v3.09)
  5638.  02h    WORD    value of /numhandles= parameter (default = 20h)
  5639.  04h    DWORD    pointer to XMS handle array (see below)
  5640.  
  5641. Format of XMS handle [array]:
  5642. Offset    Size    Description
  5643.  00h    BYTE    flag 01h=free, 02h=used, 04h=unused
  5644.  01h    BYTE    lock count (00h=unlocked)
  5645.  02h    DWORD    address of XMS block in KB (shift left by 10 for abs. address)
  5646.  06h    DWORD    size of XMS block in KB
  5647. --------m-2F4310-----------------------------
  5648. INT 2F - EXTENDED MEMORY SPECIFICATION (XMS) v2+ - GET DRIVER ADDRESS
  5649.     AX = 4310h
  5650. Return: ES:BX -> driver entry point
  5651. Note:    HIMEM.SYS v2.77 chains to previous handler if AH is not 00h or 10h
  5652. SeeAlso: AX=4300h
  5653.  
  5654. Perform a FAR call to the driver entry point with AH set to the function code
  5655.     AH    function
  5656.     00h  Get XMS version number
  5657.          Return: AX = XMS version (in BCD, AH=major, AL=minor)
  5658.              BX = internal revision number
  5659.              DX = 0001h if HMA (1M to 1M + 64K) exists
  5660.               0000h if HMA does not exist
  5661.     01h  Request High Memory Area (1M to 1M + 64K)
  5662.          DX = memory in bytes (for TSR or device drivers)
  5663.           FFFFh if application program
  5664.          Return: AX = 0001h success
  5665.             = 0000h failure
  5666.                BL = error code (80h,81h,90h,91h,92h) (see below)
  5667.     02h  Release High Memory Area
  5668.          Return: AX = 0001h success
  5669.             = 0000h failure
  5670.                BL = error code (80h,81h,90h,93h) (see below)
  5671.     03h  Global enable A20, for using the HMA
  5672.          Return: AX = 0001h success
  5673.             = 0000h failure
  5674.                BL = error code (80h,81h,82h) (see below)
  5675.     04h  Global disable A20
  5676.          Return: AX = 0001h success
  5677.             = 0000h failure
  5678.                BL = error code (80h,81h,82h,94h) (see below)
  5679.     05h  Local enable A20, for direct access to extended memory
  5680.          Return: AX = 0001h success
  5681.             = 0000h failure
  5682.                BL = error code (80h,81h,82h) (see below)
  5683.     06h  Local disable A20
  5684.          Return: AX = 0001h success
  5685.             = 0000h failure
  5686.                BL = error code (80h,81h,82h,94h) (see below)
  5687.     07h  Query A20 state
  5688.          Return: AX = 0001h enabled
  5689.             = 0000h disabled
  5690.              BL = error code (00h,80h,81h) (see below)
  5691.     08h  Query free extended memory, not counting HMA
  5692.          BL = 00h (some implementations leave BL unchanged on success)
  5693.          Return: AX = size of largest extended memory block in KB
  5694.              DX = total extended memory in KB
  5695.              BL = error code (00h,80h,81h,A0h) (see below)
  5696.     09h  Allocate extended memory block
  5697.          DX = Kbytes needed
  5698.          Return: AX = 0001h success
  5699.                DX = handle for memory block
  5700.             = 0000h failure
  5701.                BL = error code (80h,81h,A0h) (see below)
  5702.     0Ah  Free extended memory block
  5703.          DX = handle of block to free
  5704.          Return: AX = 0001h success
  5705.             = 0000h failure
  5706.                BL = error code (80h,81h,A2h,ABh) (see below)
  5707.     0Bh  Move extended memory block
  5708.          DS:SI -> EMM structure (see below)
  5709.          Note: if either handle is 0000h, the corresponding offset is
  5710.            considered to be an absolute segment:offset address in
  5711.            directly addressable memory
  5712.          Return: AX = 0001h success
  5713.             = 0000h failure
  5714.                BL = error code (80h-82h,A3h-A9h) (see below)
  5715.     0Ch  Lock extended memory block
  5716.          DX = handle of block to lock
  5717.          Return: AX = 0001h success
  5718.                DX:BX = 32-bit linear address of locked block
  5719.             = 0000h failure
  5720.                BL = error code (80h,81h,A2h,ACh,ADh) (see below)
  5721.          Note: MS Windows 3.x rejects this function for handles allocated
  5722.             after Windows started
  5723.     0Dh  Unlock extended memory block
  5724.          DX = handle of block to unlock
  5725.          Return: AX = 0001h success
  5726.             = 0000h failure
  5727.                BL = error code (80h,81h,A2h,AAh) (see below)
  5728.     0Eh  Get handle information
  5729.          DX = handle for which to get info
  5730.          Return: AX = 0001h success
  5731.                BH = block's lock count
  5732.                BL = number of free handles left
  5733.                DX = block size in KB
  5734.             = 0000h failure
  5735.                BL = error code (80h,81h,A2h) (see below)
  5736.          BUG: MS Windows 3.10 acts as though unallocated handles are in use
  5737.          Note: MS Windows 3.00 has problems with this call
  5738.     0Fh  Reallocate extended memory block
  5739.          DX = handle of block
  5740.          BX = new size of block in KB
  5741.          Return: AX = 0001h success
  5742.             = 0000h failure
  5743.                BL = error code (80h,81h,A0h-A2h,ABh) (see below)
  5744.     10h  Request upper memory block (nonEMS memory above 640K)
  5745.          DX = size of block in paragraphs
  5746.          Return: AX = 0001h success
  5747.                BX = segment address of UMB
  5748.                DX = actual size of block
  5749.             = 0000h failure
  5750.                BL = error code (80h,B0h,B1h) (see below)
  5751.                DX = largest available block
  5752.     11h  Release upper memory block
  5753.          DX = segment address of UMB to release
  5754.          Return: AX = 0001h success
  5755.             = 0000h failure
  5756.                BL = error code (80h,B2h) (see below)
  5757.     12h  (XMS v3.0) Reallocate upper memory block
  5758.          DX = segment address of UMB to resize
  5759.          BX = new size of block in paragraphs
  5760.          Return: AX = 0001h success
  5761.             = 0000h failure
  5762.                BL = error code (80h,B0h,B2h) (see below)
  5763.                DX = maximum available size (RM386)
  5764.     34h  (QEMM 5.11 only, undocumented) ???
  5765.     44h  (QEMM 5.11 only, undocumented) ???
  5766.     80h  (Netroom RM386 v6.00) Reallocate upper memory block
  5767.          this function is identical to function 12h
  5768.     81h  (Netroom RM386 v6.00) re-enable HMA allocation
  5769.          Return: AX = 0001h (success)
  5770.     82h  (Netroom RM386 v6.00) Cloaking API
  5771.          DX = XMS handle of block containing protected-mode code
  5772.          CL = code size (00h 16-bit, else 32-bit)
  5773.          ESI, EDI = parameters to pass to protected-mode code
  5774.          Return: AX = status
  5775.              0001h success
  5776.              0000h failed
  5777.                  BL = error code (A2h,B0h) (see below)
  5778.          Note: this calls offset 0 in the XMS memory block with
  5779.         EBX = physical address of block's start
  5780.         CS = code selector for XMS block at EBX (16-bit or 32-bit)
  5781.         DS = data selector for XMS block, starting at EBX
  5782.         ES = selector for V86 memory access to full real-mode 1088K
  5783.         GS = selector for full flat address space
  5784.         ESI, EDI from V86 mode
  5785.     83h  (Netroom RM386 v6.00) Create new UMB entry
  5786.          BX = segment of high-memory block
  5787.          DX = first page of start of block
  5788.          CX = number of consecutive pages in block
  5789.          DI = start of UMB in block
  5790.          Return: AX = 0001h (success)
  5791.              DI = segment of first high-DOS block
  5792.          Note: the new UMB is not linked into the high-memory chain
  5793.     84h  (Netroom RM386 v6.00) Get all XMS handles info
  5794.          CX = size of buffer for handle info
  5795.          ES:DI -> buffer for handle info (see below)
  5796.          Return: AX = 0001h (success)
  5797.              DX = current number of allocated XMS handles
  5798.     88h  (XMS v3.0) Query free extended memory
  5799.          Return: EAX = largest block of extended memory, in KB
  5800.              BL = status
  5801.              00h success
  5802.              80h not implemented (i.e. on a 286 system)
  5803.              81h VDISK detected
  5804.              A0h all extended memory allocated
  5805.              ECX = physical address of highest byte of memory
  5806.                 (valid even on error codes 81h and A0h)
  5807.              EDX = total Kbytes of extended memory (0 if status A0h)
  5808.     89h  (XMS v3.0) Allocate any extended memory
  5809.          EDX = Kbytes needed
  5810.          Return: AX = 0001h success
  5811.                 DX = handle for allocated block (free with AH=0Ah)
  5812.             = 0000h failure
  5813.                 BL = status (80h,81h,A0h,A1h,A2h) (see below)
  5814.     8Eh  (XMS v3.0) Get extended EMB handle information
  5815.          DX = handle
  5816.          Return: AX = 0001h success
  5817.                 BH = block's lock count
  5818.                 CX = number of free handles left
  5819.                 EDX = block size in KB
  5820.             = 0000h failure
  5821.                 BL = status (80h,81h,A2h) (see below)
  5822.          BUG: DOS 6.0 HIMEM.SYS leaves CX unchanged
  5823.     8Fh  (XMS v3.0) Reallocate any extended memory block
  5824.          DX = unlocked handle
  5825.          EBX = new size in KB
  5826.          Return: AX = 0001h success
  5827.             = 0000h failure
  5828.                 BL = status (80h,81h,A0h-A2h,ABh) (see below)
  5829. Notes:    HIMEM.SYS requires at least 256 bytes free stack space
  5830.     the XMS driver need not implement functions 10h through 12h to be
  5831.       considered compliant with the standard
  5832. BUG:    HIMEM v3.03-3.07 crash on an 80286 machine if any of the 8Xh functions
  5833.       are called
  5834.  
  5835. Error codes returned in BL:
  5836.  00h    successful
  5837.  80h    function not implemented
  5838.  81h    Vdisk was detected
  5839.  82h    an A20 error occurred
  5840.  8Eh    a general driver error
  5841.  8Fh    unrecoverable driver error
  5842.  90h    HMA does not exist
  5843.  91h    HMA is already in use
  5844.  92h    DX is less than the /HMAMIN= parameter
  5845.  93h    HMA is not allocated
  5846.  94h    A20 line still enabled
  5847.  A0h    all extended memory is allocated
  5848.  A1h    all available extended memory handles are allocated
  5849.  A2h    invalid handle
  5850.  A3h    source handle is invalid
  5851.  A4h    source offset is invalid
  5852.  A5h    destination handle is invalid
  5853.  A6h    destination offset is invalid
  5854.  A7h    length is invalid
  5855.  A8h    move has an invalid overlap
  5856.  A9h    parity error occurred
  5857.  AAh    block is not locked
  5858.  ABh    block is locked
  5859.  ACh    block lock count overflowed
  5860.  ADh    lock failed
  5861.  B0h    only a smaller UMB is available
  5862.  B1h    no UMB's are available
  5863.  B2h    UMB segment number is invalid
  5864.  
  5865. Format of EMM structure:
  5866. Offset    Size    Description
  5867.  00h    DWORD    number of bytes to move (must be even)
  5868.  04h    WORD    source handle
  5869.  06h    DWORD    offset into source block
  5870.  0Ah    WORD    destination handle
  5871.  0Ch    DWORD    offset into destination block
  5872. Notes:    if source and destination overlap, only forward moves (source base
  5873.       less than destination base) are guaranteed to work properly
  5874.     if either handle is zero, the corresponding offset is interpreted
  5875.       as a real-mode address referring to memory directly addressable
  5876.       by the processor
  5877.  
  5878. Format of XMS handle info [array]:
  5879. Offset    Size    Description
  5880.  00h    BYTE    handle
  5881.  01h    BYTE    lock count
  5882.  02h    DWORD    handle size
  5883.  06h    DWORD    handle physical address (only valid if lock count nonzero)
  5884. --------m-2F4320-----------------------------
  5885. INT 2F U - HIMEM.SYS - Mach 20 SUPPORT
  5886.     AX = 4320h
  5887.     ???
  5888. Return: ???
  5889. --------m-2F4330-----------------------------
  5890. INT 2F UC - HIMEM.SYS v2.77+ - GET EXTERNAL A20 HANDLER ADDRESS
  5891.     AX = 4330h
  5892. Return: AL = 80h if external A20 handler provided
  5893.         ES:BX -> external A20 handler
  5894.         CL = ???
  5895. Note:    HIMEM.SYS calls this function to allow an external program to provide
  5896.       an A20 handler (i.e. to support a machine not supported by HIMEM
  5897.       itself)
  5898.  
  5899. External A20 handler called with:
  5900.     AX = function
  5901.         0000h disable A20
  5902.         0001h enable A20
  5903.     Return: AX = status
  5904.             0000h failure
  5905.             0001h successful
  5906. SeeAlso: AX=4308h,AX=4310h
  5907. --------E-2F43E0-----------------------------
  5908. INT 2F - Novell DOS Protected Mode Services (DPMS) - INSTALLATION CHECK
  5909.     AX = 43E0h
  5910. Return: AX = 0000h if installed
  5911.         ES:BX -> registration structure (see below)
  5912. Note:    this specification is still in beta
  5913. SeeAlso: INT 2F/AX=1687h
  5914.  
  5915. Format of registration structure:
  5916. Offset    Size    Description
  5917.  00h    DWORD    real-mode API entry point
  5918.  04h    DWORD    16-bit protected-mode API entry point
  5919.  08h  8 BYTEs    reserved (0)
  5920.  10h  8 BYTEs    blank-padded server OEM name
  5921.  18h    WORD    flags
  5922.         bit 0: fast processor reset available (286 only)
  5923.         bits 1-15 reserved (undefined)
  5924.  1Ah  2 BYTEs    DPMS version (major,minor)
  5925.  1Ch    BYTE    CPU type (02h = 286, 03h = 386 or higher)
  5926.  
  5927. Call DPMS entry point with:
  5928.     AX = 0100h call protected-mode procedure
  5929.         CX = number of words of stack to copy
  5930.         ES:DI -> callup/down register structure (see below)
  5931.         Return: CF clear if successful
  5932.             CF set on error
  5933.                 AX = error code (see below)
  5934.     AX = 0101h call real-mode procedure (RETF return)
  5935.         CX = number of words of stack to copy
  5936.         ES:DI -> callup/down register structure (see below)
  5937.         Return: CF clear if successful
  5938.             CF set on error
  5939.                 AX = error code (see below)
  5940.     AX = 0102h call real-mode procedure (IRET return)
  5941.         CX = number of words of stack to copy
  5942.         ES:DI -> callup/down register structure (see below)
  5943.         Return: CF clear if successful
  5944.             CF set on error
  5945.                 AX = error code (see below)
  5946.     AX = 0103h call real-mode interrupt handler
  5947.         BL = interrupt number
  5948.         CX = number of words of stack to copy
  5949.         ES:DI -> callup/down register structure (see below)
  5950.         Return: CF clear if successful
  5951.             CF set on error
  5952.                 AX = error code (see below)
  5953.     AX = 0200h allocate descriptors
  5954.         CX = number of descriptors to allocate
  5955.         Return: CF clear if successful
  5956.                 AX = first descriptor allocated
  5957.             CF set on error
  5958.                 AX = error code (see below)
  5959.     AX = 0201h free a descriptor
  5960.         BX = descriptor
  5961.         Return: CF clear if successful
  5962.             CF set on error
  5963.                 AX = error code (see below)
  5964.     AX = 0202h create alias descriptor
  5965.         BX = descriptor
  5966.         Return: CF clear if successful
  5967.                 AX = alias descriptor
  5968.             CF set on error
  5969.                 AX = error code (see below)
  5970.     AX = 0203h build alias to real-mode segment
  5971.         BX = descriptor
  5972.         CX = real-mode segment
  5973.         Return: CF clear if successful
  5974.             CF set on error
  5975.                 AX = error code (see below)
  5976.     AX = 0204h set descriptor base
  5977.         BX = descriptor
  5978.         CX:DX = base address
  5979.         Return: CF clear if successful
  5980.             CF set on error
  5981.                 AX = error code (see below)
  5982.     AX = 0205h set descriptor limit
  5983.         BX = descriptor
  5984.         CX = limit
  5985.         Return: CF clear if successful
  5986.             CF set on error
  5987.                 AX = error code (see below)
  5988.     AX = 0206h set descriptor type/attribute
  5989.         BX = descriptor
  5990.         CL = type
  5991.         CH = attribute
  5992.         Return: CF clear if successful
  5993.             CF set on error
  5994.                 AX = error code (see below)
  5995.     AX = 0207h get descriptor base
  5996.         BX = descriptor
  5997.         Return: CF clear if successful
  5998.                 CX:DX = base address
  5999.             CF set on error
  6000.                 AX = error code (see below)
  6001.     AX = 0300h get size of largest free block of memory
  6002.         Return: CF clear if successful
  6003.                 BX:CX = size
  6004.             CF set on error
  6005.                 AX = error code (see below)
  6006.     AX = 0301h allocate block of extended memory
  6007.         BX:CX = size
  6008.         Return: CF clear if successful
  6009.                 BX:CX = base address
  6010.                 SI:DI = handle
  6011.             CF set on error
  6012.                 AX = error code (see below)
  6013.     AX = 0302h free block of extended memory
  6014.         SI:DI = handle
  6015.         Return: CF clear if successful
  6016.             CF set on error
  6017.                 AX = error code (see below)
  6018.     AX = 0303h map linear memory
  6019.         ES:[DI] = DDS
  6020.         Return: CF clear if successful
  6021.                 BX:CX = base address
  6022.                 SI:DI = handle
  6023.             CF set on error
  6024.                 AX = error code (see below)
  6025.     AX = 0304h unmap linear memory
  6026.         SI:DI = handle
  6027.         Return: CF clear if successful
  6028.             CF set on error
  6029.                 AX = error code (see below)
  6030.     AX = 0400h relocate segment to extended memory
  6031.         ES:SI = base address
  6032.         CX = limit
  6033.         BL = type
  6034.         BH = attribute
  6035.         DX = selector or 0000h
  6036.         Return: CF clear if successful
  6037.                 AX = selector
  6038.                 BX:CX = new base address
  6039.                 SI:DI = handle
  6040.             CF set on error
  6041.                 AX = error code (see below)
  6042.  
  6043. Values for error code:
  6044.  8000h    general error
  6045.  8001h    unsupported function
  6046.  8011h    descriptor unavailable
  6047.  8012h    linear memory unavailable
  6048.  8013h    physical memory unavailable
  6049.  8021h    invalid value
  6050.  8022h    invalid selector
  6051.  8023h    invalid handle
  6052.  
  6053. Format of callup/down register structure:
  6054. Offset    Size    Description
  6055.  00h    DWORD    EDI
  6056.  04h    DWORD    ESI
  6057.  08h    DWORD    EBP
  6058.  0Ch  4 BYTEs    reserved (0)
  6059.  10h    DWORD    EBX
  6060.  14h    DWORD    EDX
  6061.  18h    DWORD    ECX
  6062.  20h    DWORD    EAX
  6063.  24h    DWORD    EIP
  6064.  28h    WORD    CS
  6065.  2Ah  2 BYTEs    reserved (0)
  6066.  2Ch    DWORD    EFLAGS
  6067.  30h    DWORD    ESP
  6068.  34h    WORD    SS
  6069.  36h  2 BYTEs    reserved (0)
  6070.  38h    WORD    ES
  6071.  3Ah  2 BYTEs    reserved (0)
  6072.  3Ch    WORD    DS
  6073.  3Eh  2 BYTEs    reserved (0)
  6074.  40h    WORD    FS
  6075.  42h  2 BYTEs    reserved (0)
  6076.  44h    WORD    GS
  6077.  46h  2 BYTEs    reserved (0)
  6078. --------E-2F44-------------------------------
  6079. INT 2F U - DOS Extender support???
  6080.     AH = 44h
  6081.     AL = function (at least 0Bh, 15h, 17h)
  6082.     ???
  6083. Return: ???
  6084. Note:    called by Codeview for Windows
  6085. SeeAlso: AH=86h
  6086. --------G-2F4500-----------------------------
  6087. INT 2F U - Microsoft Profiler (PROF.COM/VPROD.386) - INSTALLATION CHECK
  6088.     AX = 4500h
  6089. Return: AL = 01h if PROF.COM installed
  6090.     AL = 02h if VPROD.386 installed
  6091. SeeAlso: AX=4501h,AX=4502h
  6092. --------G-2F4501-----------------------------
  6093. INT 2F U - Microsoft Profiler (PROF.COM/VPROD.386) - SETUP PROFILER
  6094.     AX = 4501h
  6095.     BX = CSIPS buffer size in KB (first parameter for ProfSetup)
  6096.     CX = output limit in KB (second parameter for ProfSetup)
  6097. Note:    this call is not supported by PROF.COM
  6098. SeeAlso: AX=4502h,AX=4503h
  6099. --------G-2F4502-----------------------------
  6100. INT 2F U - Microsoft Profiler (PROF.COM/VPROD.386) - SET SAMPLING RATE
  6101.     AX = 4502h
  6102.     BL = sampling rate for PROF.COM (0 < BL <= 13)
  6103.         (01h = 8192/s, 04h = 1024/s, 08h = 32/s, 0Dh = 1/s)
  6104.     CX = sampling rate for VPROD.386
  6105. Note:    for PROF.COM, this programs the CMOS clock by setting BL+2 as the
  6106.       low four bits of CMOS register 0Ah.  The interruption rate is
  6107.       1 SHL (15 - BL) per second.
  6108. SeeAlso: AX=4501h,AX=4503h
  6109. --------G-2F4503-----------------------------
  6110. INT 2F U - Microsoft Profiler (PROF.COM/VPROD.386) - START PROFILING
  6111.     AX = 4503h
  6112. Notes:    Profiling is also turned on by the key combinations
  6113.       LeftShift + RightShift + Alt
  6114.       LeftShift + RightShift + Ctrl
  6115.     for PROF.COM, this call programs the CMOS clock by reading register
  6116.       0Ch, and setting bit 6 of register 0Bh.  It then makes sure that IRQ8
  6117.       is unmasked
  6118. SeeAlso: AX=4504h
  6119. --------G-2F4504-----------------------------
  6120. INT 2F U - Microsoft Profiler (PROF.COM/VPROD.386) - STOP PROFILING
  6121.     AX = 4504h
  6122. Notes:    profiling is also turned off by the key combination
  6123.       LeftShift + RightShift
  6124.     for PROF.COM, this programs the CMOS clock by reading register 0Ch
  6125.       and clearing bit 6 of register 0Bh.  It then masks IRQ8.
  6126. SeeAlso: AX=4503h,AX=4505h,AX=4506h,AX=4507h
  6127. --------G-2F4505-----------------------------
  6128. INT 2F U - Microsoft Profiler (PROF.COM/VPROD.386) - CLEAR PROFILING DATA
  6129.     AX = 4505h
  6130. SeeAlso: AX=4503h,AX=4504h,AX=4506h
  6131. --------G-2F4506-----------------------------
  6132. INT 2F U - Microsoft Profiler (PROF.COM/VPROD.386) - "ProfFlush"
  6133.     AX = 4506h
  6134. SeeAlso: AX=4505h,AX=4507h
  6135. --------G-2F4507-----------------------------
  6136. INT 2F U - Microsoft Profiler (PROF.COM/VPROD.386) - "ProfFinish"
  6137.     AX = 4507h
  6138. Note:    this call is essentially a "ProfStop" (AX=4504h) followed by
  6139.       "ProfFlush" (AX=4506h)
  6140. SeeAlso: AX=4504h,AX=4505h,AX=4506h
  6141. --------G-2F4508-----------------------------
  6142. INT 2F U - Microsoft Profiler (PROF.COM/VPROD.386) - ALTERNATE SEGDEBUG IFACE
  6143.     AX = 4508h
  6144.     BX = ordinal (or 0000h)
  6145.     CX = segment
  6146.     DX = instance (or 0000h)
  6147.     SI = type (or 0000h)
  6148.     ES:DI -> ASCIZ module name
  6149. Notes:    this call is an alternate entry to the profiler's SEGDEBUG
  6150.       interface, but only to function 0, for notifying the profiler of
  6151.       each new segment loaded.  The SHOWHITS utility then examines the
  6152.       profiler's output files (CSIPS.DAT and SEGENTRY.DAT) in conjunction
  6153.       with symbol files to provide information in a useful form.
  6154.     this call does not have a corresponding Windows function
  6155. SeeAlso: AX=4500h
  6156. --------D-2F4601-----------------------------
  6157. INT 2F U - DOS 5+ kernel - ???
  6158.     AX = 4601h
  6159. Return: ???
  6160. Note:    copies the MCB following the caller's PSP memory block into DOS data
  6161.       segment
  6162. SeeAlso: AX=4602h
  6163. --------D-2F4602-----------------------------
  6164. INT 2F U - DOS 5+ kernel - ???
  6165.     AX = 4602h
  6166. Return: ???
  6167. Note:    copies previously copied MCB from DOS data segment into MCB following
  6168.       caller's PSP memory block
  6169. SeeAlso: AX=4601h
  6170. --------E-2F46-------------------------------
  6171. INT 2F U - Windows/286 DOS Extender
  6172.     AH = 46h
  6173.     AL = subfunction (03h,04h)
  6174. Return: ???
  6175. Note:    these two subfunctions are called by MS Windows 3.0
  6176. --------v-2F4653CX0002-----------------------
  6177. INT 2F - F-PROT v1.x only - F-LOCK.EXE
  6178.     AX = 4653h
  6179.     CX = 0002h
  6180.     BX = subfunction
  6181.         0000h  installation check
  6182.         Return: AX = FFFFh
  6183.         0001h  uninstall
  6184.         Return: AX,BX,ES destroyed
  6185.         0002h  disable (v1.08 and below only)
  6186.         0003h  enable (v1.08 and below only)
  6187. Note:    F-LOCK is part of the F-PROT virus/trojan protection package by Fridrik
  6188.       Skulason
  6189. SeeAlso: AX=4653h/CX=0003h,AX=CA00h,INT 21/AX=4BEEh
  6190. Index:    installation check;F-LOCK|uninstall;F-LOCK
  6191. --------v-2F4653CX0003-----------------------
  6192. INT 2F - F-PROT v1.x only - F-XCHK.EXE
  6193.     AX = 4653h
  6194.     CX = 0003h
  6195.     BX = subfunction
  6196.         0000h  installation check
  6197.         Return: AX = FFFFh
  6198.         0001h  uninstall
  6199.         Return: AX,BX,ES destroyed
  6200. Note:    F-XCHK is part of the F-PROT virus/trojan protection package by Fridrik
  6201.       Skulason
  6202. SeeAlso: AX=4653h/CX=0002h,AX=4653h/CX=0004h,AX=CA00h
  6203. Index:    installation check;F-XCHK|uninstall;F-XCHK
  6204. --------v-2F4653CX0004-----------------------
  6205. INT 2F - F-PROT v1.x only - F-POPUP.EXE
  6206.     AX = 4653h
  6207.     CX = 0004h
  6208.     BX = subfunction
  6209.         0000h  installation check
  6210.         Return: AX = FFFFh
  6211.         0001h  uninstall
  6212.         Return: AX,BX,ES destroyed
  6213.         0002h  disable (v1.08 and below only)
  6214.            display message (v1.14+)
  6215.             other registers: ???
  6216.         0003h  enable (v1.08 and below only)
  6217.            display message (v1.14+)
  6218.             other registers: ???
  6219.             Return: AX = key pressed by user
  6220. Note:    F-POPUP is part of the F-PROT virus/trojan protection package by
  6221.       Fridrik Skulason
  6222. SeeAlso: AX=4653h/CX=0003h,AX=4653h/CX=0005h,AX=CA00h
  6223. Index:    installation check;F-POPUP|uninstall;F-POPUP
  6224. --------v-2F4653CX0005-----------------------
  6225. INT 2F - F-PROT v1.x only - F-DLOCK.EXE
  6226.     AX = 4653h
  6227.     CX = 0005h
  6228.     BX = subfunction
  6229.         0000h installation check
  6230.         Return: AX = FFFFh
  6231.         0001h uninstall
  6232.         Return: AX,BX,ES destroyed
  6233. Note:    F-DLOCK is part of the F-PROT virus/trojan protection package by
  6234.       Fridrik Skulason
  6235. SeeAlso: AX=4653h/CX=0004h,AX=CA00h
  6236. Index:    installation check;F-DLOCK|uninstall;F-DLOCK
  6237. --------W-2F4680-----------------------------
  6238. INT 2F U - MS Windows v3.0 - INSTALLATION CHECK
  6239.     AX = 4680h
  6240. Return: AX = 0000h MS Windows 3.0 running in real (/R) or standard (/S) mode,
  6241.            or DOS 5 DOSSHELL active
  6242.        nonzero  no Windows, Windows prior to 3.0, or Windows3 in enhanced
  6243.             mode
  6244. Note:    Windows 3.1 finally provides an installation check which works in all
  6245.       modes (see AX=160Ah)
  6246. SeeAlso: AX=1600h,AX=160Ah
  6247. ----------2F47-------------------------------
  6248. INT 2F U - ???
  6249.     AH = 47h
  6250.     ???
  6251. Return: ???
  6252. Note:    reportedly called by Microsoft BASIC Compiler v7.0
  6253. --------K-2F4800-----------------------------
  6254. INT 2F - DOS 5+ DOSKEY - INSTALLATION CHECK
  6255.     AX = 4800h
  6256. Return: AL = nonzero if installed (DOS 5.0 and 6.0 return AX=AA02h)
  6257.         ES = segment of DOSKEY resident portion
  6258. Note:    DOSKEY chains if AL is not 00h or 10h on entry
  6259. SeeAlso: AX=4800h"PCED",AX=4810h
  6260. --------K-2F4800-----------------------------
  6261. INT 2F - PCED v2.1 - INSTALLATION CHECK
  6262.     AX = 4800h
  6263. Return: AX = AACDh if installed
  6264.         ES = segment of PCED kernel (PCED has multiple code segments)
  6265. Program: PCED v2.1 is a command line editor/history/macro facility by
  6266.       Cove Software.  It is the commercial version of the freeware CED.
  6267. Notes:    DOSKEY also responds to this call if installed, returning AX=AA02h.
  6268.     unlike DOSKEY, PCED does *not* chain if AL contains an
  6269.       unsupported function code.  It IRETs with all registers intact.
  6270. --------K-2F4810-----------------------------
  6271. INT 2F - DOS 5+ DOSKEY, PCED v2.1 - READ INPUT LINE FROM CONSOLE
  6272.     AX = 4810h
  6273.     DS:DX -> line buffer (see INT 21/AH=0Ah)
  6274. Return: AX = 0000h if successful
  6275. Notes:    the first byte (length) of the buffer MUST be 80h, or DOSKEY chains to
  6276.       the previous handler; PCED allows sizes other than 80h
  6277.     if the user's input is a macro name, no text is placed in the buffer
  6278.       even though AX=0000h on return; the program must immediately issue
  6279.       this call again to retrieve the expansion of the macro.  Similarly,
  6280.       if the user enters a special parameter such as $*, this call must
  6281.       be repeated to retrieve the expansion; on the second call, DOSKEY
  6282.       overwrites the macro name on the screen with its expansion.
  6283.     unlike DOSKEY, PCED expands all macros on the first call, so it is
  6284.       not necessary to make two calls; since the buffer is not empty on
  6285.       return, DOSKEY-aware programs will not make the second call
  6286.     DOSKEY chains if AL is not 00h or 10h on entry
  6287. SeeAlso: AX=4800h,INT 21/AH=0Ah
  6288. --------K-2F48C0-----------------------------
  6289. INT 2F - PCED v2.1 - PCED API
  6290.     AX = 48C0h
  6291.     DX = API function code
  6292.     other registers as required by the specified function
  6293. Return: CF clear if successful
  6294.     CF set on error
  6295.         AX = PCED error code
  6296.     other registers as appropriate for API function
  6297. Program: PCED v2.1 is a command line editor/history/macro facility by
  6298.       Cove Software.  It is the commercial version of the freeware CED.
  6299. Note:    the full API information is available from Cove Software
  6300. SeeAlso: AX=4800h"PCED",AX=48C1h,AX=48C2h,AX=48C3h
  6301. ----------2F48C1BL00-------------------------
  6302. INT 2F - PCED/VSTACK - INSTALLATION CHECK
  6303.     AX = 48C1h
  6304.     BL = 00h
  6305. Return: AX = 0000h if installed
  6306.         BX = VSTACK resident segment
  6307. Program: VSTACK is a resident backscroll utility included as part of the PCED
  6308.       package
  6309. Note:    chains if BL <> 00h on entry
  6310. SeeAlso: AX=48C0h,AX=48C2h
  6311. ----------2F48C2BL00-------------------------
  6312. INT 2F - PCED/ATTRIB - INSTALLATION CHECK
  6313.     AX = 48C2h
  6314.     BL = 00h
  6315. Return: AX = 0000h if installed
  6316.         BX = ATTRIB resident segment
  6317. Program: ATTRIB is a resident file attribute changer included as part of the
  6318.       PCED package
  6319. Note:    chains if BL <> 00h on entry
  6320. SeeAlso: AX=48C0h,AX=48C1h,AX=48C3h
  6321. --------K-2F48C3BL00-------------------------
  6322. INT 2F - PCED/KEYDEF - INSTALLATION CHECK
  6323.     AX = 48C3h
  6324.     BL = 00h
  6325. Return: AX = 0000h if installed
  6326.         BX = KEYDEF resident segment
  6327. Program: KEYDEF is a resident keyboard redefinition utility included as part
  6328.       of the PCED package
  6329. Note:    chains if BL <> 00h on entry
  6330. SeeAlso: AX=48C0h,AX=48C2h,AX=48C4h
  6331. ----------2F48C4BL00-------------------------
  6332. INT 2F - PCED/FLIST - INSTALLATION CHECK
  6333.     AX = 48C4h
  6334.     BL = 00h
  6335. Return: AX = 0000h if installed
  6336.         BX = FLIST resident segment
  6337. Program: FLIST is a resident filelist processor included as part of the PCED
  6338.       package
  6339. Note:    chains if BL <> 00h on entry
  6340. SeeAlso: AX=48C0h,AX=48C3h,AX=48C5h
  6341. ----------2F48C4BL00-------------------------
  6342. INT 2F - PCED/ASSOC - INSTALLATION CHECK
  6343.     AX = 48C4h
  6344.     BL = 00h
  6345. Return: AX = 0000h if installed
  6346.         BX = ASSOC resident segment
  6347. Program: ASSOC is a resident utility included as part of the PCED package which
  6348.       associated files with executable programs based on their extensions
  6349. Note:    chains if BL > 02h on entry
  6350. SeeAlso: AX=48C0h,AX=48C4h,AX=48C5h/BL=01h,AX=48C5h/BL=02h
  6351. ----------2F48C5BL01-------------------------
  6352. INT 2F - PCED/ASSOC - VERSION CHECK
  6353.     AX = 48C5h
  6354.     BL = 01h
  6355. Return: AX = 0000h if installed
  6356.         BX = binary ASSOC version (BL = major, BH = minor)
  6357. Note:    chains if BL > 02h on entry
  6358. SeeAlso: AX=48C0h,AX=48C5h/BL=00h,AX=48C5h/BL=02h
  6359. ----------2F48C5BL02-------------------------
  6360. INT 2F - PCED/ASSOC - ASSOCIATION TEST
  6361.     AX = 48C5h
  6362.     BL = 02h
  6363.     DS:SI -> ASCIZ filename
  6364. Return: AX = status
  6365.         0000h if filename is unknown
  6366.         0001h if there is an association defined for the file
  6367.     BX destroyed
  6368. Program: ASSOC is a resident utility included as part of the PCED package which
  6369.       associated files with executable programs based on their extensions
  6370. Note:    chains if BL > 02h on entry
  6371. SeeAlso: AX=48C0h,AX=48C5h/BL=00h,AX=48C5h/BL=01h
  6372. ----------2F49-------------------------------
  6373. INT 2F U - ???
  6374.     AH = 49h
  6375.     ???
  6376. Return: ???
  6377. Note:    reportedly called by DOS 5.0 installation
  6378. --------D-2F4A00CX0000-----------------------
  6379. INT 2F CU - DOS 5+ - FLOPPY-DISK LOGICAL DRIVE CHANGE NOTIFICATION
  6380.     AX = 4A00h
  6381.     CX = 0000h
  6382.     DH = new drive number
  6383.     DL = current drive number
  6384. Return: CX = FFFFh to skip "Insert diskette for drive X:" message
  6385. Note:    called by MS-DOS 5.0+ IO.SYS just before displaying the message
  6386.       "Insert diskette for drive X:" on single-floppy systems
  6387. --------D-2F4A01-----------------------------
  6388. INT 2F - DOS 5+ - QUERY FREE HMA SPACE
  6389.     AX = 4A01h
  6390. Return: BX = number of bytes available in HMA (0000h if DOS not using HMA)
  6391.     ES:DI -> start of available HMA area (FFFFh:FFFFh if not using HMA)
  6392. Note:    called by Windows 3.1 DOSX.EXE
  6393. SeeAlso: AX=4310h,AX=4A02h
  6394. --------D-2F4A02-----------------------------
  6395. INT 2F - DOS 5+ - ALLOCATE HMA SPACE
  6396.     AX = 4A02h
  6397.     BX = number of bytes
  6398. Return: ES:DI -> start of allocated HMA block or FFFFh:FFFFh
  6399.     BX = number of bytes actually allocated (rounded up to next paragraph
  6400.         for DOS 5.0 and 6.0)
  6401. Notes:    this call is not valid unless DOS is loaded in the HMA (DOS=HIGH)
  6402.     called by Windows 3.1 DOSX.EXE
  6403. SeeAlso: AX=4A01h
  6404. --------T-2F4A05-----------------------------
  6405. INT 2F U - DOS 5+ DOSSHELL - TASK SWITCHING API???
  6406.     AX = 4A05h
  6407.     SI = function
  6408.         0000h reset???
  6409.         0001h ???
  6410.         ES:BP -> 80-byte buffer containing ???
  6411.         0002h ???
  6412.         0003h ???
  6413.         0004h ???
  6414.         BL = ???
  6415.         0005h ???
  6416.         0006h get ???
  6417.         Return: ES:SI -> ???
  6418.         0007h get ???
  6419.         Return: AX = ???
  6420.         0008h get ???
  6421.         Return: DX:AX -> ??? (internal control data of some kind)
  6422.         0009h get ???
  6423.         Return: ES:SI -> ??? (apparently identical to function 0006h)
  6424.         000Ah ???
  6425.         BL = length of buffer
  6426.         ES:BP -> buffer containing ???
  6427.         000Bh get ???
  6428.         Return: AX = ???
  6429.         000Ch ???
  6430.         BL = ???
  6431.         Return: if BL nonzero on entry
  6432.                 DX:AX -> ???
  6433.             if BL = 00h on entry
  6434.                 ES:SI -> ???
  6435. Notes:    DOSSHELL chains to the previous handler if SI is not one of the values
  6436.       listed above
  6437.     the DOSSWAP.EXE module calls functions 03h,04h,05h,07h,08h,09h,0Ch
  6438.     the Windows 3.1 DSWAP.EXE and WSWAP.EXE task switchers use these calls
  6439. SeeAlso: AX=4B01h
  6440. --------D-2F4A06-----------------------------
  6441. INT 2F CU - DOS 5+ - DOS SUPERVISOR "REBOOT PANEL" - ADJUST MEMORY SIZE
  6442.     AX = 4A06h
  6443.     DX = segment following last byte of conventional memory
  6444. Return: DX = segment following last byte of memory available for use by DOS
  6445. Desc:    used to override the default memory size when booting diskless
  6446.       workstations
  6447. Notes:    called by MS-DOS 5+ IO.SYS startup code if the signature "RPL" is
  6448.       present three bytes beyond the INT 2F handler; this call overrides
  6449.       the value returned by INT 12
  6450.     hooked by RPL code at the top of memory to protect itself from being
  6451.       overwritten; DOS builds a memory block with owner = 0008h and name
  6452.       "RPL" which must be freed by the RPL code when it is done
  6453. SeeAlso: INT 12
  6454. --------N-2F4A07-----------------------------
  6455. INT 2F U - RESERVED FOR PROTMAN SUPPORT
  6456.     AX = 4A07h
  6457.     ???
  6458. Return: ???
  6459. --------c-2F4A10BX0000-----------------------
  6460. INT 2F - SMARTDRV v4.00+ - INSTALLATION CHECK AND HIT RATIOS
  6461.     AX = 4A10h
  6462.     BX = 0000h
  6463.     CX = EBABh (v4.1+; see Note)
  6464. Return: AX = BABEh if installed
  6465.         DX:BX = cache hits
  6466.         DI:SI = cache misses
  6467.         CX = ???
  6468.         BP = version in BCD (4.10 = 0410h)
  6469. Notes:    most of the SMARTDRV API, including this call, is supported by
  6470.       PC-Cache v8.0
  6471.     if DBLSPACE.BIN is installed but SMARTDRV has not yet been installed,
  6472.       unless CX=EBABh on entry, DBLSPACE.BIN displays the error message
  6473.       "Cannot run SMARTDrive 4.0 with DoubleSpace" and aborts the caller
  6474.       with INT 21/AX=4C00h
  6475.     SMARTDRV v3.x had a completely different API using IOCTL calls
  6476. SeeAlso: AX=4A10h/BX=0001h,AX=4A10h/BX=0004h,AX=4A10h/BX=0005h
  6477. SeeAlso: AX=4A10h/BX=0007h,AX=4A10h/BX=1234h,AX=4A11h/BX=0000h
  6478. SeeAlso: INT 21/AX=4402h"SMARTDRV",INT 21/AX=4403h"SMARTDRV"
  6479. --------c-2F4A10BX0001-----------------------
  6480. INT 2F - SMARTDRV v4.00+ - FLUSH BUFFERS
  6481.     AX = 4A10h
  6482.     BX = 0001h
  6483. Note:    this function is also supported by PC-Cache v8.0.
  6484. SeeAlso: AX=4A10h/BX=0000h,AX=4A10h/BX=0002h
  6485. --------c-2F4A10BX0002-----------------------
  6486. INT 2F - SMARTDRV v4.00+ - RESET CACHE
  6487.     AX = 4A10h
  6488.     BX = 0002h
  6489. Note:    this function is also supported by PC-Cache v8.0.
  6490. SeeAlso: AX=4A10h/BX=0000h,AX=4A10h/BX=0001h
  6491. --------c-2F4A10BX0003-----------------------
  6492. INT 2F - SMARTDRV v4.00+ - STATUS
  6493.     AX = 4A10h
  6494.     BX = 0003h
  6495.     BP = drive # (0=A, 1=B, etc.)
  6496.     DL = subfunction
  6497.         00h only get information
  6498.         01h turn on read cache
  6499.         02h turn off read cache
  6500.         03h turn on write cache
  6501.         04h turn off write cache
  6502. Return: AX = BABEh if OK
  6503.     DL = status
  6504.         bit 7  not cached
  6505.         bit 6  write-through (not write-cached)
  6506.         bit 5  ???
  6507.         bits 0-4 drive # (0=A, 1=B...)
  6508.     DL = FFh if drive does not exist
  6509. Notes:    If the read cache is off, reads will not be cached, but writes will
  6510.       continue to be cached if the write-cache is enabled.
  6511.     this function is also supported by PC-Cache v8.0.
  6512. SeeAlso: AX=4A10h/BX=0000h
  6513. --------c-2F4A10BX0004-----------------------
  6514. INT 2F - SMARTDRV v4.00+ - GET CACHE SIZE
  6515.     AX = 4A10h
  6516.     BX = 0004h
  6517. Return: AX = current size in elements???
  6518.     BX = largest number of elements
  6519.     CX = size of elements in bytes
  6520.     DX = number of elements under Windows
  6521. Note:    this function is also supported by PC-Cache v8.0.
  6522. SeeAlso: AX=4A10h/BX=0000h,AX=4A10h/BX=0003h,AX=4A10h/BX=0005h
  6523. --------c-2F4A10BX0005-----------------------
  6524. INT 2F - SMARTDRV v4.00+ - GET DOUBLE-BUFFER STATUS
  6525.     AX = 4A10h
  6526.     BX = 0005h
  6527.     BP = drive # (0=A, 1=B...)
  6528. Return: AX = BABEh if double-buffered
  6529.         ES:DI -> ???
  6530. SeeAlso: AX=4A10h/BX=0000h,AX=4A10h/BX=0003h,AX=4A10h/BX=0006h
  6531. --------c-2F4A10BX0006-----------------------
  6532. INT 2F CU - SMARTDRV v4.00+ - CHECK IF DRIVE CACHEABLE
  6533.     AX = 4A10h
  6534.     BX = 0006h
  6535.     CL = drive number (01h = A:)
  6536. Return: AX = 0006h if drive should not be cached by SMARTDRV
  6537. Note:    called by SMARTDRV at startup to determine whether it should cache
  6538.       a particular drive
  6539. SeeAlso: AX=4A10h/BX=0000h
  6540. --------c-2F4A10BX0007-----------------------
  6541. INT 2F - SMARTDRV v4.00+ - GET DEVICE DRIVER FOR DRIVE
  6542.     AX = 4A10h
  6543.     BX = 0007h
  6544.     BP = drive number
  6545. Return: DL = ???
  6546.     ES:DI -> device driver header for drive
  6547. Note:    this function is also supported by PC-Cache v8.0.
  6548. SeeAlso: AX=4A10h/BX=0000h,AX=4A11h/BX=0003h,AX=4A11h/BX=0004h
  6549. --------c-2F4A10BX0008-----------------------
  6550. INT 2F - SMARTDRV v4.20+ - GET/SET FLUSH BEFORE PROMPT, CD-ROM SUPPORT
  6551.     AX = 4A10h
  6552.     BX = 0008h
  6553.     DL = subfunction
  6554.         00h set
  6555.         DH = new states
  6556.             bit 0: flush before prompt
  6557.             bits 1-7 reserved
  6558.         01h get
  6559.         Return: DH = status flags
  6560.                 bit 0: (v4.2+) flush before prompt
  6561.                 bit 1: (v5.0+) CD-ROM caching support installed
  6562. Note:    v4.2 was an interim release to fix problems in the SMARTDRV included
  6563.       with MS-DOS 6.00; v5.00 is included with MS-DOS 6.2
  6564. --------c-2F4A10BX000A-----------------------
  6565. INT 2F - SMARTDRV v4.00+ - GET TABLE POINTER???
  6566.     AX = 4A10h
  6567.     BX = 000Ah
  6568. Return: ES:BX -> table of about 10 bytes or 5 words. Seems to be words
  6569.          pointing to memory addresses containing info??? (see below)
  6570. Note:    this function is also supported by PC-Cache v8.0.
  6571. SeeAlso: AX=4A10h/BX=0000h
  6572.  
  6573. Format of data table:
  6574. Offset    Size    Description
  6575.  00h  8 BYTEs    ???
  6576.  08h    WORD    offset of WORD containing number of elements in cache
  6577. --------c-2F4A10BX1234-----------------------
  6578. INT 2F - SMARTDRV v4.00+ - SIGNAL SERIOUS ERROR
  6579.     AX = 4A10h
  6580.     BX = 1234h
  6581. Desc:    pops up a message box saying that a serious error occurred and to hit
  6582.       R to retry.
  6583. Note:    this function is also supported by PC-Cache v8.0.
  6584. SeeAlso: AX=4A10h/BX=0000h
  6585. --------d-2F4A11BX0000-----------------------
  6586. INT 2F - DBLSPACE.BIN - "GetVersion" - INSTALLATION CHECK
  6587.     AX = 4A11h
  6588.     BX = 0000h
  6589. Return: AX = 0000h (successful)
  6590.     BX = 444Dh ("DM")
  6591.     CL = first drive letter used by DBLSPACE (0=A:)
  6592.     CH = number of drive letters used by DBLSPACE
  6593.     DX = internal DBLSPACE.BIN version number (bits 14-0)
  6594.         bit 15 set if DBLSPACE.BIN has not yet been relocated to final
  6595.         position in memory (i.e. DBLSPACE.SYS /MOVE)
  6596. Program: DBLSPACE.BIN is the resident driver for DoubleSpace, the
  6597.       disk-compression software bundled with MS-DOS 6.0
  6598. SeeAlso: AX=4A11h/BX=0001h,AX=4A11h/BX=0002h,AX=4A11h/BX=0003h
  6599. SeeAlso: AX=4A11h/BX=0005h,AX=4A11h/BX=0007h,AX=4A11h/BX=FFFFh
  6600. SeeAlso: INT 21/AX=4404h"DBLSPACE"
  6601. --------d-2F4A11BX0001-----------------------
  6602. INT 2F - DBLSPACE.BIN - "GetDriveMapping" - GET DRIVE MAPPING
  6603.     AX = 4A11h
  6604.     BX = 0001h
  6605.     DL = drive number (0=A:)
  6606. Return: AX = status (see also below)
  6607.         0000h successful
  6608.         BL = host drive (bit 7 set if specified drive is compressed)
  6609.         BH = DoubleSpace sequence number
  6610.         other error code (0101h) (see below)
  6611. Note:    the compressed volume file for the specified compressed drive is
  6612.       host:\DBLSPACE.sequence
  6613. SeeAlso: AX=4A11h/BX=0000h
  6614.  
  6615. Values for status:
  6616.  0000h    successful
  6617.  0100h    bad function
  6618.  0101h    invalid drive
  6619.  0102h    not a compressed drive
  6620.  0103h    drive already swapped
  6621.  0104h    drive not swapped
  6622. --------d-2F4A11BX0002-----------------------
  6623. INT 2F - DBLSPACE.BIN - "Swap Drive" - SWAP DRIVE LETTERS OF CVF AND HOST DRIVE
  6624.     AX = 4A11h
  6625.     BX = 0002h
  6626.     DL = drive number (0=A:) of compressed drive to swap with its host
  6627. Return: AX = status (0000h,0101h,0102h,0103h) (see AX=4A11h/BX=0001h)
  6628. Note:    this function is intended for use by DBLSPACE.EXE only
  6629. SeeAlso: AX=4A11h/BX=0000h
  6630. --------d-2F4A11BX0003-----------------------
  6631. INT 2F - DBLSPACE.BIN - "DSGetEntryPoints" - GET DEVICE DRIVER ENTRY POINTS
  6632.     AX = 4A11h
  6633.     BX = 0003h
  6634.     CL = drive number (0=A:) of compressed drive
  6635. Return: CL = FFh on error (not compressed drive)
  6636.        = other driver unit number of host drive
  6637.         ES:SI -> device driver's strategy routine
  6638.         ES:DI -> device driver's interrupt routine
  6639.     BX destroyed
  6640. Note:    in conjunction with subfunction 0004h, this call allows disk caches
  6641.       like SMARTDRV to apply a device driver wrapper to DoubleSpaced
  6642.       drives just like SMARTDRV applies to regular block devices
  6643. SeeAlso: AX=4A10h/BX=0007h,AX=4A11h/BX=0000h,AX=4A11h/BX=0004h
  6644. --------d-2F4A11BX0004-----------------------
  6645. INT 2F - DBLSPACE.BIN - "DSSetEntryPoints" - SET DEVICE DRIVER ENTRY POINTS
  6646.     AX = 4A11h
  6647.     BX = 0004h
  6648.     CL = drive number (0=A:) of compressed drive
  6649.     DL = unit number for new driver entry points
  6650.     DH = 00h
  6651.     ES:SI -> device driver strategy routine to call for drive
  6652.     ES:DI -> device driver interrupt routine to call for drive
  6653. Return: CL = FFh on error (not a compressed drive)
  6654.     BX destroyed
  6655. Program: DBLSPACE.BIN is the resident driver for DoubleSpace, the
  6656.       disk-compression software bundled with MS-DOS 6.0
  6657. Note:    in conjunction with subfunction 0003h, this call allows disk caches
  6658.       like SMARTDRV to apply a device driver wrapper to DoubleSpaced
  6659.       drives just like SMARTDRV applies to regular block devices
  6660. SeeAlso: AX=4A10h/BX=0007h,AX=4A11h/BX=0000h,AX=4A11h/BX=0003h
  6661. --------d-2F4A11BX0005-----------------------
  6662. INT 2F - DBLSPACE.BIN - "ActivateDrive" - MOUNT COMPRESSED DRIVE
  6663.     AX = 4A11h
  6664.     BX = 0005h
  6665.     DL = drive number (0=A:) to assign to new drive
  6666.     ES:SI -> activation record (see below)
  6667. Return: status returned in activation record (see below)
  6668. SeeAlso: AX=4A11h/BX=0000h,AX=4A11h/BX=0006h
  6669.  
  6670. Format of activation record:
  6671. Offset    Size    Description
  6672.  00h  2 BYTEs    signature "MD" (4Dh 44h)
  6673.  02h    BYTE    4Dh ('M') mount command
  6674.  03h    BYTE    error code (set to FFh before calling)
  6675.         00h successful
  6676.         01h drive letter not available for DoubleSpace
  6677.         02h drive letter already in use
  6678.         03h no more disk units (increase MaxRemovableDrives in .INI)
  6679.         09h CVF too fragmented
  6680.  04h    BYTE    host drive number (0=A:)
  6681.  05h    ???    DISK_UNIT structure (not documented)
  6682. --------d-2F4A11BX0006-----------------------
  6683. INT 2F - DBLSPACE.BIN - "DeactivateDrive" - UNMOUNT COMPRESSED DRIVE
  6684.     AX = 4A11h
  6685.     BX = 0006h
  6686.     DL = drive number (0=A:) to unmount
  6687. Return: AX = status (0000h,0102h) (see AX=4A11h/BX=0001h)
  6688. SeeAlso: AX=4A11h/BX=0000h,AX=4A11h/BX=0005h
  6689. --------d-2F4A11BX0007-----------------------
  6690. INT 2F - DBLSPACE.BIN - "GetDriveSpace" - GET SPACE AVAIL ON COMPRESSED DRIVE
  6691.     AX = 4A11h
  6692.     BX = 0007h
  6693.     DL = compressed drive number (0=A:)
  6694. Return: AX = status (0000h,0102h) (see also AX=4A11h/BX=0001h)
  6695.         0000h successful
  6696.         DS:SI -> free space record (see below)
  6697. Program: DBLSPACE.BIN is the resident driver for DoubleSpace, the
  6698.       disk-compression software bundled with MS-DOS 6.0
  6699. SeeAlso: AX=4A11h/BX=0000h,AX=4A11h/BX=0008h
  6700.  
  6701. Format of free space record:
  6702. Offset    Size    Description
  6703.  00h    DWORD    total number of sectors in drive's sector heap
  6704.  04h    DWORD    number of free sectors in drive's sector heap
  6705. --------d-2F4A11BX0008-----------------------
  6706. INT 2F - DBLSPACE.BIN - "GetFileFragmentSpace" - GET SIZE OF FRAGMENT HEAP
  6707.     AX = 4A11h
  6708.     BX = 0008h
  6709.     DL = compressed drive number (0=A:)
  6710. Return: AX = status (0000h,0102h) (see also AX=4A11h/BX=0001h)
  6711.         0000h successful
  6712.         BX = maximum entries in File Fragment heap
  6713.         CX = available entries in File Fragment heap
  6714. SeeAlso: AX=4A11h/BX=0000h,AX=4A11h/BX=0007h,AX=4A11h/BX=0009h
  6715. --------d-2F4A11BX0009-----------------------
  6716. INT 2F - DBLSPACE.BIN - "GetExtraInfo" - DETERMINE NUMBER OF DISK_UNIT STRUCTS
  6717.     AX = 4A11h
  6718.     BX = 0009h
  6719.     DL = compressed drive number (0=A:)
  6720. Return: AX = status (see also AX=4A11h/BX=0001h)
  6721.         0000h successful
  6722.         CL = number of DISK_UNIT structures allocated
  6723.             (see AX=4A11h/BX=0005h)
  6724. SeeAlso: AX=4A11h/BX=0000h,AX=4A11h/BX=0008h
  6725. --------d-2F4A11BXFFFE-----------------------
  6726. INT 2F U - DBLSPACE.BIN - RELOCATE
  6727.     AX = 4A11h
  6728.     BX = FFFEh
  6729.     ES = segment to which to relocate DBLSPACE.BIN
  6730. Return: ???
  6731. Notes:    called by DBLSPACE.SYS to relocate DBLSPACE.BIN to its final position
  6732.       in memory
  6733.     this function also unhooks and discards the code providing this
  6734.       function and AX=4A11h/BX=FFFFh
  6735. SeeAlso: AX=4A11h/BX=FFFFh
  6736. --------d-2F4A11BXFFFF-----------------------
  6737. INT 2F U - DBLSPACE.BIN - GET RELOCATION SIZE
  6738.     AX = 4A11h
  6739.     BX = FFFFh
  6740. Return: AX = number of paragraphs needed by DBLSPACE.BIN
  6741. Note:    used by DBLSPACE.SYS to relocate the DBLSPACE driver to its final
  6742.       position in memory
  6743. SeeAlso: AX=4A11h/BX=0000h,AX=4A11h/BX=FFFEh
  6744. --------d-2F4A12CX4D52-----------------------
  6745. INT 2F - Microsoft Realtime Compression Interface (MRCI) - RAM-BASED SERVER
  6746.     AX = 4A12h
  6747.     CX = 4D52h ("MR")
  6748.     DX = 4349h ("CI")
  6749. Return: CX = 4943h ("IC") if installed
  6750.     DX = 524Dh ("RM") if installed
  6751.         ES:DI -> MRCINFO structure (see INT 1A/AX=B001h)
  6752. Note:    this call is functionally identical to INT 1A/AX=B001h, but should be
  6753.       called first, as the latter call is used for the first, ROM-based
  6754.       MRCI server, while this call is used for RAM-based servers which
  6755.       may be partially or entirely replacing a prior server
  6756. SeeAlso: INT 1A/AX=B001h
  6757. --------d-2F4A13-----------------------------
  6758. INT 2F U - DBLSPACE.BIN - GET ??? ENTRY POINTS
  6759.     AX = 4A13h
  6760. Return: AX = 134Ah if supported
  6761.         ES:BX -> entry point record (see below)
  6762. SeeAlso: AX=4A11h/BX=0000h
  6763.  
  6764. Format of entry point record:
  6765. Offset    Size    Description
  6766.  00h    DWORD    pointer to FAR function for ???
  6767.  04h  5 BYTEs    FAR JUMP instruction to ???
  6768. --------N-2F4B-------------------------------
  6769. INT 2F - LAN Manager 2.0 DOS Enh NETWKSTA.EXE - NETWORK WORKSTATION REDIRECTOR
  6770.     AH = 4Bh
  6771.     ???
  6772. Return: ???
  6773. Note:    LAN Manager enhanced mode adds features beyond the standard redirector
  6774.       file/printer services
  6775. SeeAlso: AX=118Ah,AX=4100h,AH=42h
  6776. --------T-2F4B01-----------------------------
  6777. INT 2F C - DOS 5+ TASK SWITCHER - BUILD CALLOUT CHAIN
  6778.     AX = 4B01h
  6779.     CX:DX -> task switcher entry point (see AX=4B02h)
  6780.     ES:BX = 0000h:0000h
  6781. Return: ES:BX -> callback info structure (see below) or 0000h:0000h
  6782. Notes:    called by the task switcher
  6783.     this function is hooked by clients which require notification of task
  6784.       switcher activities; the call must first be passed on to the prior
  6785.       handler with registers unchanged using a simulated interrupt.     On
  6786.       return, the client must build a callback info structure and store
  6787.       the returned ES:BX in the "next" field, then return the address of
  6788.       its own callback info structure.
  6789.     a client program must add itself to the notification chain if it
  6790.       provides services to other programs; before terminating, it must
  6791.       remove itself from the chain by calling the task switcher's entry
  6792.       point with AX=0005h (see AX=4B02h)
  6793.     the task switcher entry point should not be saved, as it is subject to
  6794.       change and will be provided on any notification call
  6795.     the Windows 3.1 Standard Mode supports this API
  6796. SeeAlso: AX=160Bh,AX=4B02h
  6797.  
  6798. Format of callback info structure:
  6799. Offset    Size    Description
  6800.  00h    DWORD    pointer to next callback info structure
  6801.  04h    DWORD    pointer to notification function (see below)
  6802.  08h    DWORD    reserved
  6803.  0Ch    DWORD    address of zero-terminated list of API info structures
  6804.         (see AX=4B02h)
  6805.  
  6806. Notification function is called with:
  6807.     AX = function
  6808.         0000h switcher initialization
  6809.         Return: AX = 0000h if OK to load
  6810.                = nonzero to abort task switcher
  6811.         0001h query suspend
  6812.         BX = session ID
  6813.         Return: AX = 0000h if OK to switch session
  6814.                = 0001h if not
  6815.         0002h suspend session
  6816.         BX = session ID
  6817.         interrupts disabled
  6818.         Return: AX = 0000h if OK to switch session
  6819.                = 0001h if not
  6820.         0003h activate session
  6821.         BX = session ID
  6822.         CX = session status flags
  6823.             bit 0: set if first activation of session
  6824.             bits 1-15: reserved (0)
  6825.         interrupts disabled
  6826.         Return: AX = 0000h
  6827.         0004h session active
  6828.         BX = session ID
  6829.         CX = session status flags
  6830.             bit 0: set if first activation of session
  6831.             bits 1-15: reserved (0)
  6832.         Return: AX = 0000h
  6833.         0005h create session
  6834.         BX = session ID
  6835.         Return: AX = 0000h if OK to create session
  6836.                = 0001h if not
  6837.         0006h destroy session
  6838.         BX = session ID
  6839.         Return: AX = 0000h
  6840.         0007h switcher termination
  6841.         BX = flags
  6842.             bit 0: set if calling switcher is only switcher loaded
  6843.             bits 1-15: reserved (0)
  6844.         Return: AX = 0000h
  6845.     ES:DI -> task switcher entry point (see AX=4B02h)
  6846. Notes:    function 0000h is generally called by the program which controls or
  6847.       invokes the task switcher, rather than by the task switcher itself;
  6848.       the entry point supplied to this function is not necessarily the
  6849.       entry point to the task switcher itself, and may be 0000h:0000h.  If
  6850.       any client indicates that loading is not possible, all clients will
  6851.       be called with function 0007h; thus it is possible for a client to
  6852.       receive a termination notice without a corresponding initialization
  6853.       notice.
  6854.     except for functions 0002h and 0003h, the notification handler is
  6855.       called with interrupts enabled and may make any INT 21h function
  6856.       call; interrupts must not be enabled in functions 0002h and 0003h
  6857.     function 0007h may be called with ES:DI = 0000h:0000h if the entry
  6858.       point is no longer valid
  6859. --------T-2F4B02BX0000-----------------------
  6860. INT 2F - DOS 5+ TASK SWITCHER - INSTALLATION CHECK
  6861.     AX = 4B02h
  6862.     BX = 0000h
  6863.     ES:DI = 0000h:0000h
  6864. Return: ES:DI = 0000h:0000h if task switcher not loaded
  6865.     ES:DI -> task switcher entry point (see below) if loaded
  6866.         AX = 0000h
  6867. Notes:    the returned entry point is that for the most-recently loaded task
  6868.       switcher; the entry points for prior task switchers may be determined
  6869.       with the "get version" call (see below)
  6870.     this function is supported by PC Tools v8+ CPTASK
  6871. SeeAlso: AX=4A05h,AX=4B03h
  6872.  
  6873. Call task switcher entry point with:
  6874.     AX = 0000h get version
  6875.         Return: CF clear if successful
  6876.                 AX = 0000h
  6877.                 ES:BX -> task switcher version struct (see below)
  6878.             CF set if unsupported function
  6879.     AX = 0001h test memory region
  6880.         ES:DI -> first byte to be tested
  6881.         CX = size of region to test
  6882.         Return: CF clear if successful
  6883.                 AX = memory type of tested region
  6884.                 0000h global
  6885.                 0001h global and local
  6886.                 0002h local (replaced on session switch)
  6887.             CF set if unsupported function
  6888.     AX = 0002h suspend switcher
  6889.         ES:DI -> new task switcher's entry point
  6890.         Return: CF clear if successful
  6891.                 AX = state
  6892.                 0000h switcher has been suspended
  6893.                 0001h switcher not suspended, new switcher must
  6894.                     abort
  6895.                 0002h switcher not suspended, but new switcher
  6896.                     may run anyway
  6897.             CF set if unsupported function
  6898.     AX = 0003h resume switcher
  6899.         ES:DI -> new task switcher's entry point
  6900.         Return: CF clear if successful
  6901.                 AX = 0000h
  6902.             CF set if unsupported function
  6903.     AX = 0004h hook notification chain
  6904.         ES:DI -> callback info structure to be added to chain
  6905.             (see AX=4B01h)
  6906.         Return: CF clear if successful
  6907.                 AX = 0000h
  6908.             CF set if unsupported function
  6909.     AX = 0005h unhook notification chain
  6910.         ES:DI -> callback info structure to be removed from chain
  6911.             (see AX=4B01h)
  6912.         Return: CF clear if successful
  6913.                 AX = 0000h
  6914.             CF set if unsupported function
  6915.     AX = 0006h query API support
  6916.         BX = asynchronous API identifier
  6917.         Return: CF clear if successful
  6918.                 AX = 0000h
  6919.                 ES:BX -> API info structure (see below) for the
  6920.                     client which provides the highest
  6921.                     level of
  6922.             CF set if unsupported function
  6923.  
  6924. Format of task switcher version structure:
  6925. Offset    Size    Description
  6926.  00h    WORD    major version of supported protocol  (current protocol is 1.0)
  6927.  02h    WORD    minor version of supported protocol
  6928.  04h    WORD    major version of task switcher
  6929.  06h    WORD    minor version of task switcher
  6930.  08h    WORD    task switcher ID (see AX=4B03h)
  6931.  0Ah    WORD    operation flags
  6932.         bit 0: set if task switcher disabled
  6933.         bits 1-15: reserved (0)
  6934.  0Ch    DWORD    pointer to ASCIZ task switcher name
  6935.         ("MS-DOS Shell Task Switcher" for DOSSHELL task switcher)
  6936.  10h    DWORD    pointer to previous task switcher's entry point or 0000h:0000h
  6937.  
  6938. Format of API info structure:
  6939. Offset    Size    Description
  6940.  00h    WORD    size of structure in bytes (000Ah)
  6941.  02h    WORD    API identifier
  6942.         0001h NetBIOS
  6943.         0002h 802.2
  6944.         0003h TCP/IP
  6945.         0004h LAN Manager named pipes
  6946.         0005h Novell NetWare IPX
  6947.  04h    WORD    major version \ of highest version of API for which the support
  6948.  06h    WORD    minor version / level specified in the next field is provided
  6949.  08h    WORD    support level
  6950.         0001h minimal support
  6951.         0002h API-level support
  6952.         0003h switcher compatibility
  6953.         0004h seamless compatibility
  6954. --------T-2F4B03-----------------------------
  6955. INT 2F - DOS 5+ TASK SWITCHER - ALLOCATE SWITCHER ID
  6956.     AX = 4B03h
  6957.     ES:DI -> task switcher entry point (see AX=4B02h)
  6958. Return: AX = 0000h
  6959.     BX = switcher ID (0001h-000Fh), or 0000h if no more available
  6960. Notes:    if a task switcher has determined that it is the first to be loaded, it
  6961.       must allocate an identifier for itself and provide this function to
  6962.       all subsequent task switchers; if it is not the first to be loaded,
  6963.       it must call this function to allocate an ID.     The switcher ID is
  6964.       used as the high four bits of all session identifiers to ensure
  6965.       unique session IDs.
  6966.     if no more switcher IDs are available, the new task switcher making the
  6967.       call must terminate or disable itself
  6968.     the task switcher providing the identifiers may call the new task
  6969.       switcher's entry point as needed
  6970.     this call is available from within DOSSHELL even if the task switcher
  6971.       is not installed
  6972.     this function is supported by PC Tools v8+ CPTASK, but appears to
  6973.       always return an ID of 0000h
  6974. SeeAlso: AX=4B02h,AX=4B04h
  6975. --------T-2F4B04-----------------------------
  6976. INT 2F - DOS 5+ TASK SWITCHER - FREE SWITCHER ID
  6977.     AX = 4B04h
  6978.     BX = switcher ID
  6979.     ES:DI -> task switcher entry point (see AX=4B02h)
  6980. Return: AX = 0000h
  6981.     BX = status
  6982.         0000h successful
  6983.         other error (invalid ID or ID not allocated)
  6984. Notes:    called by a task switcher when it exits, unless it was the first loaded
  6985.       and is providing the support for AX=4B03h and AX=4B04h
  6986.     the task switcher providing the identifiers may call the terminating
  6987.       task switcher's entry point as needed
  6988.     this call is available from within DOSSHELL even if the task switcher
  6989.       is not installed
  6990.     this call is supported by PC Tools v8+ CPTASK, but appears to return
  6991.       sucessfully no matter which ID is given
  6992. SeeAlso: AX=4B02h,AX=4B03h
  6993. --------T-2F4B05-----------------------------
  6994. INT 2F C - DOS 5+ TASK SWITCHER - IDENTIFY INSTANCE DATA
  6995.     AX = 4B05h
  6996.     ES:BX = 0000h:0000h
  6997.     CX:DX -> task switcher entry point (see AX=4B02h)
  6998. Return: ES:BX -> startup info structure (see below) or 0000h:0000h
  6999. Notes:    called by task switcher
  7000.     clients with instance data should hook this call, pass it through to
  7001.       the previous handler with unchanged registers using a simulated
  7002.       interrupt.  On return, the client should create a startup info
  7003.       structure (see below), store the returned ES:BX in the "next"
  7004.       field, and return the address of the created structure in ES:BX
  7005.     all MS-DOS function calls are available from within this call
  7006. SeeAlso: AX=1605h,AX=160Bh,AX=4B02h
  7007.  
  7008. Format of startup info structure:
  7009. Offset    Size    Description
  7010.  00h  2 BYTEs    major, minor version of info structure (03h,00h)
  7011.  02h    DWORD    pointer to next startup info structure or 0000h:0000h
  7012.  06h    DWORD    0000h:0000h (ignored)
  7013.  0Ah    DWORD    ignored
  7014.  0Eh    DWORD    pointer to instance data records
  7015.  
  7016. Format of one instance data record in array:
  7017. Offset    Size    Description
  7018.  00h    DWORD    address of instance data (end of array if 0000h:0000h)
  7019.  04h    WORD    size of instance data
  7020. --------W-2F4B20-----------------------------
  7021. INT 2F - MS Windows 3 - WIN.COM - SET PROGRAM TO EXECUTE ON EXIT
  7022.     AX = 4B20h
  7023. Return: AX = 0000h if successful
  7024.         DX:CX -> 256-byte buffer for pathname and commandline (see below)
  7025. Note:    when the Windows function ExitWindows is called with an exit code of
  7026.       44h, WIN.COM executes the program specified in the returned buffer
  7027.       and then restarts Windows
  7028.  
  7029. Format of buffer:
  7030. Offset    Size    Description
  7031.  00h 128 BYTEs    ASCIZ pathname of program to execute
  7032.  80h 128 BYTEs    commandline for program
  7033. --------p-2F4C-------------------------------
  7034. INT 2F U - Advanced Power Management
  7035.     AH = 4Ch
  7036.     AL = function
  7037.         00h version check
  7038.         01h suspend system requested
  7039.         FFh suspend/resume battery notification
  7040.     ???
  7041. Return: ???
  7042. ----------2F4D-------------------------------
  7043. INT 2F U - ???
  7044.     AH = 4Dh
  7045.     ???
  7046. Return: ???
  7047. Note:    reportedly called by Kana Kanji Converter and MSKK
  7048. --------N-2F4E53BL00-------------------------
  7049. INT 2F - SilverNET v2+ - INSTALLATION CHECK
  7050.     AX = 4E53h ("NS")
  7051.     BL = 00h (function "installation check")
  7052.     BH = module ID (see below)
  7053. Return: AX = 0000h if specified module installed
  7054.     BX = 4E53h if installed
  7055. Program: SilverNET is an SMB-compatible peer-to-peer NOS for DOS or
  7056.       Windows systems, by Net-Source, Inc. of Santa Clara, CA.
  7057. SeeAlso: AX=4E53h/BL=01h,AX=4E53h/BL=02h,AX=B800h,AX=B809h
  7058.  
  7059. Values for module ID:
  7060.  01h    SilverCACHE
  7061.  02h    Workstation
  7062.  03h    NetBIOS
  7063.  04h    Peer
  7064.  20h    NS Share
  7065.  80h    NetWare help TSR
  7066. --------N-2F4E53BL01-------------------------
  7067. INT 2F - SilverNET - GET RUNTIME PARAMETER
  7068.     AX = 4E53h ("NS")
  7069.     BL = 01h (function "get runtime parameter")
  7070.     BH = module ID (see AX=4E53h/BL=00h)
  7071.     CX = parameter index (see below)
  7072. Return: AX = WORD value at specified index
  7073. Desc:    retrieve a word of data from the specified SilverNET module
  7074.  
  7075. Values for Peer parameter index (* = read-only):
  7076.  00h *    maximum outstanding SMB buffers
  7077.  02h *    maximum logged-in nodes
  7078.  04h *    number of shareable resources
  7079.  06h *    number of characters to print per time slice
  7080.  08h *    number of printers that can be shared
  7081.  0Ah *    number of nodes logged in
  7082.  0Ch *    number of files to allow opened
  7083.  0Eh    how fast to despool (/PSLICE)
  7084.  10h    audit flag
  7085.  24h *    far pointer to resource table (each resource is 96 bytes in length)
  7086.  32h *    far pointer to SFT (internal if SilverNET files > CONFIG.SYS files,
  7087.     else DOS SFT)
  7088.  36h    spool flag
  7089.     bit 0: LPT1 needs despooling
  7090.     bit 1: LPT2 needs despooling
  7091.     bit 2: LPT2 needs despooling
  7092.     bit 4: COM1 needs despooling
  7093.     bit 5: COM2 needs despooling
  7094.     bit 6: COM3 needs despooling
  7095.  
  7096. Values for NS Share parameter index (* = read-only):
  7097.  00h    version number (high byte = minor, low byte = major)
  7098.  10h *    segment of first lock record (other records in consecutive paragraphs)
  7099.     (if PSP field = 0000h, lock record is free)
  7100.  12h *    maximum possible number of lock records
  7101.  14h *    starting segment of sharing buffer
  7102.     (NS Share's sharing records are identical to DOS SHARE except that
  7103.     fields which are normally offsets into SHARE are segment numbers)
  7104.  18h *    size of sharing buffer in paragraphs
  7105.  1Ah *    total free paragraphs in sharing buffer
  7106.  1Ch *    current number of shared files
  7107.  1Eh *    current number of locked records
  7108.  
  7109. Values for Workstation parameter index (* = read-only):
  7110.  00h    version number (high byte = minor, low byte = major)
  7111.  02h *    size of each network buffer for file operations
  7112.  04h *    number of redirector file buffers
  7113.  06h *    size of each print cache buffer
  7114.  08h *    number of network LPT printers
  7115.  0Ch    flush time in ticks (idle time on network printer before flushing)
  7116.  0Eh    (16 WORDs) last active time for each printer
  7117.  2Eh *    stub segment if program split into two parts
  7118.  60h    receive name number for datagram listens
  7119.  62h *    18-byte machine name
  7120.  74h *    LASTDRIVE (01h = A:, etc.)
  7121.  7Ch    row number of message box on screen
  7122.  7Eh    message time in clock ticks
  7123.  82h *    number of network adapters in use
  7124.  84h    station ID broadcast flag (never set on redirectors)
  7125.  96h *    NetBIOS names left
  7126.  98h *    NCBs left
  7127.  9Ah *    sessions left
  7128.  A2h *    total number of network printers (LPT+COM)
  7129.  A4h *    number of serial network printers
  7130.  A8h *    segment containing file cache buffers
  7131.  AAh *    segment containing print cache buffers
  7132.  ACh *    bytes remaining free in HMA before program loaded
  7133.  AEh *    start of free memory in HMA
  7134.  B2h *    flag: using HMA
  7135. --------N-2F4E53BL02-------------------------
  7136. INT 2F - SilverNET - SET RUNTIME PARAMETERS
  7137.     AX = 4E53h ("NS")
  7138.     BL = 02h (function "set runtime parameters")
  7139.     BH = module ID (see AX=4E53h/BL=00h)
  7140.     CX = parameter index (see AX=4E53h/BL=01h)
  7141.     DX = new value for specified parameter
  7142. Desc:    set a WORD value in the specified SilverNET module
  7143. Note:    not all indexed parameters are writable; modifying a read-only
  7144.       parameter can result in system crashes
  7145. SeeAlso: AX=4E53h/BL=00h,AX=4E53h/BL=01h
  7146. --------p-2F53-------------------------------
  7147. INT 2F U - POWER.EXE - APM event broadcasting???
  7148.     AH = 53h
  7149.     AL = event???
  7150.         05h CPU idle
  7151.         0Bh PM event broadcast API
  7152. Return: ???
  7153. Note:    called by MS Windows 3.1 POWER.DRV; hooked by MS Mouse driver v8.20+
  7154.       and PC-Cache v8.0
  7155. SeeAlso: AX=530Bh,AH=54h,INT 33/AX=002Fh
  7156. --------p-2F530B-----------------------------
  7157. INT 2F U - ??? (MOUSEPWR.COM, others) - ???
  7158.     AX = 530Bh
  7159.     BX = subfunction
  7160.         0003h ???
  7161.         0004h ???
  7162.     ???
  7163. Return: ???
  7164. Note:    it appears that subfunction 0003h reads or restores the current mouse
  7165.       settings (the MS Mouse driver hooks AX=530Bh), and 0004h might be
  7166.       the converse
  7167. --------p-2F5400-----------------------------
  7168. INT 2F U - POWER.EXE - INSTALLATION CHECK
  7169.     AX = 5400h
  7170. Return: AX = POWER.EXE version (AH = major, AL = minor) if installed
  7171.     BX = 504Dh ("PM")
  7172.     CF clear
  7173. Note:    called by MS Windows 3.1 POWER.DRV
  7174. SeeAlso: AH=53h,AX=5401h,AX=5402h,AX=5481h,AX=5482h
  7175. --------p-2F5401-----------------------------
  7176. INT 2F U - POWER.EXE - GET/SET POWER STATUS
  7177.     AX = 5401h
  7178.     BX = function
  7179.         0000h get status
  7180.         Return: BL = power management status
  7181.                 bit 0: CPU idle
  7182.                 bit 1: ???
  7183.         ???
  7184. Return: AX = function status
  7185.         0000h success
  7186.         else  error code
  7187. Note:    called by MS Windows 3.1 POWER.DRV
  7188. SeeAlso: AH=53h,AX=5400h,AX=5402h,AX=5403h
  7189. --------p-2F5402-----------------------------
  7190. INT 2F U - POWER.EXE - GET/SET IDLE DETECTION STRATEGY
  7191.     AX = 5402h
  7192.     BH = subfunction
  7193.         00h get
  7194.         other set
  7195.         BL = detection strategy (00h-0Fh or FFh)
  7196. Return: BX = current/new detection strategy
  7197. SeeAlso: AH=53h,AX=5400h,AX=5401h,AX=5481h,AX=5482h
  7198. --------p-2F5403-----------------------------
  7199. INT 2F U - POWER.EXE - GET/SET ADVANCED POWER MANAGEMENT SETTING
  7200.     AX = 5403h
  7201.     BX = new power management setting or 0000h to get current setting
  7202. Return: AX = status
  7203.         0000h successful
  7204.         BX = power management setting (see below)
  7205.         other error code
  7206. SeeAlso: AX=5401h,AX=5480h
  7207.  
  7208. Values for power management setting:
  7209.  0001h-0005h "min"
  7210.  0006h         "reg"
  7211.  0007h-0008h "max"
  7212. --------t-2F5453-----------------------------
  7213. INT 2F - TesSeRact RAM-RESIDENT PROGRAM INTERFACE
  7214.     AX = 5453h
  7215.     BX = subfunction
  7216.         00h installation check
  7217.         CX = 0000h
  7218.         DS:SI -> 8-char blank-padded name
  7219.         Return: AX = FFFFh installed
  7220.                 CX = ID number of already-installed copy
  7221.                = anything else, not installed
  7222.                 CX = ID number for TSR when installed
  7223.         01h get user parameters
  7224.         CX = TSR ID number
  7225.         Return: AX = 0000h successful
  7226.                ES:BX -> user parameter block (see below)
  7227.                = nonzero failed
  7228.         02h check if hotkey in use
  7229.         CL = scan code of hot key
  7230.         Return: AX = FFFFh hot key conflicts with another TSR
  7231.                  otherwise safe to use the hotkey
  7232.         03h replace default critical error handler
  7233.         CX = TSR ID number
  7234.         DS:SI -> new routine for INT 24h
  7235.         Return: AX = nonzero, unable to install new handler
  7236.         04h get internal data area
  7237.         CX = TSR ID number
  7238.         Return: AX = 0000h
  7239.                 ES:BX -> TSR's internal data area (see below)
  7240.                = nonzero, TSR not found
  7241.         05h set multiple hot keys
  7242.         CX = TSR ID number
  7243.         DL = number of additional hot keys to allocate
  7244.         DS:SI -> table of hot keys
  7245.             BYTE  hotkey scan code
  7246.             BYTE  hotkey shift state
  7247.             BYTE  flag value to pass to TSR (nonzero)
  7248.         Return: AX = nonzero, unable to install hot keys
  7249.         06h - 0Fh reserved
  7250.         10h enable TSR
  7251.         CX = TSR ID number
  7252.         Return: AX = nonzero, unable to enable
  7253.         11h disable TSR
  7254.         CX = TSR ID number
  7255.         Return: AX = nonzero, unable to disable
  7256.         12h unload TSR
  7257.         CX = TSR ID number
  7258.         Return: AX = nonzero, invalid TSR number
  7259.         Note: if any interrupts used by TSR have been grabbed by
  7260.             another TSR, the TesSeRact routines will wait until
  7261.             it is safe to remove the indicated TSR from memory
  7262.         13h restart TSR
  7263.         CX = TSR ID number of TSR which was unloaded but is still in
  7264.              memory
  7265.         Return: AX = nonzero, unable to restart TSR
  7266.         14h get status word
  7267.         CX = TSR ID number
  7268.         Return: AX = FFFFh invalid ID number
  7269.                = other, successful
  7270.                 BX = bit flags
  7271.         15h set status word
  7272.         CX = TSR ID number
  7273.         DX = new bit flags
  7274.         Return: AX = nonzero, unable to set status word
  7275.         16h get INDOS state at popup
  7276.         CX = TSR ID number
  7277.         Return: AX = 0000h successful
  7278.                 BX = value of INDOS flag
  7279.         17h - 1Fh reserved
  7280.         20h call user procedure
  7281.         CX = TSR ID number
  7282.         ES:DI -> user-defined data
  7283.         Return: AX = 0000h successful
  7284.         21h stuff keystrokes into keyboard buffer
  7285.         CX = TSR ID number
  7286.         DL = speed
  7287.             00h stuff keystrokes only when buffer is empty
  7288.             01h stuff up to four keystrokes per clock tick
  7289.             02h stuff up to 15 keystrokes per clock tick
  7290.         DH = scan code flag
  7291.             if zero, buffer contains alternating ASCII and scan codes
  7292.             if nonzero, buffer contains only ASCII codes
  7293.         SI = number of keystrokes
  7294.         ES:DI -> buffer to stuff
  7295.         Return: AX = 0000h success
  7296.                  F0F0h user aborted with ^C or ^Break
  7297.                  other unable to stuff keystrokes
  7298.         22h (v1.10) trigger popup
  7299.         CX = TSR ID number
  7300.         Return: AX = 0000h success, TSR will either pop up or beep to
  7301.                    indicate that it is unable to pop up
  7302.                  nonzero invalid ID number
  7303.         23h (v1.10) invoke TSR's background function
  7304.         CX = TSR ID number
  7305.         Return: AX = 0000h success
  7306.                  FFFFh not safe to call background function
  7307.                  nonzero invalid ID number
  7308.         24h - 2Fh reserved
  7309. Notes:    Borland's THELP.COM popup help system for Turbo Pascal and Turbo C
  7310.       (versions 1.x and 2.x only) fully supports the TesSeRact API, as
  7311.       do the SWAP?? programs by Innovative Data Concepts.
  7312.     AVATAR.SYS supports functions 00h and 01h (only the first three fields
  7313.       of the user parameter block) using the name "AVATAR  "
  7314. SeeAlso: AX=CAFEh,INT 16/AX=55FFh,INT 2D"AMIS"
  7315. Index:    installation check;TesSeRact TSR interface|uninstall;TesSeRact
  7316.  
  7317. Values for TesSeract names:
  7318.  "AVATAR  "    AVATAR.SYS
  7319.  "QeditTSR"    TSR version of SemWare's Qedit editor
  7320.  "SCRNBLNK"    Trusted Access screen blanker
  7321.  
  7322. Format of User Parameter Block:
  7323. Offset    Size    Description
  7324.  00h  8 BYTEs    blank-padded TSR name
  7325.  08h    WORD    TSR ID number
  7326.  0Ah    DWORD    bitmap of supported functions
  7327.  0Eh    BYTE    scan code of primary hotkey
  7328.             00h = pop up when shift states match
  7329.             FFh = no popup (if shift state also FFh)
  7330.  0Fh    BYTE    shift state of primary hotkey
  7331.             FFh = no popup (if scan code also FFh)
  7332.  10h    BYTE    number of secondary hotkeys
  7333.  11h    DWORD    pointer to extra hotkeys set by func 05h
  7334.  15h    WORD    current TSR status flags
  7335.  17h    WORD    PSP segment of TSR
  7336.  19h    DWORD    DTA for TSR
  7337.  1Dh    WORD    default DS for TSR
  7338.  1Fh    DWORD    stack at popup
  7339.  23h    DWORD    stack at background invocation
  7340. Index:    hotkeys;TesSeRact TSR interface
  7341.  
  7342. Format of TSR internal data area:
  7343. Offset    Size    Description
  7344.  00h    BYTE    revision level of TesSeRact library
  7345.  01h    BYTE    type of popup in effect
  7346.  02h    BYTE    INT 08 occurred since last invocation
  7347.  03h    BYTE    INT 13 occurred since last invocation
  7348.  04h    BYTE    active interrupts
  7349.  05h    BYTE    active soft interrupts
  7350.  06h    BYTE    DOS major version
  7351.  07h    BYTE    how long to wait before popping up
  7352.  08h    DWORD    pointer to INDOS flag
  7353.  0CH    DWORD    pointer to DOS critical error flag
  7354.  10h    WORD    PSP segment of interrupted program
  7355.  12h    WORD    PSP segment of prog interrupted by INT 28
  7356.  14h    DWORD    DTA of interrupted program
  7357.  18h    DWORD    DTA of program interrupted by INT 28
  7358.  1Ch    WORD    SS of interrupted program
  7359.  1Eh    WORD    SP of interrupted program
  7360.  20h    WORD    SS of program interrupted by INT 28
  7361.  22h    WORD    SP of program interrupted by INT 28
  7362.  24h    DWORD    INT 24 of interrupted program
  7363.  28h  3 WORDs    DOS 3+ extended error info
  7364.  2Eh    BYTE    old BREAK setting
  7365.  2Fh    BYTE    old VERIFY setting
  7366.  30h    BYTE    were running MS WORD 4.0 before popup
  7367.  31h    BYTE    MS WORD 4.0 special popup flag
  7368.  32h    BYTE    enhanced keyboard call in use
  7369.  33h    BYTE    delay for MS WORD 4.0
  7370. 11 times (for INTs 08h,09h,13h,16h,1Ch,21h,28h,2Fh,1Bh,23h, and 24h):
  7371.     DWORD    old interrupt vector
  7372.     BYTE    interrupt number
  7373.     WORD    offset in TesSeRact code segment of new interrupt handler
  7374. --------p-2F5480-----------------------------
  7375. INT 2F U - POWER.EXE - GET/SET ???
  7376.     AX = 5480h
  7377.     BX = direction
  7378.         0000h get
  7379.         other set
  7380.     CX = size of buffer (at least 0010h)
  7381.     DS:SI -> buffer
  7382. Return: AX = status
  7383.         0000h successful
  7384.         other error code
  7385. SeeAlso: AX=5400h,AX=5481h,AX=548Fh
  7386. --------p-2F5481-----------------------------
  7387. INT 2F U - POWER.EXE - GET STATISTICS
  7388.     AX = 5481h
  7389.     BX = ??? (0000h or 0001h)
  7390.     CX = length of buffer
  7391.     DS:SI -> buffer for statistics (see below)
  7392. Return: AX = status
  7393.         0000h successful
  7394.         else  error code
  7395. SeeAlso: AH=53h,AX=5400h,AX=5480h,AX=5402h,AX=5482h
  7396.  
  7397. Format of statistics:
  7398. Offset    Size    Description
  7399.  00h    DWORD    total ???
  7400.  04h    DWORD    ??? during which CPU was idle (divide by previous to get idle
  7401.             rate)
  7402. --------p-2F5482-----------------------------
  7403. INT 2F U - POWER.EXE - GET/SET APM POLLING FREQUENCY
  7404.     AX = 5482h
  7405.     BX = new polling frequency or 0000h to get current frequency
  7406. Return: AX = 0000h (successful)
  7407.     BX = current frequency if BX=0000h on entry
  7408. SeeAlso: AH=53h,AX=5400h,AX=5401h,AX=5480h,AX=5481h,AX=548Fh
  7409. --------p-2F548F-----------------------------
  7410. INT 2F U - POWER.EXE - GET/SET ???
  7411.     AX = 548Fh
  7412.     BX = ??? or 0000h to get current ???
  7413. Return: AX = 0000h (successful)
  7414.     BX = current ???
  7415.     CX = ???
  7416. SeeAlso: AX=5400h,AX=5480h,AX=5482h
  7417. --------l-2F5500-----------------------------
  7418. INT 2F U - DOS 5+ - COMMAND.COM INTERFACE
  7419.     AX = 5500h
  7420. Return: AX = 0000h if an instance of COMMAND.COM is already running
  7421.     DS:SI -> entry point table
  7422. Notes:    used to access the shareable portion of COMMAND.COM, which may have
  7423.       been moved into the HMA; only the primary COMMAND.COM retains this
  7424.       portion
  7425.     procedures called from a dispatcher in COMMAND's resident portion;
  7426.       most assume that the segment address of the resident portion is on
  7427.       the stack and are thus not of general use
  7428. SeeAlso: AX=5501h
  7429. --------l-2F5501-----------------------------
  7430. INT 2F U - DOS 5+ - ROM COMMAND.COM INTERFACE
  7431.     AX = 5501h
  7432. Return: ???
  7433. Note:    used to determine whether the caller is the first instance of ROM
  7434.       COMMAND.COM
  7435. SeeAlso: AX=5500h
  7436. --------R-2F5600DXFFFF-----------------------
  7437. INT 2F - INTERLNK - INSTALLATION CHECK
  7438.     AX = 5600h
  7439.     DX = FFFFh
  7440.     BL = instance number (00h = any, 01h = first loaded, etc.)
  7441. Return: AL = FFh if installed
  7442.         BL = instance number
  7443.         CX = ???
  7444.         DX = resident CS
  7445. SeeAlso: AX=5601h,AX=5602h
  7446. --------R-2F5601DXFFFF-----------------------
  7447. INT 2F - INTERLNK - CHECK IF REDIRECTED DRIVE
  7448.     AX = 5601h
  7449.     DX = FFFFh
  7450.     BH = drive number (0=A:)
  7451. Return: (as for AL=00h if redirected drive)
  7452. SeeAlso: AX=5600h
  7453. --------R-2F5602DXFFFF-----------------------
  7454. INT 2F - INTERLNK - GET ???
  7455.     AX = 5602h
  7456.     DX = FFFFh
  7457. Return: CX = ???
  7458. SeeAlso: AX=5600h
  7459. ----------2F57-------------------------------
  7460. INT 2F U - ???
  7461.     AH = 57h
  7462.     ???
  7463. Return: ???
  7464. Note:    reportedly used by Iomega Corp.
  7465. --------v-2F6282-----------------------------
  7466. INT 2F U - PC Tools v7.0+ VDEFEND, VSAFE, VWATCH, DATAMON - SET ??? ADDRESS
  7467.     AX = 6282h
  7468.     CX:DX -> ??? or 0000h:0000h
  7469.     DI = segment of ??? record (see below) or 0000h/FFFFh to ignore
  7470. Return: BX = 0062h
  7471. Note:    if CX:DX = 0000h:0000h on entry, the ??? address is not changed
  7472.       (DATAMON only)
  7473. SeeAlso: INT 13/AH=FAh"VSAFE",INT 21/AH=FAh"VDEFEND"
  7474.  
  7475. Format of record:
  7476. Offset    Size    Description
  7477.  00h    DWORD    ???
  7478.  04h    WORD    offset of ??? in record's segment
  7479.         VSAFE 2.0 sets byte at +01h to 56h or 58h
  7480.         VWATCH 2.1 sets byte at +02h to 56h or 58h
  7481.  06h  2 BYTEs    ???
  7482.  08h    BYTE    ??? (01h/other)
  7483. --------v-2F6284BX0000-----------------------
  7484. INT 2F U - PC Tools v7-8 DATAMON, v9+ DPROTECT    - INSTALLATION CHECK
  7485.     AX = 6284h
  7486.     BX = 0000h
  7487.     CX = 0000h
  7488. Return: AX = segment of resident code
  7489.     BX = 5555h
  7490.     CX = 5555h
  7491. --------v-2F6284BX0001-----------------------
  7492. INT 2F U - PC Tools v7-8 DATAMON, v9+ DPROTECT - GET ???
  7493.     AX = 6284h
  7494.     BX = 0001h
  7495.     CX = 0001h
  7496. Return: AX:BX -> ??? data (see below)
  7497.     CX = BX
  7498.  
  7499. Format of data for v9.0:
  7500. Offset    Size    Description
  7501.  00h  5 BYTEs    ???
  7502.  05h    WORD    resident code segment (may be segment of DWORD at +03h)
  7503.  07h    DWORD    -> FAR function to sound alert tone
  7504.     ???
  7505. --------v-2F6284BX0002-----------------------
  7506. INT 2F U - PC Tools v7-8 DATAMON, v9+ DPROTECT - GET OPTIONS
  7507.     AX = 6284h
  7508.     BX = 0002h
  7509.     CX = 0002h
  7510. Return: AX = options (see below)
  7511.     BX = ??? (0000h for v9)
  7512.     CX = AX
  7513.     DX = BX
  7514.  
  7515. Bitfields for options:
  7516.  bit 14    using Delete Tracker
  7517.  bit 13    using Delete Sentry
  7518.  bit 12    disabled
  7519.  bit 1    ???
  7520. --------v-2F6284BX0003-----------------------
  7521. INT 2F U - PC Tools v7-8 DATAMON, v9+ DPROTECT - SET ??? FLAGS
  7522.     AX = 6284h
  7523.     BX = 0003h
  7524.     CX = flags
  7525.         bit 12: disable DATAMON/DPROTECT
  7526.         bit 10: ???
  7527.         bit     5: ???
  7528.         bit     3: ???
  7529.     DX = flags
  7530.         bit 15: ???
  7531. Note:    v9 DPROTECT only checks bit 12 of CX, and ignores DX entirely
  7532. --------v-2F6284BX0004-----------------------
  7533. INT 2F U - PC Tools v8 DATAMON, v9+ DPROTECT - ???
  7534.     AX = 6284h
  7535.     BX = 0004h
  7536.     CX = 0004h
  7537. Return: AX = 5555h
  7538.     BX = ??? (0800h)
  7539.     CX = ??? (FCCCh for v8, FCCBh for v9)
  7540. --------V-2F6400-----------------------------
  7541. INT 2F - SCRNSAV2.COM - INSTALLATION CHECK
  7542.     AX = 6400h
  7543. Return: AL = 00h not installed
  7544.          FFh installed
  7545. Program: SCRNSAV2.COM is a screen saver for PS/2s with VGA by Alan Ballard
  7546. SeeAlso: INT 10/AX=5555h
  7547. Index:    screen saver;SCRNSAV2
  7548. --------N-2F7000-----------------------------
  7549. INT 2F - License Service API - INSTALLATION CHECK
  7550.     AX = 7000h
  7551.     CX = license server index (0000h to 001Fh)
  7552. Return: AL = status
  7553.         00h not installed
  7554.         FFh installed
  7555. Notes:    The License Service API is being maintained by Microsoft but is being
  7556.       supported by a large number of companies including Apple, Banyan,
  7557.       DEC, HP, Lotus, Microsoft, Novell, Software Publishers Association,
  7558.       and Wordperfect (not a complete list!)
  7559.     Each license service provider must search for the next free index
  7560.       slot to use
  7561. SeeAlso: AX=7001h,AX=7003h,AX=7004h,AX=7005h
  7562. --------N-2F7001-----------------------------
  7563. INT 2F - License Service API - REQUEST LICENSE
  7564.     AX = 7001h
  7565.     CX = license server index (0000h to 001Fh)
  7566.     DS:DX -> SLSREQUEST structure (see below)
  7567. Return: AX = status
  7568.         0000h success
  7569.         else  provider error code
  7570.     ES:BX = provider specific handle for the license context
  7571. SeeAlso: AX=7002h,AX=7004h,AX=7005h
  7572.  
  7573. Format of SLSREQUEST structure:
  7574. Offset    Size    Description
  7575.  00h    DWORD    (return) status code
  7576.  04h    DWORD    (return) handle identifying context
  7577.  08h    DWORD    (call) address of Publisher string
  7578.  0Ch    DWORD    (call) address of Product string
  7579.  10h    DWORD    (call) address of Version string
  7580.  14h    DWORD    units required
  7581.  18h    DWORD    address of comment string
  7582.  1Ch    DWORD    address of SLSCHALLENGE structure (see below)
  7583.  
  7584. Format of SLSCHALLENGE structure:
  7585. Offset    Size    Description
  7586.  00h    DWORD    algorithm (currently always 1)
  7587.  04h    DWORD    secret to be challenged (1-255)
  7588.  08h    DWORD    size of challenge in bytes (1-255)
  7589.  0Ch  N BYTEs    challenge data
  7590. --------N-2F7002-----------------------------
  7591. INT 2F - License Service API - RELEASE LICENSE
  7592.     AX = 7002h
  7593.     CX = license server index (0000h to 001Fh)
  7594.     DS:DX -> SLSRELEASE structure (see below)
  7595.     ES:BX = provider specific handle for the license context
  7596. Return: AL = status
  7597.         00h not installed
  7598.         FFh installed
  7599. SeeAlso: AX=7001h,AX=7005h
  7600.  
  7601. Format of SLSRELEASE structure:
  7602. Offset    Size    Description
  7603.  00h    DWORD    handle indentifying license context
  7604.  04h    DWORD    total units consumed
  7605.  08h    DWORD    address of comment string
  7606. --------N-2F7003-----------------------------
  7607. INT 2F - License Service API - UPDATE
  7608.     AX = 7003h
  7609.     CX = license server index (0000h to 001Fh)
  7610.     DS:DX -> SLSUPDATE structure
  7611.     ES:BX = provider specific handle for the license context
  7612. Return: AL = status
  7613.         00h not installed
  7614.         FFh installed
  7615. SeeAlso: AX=7004h,AX=7005h
  7616.  
  7617. Format of SLSUPDATE structure:
  7618. Offset    Size    Description
  7619.  00h    DWORD    (return) status code
  7620.  04h    DWORD    (call) handle identifying license context
  7621.  08h    DWORD    (call) total units consumed
  7622.  0Ch    DWORD    additional units required
  7623.  10h    DWORD    address of comment string
  7624.  14h    DWORD    address of SLSCHALLENGE structure (see AX=7001h)
  7625. --------N-2F7004-----------------------------
  7626. INT 2F - License Service API - GET ERROR
  7627.     AX = 7004h
  7628.     CX = license server index (0000h to 001Fh)
  7629.     DS:DX -> SLSGETERROR structure (see below)
  7630.     ES:BX = provider specific handle for the license context
  7631. Return: AL = status
  7632.         00h not installed
  7633.         FFh installed
  7634. SeeAlso: AX=7000h,AX=7001h
  7635.  
  7636. Format of SLSGETERROR structure:
  7637. Offset    Size    Description
  7638.  00h    DWORD    (return) status code
  7639.  04h    DWORD    handle identifying license context
  7640.  08h    DWORD    error code
  7641.  0Ch    DWORD    buffer size in bytes
  7642.  10h  N BYTEs    data buffer
  7643. --------N-2F7005-----------------------------
  7644. INT 2F - License Service API - QUERY LICENSE
  7645.     AX = 7005h
  7646.     CX = license server index (0000h to 001Fh)
  7647.     DS:DX -> SLSQUERY structure (see below)
  7648.     ES:BX = provider specific handle for the license context
  7649. Return: AL = status
  7650.         00h not installed
  7651.         FFh installed
  7652. SeeAlso: AX=7001h,AX=7002h
  7653.  
  7654. Format of SLSQUERY structure:
  7655. Offset    Size    Description
  7656.  00h    DWORD    (return) status code
  7657.  04h    DWORD    handle identifying license context
  7658.  08h    DWORD    information index
  7659.  0Ch    DWORD    buffer size in bytes
  7660.  10h  N BYTEs    data buffer
  7661. --------d-2F7200-----------------------------
  7662. INT 2F - SRDISK v1.30 - INSTALLATION CHECK
  7663.     AX = 7200h
  7664. Return: AL = FFh if installed
  7665.         ES = segment of device driver header (see below)
  7666. Program: SRDISK is a freeware resizeable RAMdisk by Marko Kohtala
  7667.  
  7668. Format of device driver header:
  7669. Offset    Size    Description
  7670.  00h 10 BYTEs    same as standard device driver header (see INT 21/AH=52h)
  7671.  0Ah    BYTE    number of subunits (drives) supported by driver
  7672.  0Bh  3 BYTEs    signature "SRD"
  7673.  0Eh  4 BYTEs    memory type string (currently only "XMS ")
  7674.  12h  4 BYTEs    ASCII driver version string "N.NN"
  7675.  16h    BYTE    00h
  7676.  17h    BYTE    configuration format version (currently 00h)
  7677.  18h    WORD    offset of drive configuration data
  7678. --------N-2F7A00-----------------------------
  7679. INT 2F - Novell NetWare - LOW-LEVEL API (IPX) INSTALLATION CHECK
  7680.     AX = 7A00h
  7681. Return: AL = 00h not installed
  7682.        = FFh installed
  7683.         ES:DI -> FAR entry point for routines accessed exclusively
  7684.             through INT 7A in NetWare versions through 2.0a.  Call
  7685.             with same values as INT 7A
  7686. SeeAlso: AX=7AFFh/BX=0000h,AX=D800h,INT 64"Novell",INT 7A"Novell"
  7687. --------N-2F7A10-----------------------------
  7688. INT 2F U - Novell NetWare - TBMI v1.1+ - GET TBMI STATUS
  7689.     AX = 7A10h
  7690. Return: DH = major TBMI version number
  7691.     DL = minor TBMI version number (01h for v1.1)
  7692.     CX = segment address of TBMI resident part
  7693.     BX = status word of TBMI (see below)
  7694. Note:    TBMI is the Task-Switched Buffer Manager Interface
  7695. SeeAlso: AX=7A11h,AX=7A12h,AX=7A13h,AX=7A14h
  7696.  
  7697. Bitfields for status word:
  7698.  bit 0    INT2F intercepted by TBMI
  7699.  bit 1    INT7A intercepted by TBMI
  7700.  bit 2    INT64 intercepted by TBMI
  7701.  bits 3-14 reserved or unused ???
  7702.  bit 15 outstanding task ID was detected
  7703. --------N-2F7A11-----------------------------
  7704. INT 2F U - Novell NetWare - TBMI v1.1+ - GET INT2F HANDLERS
  7705.     AX = 7A11h
  7706. Return: ES:BX -> old INT 2F handler
  7707.     DS:DX -> TBMI INT 2F handler
  7708. SeeAlso: AX=7A10h,AX=7A12h,AX=7A13h,AX=7A1Ah
  7709. --------N-2F7A12-----------------------------
  7710. INT 2F U - Novell NetWare - TBMI v1.1+ - GET INT64 HANDLERS
  7711.     AX = 7A12h
  7712. Return: ES:BX -> old INT 64 handler
  7713.     DS:DX -> TBMI INT 64 handler
  7714. SeeAlso: AX=7A10h,AX=7A11h,AX=7A13h
  7715. --------N-2F7A13-----------------------------
  7716. INT 2F U - Novell NetWare - TBMI v1.1+ - GET INT7A HANDLERS
  7717.     AX = 7A13h
  7718. Return: ES:BX -> old INT 7A handler
  7719.     DS:DX -> TBMI INT 7A handler
  7720. SeeAlso: AX=7A10h,AX=7A11h,AX=7A12h
  7721. --------N-2F7A14-----------------------------
  7722. INT 2F U - Novell NetWare - TBMI v1.1+ - GET STATISTICS
  7723.     AX = 7A14h
  7724.     CX = statistic to retrieve
  7725.         0000h available diagnostic functions???
  7726.         Return: CX = maximum available function??? (000Ch for v2.0)
  7727.         0001h buffers in use
  7728.         Return: CX = TBMI buffers currently in use
  7729.         0002h maximum buffers used
  7730.         Return: CX = maximum number of buffers ever in use
  7731.         0003h unavailable buffers
  7732.         Return: CX = count of unavailable TBMI buffers
  7733.         0004h old interrupt usage
  7734.         Return: CX = TBMI accesses to intercepted old vectors INT 2F,
  7735.                 INT 64, and INT 7A
  7736.         0005h far call usage
  7737.         Return: CX = TBMI accesses to IPX/SPX far call handler (not
  7738.                 including internal accesses)
  7739.         0006h task buffering
  7740.         Return: CX = TBMI task buffering status (enabled/disabled or
  7741.                 disable/enable switch count???)
  7742.         0007h current task ID
  7743.         Return: CX = TBMI current task ID number (0000h if ???)
  7744.         0008h outstanding ID count
  7745.         Return: CX = number of outstanding TBMI IDs
  7746.         0009h configured ECBs
  7747.         Return: CX = number of TBMI Event Control Blocks configured
  7748.         000Ah configured data ECBs
  7749.         Return: CX = number of TBMI data ECBs configured
  7750.         000Bh configured sockets
  7751.         Return: CX = number of TBMI sockets configured (from NETCFG)
  7752.         000Ch current sockets
  7753.         Return: CX = number of TBMI sockets currently in use
  7754. Return: BX = maximum supported subfunction (000Ch)
  7755. SeeAlso: AX=7A10h
  7756. --------N-2F7A15-----------------------------
  7757. INT 2F OU - Novell NetWare - TBMI v1.1 only - RESET ???
  7758.     AX = 7A15h
  7759. Return: BX = new value of ???
  7760. Desc:    set ??? to its default value
  7761. Note:    this call is a NOP under TBMI v2.0 (TBMI2)
  7762. SeeAlso: AX=7A17h
  7763. --------N-2F7A16-----------------------------
  7764. INT 2F OU - Novell NetWare - TBMI v1.1 only - ???
  7765.     AX = 7A16h
  7766.     CX = ???
  7767.     ???
  7768. Return: ???
  7769. Note:    this call is a NOP under TBMI v2.0 (TBMI2)
  7770. --------N-2F7A17-----------------------------
  7771. INT 2F OU - Novell NetWare - TBMI v1.1 only - ???
  7772.     AX = 7A17h
  7773.     ???
  7774. Return: BX = old value of ???
  7775.     CX = new value of ???
  7776. Note:    this call is a NOP under TBMI v2.0 (TBMI2)
  7777. SeeAlso: AX=7A15h
  7778. --------N-2F7A18-----------------------------
  7779. INT 2F U - Novell NetWare - TASKID v1.0 - INSTALLATION CHECK
  7780.     AX = 7A18h
  7781. Return: AL = FFh if installed
  7782.         BX = configuration flags (see below)
  7783.         CX = resident code segment
  7784. SeeAlso: AX=7A10h
  7785.  
  7786. Bitfields for configuration flags:
  7787.  bit 0    INT 2F hooked
  7788.  bit 3    INT 08 hooked
  7789.  other    unused
  7790. --------N-2F7A19-----------------------------
  7791. INT 2F U - Novell NetWare - TASKID v1.0 - GET INT 08 HANDLERS
  7792.     AX = 7A19h
  7793. Return: AL = FFh
  7794.     DS:DX -> TASKID INT 08 handler
  7795.     ES:BX -> original INT 08 handler
  7796. --------N-2F7A1A-----------------------------
  7797. INT 2F U - Novell NetWare - TASKID v1.0 - GET INT 2F HANDLERS
  7798.     AX = 7A1Ah
  7799. Return: AL = FFh
  7800.     DX:DX -> TASKID INT 2F handler
  7801.     ES:BX -> original INT 2F handler
  7802. SeeAlso: AX=7A11h,AX=7A19h
  7803. --------N-2F7A1B-----------------------------
  7804. INT 2F U - Novell NetWare - TASKID v1.0 - GET DIAGNOSTICS INFORMATION
  7805.     AX = 7A1Bh
  7806.     CX = desired information
  7807.         0000h supported functions
  7808.         0001h TASKID ID number
  7809.         Return: CX = ID number
  7810.         0002h set-ID count
  7811.         Return: CX = ID set count
  7812. Return: AL = FFh
  7813.     BX = highest supported subfunction number (0002h)
  7814. SeeAlso: AX=7A14h,AX=7A18h
  7815. --------N-2F7A1C-----------------------------
  7816. INT 2F U - Novell NetWare - TBMI v1.1+ - ???
  7817.     AX = 7A1Ch
  7818.     BP = ???
  7819.     CX:DX = ???
  7820. Return: AX = 70FFh
  7821. --------N-2F7A1D-----------------------------
  7822. INT 2F U - Novell NetWare - TBMI v1.1+ - ???
  7823.     AX = 7A1Dh
  7824.     ???
  7825. Return: ES = ???
  7826.     ???
  7827.     SI destroyed
  7828. --------N-2F7A1E-----------------------------
  7829. INT 2F U - Novell NetWare - TBMI v1.1+ - ???
  7830.     AX = 7A1Eh
  7831.     ES:SI -> ???
  7832.     ???
  7833. Return: ???
  7834. --------N-2F7A20BX0000-----------------------
  7835. INT 2F - Novell NetWare - Advanced NetWare 4.0 DOS Requester - GET CALL ADDRESS
  7836.     AX = 7A20h
  7837.     BX = 0000h
  7838. Return: AX = 0000h on success (installed)
  7839.         ES:BX -> far call address for DOS Requester
  7840. Notes:    the DOS Requester replaces the NetWare Shell (ANETx, NETx) on
  7841.       NetWare LAN's as of the release of Advanced NetWare 4.0 (1993).  It
  7842.       is backward compatible with NetWare 2.1x through 3.11 servers as
  7843.       well.     Note that there was a NetWare 4.0 in the early 1980's, which
  7844.       can cause confusion.
  7845.     this call is used as the installation check by VLM.EXE, which is the
  7846.       loader for all the modules of the DOS Requester
  7847. Index:    installation check;NetWare 4.0 DOS Requester
  7848. --------N-2F7A20BX0001-----------------------
  7849. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ??? ENTRY POINT
  7850.     AX = 7A20h
  7851.     BX = 0001h
  7852. Return: AX = 0000h
  7853.     ES:BX -> ??? entry point
  7854. --------N-2F7A20BX0002-----------------------
  7855. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ??? ADDRESS
  7856.     AX = 7A20h
  7857.     BX = 0002h
  7858. Return: AX = 0000h
  7859.     ES:BX -> ??? data
  7860. --------N-2F7A20BX0003-----------------------
  7861. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ???
  7862.     AX = 7A20h
  7863.     BX = 0003h
  7864. Return: AX = 0000h
  7865.     ES:BX -> ???
  7866. --------N-2F7A20BX0004-----------------------
  7867. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ??? ADDRESS
  7868.     AX = 7A20h
  7869.     BX = 0004h
  7870. Return: AX = 0000h
  7871.     ES:BX -> ??? data (see below)
  7872.  
  7873. Format of data:
  7874. Offset    Size    Description
  7875.  00h    DWORD    pointer to ??? (code)
  7876.  04h  4 BYTEs    ???
  7877.  08h    DWORD    pointer to ??? (code)
  7878.     ???
  7879. --------N-2F7A20BX0005-----------------------
  7880. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ??? ENTRY POINT
  7881.     AX = 7A20h
  7882.     BX = 0005h
  7883. Return: AX = 0000h
  7884.     ES:BX -> ??? entry point
  7885. --------N-2F7A20BX0006-----------------------
  7886. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ??? ENTRY POINT
  7887.     AX = 7A20h
  7888.     BX = 0006h
  7889. Return: AX = 0000h
  7890.     ES:BX -> ??? entry point (RETF in v1.03)
  7891. --------N-2F7A20BX0007-----------------------
  7892. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ??? ENTRY POINT
  7893.     AX = 7A20h
  7894.     BX = 0007h
  7895. Return: AX = 0000h
  7896.     ES:BX -> ??? entry point (RETF in v1.03)
  7897. --------N-2F7A20BX0008-----------------------
  7898. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ??? ENTRY POINT
  7899.     AX = 7A20h
  7900.     BX = 0008h
  7901. Return: AX = 0000h
  7902.     ES:BX -> ??? entry point (RETF in v1.03)
  7903. --------N-2F7A20BX0080-----------------------
  7904. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ??? ENTRY POINT
  7905.     AX = 7A20h
  7906.     BX = 0080h
  7907. Return: AX = 0000h
  7908.     ES:BX -> ??? entry point (RETF in v1.03)
  7909. Note:    this function is identical to AX=7A20h/BX=0006h in v1.03
  7910. --------N-2F7A20BX0081-----------------------
  7911. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ??? ENTRY POINT
  7912.     AX = 7A20h
  7913.     BX = 0081h
  7914. Return: AX = 0000h
  7915.     ES:BX -> ??? entry point (RETF in v1.03)
  7916. Note:    this function is identical to AX=7A20h/BX=0007h in v1.03
  7917. --------N-2F7A20BX0082-----------------------
  7918. INT 2F - Novell NetWare - DOS Requester v1.03 - GET ??? ENTRY POINT
  7919.     AX = 7A20h
  7920.     BX = 0082h
  7921. Return: AX = 0000h
  7922.     ES:BX -> ??? entry point (RETF in v1.03)
  7923. Note:    this function is identical to AX=7A20h/BX=0008h in v1.03
  7924. --------N-2F7A40-----------------------------
  7925. INT 2F - Novell NetWare - TCP/IP Protocol Stack - INSTALLATION CHECK
  7926.     AX = 7A40h
  7927. Return: AX = 7AFFh if installed
  7928.         BX = ???
  7929.         bit 0: ???
  7930.         bit 1: ???
  7931.         bits 15-2: ???
  7932.         CX = version (CH=major, CL=minor)
  7933.         DX = 0000h
  7934.         ES:DI -> entry point for TCP/IP stack (see below)
  7935. Notes:    Novell's LAN Workplace for DOS TCPIP.EXE also supports this interface
  7936.     this function is also supported by the Beame&Whiteside BWLWP40 shim,
  7937.       but it only returns AL and ES:DI, and does not support AX=7A41h
  7938. SeeAlso: AX=7A41h,INT 60"Excelan"
  7939.  
  7940. Call entry point with:
  7941.     ES:SI -> parameter block (see below)
  7942.     ???
  7943. Return: ES:SI parameter block updated
  7944.  
  7945. Format of parameter block:
  7946. Offset    Size    Description
  7947.  00h    DWORD    ???
  7948.  04h    WORD    (return) ???
  7949.  06h    WORD    (return) ???
  7950.  08h  4 BYTEs    ???
  7951.  0Ch    BYTE    flags???
  7952.  0Dh  7 BYTEs    ???
  7953.  14h    BYTE    (return) ???
  7954.  15h    BYTE    (call) ??? number, bit 7 set if ???
  7955.  16h    BYTE    ???
  7956.  17h    BYTE    (return) result or error code
  7957.     ???
  7958. --------N-2F7A41-----------------------------
  7959. INT 2F - Novell NetWare - TCP/IP Protocol Stack - WINDOWS SUPPORT???
  7960.     AX = 7A41h
  7961.     ES:DI -> FAR entry point for ??? (will be called with BX=1,2,3,4)
  7962. Return: AX = 7AFFh if supported
  7963.         BX = ??? (see AX=7A40h)
  7964.         CX = version (CH=major, CL=minor)
  7965.         DX = 0000h
  7966.         ES:SI -> DWORD containing passed value of ES:DI
  7967.         ES:DI -> entry point for TCP/IP stack
  7968. Notes:    Novell's LAN Workplace for DOS TCPIP.EXE also supports this interface
  7969.     the pointer which is set to ES:DI is cleared to 0000h:0000h when
  7970.       a Windows exit broadcast is received
  7971. SeeAlso: AX=7A40h
  7972. --------N-2F7A42-----------------------------
  7973. INT 2F - Novell NetWare - TCPIP.EXE v4.1 - GET ??? ENTRY POINT
  7974.     AX = 7A42h
  7975. Return: AX = 7AFFh if supported
  7976.         ES:DI -> ??? entry point (see below)
  7977.  
  7978. Call entry point with:
  7979.     DX = ???
  7980.     ES:DI -> ??? (see below)
  7981. Return: AX = 0000h
  7982.     other registers destroyed
  7983.  
  7984. Format of data buffer:
  7985. Offset    Size    Description
  7986.  00h    WORD    offset of WORD ??? or 0000h
  7987.  02h    WORD    offset of DWORD ??? or 0000h
  7988.  04h    WORD    offset of DWORD ??? or 0000h
  7989. --------N-2F7A43-----------------------------
  7990. INT 2F - Novell NetWare - TCPIP.EXE v4.1 - ???
  7991.     AX = 7A43h
  7992. Return: AX = 7AFFh if supported
  7993.         DX = offset of ???
  7994. SeeAlso: AX=7A44h
  7995. --------N-2F7A44-----------------------------
  7996. INT 2F - Novell NetWare - TCPIP.EXE v4.1 - ???
  7997.     AX = 7A44h
  7998.     DX = offset of ??? (see AX=7A43h)
  7999. Return: AX = 7AFFh if supported
  8000. SeeAlso: AX=7A43h
  8001. --------N-2F7A4C-----------------------------
  8002. INT 2F - Novell NetWare - TCPIP.EXE v4.1 - GET ???
  8003.     AX = 7A4Ch
  8004. Return: AX = 7AFFh if supported
  8005.         BX = ??? (0037h)
  8006.         CX = ??? (001Ch)
  8007. --------N-2F7A4DBX0001-----------------------
  8008. INT 2F - Novell NetWare - ???
  8009.     AX = 7A4Dh
  8010.     BX = 0001h
  8011.     ES:DI -> ???
  8012. Return: AL = FFh if ???
  8013.         ES:DI -> ???
  8014. Note:    called by NETBIOS.EXE v3.01
  8015. --------N-2F7A4FBX0001-----------------------
  8016. INT 2F - Novell NetWare - SNMP.EXE - INSTALLATION CHECK
  8017.     AX = 7A4Fh
  8018.     BX = 0001h
  8019. Return: AX = 7AFFh if installed
  8020. --------N-2F7A4FBX0002-----------------------
  8021. INT 2F - Novell NetWare - SNMP.EXE - ???
  8022.     AX = 7A4Fh
  8023.     BX = 0002h
  8024. Return: AL = status
  8025.         4Fh if failed
  8026.         FFh if successful
  8027. --------N-2F7A80-----------------------------
  8028. INT 2F C - Novell NetWare - SHELL 3.01d BROADCAST - ABNORMAL EXIT
  8029.     AX = 7A80h
  8030. Return: nothing
  8031. Notes:    called on abnormal exit of the NetWare shell to notify other Novell
  8032.       TSRs that it is unsafe to call the shell in the future.
  8033.     must be passed through so that all interested programs see the exit
  8034.     on receiving this call, IPXODI clears an internal pointer to a
  8035.       default value; Novell's NETBIOS.EXE clears its INT 21h pointer to
  8036.       0000h:0000h and stops calling it
  8037. SeeAlso: AX=7A81h
  8038. --------N-2F7A81-----------------------------
  8039. INT 2F C - Novell NetWare - SHELL 3.01d BROADCAST - SET SHELL INT 21 HANDLER
  8040.     AX = 7A81h
  8041.     CX:DX -> shell's INT 21h entry point
  8042. Return: nothing
  8043. Notes:    the shell calls this function as it loads to allow interested TSRs
  8044.       and drivers to make a local copy of the shell's entry point
  8045.     must be passed through so that all interested programs see it
  8046. --------N-2F7A85-----------------------------
  8047. INT 2F C - Novell NetWare - shell 3.01 - BROADCAST INFORM
  8048.     AX = 7A85h
  8049.     CX = broadcast server number
  8050. Return: CX = 0000h if broadcast message handled by another program
  8051.     CX unchanged if broadcast not handled
  8052. --------N-2F7A90-----------------------------
  8053. INT 2F U - Novell NetWare - NETBIOS.EXE 3+ - INSTALLATION CHECK
  8054.     AX = 7A90h
  8055. Return: AL = 00h if present
  8056.         BX = ???
  8057.         CX = PSP segment of NETBIOS resident code
  8058. SeeAlso: AX=7AFEh
  8059. --------N-2F7AC1-----------------------------
  8060. INT 2F - LAN HiJack - LHR - DISABLE???
  8061.     AX = 7AC1h
  8062. Program: LAN HiJack is a NetWare utility by KDS Software which allows a user
  8063.       to take over control of a workstation remotely; LHR is the program
  8064.       run on the slave workstation
  8065. SeeAlso: AX=7AC8h,AX=7AC9h,AX=7ACFh
  8066. --------N-2F7AC2-----------------------------
  8067. INT 2F - LAN HiJack - LHR - SYNCHRONIZE SHIFT STATES???
  8068.     AX = 7AC2h
  8069. Note:    sets BIOS keyboard status byte to an internal variable
  8070. SeeAlso: AX=7AC3h,AX=7ACFh
  8071. --------N-2F7AC3-----------------------------
  8072. INT 2F - LAN HiJack - LHR - CLEAR ??? FLAG
  8073.     AX = 7AC3h
  8074. SeeAlso: AX=7AC2h,AX=7ACFh
  8075. --------N-2F7AC8-----------------------------
  8076. INT 2F - LAN HiJack - LHR - ENABLE FUNCTIONS
  8077.     AX = 7AC8h
  8078.     BL = function(s) to enable (see below)
  8079. SeeAlso: AX=7AC1h,AX=7AC9h,AX=7ACFh
  8080.  
  8081. Bitfields for function(s) to enable/disable:
  8082.  bit 0    ???
  8083.  bit 1    remote keyboard enabled
  8084.  bit 2    support remote's mouse
  8085.  bits 3-7 unused
  8086. --------N-2F7AC9-----------------------------
  8087. INT 2F - LAN HiJack - LHR - DISABLE FUNCTIONS
  8088.     AX = 7AC9h
  8089.     BL = function(s) to disable (see AX=7AC8h)
  8090. SeeAlso: AX=7AC1h,AX=7AC8h
  8091. --------N-2F7ACA-----------------------------
  8092. INT 2F - LAN HiJack - LHJ - ???
  8093.     AX = 7ACAh
  8094.     BL = ???
  8095. Return: ???
  8096. Program: LAN HiJack is a NetWare utility by KDS Software which allows a user
  8097.       to take over control of a workstation remotely; LHJ is the program
  8098.       run on the controlling workstation
  8099. --------N-2F7ACB-----------------------------
  8100. INT 2F - LAN HiJack - LHJ - ???
  8101.     AX = 7ACBh
  8102.     BX = ???
  8103. Return: ???
  8104. Note:    this function appears to be related to the keyboard
  8105. SeeAlso: AX=7ACCh
  8106. --------N-2F7ACC-----------------------------
  8107. INT 2F - LAN HiJack - LHJ - ???
  8108.     AX = 7ACCh
  8109.     BX = ???
  8110. Return: ???
  8111. Note:    this function appears to be related to the mouse
  8112. SeeAlso: AX=7ACBh
  8113. --------N-2F7ACFBX0000-----------------------
  8114. INT 2F - LAN HiJack - LHR - INSTALLATION CHECK
  8115.     AX = 7ACFh
  8116.     BX = 0000h
  8117. Return: BX = segment of resident code if installed
  8118. Program: LAN HiJack is a NetWare utility by KDS Software which allows a user
  8119.       to take over control of a workstation remotely; LHR is the program
  8120.       run on the slave workstation
  8121. --------N-2F7AF0-----------------------------
  8122. INT 2F - Novell NetWare - DOSNP.EXE v1.30G - INSTALLATION CHECK
  8123.     AX = 7AF0h
  8124. Return: AL = FFh if present
  8125.         ES = 7AF0h
  8126.         CX = PSP segment of resident code
  8127. --------N-2F7AF1-----------------------------
  8128. INT 2F - Novell NetWare - Access Server Driver - INSTALLATION CHECK
  8129.     AX = 7AF1h
  8130.     BL = sequence number (01h first driver, 02h second, 00h no driver)
  8131. Return: AX <> 7AF1h if present
  8132.         BH = total number of drivers
  8133.         ---if BL nonzero on entry---
  8134.         AL = number of ports provided by specified driver
  8135.         ES:DI -> driver entry point (see below)
  8136.         ES:DX -> ID string
  8137.  
  8138. Call driver entry point with:
  8139.    AH    function
  8140.    01h initialize port
  8141.     AL = port number (00h-0Fh)
  8142.     ES:BX -> configuration parameter block (see below)
  8143.     interrupts disabled
  8144.     Return: CF clear if successful
  8145.         CF set on error
  8146.    02h get port status
  8147.     AL = port number (00h-0Fh)
  8148.     interrupts disabled
  8149.     Return: CF clear if successful
  8150.             BL = transmitter status (see below)
  8151.             BH = receiver status (see below)
  8152.             DL = external status signals (see below)
  8153.         CF set on error
  8154.         interrupts disabled
  8155.    03h get input from port
  8156.     AL = port number (00h-0Fh)
  8157.     CX = size of data buffer
  8158.     ES:BX -> buffer for data
  8159.     interrupts disabled
  8160.     Return: CF clear if successful
  8161.         CF set on error
  8162.         interrupts disabled
  8163.         CX = number of bytes read
  8164.     Note:    the driver will add a NUL to the buffer when a break
  8165.           signal is detected
  8166.    04h send output data to port
  8167.     AL = port number (00h-0Fh)
  8168.     CX = number of bytes to send
  8169.     ES:BX -> buffer containing data
  8170.     interrupts disabled
  8171.     Return: CF clear if successful
  8172.         CF set on error
  8173.         interrupts disabled
  8174.         CX = number of bytes actually written
  8175.    05h get I/O character counts
  8176.     AL = port number (00h-0Fh)
  8177.     interrupts disabled
  8178.     Return: CF clear if successful
  8179.             BX = number of bytes pending transmission
  8180.             CX = number of bytes available for reading
  8181.         CF set on error
  8182.         interrupts disabled
  8183.    06h control XON/XOFF
  8184.     AL = port number (00h-0Fh)
  8185.     DL = new state
  8186.         (00h software flow control disabled, else enabled)
  8187.     interrupts disabled
  8188.     Return: CF clear if successful
  8189.         CF set on error
  8190.         interrupts disabled
  8191.    07h get error counts and statistics
  8192.     AL = port number (00h-0Fh)
  8193.     ES:BX -> buffer for statistics (see below)
  8194.     interrupts disabled
  8195.     Return: CF clear if successful
  8196.             ES:BX buffer filled
  8197.         CF set on error
  8198.         interrupts disabled
  8199.    08h general request
  8200.     AL = port number (00h-0Fh)
  8201.     DX = requested operations
  8202.         bit 0: flush transmit buffers
  8203.         bit 1: flush receive buffers
  8204.         bit 4: define XON/XOFF characters
  8205.     ES:BX -> XON/XOFF characters (see below) if DX bit 4 set
  8206.     interrupts disabled
  8207.     Return: CF clear if successful
  8208.         CF set on error
  8209.         interrupts disabled
  8210.    09h deadman timer management
  8211.     AL = port number (00h-0Fh)
  8212.     BX = next time interval in seconds (0000h to disable timer)
  8213.     interrupts disabled
  8214.     Return: CF clear
  8215.         interrupts disabled
  8216.    0Ah get buffer sizes
  8217.     AL = port number (00h-0Fh)
  8218.     interrupts disabled
  8219.     Return: CF clear if successful
  8220.            BX = size of transmit buffer
  8221.            CX = size of receive buffer
  8222.         CF set on error
  8223.         interrupts disabled
  8224.  
  8225. Values for transmitter status:
  8226.  00h    uninitialized
  8227.  01h    ready, not transmitting
  8228.  02h    transmitting
  8229.  03h    XOFF received
  8230.  04h    transmitting, buffer full
  8231.  05h    XOFF received and buffer full
  8232.  
  8233. Values for receiver status:
  8234.  00h    uninitialized
  8235.  01h    ready
  8236.  02h    receive buffer full, data may have been lost
  8237.  
  8238. Bitfields for external status signals:
  8239.  bits 7,6 undefined
  8240.  bit 5    CTS active
  8241.  bit 4    DSR active
  8242.  bit 3    DCD active
  8243.  bits 2,1 undefined
  8244.  bit 0    ring indicator
  8245.  
  8246. Format of configuration parameter block:
  8247. Offset    Size    Description
  8248.  00h    BYTE    receive baud rate index
  8249.         00h 50 bps, 01h 75 bps, 02h 110 bps, 03h 134.5 bps,
  8250.         04h 150 bps, 05h 300 bps, 06h 600 bps, 07h 1200 bps,
  8251.         08h 1800 bps, 09h 2000 bps, 0Ah 2400 bps, 0Bh 3600 bps,
  8252.         0Ch 4800 bps, 0Dh 7200 bps, 0Eh 9600 bps, 0Fh 19200 bps,
  8253.         10h 38400 bps, 11h 57600 bps, 12h 115200 bps
  8254.  01h    BYTE    receive bits per character (0=5 bits..3=8 bits)
  8255.  02h    BYTE    receive stop bits
  8256.  03h    BYTE    receive parity
  8257.         00h none, 01h odd, 02h even, 03h mark, 04h space
  8258.  04h    BYTE    transmit baud rate index (same as receive baud rate)
  8259.  05h    BYTE    transmit bits per character (0=5 bits..3=8 bits)
  8260.  06h    BYTE    transmit stop bits
  8261.  07h    BYTE    transmit parity (same as receive parity)
  8262.  08h    BYTE    DTR state (00h off, 01h on)
  8263.  09h    BYTE    RTS state (00h off, 01h on)
  8264.  0Ah    BYTE    flow control
  8265.         00h none, 01h XON/XOFF, 02h RTS/CTS, 03h both
  8266.  0Bh    BYTE    break control (00h off, 01h on)
  8267.  
  8268. Format of statistics:
  8269. Offset    Size    Description
  8270.  00h    BYTE    port number
  8271.  01h    BYTE    external status signals (see above)
  8272.  02h    BYTE    transmitter status (see above)
  8273.  03h    BYTE    receiver status (see above)
  8274.  04h    DWORD    number of characters received
  8275.  08h    DWORD    number of characters transmitted
  8276.  0Ch    WORD    input parity errors
  8277.  0Eh    WORD    input framing errors
  8278.  10h    WORD    lost characters due to hardware overrun
  8279.  12h    WORD    lost characters due to data buffer overrun
  8280. Note:    the counts are not allowed to wrap around; once a count reaches FFFFh
  8281.       or FFFFFFFFh, it is no longer incremented
  8282.  
  8283. Format of XON/XOFF characters:
  8284. Offset    Size    Description
  8285.  00h    BYTE    04h (number of bytes following)
  8286.  01h    BYTE    transmit XON character
  8287.  02h    BYTE    transmit XOFF character
  8288.  03h    BYTE    receive XON character
  8289.  04h    BYTE    receive XOFF character
  8290. --------N-2F7AFE-----------------------------
  8291. INT 2F - Novell NetWare - DOSNP.EXE - INSTALLATION CHECK
  8292.     AX = 7AFEh
  8293. Return: AL = FFh if present
  8294.         ES = (data???) segment of DOSNP
  8295. Program: DOSNP.EXE provides "named pipes" support for DOS workstations running
  8296.        NetWare
  8297. Note:    the NetWare shell calls this function and refuses to load if DOSNP is
  8298.       present
  8299. SeeAlso: AX=7A90h
  8300. --------N-2F7AFFBX0000-----------------------
  8301. INT 2F - Novell NetWare - TBMI v1.1+ - INSTALLATION CHECK???
  8302.     AX = 7AFFh
  8303.     BX = 0000h
  8304.     CX = 4E65h ("Ne")
  8305.     DX = 7457h ("tW")
  8306.     ES:DI -> IPX/SPX special handler (XMS/EMS ???)
  8307. Return: AL = FFh if installed
  8308.         CX = configured sockets (14h)
  8309.         DS:SI -> data table ???
  8310.         ES:DI -> IPX far call handler
  8311. Notes:    for IPX/SPX this call reportedly returns DS:DI pointing to the table
  8312.       of pointers to service events queue head and tail
  8313.     this function is also supported by IPXODI
  8314. SeeAlso: AX=7AFFh/BX=0001h
  8315. --------N-2F7AFFBX0001-----------------------
  8316. INT 2F - Novell NetWare - TBMI v1.1+, shell v3.01d - INSTALLATION CHECK???
  8317.     AX = 7AFFh
  8318.     BX = 0001h
  8319.     CX = 4E65h ("Ne")
  8320.     DX = 7457h ("tW")
  8321. Return: AL = FFh if installed
  8322.         CX = ???  (8000h)
  8323.         SI = ??? (or -> ???) (0002h)
  8324.         ES:DI -> IPX far call handler
  8325.         ES:DX -> 6-byte data area ???
  8326. Note:    this function is also supported by IPXODI
  8327. SeeAlso: AX=7AFFh/BX=0000h
  8328. --------d-2F7F00-----------------------------
  8329. INT 2F - Jim Harper's CD-ROM redirector SCSI driver - INSTALLATION CHECK
  8330.     AX = 7F00h
  8331. Return: AL = FFh if installed
  8332. SeeAlso: AX=7F01h,AX=7F02h,AX=7F03h
  8333. --------d-2F7F01-----------------------------
  8334. INT 2F - Jim Harper's CD-ROM redirector SCSI driver - DO COMMAND
  8335.     AX = 7F01h
  8336.     DS:DX -> command record (see below)
  8337. Return: AL = status
  8338.         00h successful
  8339.         else error code
  8340. SeeAlso: AX=7F00h,AX=7F02h,INT 11/AH=FFh"SDLP",INT 21/AX=4402h"ASPI"
  8341. SeeAlso: INT 4F/AX=8100h
  8342.  
  8343. Format of command record:
  8344. Offset    Size    Description
  8345.  00h    BYTE    ID
  8346.  01h 10 BYTEs    CDB (Command Descriptor Block) for operation
  8347.  0Bh    WORD    segment of buffer
  8348.  0Dh    WORD    offset of buffer
  8349.  0Fh    BYTE    status
  8350.  10h    BYTE    sense
  8351.  12h    WORD    count
  8352. --------d-2F7F02-----------------------------
  8353. INT 2F - Jim Harper's CD-ROM redirector SCSI driver - DO RESET
  8354.     AX = 7F02h
  8355. SeeAlso: AX=7F00h,AX=7F01h
  8356. --------d-2F7F03-----------------------------
  8357. INT 2F - Jim Harper's CD-ROM redirector SCSI driver - UNINSTALL
  8358.     AX = 7F03h
  8359. Return: AL = status
  8360.         00h successful
  8361.         01h unable to uninstall
  8362. SeeAlso: AX=7F00h
  8363. ----------2F7F24-----------------------------
  8364. INT 2F - Multiplex - ???
  8365.     AX = 7F24h
  8366.     ???
  8367. Return: ???
  8368. Note:    called by PC/370, an IBM 370 emulator by Donald S. Higgins
  8369. ----------2F7F26-----------------------------
  8370. INT 2F - Multiplex - ???
  8371.     AX = 7F26h
  8372.     ???
  8373. Return: ???
  8374. Note:    called by PC/370, an IBM 370 emulator by Donald S. Higgins
  8375. --------!------------------------------------
  8376.