Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.8 KiB

  1. ; SCCSID = @(#)pdb.asm 1.1 85/04/10
  2. BREAK <Process data block>
  3. ;** Process data block (otherwise known as program header)
  4. ;
  5. ; These offset are documented in the MSDOS Encyclopedia, so nothing
  6. ; can be rearranged here, ever. Reserved areas are probably safe
  7. ; for use.
  8. FilPerProc EQU 20
  9. Process_data_block STRUC
  10. PDB_Exit_Call DW ? ; INT int_abort system terminate
  11. PDB_block_len DW ? ; size of execution block
  12. DB ?
  13. PDB_CPM_Call DB 5 DUP (?) ; ancient call to system
  14. PDB_Exit DD ? ; pointer to exit routine
  15. PDB_Ctrl_C DD ? ; pointer to ^C routine
  16. PDB_Fatal_abort DD ? ; pointer to fatal error
  17. PDB_Parent_PID DW ? ; PID of parent (terminate PID)
  18. PDB_JFN_Table DB FilPerProc DUP (?)
  19. PDB_environ DW ? ; seg addr of environment
  20. PDB_User_stack DD ? ; stack of self during system calls
  21. PDB_JFN_Length DW ? ; number of handles allowed
  22. PDB_JFN_Pointer DD ? ; pointer to JFN table
  23. PDB_Next_PDB DD ? ; pointer to nested PDB's
  24. PDB_InterCon DB ? ; *** jh-3/28/90 ***
  25. PDB_Append DB ? ; *** Not sure if still used ***
  26. PDB_Novell_Used DB 2 DUP (?) ; Novell shell (redir) uses these
  27. PDB_Version DW ? ; DOS version reported to this app
  28. PDB_PAD1 DB 0Eh DUP (?)
  29. PDB_Call_system DB 5 DUP (?) ; portable method of system call
  30. PDB_PAD2 DB 7h DUP (?) ; reserved so FCB 1 can be used as
  31. ; an extended FCB
  32. PDB_FCB1 DB 10h dup (?) ; default FCB 1
  33. PDB_FCB2 DB 10h dup (?) ; default FCB 2
  34. PDB_PAD3 DB 4 dup (?) ; not sure if this is used by PDB_FCB2
  35. PDB_TAIL DB 128 dup (?) ; command tail and default DTA
  36. Process_data_block ENDS
  37. ;
  38. ;PDB_Append equ BYTE PTR PDB_PAD1 + 1 ; reincluded because APPEND
  39. ; ; wouldn't build w/o it. feb 1990, leaf
  40. ;
  41. ;PDB_InterCon EQU BYTE PTR PDB_PAD1 ; 2/12/KK
  42. ;
  43.