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.

121 lines
3.0 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. drivers.h
  7. Tapi drivers config dialog
  8. FILE HISTORY:
  9. */
  10. #ifndef _DRIVERS_H
  11. #define _DRIVERS_H
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. #ifndef _TAPIDB_H
  16. #include "tapidb.h"
  17. #endif
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CDriverSetup dialog
  20. class CDriverSetup : public CBaseDialog
  21. {
  22. // Construction
  23. public:
  24. CDriverSetup(ITFSNode * pServerNode, ITapiInfo * pTapiInfo, CWnd* pParent = NULL); // standard constructor
  25. // Dialog Data
  26. //{{AFX_DATA(CDriverSetup)
  27. enum { IDD = IDD_DRIVER_SETUP };
  28. // NOTE: the ClassWizard will add data members here
  29. //}}AFX_DATA
  30. // Context Help Support
  31. virtual DWORD * GetHelpMap() { return (DWORD *) &g_aHelpIDs_DRIVER_SETUP[0]; }
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CDriverSetup)
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  37. //}}AFX_VIRTUAL
  38. void EnableButtons();
  39. public:
  40. BOOL m_fDriverAdded;
  41. // Implementation
  42. protected:
  43. // Generated message map functions
  44. //{{AFX_MSG(CDriverSetup)
  45. afx_msg void OnButtonAdd();
  46. afx_msg void OnButtonEdit();
  47. afx_msg void OnButtonRemove();
  48. afx_msg void OnDblclkListDrivers();
  49. virtual BOOL OnInitDialog();
  50. virtual void OnCancel();
  51. afx_msg void OnSelchangeListDrivers();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. SPITFSNode m_spServerNode;
  55. SPITapiInfo m_spTapiInfo;
  56. };
  57. /////////////////////////////////////////////////////////////////////////////
  58. // CAddDriver dialog
  59. class CAddDriver : public CBaseDialog
  60. {
  61. // Construction
  62. public:
  63. CAddDriver(ITapiInfo * pTapiInfo, CWnd* pParent = NULL); // standard constructor
  64. // Dialog Data
  65. //{{AFX_DATA(CAddDriver)
  66. enum { IDD = IDD_ADD_DRIVER };
  67. // NOTE: the ClassWizard will add data members here
  68. //}}AFX_DATA
  69. // Context Help Support
  70. virtual DWORD * GetHelpMap() { return (DWORD *) &g_aHelpIDs_ADD_DRIVER[0]; }
  71. // Overrides
  72. // ClassWizard generated virtual function overrides
  73. //{{AFX_VIRTUAL(CAddDriver)
  74. protected:
  75. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  76. //}}AFX_VIRTUAL
  77. void EnableButtons();
  78. // Implementation
  79. public:
  80. CTapiProvider m_tapiProvider;
  81. protected:
  82. // Generated message map functions
  83. //{{AFX_MSG(CAddDriver)
  84. afx_msg void OnButtonAdd();
  85. afx_msg void OnDblclkListNewDrivers();
  86. virtual BOOL OnInitDialog();
  87. //}}AFX_MSG
  88. DECLARE_MESSAGE_MAP()
  89. SPITapiInfo m_spTapiInfo;
  90. };
  91. //{{AFX_INSERT_LOCATION}}
  92. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  93. #endif _DRIVERS_H