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.

78 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. bootcfg.h
  5. Abstract:
  6. Contains function prototypes for external functions in bootcfg.c
  7. Author:
  8. Dan Lafferty (danl) 23-Apr-1991
  9. Environment:
  10. User Mode -Win32
  11. Notes:
  12. optional-notes
  13. Revision History:
  14. 23-Apr-1991 danl
  15. created
  16. --*/
  17. #ifndef _BOOTCFG_INCLUDED
  18. #define _BOOTCFG_INCLUDED
  19. #include <winreg.h>
  20. extern DWORD ScGlobalLastKnownGood;
  21. //
  22. // The following are bit masks that are use to qualify our
  23. // running with the Last Known Good configuration.
  24. // RUNNING_LKG This flag is set anytime we are running LKG
  25. // REVERTED_TO_LKG This flag is only set if we are running LKG because
  26. // of a failure. (ie. This flag is not set on the
  27. // first boot when CURRENT=LKG).
  28. // AUTO_START_DONE This flag is set when the service controller is done
  29. // auto-starting services. This flag is protected by
  30. // the ScBootConfigCriticalSection.
  31. // ACCEPT_DEFERRED This flag is set when the current configuration has
  32. // been accepted as the LastKnownGood configuration. This
  33. // flag is protected by the ScBootConfigCriticalSection.
  34. //
  35. #define RUNNING_LKG 0x00000001
  36. #define REVERTED_TO_LKG 0x00000002
  37. #define AUTO_START_DONE 0x00000004
  38. #define ACCEPT_DEFERRED 0x00000008
  39. BOOL
  40. ScCheckLastKnownGood(
  41. VOID
  42. );
  43. DWORD
  44. ScRevertToLastKnownGood(
  45. VOID
  46. );
  47. VOID
  48. ScDeleteRegServiceEntry(
  49. LPWSTR ServiceName
  50. );
  51. VOID
  52. ScRunAcceptBootPgm(
  53. VOID
  54. );
  55. #endif // #ifndef _BOOTCFG_INCLUDED