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.

60 lines
1.4 KiB

  1. /*****************************************************************************
  2. *
  3. * $Workfile: AddMulti.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_ADDMULTIPORT_H
  14. #define INC_ADDMULTIPORT_H
  15. // Global Variables
  16. extern HINSTANCE g_hInstance;
  17. // Constants
  18. const int MAX_MULTILISTBOX_STRLEN = 50;
  19. const int MAX_MULTIREASON_STRLEN = 512;
  20. class CMultiPortDlg
  21. {
  22. public:
  23. CMultiPortDlg();
  24. ~CMultiPortDlg();
  25. public:
  26. BOOL OnInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam);
  27. BOOL OnCommand(HWND hDlg, WPARAM wParam, LPARAM lParam);
  28. BOOL OnNotify(HWND hDlg, WPARAM wParam, LPARAM lParam);
  29. protected:
  30. void FillComboBox(HWND hDlg);
  31. void OnSetActive(HWND hDlg);
  32. BOOL OnSelChange(HWND hDlg, WPARAM wParam, LPARAM lParam);
  33. void GetPrinterData(HWND hwndControl, LPCTSTR pszAddress);
  34. private:
  35. ADD_PARAM_PACKAGE *m_pParams;
  36. CDevicePortList m_DPList;
  37. PORT_DATA_1 m_PortDataStandard;
  38. TCHAR m_szCurrentSelection[MAX_SECTION_NAME];
  39. }; // CMultiPortDlg
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. // Dialogs
  44. INT_PTR CALLBACK MultiPortDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif // INC_ADDMULTIPORT_H