Source code of Windows XP (NT5)
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.

50 lines
1.4 KiB

  1. ; ROM Windows specific include file
  2. ;
  3. ; INT 2F subfunction
  4. ; if ROM installed, returns 0 in AX and RM segment of ROMTOC in
  5. ; BX. Hooked by WIN.COM to pass ROMTOC to other components
  6. ;
  7. ROMINSTALLCHECK equ 160Ch
  8. ; ROM Table of Contents structure
  9. ROMTOC STRUC
  10. ROMSignature db 55h, 0AAh ; IBM standard ROM signature
  11. ROMLength db ? ; IBM length (/512)
  12. ROMEntryPoint db 5 dup (?) ; jmp near + retf + pad
  13. szID db 10 dup (?) ; ID string "ROMWINTOC\0"
  14. DOSX_CSIP dd ? ; DOSX initial CS:IP (seg:off)
  15. KRNL_CSIP dd ? ; Kernel initial CS:IP (sel:off)
  16. lmaROMLDT dd ? ; lma of ROM prototype LDT
  17. cROMsels dw ? ; # descriptors used in ROM proto LDT
  18. FirstROMsel dw ? ; first LDT selector in ROM proto LDT
  19. offSysDir dw ? ; offset to system directory string
  20. lmaHigh dd ? ; lma of high ROM
  21. lenHigh dd ? ; length in bytes of High ROM
  22. cModules dw ? ; # modules defined in ROM TOC
  23. cFiles dw ? ; # files defined in ROM TOC
  24. ModEntries db ? ; start of module entries
  25. ; module entries follow at this point...
  26. ; file entries start at ModEntries + cModules*(SIZE MODENT)
  27. ROMTOC ENDS
  28. ; Module entry format in ROM TOC
  29. File_Name_Len = 13
  30. Module_Name_Len = 9
  31. MODENT STRUC
  32. ModNameStr db Module_Name_Len dup (?) ; Module name (null padded)
  33. FileNameStr db File_Name_Len dup (?) ; File name (null padded)
  34. lmaExeHdr dd ? ; lma of module EXE header
  35. MODENT ENDS
  36. FILENT STRUC
  37. fname db File_Name_Len dup(?) ; file name
  38. lma dd ? ; lma of start of file
  39. fsize dd ?
  40. FILENT ENDS