Table des matières
INT 0x21 - 0x51 - Get Current Process ID
Undocumented DOS 2.x
Request/Call:
reg | value | descr |
---|---|---|
AH | 0x51 |
Return:
reg | descr |
---|---|
BX | process ID |
Notes & Comments
- this function cannot be called while in an INT 28 handler in DOS 2.x unless the critical error flag is set or stack corruption will occur
- INT 21,62 is highly recommended for DOS 3.x due to a possible bug when activated from a TSR. DOS may switch to the wrong internal stack which may cause a problems with TSR's if called during an INT 28.
see INT 21,62 (Get PSP segment) for DOS 3.x applications