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.

122 lines
2.6 KiB

  1. // asr_fmtDlg.h : header file
  2. //
  3. #ifndef _INC_ASR_FMT__ASR_DLG_H_
  4. #define _INC_ASR_FMT__ASR_DLG_H_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #include "dr_state.h"
  9. typedef enum {
  10. cmdUndefined = 0,
  11. cmdDisplayHelp,
  12. cmdBackup,
  13. cmdRestore
  14. } ASRFMT_CMD_OPTION;
  15. extern BOOLEAN g_bQuickFormat;
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CAsr_fmtDlg dialog
  18. class CAsr_fmtDlg:public CDialog
  19. {
  20. enum {
  21. WM_WORKER_THREAD_DONE = WM_USER + 1,
  22. WM_UPDATE_STATUS_TEXT,
  23. };
  24. public:
  25. CAsr_fmtDlg(CWnd* pParent = NULL); // standard constructor
  26. // Dialog Data
  27. //{{AFX_DATA(CAsr_fmtDlg)
  28. enum { IDD = IDD_ASR_FMT_DIALOG };
  29. CProgressCtrl m_Progress;
  30. PASRFMT_STATE_INFO m_AsrState;
  31. //}}AFX_DATA
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CAsr_fmtDlg)
  34. protected:
  35. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. protected:
  39. // Generated message map functions
  40. //{{AFX_MSG(CAsr_fmtDlg)
  41. virtual BOOL OnInitDialog();
  42. //}}AFX_MSG
  43. static long DoWork(CAsr_fmtDlg *_this);
  44. BOOL BackupState();
  45. BOOL RestoreState();
  46. ASRFMT_CMD_OPTION ParseCommandLine();
  47. DWORD_PTR m_dwpAsrContext;
  48. DWORD m_dwEndStatus;
  49. CString m_strStatusText;
  50. CString m_strSifPath;
  51. int m_ProgressPosition;
  52. DECLARE_MESSAGE_MAP()
  53. // manually added message-handler
  54. afx_msg LRESULT OnWorkerThreadDone(WPARAM wparam, LPARAM lparam);
  55. afx_msg LRESULT OnUpdateStatusText(WPARAM wparam, LPARAM lparam);
  56. };
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. /////////////////////////////////////////////////////////////////////////////
  60. // CProgress window
  61. class CProgress : public CProgressCtrl
  62. {
  63. // Construction
  64. public:
  65. CProgress();
  66. // Attributes
  67. public:
  68. // Operations
  69. public:
  70. // Overrides
  71. // ClassWizard generated virtual function overrides
  72. //{{AFX_VIRTUAL(CProgress)
  73. //}}AFX_VIRTUAL
  74. // Implementation
  75. public:
  76. virtual ~CProgress();
  77. // Generated message map functions
  78. protected:
  79. //{{AFX_MSG(CProgress)
  80. // NOTE - the ClassWizard will add and remove member functions here.
  81. //}}AFX_MSG
  82. DECLARE_MESSAGE_MAP()
  83. };
  84. /////////////////////////////////////////////////////////////////////////////
  85. //{{AFX_INSERT_LOCATION}}
  86. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  87. #endif // _INC_ASR_FMT__ASR_DLG_H_