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.

157 lines
2.9 KiB

  1. /*++
  2. Microsoft Confidential
  3. Copyright (c) 1992-1997 Microsoft Corporation
  4. All rights reserved
  5. Module Name:
  6. startup.h
  7. Abstract:
  8. Public declarations for the Startup/Recovery dialog of the System
  9. Control Panel Applet
  10. Notes:
  11. The virtual memory settings and the crash dump (core dump) settings
  12. are tightly-coupled. Therefore, crashdmp.c and startup.h have some
  13. heavy dependencies on virtual.c and virtual.h (and vice versa).
  14. On the other hand, the startup OS settings and the crash dump settings
  15. have almost nothing in common, so you won't see a lot of dependencies
  16. between these files (strlst.c/startup.c and crashdmp.c), even
  17. though they're on the same dialog.
  18. Author:
  19. Eric Flo (ericflo) 19-Jun-1995
  20. Revision History:
  21. 15-Oct-1997 scotthal
  22. Complete overhaul
  23. --*/
  24. #ifndef _SYSDM_STARTUP_H_
  25. #define _SYSDM_STARTUP_H_
  26. //
  27. // Constants
  28. //
  29. // Range of valid "Display startup list for..." values
  30. #define FORMIN 0
  31. #define FORMAX 999
  32. // Length of WCHAR buffer needed to hold "Display startup list for..." value
  33. #define FOR_MAX_LENGTH 20
  34. // Default "Display startup list for..." value
  35. #define FORDEF 30
  36. // Crash dump constants
  37. #define IDRV_DEF_BOOT 2 // Asssume booting from C:
  38. #define MIN_SWAPSIZE 2 // Min swap file size.
  39. #define ONE_MEG 1048576
  40. // Set during initialization so we don't think changes made to controls
  41. // during initialization are the same as changes made to controls by
  42. // the user.
  43. extern BOOL g_fStartupInitializing;
  44. //
  45. // Function Declarations
  46. //
  47. HPROPSHEETPAGE
  48. CreateStartupPage(
  49. IN HINSTANCE hInst
  50. );
  51. INT_PTR
  52. APIENTRY
  53. StartupDlgProc(
  54. IN HWND hDlg,
  55. IN UINT uMsg,
  56. IN WPARAM wParam,
  57. IN LPARAM lParam
  58. );
  59. //
  60. // Functions implemented in strtlst.c
  61. //
  62. void
  63. StartListInit(
  64. IN HWND hDlg,
  65. IN WPARAM wParam,
  66. IN LPARAM lParam
  67. );
  68. int
  69. StartListExit(
  70. IN HWND hDlg,
  71. IN WPARAM wParam,
  72. IN LPARAM lParam
  73. );
  74. void
  75. StartListDestroy(
  76. IN HWND hDlg,
  77. IN WPARAM wParam,
  78. IN LPARAM lParam
  79. );
  80. BOOL
  81. CheckVal(
  82. IN HWND hDlg,
  83. IN WORD wID,
  84. IN WORD wMin,
  85. IN WORD wMax,
  86. IN WORD wMsgID
  87. );
  88. void
  89. AutoAdvancedBootInit(
  90. IN HWND hDlg,
  91. IN WPARAM wParam,
  92. IN LPARAM lParam
  93. );
  94. int
  95. AutoAdvancedBootExit(
  96. IN HWND hDlg,
  97. IN WPARAM wParam,
  98. IN LPARAM lParam
  99. );
  100. //
  101. // Get the system drive. Exported by crashdmp.c.
  102. //
  103. BOOL
  104. GetSystemDrive(
  105. OUT TCHAR * Drive
  106. );
  107. ULONG64
  108. CoreDumpGetRequiredFileSize(
  109. IN HWND hDlg OPTIONAL
  110. );
  111. //
  112. // This isn't a real dlg proc -- the return value is a bool.
  113. //
  114. int
  115. APIENTRY
  116. CoreDumpDlgProc(
  117. HWND hDlg,
  118. UINT message,
  119. WPARAM wParam,
  120. LPARAM lParam
  121. );
  122. #endif // _SYSDM_STATUP_H_