Note: This API call is for DOS personality only. Use Family API for portability.
Int 21H, AH=34H
2 and higher
GET ADDRESS OF INDOS FLAG
AH = 34h
ES:BX → one-byte InDOS flag
this function executes on the DOS stack, and thus cannot be called while another DOS function is already executing; you should use this function once at the beginning of the program and store the returned pointer rather than calling it when requiring DOS access the value of InDOS is incremented whenever an INT 21 function begins and decremented whenever one completes during an INT 28 call, it is safe to call some INT 21 functions even though InDOS may be 01h instead of zero InDOS alone is not sufficient for determining when it is safe to enter DOS, as the critical error handling decrements InDOS and increments the critical error flag for the duration of the critical error. Thus, it is possible for InDOS to be zero even if DOS is busy. SMARTDRV 4.0 sets the InDOS flag while flushing its buffers to disk, then zeros it on completion the critical error flag is the byte immediately following InDOS in DOS 2.x, and the byte BEFORE the InDOS flag in DOS 3.0+ and DR DOS 3.41+ (except COMPAQ DOS 3.0, where the critical error flag is located 1AAh bytes BEFORE the critical section flag) for DOS 3.1+, an undocumented call exists to get the address of the critical error flag (see AX=5D06h) this function was undocumented prior to the release of DOS 5.0.
AX=5D06h,AX=5D0Bh,INT 15/AX=DE1Fh,INT 28
Text based on Ralf Brown Interrupt List Release 61
|Process manager||INT 20H, INT 21H: 00H, 25H, 26H, 31H, 34H, 35H, 4CH, INT 22H, INT 27H, INT 28H|
|File manager||INT 25H, INT 26H, INT 21H: 0DH, 0EH, 0FH, 10H, 11H, 12H, 13H, 14H, 15H, 16H, 17H, 19H, 1AH, 1BH, 1CH, 21H, 22H, 23H, 24H, 27H, 28H, 29H, 2EH, 2FH, 32H, 3305H, 36H|
|Character Device I/O||INT 29H, INT 21H: 01H, 02H, 03H, 04H, 05H, 06H, 07H, 08H, 09H, 0AH, 0BH, 0AH, 0CH|
|Signals||INT 23H, INT 24H, INT 21H: 3300H, 3301H, 3302H|
|Date and Time||INT 21H: 2AH, 2BH, 2CH, 2DH|
|Misc||INT 21H: 30H, 3306H, 3700H, 3701H, 3702H, 3703H|
|NLS||INT 21H: 3303H, 3304H|