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.

36 lines
943 B

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. #ifndef __GENERALPAGE__
  3. #define __GENERALPAGE__
  4. #include "UIHelpers.h"
  5. #include "CHString1.h"
  6. #include <mmc.h>
  7. class DataSource;
  8. class CGenPage : public CUIHelpers
  9. {
  10. private:
  11. public:
  12. CGenPage(DataSource *ds, bool htmlSupport);
  13. virtual ~CGenPage(void);
  14. private:
  15. virtual BOOL DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  16. void InitDlg(HWND hDlg);
  17. void Refresh(HWND hDlg);
  18. void OnConnect(HWND hDlg, LOGIN_CREDENTIALS *credentials = NULL);
  19. void OnFinishConnected(HWND hDlg, LPARAM lParam);
  20. void StatusIcon(HWND hDlg, UINT icon);
  21. void SetUserName(HWND hDlg, LOGIN_CREDENTIALS *credentials);
  22. size_t UserLen(LOGIN_CREDENTIALS *credentials);
  23. void MinorError(CHString1 &initMsg, UINT fmtID,
  24. HRESULT hr, CHString1 &success);
  25. bool m_connected;
  26. CHString1 m_machineName;
  27. HRESULT m_DSStatus;
  28. };
  29. #endif __GENERALPAGE__