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.

64 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. bootvar.h
  5. Abstract:
  6. Header file for functions to deal with boot.ini boot variables.
  7. Author:
  8. Chuck Lenzmeier (chuckl) 6-Jan-2001
  9. extracted boot.ini-specific items from spboot.h
  10. Revision History:
  11. --*/
  12. #ifndef _BOOTVAR_H_
  13. #define _BOOTVAR_H_
  14. typedef enum _BOOTVAR {
  15. LOADIDENTIFIER = 0,
  16. OSLOADER,
  17. OSLOADPARTITION,
  18. OSLOADFILENAME,
  19. OSLOADOPTIONS,
  20. SYSTEMPARTITION
  21. } BOOTVAR;
  22. #define FIRSTBOOTVAR LOADIDENTIFIER
  23. #define LASTBOOTVAR SYSTEMPARTITION
  24. #define MAXBOOTVARS LASTBOOTVAR+1
  25. #define LOADIDENTIFIERVAR "LoadIdentifier"
  26. #define OSLOADERVAR "OsLoader"
  27. #define OSLOADPARTITIONVAR "OsLoadPartition"
  28. #define OSLOADFILENAMEVAR "OsLoadFilename"
  29. #define OSLOADOPTIONSVAR "OsLoadOptions"
  30. #define SYSTEMPARTITIONVAR "SystemPartition"
  31. #define DEFAULT_TIMEOUT 20
  32. VOID
  33. SpAddBootSet(
  34. IN PWSTR *BootSet,
  35. IN BOOLEAN Default,
  36. IN ULONG Signature
  37. );
  38. VOID
  39. SpDeleteBootSet(
  40. IN PWSTR *BootSet,
  41. OUT PWSTR *OldOsLoadOptions OPTIONAL
  42. );
  43. BOOLEAN
  44. SpFlushBootVars(
  45. );
  46. #endif // _BOOTVAR_H_