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.

70 lines
1.5 KiB

  1. /*++
  2. Module Name:
  3. global.h
  4. Abstract:
  5. Global stuff
  6. Author:
  7. Mudit Vats (v-muditv) 12-13-99
  8. Revision History:
  9. --*/
  10. //
  11. // Version Info
  12. //
  13. #define TITLE1 L"NVRBOOT: OS Boot Options Maintenance Tool"
  14. //
  15. // Globals for stdout
  16. //
  17. extern SIMPLE_TEXT_OUTPUT_INTERFACE *ConOut;
  18. extern EFI_TEXT_CLEAR_SCREEN ClearScreen;
  19. extern EFI_TEXT_SET_CURSOR_POSITION SetCursorPosition;
  20. extern EFI_TEXT_SET_MODE SetMode;
  21. extern EFI_TEXT_ENABLE_CURSOR EnableCursor;
  22. extern int CursorRow, CursorColumn;
  23. extern SIMPLE_INPUT_INTERFACE *ConIn;
  24. //
  25. // Globals for protocol handler
  26. //
  27. extern EFI_HANDLE_PROTOCOL HandleProtocol;
  28. extern EFI_LOCATE_HANDLE LocateHandle;
  29. extern EFI_LOCATE_DEVICE_PATH LocateDevicePath;
  30. extern EFI_IMAGE_LOAD LoadImage;
  31. extern EFI_IMAGE_START StartImage;
  32. extern EFI_SET_VARIABLE SetVariable;
  33. extern EFI_HANDLE MenuImageHandle;
  34. extern EFI_LOADED_IMAGE *ExeImage;
  35. //
  36. // Global GUIDS
  37. //
  38. extern EFI_GUID VenEfi;
  39. extern EFI_GUID EfiESPProtocol;
  40. EFI_STATUS
  41. WritePackedDataToNvr(
  42. UINT16 BootNumber,
  43. VOID *BootOption,
  44. UINT32 BootSize
  45. );
  46. #define MAXBOOTVARS 30
  47. extern VOID* LoadOptions [MAXBOOTVARS];
  48. extern UINT64 LoadOptionsSize [MAXBOOTVARS];
  49. extern VOID* BootOrder;