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.

158 lines
5.8 KiB

  1. // t3testDlg.h : header file
  2. //
  3. #if !defined(AFX_T3TESTDLG_H__2584F27A_D15F_11D0_8ECA_00C04FB6809F__INCLUDED_)
  4. #define AFX_T3TESTDLG_H__2584F27A_D15F_11D0_8ECA_00C04FB6809F__INCLUDED_
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CT3testDlg dialog
  10. #include "autoans.h"
  11. class CT3testDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CT3testDlg(CWnd* pParent = NULL); // standard constructor
  16. void InitializeTrees();
  17. static void AddAddressToTree( ITAddress * pAddress );
  18. static void ReleaseAddresses( );
  19. static void SelectFirstItem(HWND hWnd,HTREEITEM hRoot);
  20. static void DeleteSelectedItem(HWND hWnd);
  21. static void UpdateMediaTypes(ITAddress * pAddress);
  22. static void UpdateCalls(ITAddress * pAddress);
  23. static void UpdateTerminalClasses(ITAddress * pAddress,long lMediaType);
  24. static void UpdateTerminals(ITAddress * pAddress,long lMediaType);
  25. static void CreateSelectedTerminalMenu(POINT pt, HWND);
  26. static void DoDigitGenerationTerminalMenu(HWND hWnd,POINT *);
  27. static void DoDigitDetectTerminalMenu(HWND hWnd, POINT *);
  28. static void CreateCallMenu(POINT pt, HWND hWnd);
  29. static void PutCaptions();
  30. static void HandleCallHubEvent( IDispatch * );
  31. static void HandleTapiObjectMessage( IDispatch * pEvent );
  32. static LPWSTR GetCallPrivilegeName(ITCallInfo * pCall);
  33. static LPWSTR GetCallStateName(ITCallInfo * pCall);
  34. static BSTR GetTerminalClassName( GUID * pguid );
  35. static void InitializeAddressTree();
  36. static void RegisterEventInterface();
  37. static void RegisterForCallNotifications();
  38. static void AddMediaType( long lMediaType );
  39. static void AddTerminal( ITTerminal * pTerminal );
  40. static void AddCreatedTerminal( ITTerminal * pTerminal );
  41. static void AddCall( ITCallInfo * pCall );
  42. static void UpdateCall( ITCallInfo * pCall );
  43. static void AddSelectedTerminal( ITTerminal * pTerminal);
  44. static void AddTerminalClass( GUID * );
  45. static void AddListen( long );
  46. static void ReleaseMediaTypes( );
  47. static void ReleaseTerminals();
  48. static void ReleaseCalls();
  49. static void ReleaseTerminalClasses();
  50. static void ReleaseCreatedTerminals();
  51. static void ReleaseDynamicClasses();
  52. static void ReleaseSelectedTerminals();
  53. static void ReleaseListen();
  54. static void GetMediaTypeName( long, LPWSTR );
  55. static BOOL GetMediaType( long * plMediaType );
  56. static BOOL GetCall( ITCallInfo ** ppCall );
  57. static BOOL GetAddress( ITAddress ** ppAddress );
  58. static BOOL GetTerminal( ITTerminal ** ppTerminal );
  59. static BOOL GetTerminalClass( BSTR * pbstrClass );
  60. static BOOL GetCreatedTerminal( ITTerminal ** ppTerminal );
  61. static BOOL GetSelectedTerminal( ITTerminal ** ppTerminal );
  62. void FreeData( AADATA * pData );
  63. static void HelpCreateTerminal(
  64. ITTerminalSupport * pTerminalSupport,
  65. BSTR bstrClass,
  66. long lMediaType,
  67. TERMINAL_DIRECTION dir
  68. );
  69. BOOL IsVideoCaptureStream(ITStream * pStream);
  70. HRESULT GetVideoRenderTerminal(ITTerminal ** ppTerminal) ;
  71. HRESULT SelectTerminalOnCall(ITTerminal * pTerminal, ITCallInfo * pCall);
  72. HRESULT EnablePreview(ITStream * pStream);
  73. void RemovePreview( ITStream * pStream );
  74. void DoAutoAnswer(ITCallInfo * pCall);
  75. afx_msg void OnClose() ;
  76. // Dialog Data
  77. //{{AFX_DATA(CT3testDlg)
  78. enum { IDD = IDD_T3TEST_DIALOG };
  79. // NOTE: the ClassWizard will add data members here
  80. //}}AFX_DATA
  81. // ClassWizard generated virtual function overrides
  82. //{{AFX_VIRTUAL(CT3testDlg)
  83. public:
  84. virtual void OnFinalRelease();
  85. protected:
  86. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  87. //}}AFX_VIRTUAL
  88. // Implementation
  89. protected:
  90. HICON m_hIcon;
  91. // Generated message map functions
  92. //{{AFX_MSG(CT3testDlg)
  93. virtual BOOL OnInitDialog();
  94. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  95. afx_msg void OnPaint();
  96. afx_msg HCURSOR OnQueryDragIcon();
  97. afx_msg void OnDestroy();
  98. afx_msg void OnSelchangedAddresses(NMHDR* pNMHDR, LRESULT* pResult);
  99. afx_msg void OnAddterminal();
  100. afx_msg void OnRemoveterminal();
  101. afx_msg void OnCreatecall();
  102. afx_msg void OnConnect();
  103. afx_msg void OnDrop();
  104. afx_msg void OnAnswer();
  105. afx_msg void OnListen();
  106. afx_msg void OnSelchangedCalls(NMHDR* pNMHDR, LRESULT* pResult);
  107. afx_msg void OnRelease();
  108. afx_msg void OnCreateTerminal();
  109. afx_msg void OnReleaseterminal();
  110. afx_msg void OnAddcreated();
  111. afx_msg void OnAddnull();
  112. afx_msg void OnAddtolisten();
  113. afx_msg void OnListenall();
  114. afx_msg void OnSelchangedMediatypes(NMHDR* pNMHDR, LRESULT* pResult);
  115. afx_msg void OnRclickSelectedterminals(NMHDR* pNMHDR, LRESULT* pResult);
  116. #ifdef ENABLE_DIGIT_DETECTION_STUFF
  117. afx_msg void OnGenerate();
  118. afx_msg void OnModesSupported();
  119. afx_msg void OnModesSupported2();
  120. afx_msg void OnStartDetect();
  121. afx_msg void OnStopDetect();
  122. #endif // ENABLE_DIGIT_DETECTION_STUFF
  123. afx_msg void OnConfigAutoAnswer();
  124. afx_msg void OnILS();
  125. afx_msg void OnRate();
  126. afx_msg void OnPark1();
  127. afx_msg void OnPark2();
  128. afx_msg void OnHandoff1();
  129. afx_msg void OnHandoff2();
  130. afx_msg void OnUnpark();
  131. afx_msg void OnPickup1();
  132. afx_msg void OnPickup2();
  133. afx_msg void OnRclickCalls(NMHDR* pNMHDR, LRESULT* pResult);
  134. afx_msg LONG CT3testDlg::OnTapiEvent(UINT u, LONG_PTR l);
  135. //}}AFX_MSG
  136. DECLARE_MESSAGE_MAP()
  137. };
  138. HRESULT ListILSServers(
  139. LPWSTR ** ppServers,
  140. DWORD * pdwNumServers
  141. );
  142. //{{AFX_INSERT_LOCATION}}
  143. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  144. #endif // !defined(AFX_T3TESTDLG_H__2584F27A_D15F_11D0_8ECA_00C04FB6809F__INCLUDED_)