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.

78 lines
1.9 KiB

  1. /*****************************************************************************
  2. *
  3. * $Workfile: UIMgr.h $
  4. *
  5. * Copyright (C) 1997 Hewlett-Packard Company.
  6. * Copyright (c) 1997 Microsoft Corporation.
  7. * All rights reserved.
  8. *
  9. * 11311 Chinden Blvd.
  10. * Boise, Idaho 83714
  11. *
  12. *****************************************************************************/
  13. #ifndef INC_UI_MANAGER_H
  14. #define INC_UI_MANAGER_H
  15. #define COREUI_VERSION 1
  16. #define MAX_TITLE_LENGTH 256
  17. #define MAX_SUBTITLE_LENGTH 256
  18. const int MaxNumCfgPages = 1;
  19. const int MaxNumAddPages = 5;
  20. class CUIManager
  21. {
  22. public:
  23. CUIManager();
  24. ~CUIManager();
  25. DWORD AddPortUI(HWND hWndParent,
  26. HANDLE hXcvPrinter,
  27. TCHAR pszServer[],
  28. TCHAR sztPortName[]);
  29. DWORD ConfigPortUI(HWND hWndParent,
  30. PPORT_DATA_1 pData,
  31. HANDLE hXcvPrinter, TCHAR szServerName[],
  32. BOOL bNewPort = FALSE);
  33. VOID SetControlFont(HWND hwnd, INT nId) const;
  34. protected:
  35. private:
  36. VOID CreateWizardFont();
  37. VOID DestroyWizardFont();
  38. HFONT m_hBigBoldFont;
  39. }; // CUIManager
  40. typedef struct _CFG_PARAM_PACKAGE
  41. {
  42. PPORT_DATA_1 pData;
  43. HANDLE hXcvPrinter;
  44. TCHAR pszServer[MAX_NETWORKNAME_LEN];
  45. BOOL bNewPort;
  46. DWORD dwLastError;
  47. } CFG_PARAM_PACKAGE, *PCFG_PARAM_PACKAGE;
  48. typedef struct _ADD_PARAM_PACKAGE
  49. {
  50. PPORT_DATA_1 pData;
  51. CUIManager *UIManager;
  52. HANDLE hXcvPrinter;
  53. DWORD dwLastError;
  54. DWORD dwDeviceType;
  55. DWORD bMultiPort;
  56. BOOL bBypassNetProbe;
  57. TCHAR pszServer[MAX_NETWORKNAME_LEN];
  58. TCHAR sztPortName[MAX_PORTNAME_LEN];
  59. TCHAR sztSectionName[MAX_SECTION_NAME];
  60. TCHAR sztPortDesc[MAX_PORT_DESCRIPTION_LEN + 1];
  61. } ADD_PARAM_PACKAGE, *PADD_PARAM_PACKAGE;
  62. #endif // INC_UI_MANAGER_H