Int 21/AH=51h

Prev Next Ralf Interrups Categories Contents

------

DOS 2+ internal - GET CURRENT PROCESS ID (GET PSP ADDRESS)

AH = 51h

Return:
BX = segment of PSP for current process

Notes: DOS uses the current PSP address to determine which processes own files and memory; it corresponds to process identifiers used by other OSs. Under DOS 2.x, this function cannot be invoked inside an INT 28h handler without setting the Critical Error flag. Under DOS 3.0+, this function does not use any of the DOS-internal stacks and may thus be called at any time, even during another INT 21h call. Supported by OS/2 compatibility box. Identical to the documented AH=62h. This call was undocumented prior to the release of DOS 5.0

See Also: AH=26h - AH=50h - AH=62h

Category: DOS Kernel - Int 21h - D

------

Prev Next Ralf Interrups Categories Contents