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.

93 lines
1.9 KiB

  1. /*++ BUILD Version: 0002 // Increment this if a change has global effects
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. init.h
  5. Abstract:
  6. Header file for the INIT subcomponent of NTOS
  7. Author:
  8. Steve Wood (stevewo) 31-Mar-1989
  9. Revision History:
  10. --*/
  11. #ifndef _INIT_
  12. #define _INIT_
  13. // begin_ntosp
  14. #define INIT_SYSTEMROOT_LINKNAME "\\SystemRoot"
  15. #define INIT_SYSTEMROOT_DLLPATH "\\SystemRoot\\System32"
  16. #define INIT_SYSTEMROOT_BINPATH "\\SystemRoot\\System32"
  17. // end_ntosp
  18. #define INIT_WINPEMODE_NONE 0x00000000
  19. #define INIT_WINPEMODE_REGULAR 0x00000001
  20. #define INIT_WINPEMODE_INRAM 0x80000000
  21. #define INIT_WINPEMODE_READONLY_MEDIA 0x00000100
  22. #define INIT_WINPEMODE_REMOVABLE_MEDIA 0x00000200
  23. extern UNICODE_STRING NtSystemRoot;
  24. // begin_ntosp
  25. extern ULONG NtBuildNumber;
  26. // end_ntosp
  27. extern const ULONG NtMajorVersion;
  28. extern const ULONG NtMinorVersion;
  29. extern ULONG CmNtCSDVersion;
  30. extern UNICODE_STRING CmVersionString;
  31. extern UNICODE_STRING CmCSDVersionString;
  32. extern const CHAR NtBuildLab[];
  33. extern NLSTABLEINFO InitTableInfo;
  34. extern ULONG InitNlsTableSize;
  35. extern PVOID InitNlsTableBase;
  36. extern ULONG InitAnsiCodePageDataOffset;
  37. extern ULONG InitOemCodePageDataOffset;
  38. extern ULONG InitUnicodeCaseTableDataOffset;
  39. extern PVOID InitNlsSectionPointer;
  40. extern BOOLEAN InitSafeModeOptionPresent;
  41. extern ULONG InitSafeBootMode;
  42. extern BOOLEAN InitIsWinPEMode;
  43. extern ULONG InitWinPEModeType;
  44. #if defined(_M_IX86) || defined(_M_AMD64)
  45. VOID
  46. KiSystemStartup(
  47. IN PVOID LoaderBlock
  48. );
  49. #else
  50. VOID
  51. KiSystemStartup( VOID );
  52. #endif
  53. VOID
  54. Phase1Initialization(
  55. IN PVOID Context
  56. );
  57. typedef
  58. BOOLEAN
  59. (*PTESTFCN)( VOID );
  60. extern PTESTFCN TestFunction;
  61. extern ULONG InitializationPhase;
  62. #if DBG
  63. extern BOOLEAN ForceNonPagedPool;
  64. extern ULONG MmDebug;
  65. #endif // DBG
  66. #endif // _INIT_