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.

69 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. efintldr.h
  5. Abstract:
  6. Revision History:
  7. Jeff Sigman 05/01/00 Created
  8. Jeff Sigman 05/10/00 Version 1.5 released
  9. Jeff Sigman 10/18/00 Fix for Soft81 bug(s)
  10. --*/
  11. #ifndef __EFINTLDR_H__
  12. #define __EFINTLDR_H__
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. #define BOOT_SPART "SYSTEMPARTITION="
  17. #define BOOT_OSLDR "OSLOADER="
  18. #define BOOT_LPART "OSLOADPARTITION="
  19. #define BOOT_FILEN "OSLOADFILENAME="
  20. #define BOOT_IDENT "LOADIDENTIFIER="
  21. #define BOOT_LDOPT "OSLOADOPTIONS="
  22. #define BOOT_CNTDW "COUNTDOWN="
  23. #define BOOT_LASTK "LASTKNOWNGOOD="
  24. #define BOOT_TOKEN ";\n\r"
  25. #define BOOT_COUNT 30
  26. #define BOOT_MAX 10
  27. #define BOOT_NVR L"\\boot.nvr"
  28. #define BACKUP_NVR L"\\boot.nvr.efintldr"
  29. #define REGISTER1 L"*register"
  30. #define REGISTER2 L"*register*"
  31. #define STARTFILE L"startup.nsh"
  32. #define THISFILE L"efintldr\r\n"
  33. #define EFIEXT ".efi"
  34. #define LOADFILE "\\ia64ldr.efi"
  35. #define LAST_FALSE "LASTKNOWNGOOD=False\r\n"
  36. #define LAST_TRUE "LASTKNOWNGOOD=True\r\n;"
  37. #define SPACEC ' '
  38. #define SPACES " "
  39. typedef struct _BOOT_DATA
  40. {
  41. char* pszSPart[BOOT_MAX];
  42. char* pszOSLdr[BOOT_MAX];
  43. char* pszLPart[BOOT_MAX];
  44. char* pszFileN[BOOT_MAX];
  45. char* pszIdent[BOOT_MAX + 1];
  46. char* pszShort[BOOT_MAX + 1];
  47. char* pszLoadOpt;
  48. UINTN dwLastKnown;
  49. UINTN dwCount;
  50. UINTN dwIndex;
  51. } BOOT_DATA;
  52. #endif //__EFINTLDR_H__