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.

49 lines
1.3 KiB

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. #ifndef _PAGEBASE_H_
  3. #define _PAGEBASE_H_
  4. #include "..\common\sshWbemHelpers.h"
  5. #include <windowsx.h>
  6. // supports the page coordinating routines.
  7. #define PB_LOGGING 0
  8. #define PB_BACKUP 1
  9. #define PB_ADVANCED 2
  10. #define PB_LASTPAGE 2
  11. class WbemServiceThread;
  12. class DataSource;
  13. class CBasePage
  14. {
  15. public:
  16. CBasePage(DataSource *ds, WbemServiceThread *serviceThread);
  17. CBasePage(CWbemServices &service);
  18. virtual ~CBasePage( void );
  19. HPROPSHEETPAGE CreatePropSheetPage(LPCTSTR pszDlgTemplate,
  20. LPCTSTR pszDlgTitle = NULL,
  21. DWORD moreFlags = 0);
  22. DataSource *m_DS;
  23. protected:
  24. virtual BOOL DlgProc(HWND, UINT, WPARAM, LPARAM) { return FALSE; }
  25. virtual UINT PSPageCallback(HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp);
  26. static INT_PTR CALLBACK _DlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  27. static UINT CALLBACK _PSPageCallback(HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp);
  28. INT_PTR DisplayLoginDlg(HWND hWnd,
  29. LOGIN_CREDENTIALS *credentials);
  30. HWND m_hDlg;
  31. bool m_alreadyAsked;
  32. WbemServiceThread *g_serviceThread;
  33. CWbemServices m_WbemServices;
  34. IWbemServices *m_service;
  35. bool m_userCancelled; // the connectServer() thread.
  36. };
  37. #endif /* _PAGEBASE_H_ */