Source code of Windows XP (NT5)
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.

169 lines
5.1 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. /*******************************************************************************
  3. *
  4. * ewsdlg.h
  5. *
  6. * interface of CEditWinStationDlg dialog class
  7. *
  8. * copyright notice: Copyright 1995, Citrix Systems Inc.
  9. *
  10. * $Author: donm $ Butch Davis
  11. *
  12. * $Log: N:\nt\private\utils\citrix\winutils\wincfg\VCS\ewsdlg.h $
  13. *
  14. * Rev 1.13 10 Dec 1997 15:59:26 donm
  15. * added ability to have extension DLLs
  16. *
  17. * Rev 1.12 27 Jun 1997 15:58:32 butchd
  18. * Registry changes for Wds/Tds/Pds/Cds
  19. *
  20. * Rev 1.11 21 Mar 1997 16:26:14 butchd
  21. * update
  22. *
  23. * Rev 1.10 03 Mar 1997 17:14:28 butchd
  24. * update
  25. *
  26. * Rev 1.9 28 Feb 1997 17:59:36 butchd
  27. * update
  28. *
  29. * Rev 1.8 18 Dec 1996 16:02:08 butchd
  30. * update
  31. *
  32. * Rev 1.7 27 Sep 1996 13:58:42 butchd
  33. * update
  34. *
  35. * Rev 1.6 24 Sep 1996 16:21:40 butchd
  36. * update
  37. *
  38. *******************************************************************************/
  39. /*
  40. * Include the base dialog class.
  41. */
  42. #include "basedlg.h"
  43. ////////////////////////////////////////////////////////////////////////////////
  44. // CEditWinStationDlg class
  45. //
  46. typedef enum _EWSDLGMODE {
  47. EWSDlgAdd,
  48. EWSDlgCopy,
  49. EWSDlgEdit,
  50. EWSDlgView,
  51. EWSDlgRename,
  52. } EWSDLGMODE;
  53. class CEditWinStationDlg : public CBaseDialog
  54. {
  55. /*
  56. * Member variables.
  57. */
  58. //{{AFX_DATA(CEditWinStationDlg)
  59. enum { IDD = IDD_EDIT_WINSTATION };
  60. //}}AFX_DATA
  61. private:
  62. class CAppServerDoc *m_pDoc;
  63. CObList *m_pCurrentTdList;
  64. CObList *m_pCurrentPdList;
  65. public:
  66. PWINSTATIONNAME m_pWSName;
  67. WINSTATIONCONFIG2 m_WSConfig;
  68. EWSDLGMODE m_DlgMode;
  69. PDCONFIG2 m_PreviousPdConfig;
  70. BOOL m_bAsyncListsInitialized;
  71. int m_nPreviousMaxTAPILineNumber;
  72. int m_nCurrentMaxTAPILineNumber;
  73. int m_nComboBoxIndexOfLatestTAPIDevice;
  74. void *m_pExtObject;
  75. protected:
  76. NASICONFIG m_NASIConfig;
  77. /*
  78. * Implementation.
  79. */
  80. public:
  81. CEditWinStationDlg( class CAppServerDoc *pDoc );
  82. /*
  83. * Operations.
  84. */
  85. protected:
  86. BOOL AddNetworkDeviceNameToList(PPDCONFIG3 pPdConfig,CComboBox * pLanAdapter);
  87. void RefrenceAssociatedLists();
  88. void InitializeTransportComboBox();
  89. BOOL InitializeLists( PPDCONFIG3 pPdConfig );
  90. void HandleListInitError( PPDCONFIG3 pPdConfig, DWORD ListInitError );
  91. void HandleSetFieldsError( PPDCONFIG3 pPdConfig, int nId );
  92. BOOL InitializeAsyncLists( PPDCONFIG3 pPdConfig );
  93. BOOL InitializeNetworkLists( PPDCONFIG3 pPdConfig );
  94. BOOL InitializeNASIPortNames( PNASICONFIG pNASIConfig );
  95. BOOL InitializeOemTdLists( PPDCONFIG3 pPdConfig );
  96. void GetSelectedPdConfig( PPDCONFIG3 pPdConfig );
  97. void GetSelectedWdConfig( PWDCONFIG2 pWdConfig );
  98. PTERMLOBJECT GetSelectedWdListObject();
  99. BOOL SetConfigurationFields();
  100. void EnableAsyncFields( BOOL bEnableAndShow );
  101. void EnableConsoleFields( BOOL bEnableAndShow );
  102. void EnableNetworkFields( BOOL bEnableAndShow );
  103. void EnableNASIFields( BOOL bEnableAndShow );
  104. void EnableOemTdFields( BOOL bEnableAndShow );
  105. BOOL SetAsyncFields();
  106. BOOL SetConsoleFields();
  107. BOOL SetNetworkFields();
  108. BOOL SetNASIFields();
  109. BOOL SetOemTdFields();
  110. void SetDefaults();
  111. BOOL GetConfigurationFields();
  112. BOOL GetAsyncFields();
  113. BOOL GetConsoleFields();
  114. BOOL GetNetworkFields();
  115. BOOL GetNASIFields();
  116. BOOL GetOemTdFields();
  117. void SetupInstanceCount(int nControlId);
  118. BOOL ValidateInstanceCount(int nControlId);
  119. /*
  120. * Message map / commands.
  121. */
  122. protected:
  123. //{{AFX_MSG(CEditWinStationDlg)
  124. virtual BOOL OnInitDialog();
  125. afx_msg void OnClickedAsyncModeminstall();
  126. afx_msg void OnClickedAsyncModemconfig();
  127. afx_msg void OnClickedAsyncModemcallbackInherit();
  128. afx_msg void OnClickedAsyncModemcallbackPhonenumberInherit();
  129. afx_msg void OnClickedAsyncDefaults();
  130. afx_msg void OnClickedAsyncAdvanced();
  131. afx_msg void OnClickedAsyncTest();
  132. afx_msg void OnClickedNasiInstancecountUnlimited();
  133. afx_msg void OnClickedNasiAdvanced();
  134. afx_msg void OnClickedNetworkInstancecountUnlimited();
  135. afx_msg void OnClickedOemInstancecountUnlimited();
  136. afx_msg void OnClickedAdvancedWinStation();
  137. afx_msg void OnCloseupPdname();
  138. afx_msg void OnSelchangePdname();
  139. afx_msg void OnCloseupWdname();
  140. afx_msg void OnSelchangeWdname();
  141. afx_msg void OnCloseupAsyncDevicename();
  142. afx_msg void OnSelchangeAsyncDevicename();
  143. afx_msg void OnCloseupAsyncModemcallback();
  144. afx_msg void OnSelchangeAsyncModemcallback();
  145. afx_msg void OnCloseupAsyncBaudrate();
  146. afx_msg void OnSelchangeAsyncBaudrate();
  147. afx_msg void OnCloseupAsyncConnect();
  148. afx_msg void OnSelchangeAsyncConnect();
  149. afx_msg void OnDropdownNasiPortname();
  150. virtual void OnOK();
  151. virtual void OnCancel();
  152. afx_msg LRESULT OnListInitError(WPARAM wParam, LPARAM lParam);
  153. afx_msg LRESULT OnSetFieldsError(WPARAM wParam, LPARAM lParam);
  154. afx_msg void OnClickedClientSettings();
  155. afx_msg void OnClickedExtensionButton();
  156. //}}AFX_MSG
  157. DECLARE_MESSAGE_MAP()
  158. }; // end CEditWinStationDlg class interface
  159. ////////////////////////////////////////////////////////////////////////////////