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.

61 lines
1.6 KiB

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. #ifndef __STARTUPPAGE__
  3. #define __STARTUPPAGE__
  4. #pragma once
  5. #include "..\Common\WbemPageHelper.h"
  6. //-----------------------------------------------------------------------------
  7. class StartupPage : public WBEMPageHelper
  8. {
  9. private:
  10. CWbemClassObject m_computer;
  11. CWbemClassObject m_OS;
  12. CWbemClassObject m_recovery;
  13. CWbemClassObject m_page;
  14. CWbemClassObject m_memory;
  15. BOOL m_writable;
  16. BOOL m_bDownlevelTarget;
  17. // helps deal with safe arrays that dont start at zero.
  18. long m_lBound;
  19. short m_delay;
  20. DWORD m_cMegBootPF;
  21. DWORD m_freeSpace;
  22. TCHAR m_DriveLtr[3];
  23. int CoreDumpHandleOk(HWND hDlg);
  24. long GetRAMSizeMB(void);
  25. BOOL CoreDumpValidFile(HWND hDlg);
  26. void OnCDMPOptionUpdate(void);
  27. void OnBootEdit(void);
  28. DWORD GetPageFileSize(LPTSTR bootDrv);
  29. BOOL ExpandRemoteEnvPath(LPTSTR szPath, LPTSTR expPath, UINT size);
  30. BOOL LocalDrive(LPCTSTR szPath);
  31. BOOL DirExists(LPCTSTR szPath);
  32. BOOL IsAlerterSvcStarted(HWND hDlg);
  33. void Init(HWND hDlg);
  34. DWORD GetDebugInfoType(void);
  35. HRESULT PutDebugInfoType(DWORD dwDebugInfoType);
  36. bool Save(void);
  37. BOOL CheckVal(HWND hDlg, WORD wID, WORD wMin, WORD wMax, WORD wMsgID);
  38. bool IsWorkstationProduct(void);
  39. public:
  40. StartupPage(WbemServiceThread *serviceThread);
  41. ~StartupPage();
  42. INT_PTR DoModal(HWND hDlg);
  43. INT_PTR CALLBACK DlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam);
  44. };
  45. INT_PTR CALLBACK StaticStartupDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam);
  46. #endif __STARTUPPAGE__