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.

51 lines
1.4 KiB

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. #ifndef __BACKUPPAGE__
  3. #define __BACKUPPAGE__
  4. #include "UIHelpers.h"
  5. #include "DataSrc.h"
  6. class CBackupPage : public CUIHelpers
  7. {
  8. public:
  9. CBackupPage(DataSource *ds, bool htmlSupport);
  10. virtual ~CBackupPage(void);
  11. // for the BackupRestoreThread.
  12. HRESULT m_backupHr;
  13. HWND m_AVIbox;
  14. wchar_t *m_wszArgs;
  15. bool m_doingBackup;
  16. LOGIN_CREDENTIALS *m_cred;
  17. bool m_bWhistlerCore;
  18. void SetPriv(LPCTSTR privName, IWbemBackupRestore *br);
  19. void ClearPriv(void);
  20. private:
  21. virtual BOOL DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  22. void InitDlg(HWND hDlg);
  23. void Refresh(HWND hDlg, bool force = false);
  24. void OnApply(HWND hDlg, bool bClose);
  25. BOOL BackupMethod(HWND hDlg, LPCTSTR pathFile);
  26. HRESULT RestoreMethod(HWND hDlg, LPCTSTR pathFile);
  27. void DealWithPath(LPCTSTR pathFile);
  28. void DealWithDomain(void);
  29. void Reconnect(void);
  30. void Reconnect2(void);
  31. void OnFinishConnected(HWND hDlg, LPARAM lParam);
  32. void HideAutomaticBackupControls(HWND hDlg);
  33. void SetInterval(HWND hDlg, UINT minutes);
  34. bool GetInterval(HWND hDlg, UINT &iValue, bool &valid);
  35. int m_CBIdx;
  36. // for the backup thread.
  37. bool IsClientNT5OrMore(void);
  38. DWORD EnablePriv(bool fEnable, IWbemBackupRestore *br = 0);
  39. HANDLE m_hAccessToken;
  40. LUID m_luid;
  41. bool m_fClearToken;
  42. bool m_cloak; // protects the cloak from eoac.
  43. };
  44. #endif __BACKUPPAGE__