Tapi3.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:154k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3.  /* File created by MIDL compiler version 6.00.0347 */
  4. /* Compiler settings for tapi3.idl:
  5.     Oicf, W1, Zp8, env=Win32 (32b run)
  6.     protocol : dce , ms_ext, c_ext, robust
  7.     error checks: allocation ref bounds_check enum stub_data 
  8.     VC __declspec() decoration level: 
  9.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10.          DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING(  )
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __tapi3_h__
  27. #define __tapi3_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */ 
  32. #ifndef __ITAgent_FWD_DEFINED__
  33. #define __ITAgent_FWD_DEFINED__
  34. typedef interface ITAgent ITAgent;
  35. #endif  /* __ITAgent_FWD_DEFINED__ */
  36. #ifndef __ITAgentSession_FWD_DEFINED__
  37. #define __ITAgentSession_FWD_DEFINED__
  38. typedef interface ITAgentSession ITAgentSession;
  39. #endif  /* __ITAgentSession_FWD_DEFINED__ */
  40. #ifndef __ITACDGroup_FWD_DEFINED__
  41. #define __ITACDGroup_FWD_DEFINED__
  42. typedef interface ITACDGroup ITACDGroup;
  43. #endif  /* __ITACDGroup_FWD_DEFINED__ */
  44. #ifndef __ITQueue_FWD_DEFINED__
  45. #define __ITQueue_FWD_DEFINED__
  46. typedef interface ITQueue ITQueue;
  47. #endif  /* __ITQueue_FWD_DEFINED__ */
  48. #ifndef __ITAgentEvent_FWD_DEFINED__
  49. #define __ITAgentEvent_FWD_DEFINED__
  50. typedef interface ITAgentEvent ITAgentEvent;
  51. #endif  /* __ITAgentEvent_FWD_DEFINED__ */
  52. #ifndef __ITAgentSessionEvent_FWD_DEFINED__
  53. #define __ITAgentSessionEvent_FWD_DEFINED__
  54. typedef interface ITAgentSessionEvent ITAgentSessionEvent;
  55. #endif  /* __ITAgentSessionEvent_FWD_DEFINED__ */
  56. #ifndef __ITACDGroupEvent_FWD_DEFINED__
  57. #define __ITACDGroupEvent_FWD_DEFINED__
  58. typedef interface ITACDGroupEvent ITACDGroupEvent;
  59. #endif  /* __ITACDGroupEvent_FWD_DEFINED__ */
  60. #ifndef __ITQueueEvent_FWD_DEFINED__
  61. #define __ITQueueEvent_FWD_DEFINED__
  62. typedef interface ITQueueEvent ITQueueEvent;
  63. #endif  /* __ITQueueEvent_FWD_DEFINED__ */
  64. #ifndef __ITAgentHandlerEvent_FWD_DEFINED__
  65. #define __ITAgentHandlerEvent_FWD_DEFINED__
  66. typedef interface ITAgentHandlerEvent ITAgentHandlerEvent;
  67. #endif  /* __ITAgentHandlerEvent_FWD_DEFINED__ */
  68. #ifndef __ITTAPICallCenter_FWD_DEFINED__
  69. #define __ITTAPICallCenter_FWD_DEFINED__
  70. typedef interface ITTAPICallCenter ITTAPICallCenter;
  71. #endif  /* __ITTAPICallCenter_FWD_DEFINED__ */
  72. #ifndef __ITAgentHandler_FWD_DEFINED__
  73. #define __ITAgentHandler_FWD_DEFINED__
  74. typedef interface ITAgentHandler ITAgentHandler;
  75. #endif  /* __ITAgentHandler_FWD_DEFINED__ */
  76. #ifndef __IEnumAgent_FWD_DEFINED__
  77. #define __IEnumAgent_FWD_DEFINED__
  78. typedef interface IEnumAgent IEnumAgent;
  79. #endif  /* __IEnumAgent_FWD_DEFINED__ */
  80. #ifndef __IEnumAgentSession_FWD_DEFINED__
  81. #define __IEnumAgentSession_FWD_DEFINED__
  82. typedef interface IEnumAgentSession IEnumAgentSession;
  83. #endif  /* __IEnumAgentSession_FWD_DEFINED__ */
  84. #ifndef __IEnumQueue_FWD_DEFINED__
  85. #define __IEnumQueue_FWD_DEFINED__
  86. typedef interface IEnumQueue IEnumQueue;
  87. #endif  /* __IEnumQueue_FWD_DEFINED__ */
  88. #ifndef __IEnumACDGroup_FWD_DEFINED__
  89. #define __IEnumACDGroup_FWD_DEFINED__
  90. typedef interface IEnumACDGroup IEnumACDGroup;
  91. #endif  /* __IEnumACDGroup_FWD_DEFINED__ */
  92. #ifndef __IEnumAgentHandler_FWD_DEFINED__
  93. #define __IEnumAgentHandler_FWD_DEFINED__
  94. typedef interface IEnumAgentHandler IEnumAgentHandler;
  95. #endif  /* __IEnumAgentHandler_FWD_DEFINED__ */
  96. #ifndef __ITAMMediaFormat_FWD_DEFINED__
  97. #define __ITAMMediaFormat_FWD_DEFINED__
  98. typedef interface ITAMMediaFormat ITAMMediaFormat;
  99. #endif  /* __ITAMMediaFormat_FWD_DEFINED__ */
  100. #ifndef __ITAllocatorProperties_FWD_DEFINED__
  101. #define __ITAllocatorProperties_FWD_DEFINED__
  102. typedef interface ITAllocatorProperties ITAllocatorProperties;
  103. #endif  /* __ITAllocatorProperties_FWD_DEFINED__ */
  104. #ifndef __ITPluggableTerminalEventSink_FWD_DEFINED__
  105. #define __ITPluggableTerminalEventSink_FWD_DEFINED__
  106. typedef interface ITPluggableTerminalEventSink ITPluggableTerminalEventSink;
  107. #endif  /* __ITPluggableTerminalEventSink_FWD_DEFINED__ */
  108. #ifndef __ITPluggableTerminalEventSinkRegistration_FWD_DEFINED__
  109. #define __ITPluggableTerminalEventSinkRegistration_FWD_DEFINED__
  110. typedef interface ITPluggableTerminalEventSinkRegistration ITPluggableTerminalEventSinkRegistration;
  111. #endif  /* __ITPluggableTerminalEventSinkRegistration_FWD_DEFINED__ */
  112. #ifndef __ITMSPAddress_FWD_DEFINED__
  113. #define __ITMSPAddress_FWD_DEFINED__
  114. typedef interface ITMSPAddress ITMSPAddress;
  115. #endif  /* __ITMSPAddress_FWD_DEFINED__ */
  116. #ifndef __ITAgent_FWD_DEFINED__
  117. #define __ITAgent_FWD_DEFINED__
  118. typedef interface ITAgent ITAgent;
  119. #endif  /* __ITAgent_FWD_DEFINED__ */
  120. #ifndef __ITAgentEvent_FWD_DEFINED__
  121. #define __ITAgentEvent_FWD_DEFINED__
  122. typedef interface ITAgentEvent ITAgentEvent;
  123. #endif  /* __ITAgentEvent_FWD_DEFINED__ */
  124. #ifndef __ITAgentSession_FWD_DEFINED__
  125. #define __ITAgentSession_FWD_DEFINED__
  126. typedef interface ITAgentSession ITAgentSession;
  127. #endif  /* __ITAgentSession_FWD_DEFINED__ */
  128. #ifndef __ITAgentSessionEvent_FWD_DEFINED__
  129. #define __ITAgentSessionEvent_FWD_DEFINED__
  130. typedef interface ITAgentSessionEvent ITAgentSessionEvent;
  131. #endif  /* __ITAgentSessionEvent_FWD_DEFINED__ */
  132. #ifndef __ITACDGroup_FWD_DEFINED__
  133. #define __ITACDGroup_FWD_DEFINED__
  134. typedef interface ITACDGroup ITACDGroup;
  135. #endif  /* __ITACDGroup_FWD_DEFINED__ */
  136. #ifndef __ITACDGroupEvent_FWD_DEFINED__
  137. #define __ITACDGroupEvent_FWD_DEFINED__
  138. typedef interface ITACDGroupEvent ITACDGroupEvent;
  139. #endif  /* __ITACDGroupEvent_FWD_DEFINED__ */
  140. #ifndef __ITQueue_FWD_DEFINED__
  141. #define __ITQueue_FWD_DEFINED__
  142. typedef interface ITQueue ITQueue;
  143. #endif  /* __ITQueue_FWD_DEFINED__ */
  144. #ifndef __ITQueueEvent_FWD_DEFINED__
  145. #define __ITQueueEvent_FWD_DEFINED__
  146. typedef interface ITQueueEvent ITQueueEvent;
  147. #endif  /* __ITQueueEvent_FWD_DEFINED__ */
  148. #ifndef __ITTAPICallCenter_FWD_DEFINED__
  149. #define __ITTAPICallCenter_FWD_DEFINED__
  150. typedef interface ITTAPICallCenter ITTAPICallCenter;
  151. #endif  /* __ITTAPICallCenter_FWD_DEFINED__ */
  152. #ifndef __ITAgentHandler_FWD_DEFINED__
  153. #define __ITAgentHandler_FWD_DEFINED__
  154. typedef interface ITAgentHandler ITAgentHandler;
  155. #endif  /* __ITAgentHandler_FWD_DEFINED__ */
  156. #ifndef __ITAgentHandlerEvent_FWD_DEFINED__
  157. #define __ITAgentHandlerEvent_FWD_DEFINED__
  158. typedef interface ITAgentHandlerEvent ITAgentHandlerEvent;
  159. #endif  /* __ITAgentHandlerEvent_FWD_DEFINED__ */
  160. #ifndef __ITTAPIDispatchEventNotification_FWD_DEFINED__
  161. #define __ITTAPIDispatchEventNotification_FWD_DEFINED__
  162. typedef interface ITTAPIDispatchEventNotification ITTAPIDispatchEventNotification;
  163. #endif  /* __ITTAPIDispatchEventNotification_FWD_DEFINED__ */
  164. #ifndef __TAPI_FWD_DEFINED__
  165. #define __TAPI_FWD_DEFINED__
  166. #ifdef __cplusplus
  167. typedef class TAPI TAPI;
  168. #else
  169. typedef struct TAPI TAPI;
  170. #endif /* __cplusplus */
  171. #endif  /* __TAPI_FWD_DEFINED__ */
  172. #ifndef __DispatchMapper_FWD_DEFINED__
  173. #define __DispatchMapper_FWD_DEFINED__
  174. #ifdef __cplusplus
  175. typedef class DispatchMapper DispatchMapper;
  176. #else
  177. typedef struct DispatchMapper DispatchMapper;
  178. #endif /* __cplusplus */
  179. #endif  /* __DispatchMapper_FWD_DEFINED__ */
  180. #ifndef __RequestMakeCall_FWD_DEFINED__
  181. #define __RequestMakeCall_FWD_DEFINED__
  182. #ifdef __cplusplus
  183. typedef class RequestMakeCall RequestMakeCall;
  184. #else
  185. typedef struct RequestMakeCall RequestMakeCall;
  186. #endif /* __cplusplus */
  187. #endif  /* __RequestMakeCall_FWD_DEFINED__ */
  188. #ifndef __ITTAPIDispatchEventNotification_FWD_DEFINED__
  189. #define __ITTAPIDispatchEventNotification_FWD_DEFINED__
  190. typedef interface ITTAPIDispatchEventNotification ITTAPIDispatchEventNotification;
  191. #endif  /* __ITTAPIDispatchEventNotification_FWD_DEFINED__ */
  192. /* header files for imported files */
  193. #include "oaidl.h"
  194. #include "ocidl.h"
  195. #include "tapi3if.h"
  196. #ifdef __cplusplus
  197. extern "C"{
  198. #endif 
  199. void * __RPC_USER MIDL_user_allocate(size_t);
  200. void __RPC_USER MIDL_user_free( void * ); 
  201. /* interface __MIDL_itf_tapi3_0000 */
  202. /* [local] */ 
  203. /* Copyright (c) Microsoft Corporation. All rights reserved. */
  204. /* Copyright (c) Microsoft Corporation. All rights reserved. */
  205. typedef 
  206. enum AGENT_EVENT
  207.     { AE_NOT_READY = 0,
  208. AE_READY = AE_NOT_READY + 1,
  209. AE_BUSY_ACD = AE_READY + 1,
  210. AE_BUSY_INCOMING = AE_BUSY_ACD + 1,
  211. AE_BUSY_OUTGOING = AE_BUSY_INCOMING + 1,
  212. AE_UNKNOWN = AE_BUSY_OUTGOING + 1
  213.     }  AGENT_EVENT;
  214. typedef 
  215. enum AGENT_STATE
  216.     { AS_NOT_READY = 0,
  217. AS_READY = AS_NOT_READY + 1,
  218. AS_BUSY_ACD = AS_READY + 1,
  219. AS_BUSY_INCOMING = AS_BUSY_ACD + 1,
  220. AS_BUSY_OUTGOING = AS_BUSY_INCOMING + 1,
  221. AS_UNKNOWN = AS_BUSY_OUTGOING + 1
  222.     }  AGENT_STATE;
  223. typedef 
  224. enum AGENT_SESSION_EVENT
  225.     { ASE_NEW_SESSION = 0,
  226. ASE_NOT_READY = ASE_NEW_SESSION + 1,
  227. ASE_READY = ASE_NOT_READY + 1,
  228. ASE_BUSY = ASE_READY + 1,
  229. ASE_WRAPUP = ASE_BUSY + 1,
  230. ASE_END = ASE_WRAPUP + 1
  231.     }  AGENT_SESSION_EVENT;
  232. typedef 
  233. enum AGENT_SESSION_STATE
  234.     { ASST_NOT_READY = 0,
  235. ASST_READY = ASST_NOT_READY + 1,
  236. ASST_BUSY_ON_CALL = ASST_READY + 1,
  237. ASST_BUSY_WRAPUP = ASST_BUSY_ON_CALL + 1,
  238. ASST_SESSION_ENDED = ASST_BUSY_WRAPUP + 1
  239.     }  AGENT_SESSION_STATE;
  240. typedef 
  241. enum AGENTHANDLER_EVENT
  242.     { AHE_NEW_AGENTHANDLER = 0,
  243. AHE_AGENTHANDLER_REMOVED = AHE_NEW_AGENTHANDLER + 1
  244.     }  AGENTHANDLER_EVENT;
  245. typedef 
  246. enum ACDGROUP_EVENT
  247.     { ACDGE_NEW_GROUP = 0,
  248. ACDGE_GROUP_REMOVED = ACDGE_NEW_GROUP + 1
  249.     }  ACDGROUP_EVENT;
  250. typedef 
  251. enum ACDQUEUE_EVENT
  252.     { ACDQE_NEW_QUEUE = 0,
  253. ACDQE_QUEUE_REMOVED = ACDQE_NEW_QUEUE + 1
  254.     }  ACDQUEUE_EVENT;
  255. extern RPC_IF_HANDLE __MIDL_itf_tapi3_0000_v0_0_c_ifspec;
  256. extern RPC_IF_HANDLE __MIDL_itf_tapi3_0000_v0_0_s_ifspec;
  257. #ifndef __ITAgent_INTERFACE_DEFINED__
  258. #define __ITAgent_INTERFACE_DEFINED__
  259. /* interface ITAgent */
  260. /* [object][dual][helpstring][uuid] */ 
  261. EXTERN_C const IID IID_ITAgent;
  262. #if defined(__cplusplus) && !defined(CINTERFACE)
  263.     
  264.     MIDL_INTERFACE("5770ECE5-4B27-11d1-BF80-00805FC147D3")
  265.     ITAgent : public IDispatch
  266.     {
  267.     public:
  268.         virtual /* [helpstring][hidden][id] */ HRESULT STDMETHODCALLTYPE EnumerateAgentSessions( 
  269.             /* [retval][out] */ IEnumAgentSession **ppEnumAgentSession) = 0;
  270.         
  271.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateSession( 
  272.             /* [in] */ ITACDGroup *pACDGroup,
  273.             /* [in] */ ITAddress *pAddress,
  274.             /* [retval][out] */ ITAgentSession **ppAgentSession) = 0;
  275.         
  276.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE CreateSessionWithPIN( 
  277.             /* [in] */ ITACDGroup *pACDGroup,
  278.             /* [in] */ ITAddress *pAddress,
  279.             /* [in] */ BSTR pPIN,
  280.             /* [retval][out] */ ITAgentSession **ppAgentSession) = 0;
  281.         
  282.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ID( 
  283.             /* [retval][out] */ BSTR *ppID) = 0;
  284.         
  285.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_User( 
  286.             /* [retval][out] */ BSTR *ppUser) = 0;
  287.         
  288.         virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_State( 
  289.             /* [in] */ AGENT_STATE AgentState) = 0;
  290.         
  291.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( 
  292.             /* [retval][out] */ AGENT_STATE *pAgentState) = 0;
  293.         
  294.         virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MeasurementPeriod( 
  295.             /* [in] */ long lPeriod) = 0;
  296.         
  297.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MeasurementPeriod( 
  298.             /* [retval][out] */ long *plPeriod) = 0;
  299.         
  300.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_OverallCallRate( 
  301.             /* [retval][out] */ CURRENCY *pcyCallrate) = 0;
  302.         
  303.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfACDCalls( 
  304.             /* [retval][out] */ long *plCalls) = 0;
  305.         
  306.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfIncomingCalls( 
  307.             /* [retval][out] */ long *plCalls) = 0;
  308.         
  309.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfOutgoingCalls( 
  310.             /* [retval][out] */ long *plCalls) = 0;
  311.         
  312.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalACDTalkTime( 
  313.             /* [retval][out] */ long *plTalkTime) = 0;
  314.         
  315.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalACDCallTime( 
  316.             /* [retval][out] */ long *plCallTime) = 0;
  317.         
  318.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalWrapUpTime( 
  319.             /* [retval][out] */ long *plWrapUpTime) = 0;
  320.         
  321.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AgentSessions( 
  322.             /* [retval][out] */ VARIANT *pVariant) = 0;
  323.         
  324.     };
  325.     
  326. #else  /* C style interface */
  327.     typedef struct ITAgentVtbl
  328.     {
  329.         BEGIN_INTERFACE
  330.         
  331.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  332.             ITAgent * This,
  333.             /* [in] */ REFIID riid,
  334.             /* [iid_is][out] */ void **ppvObject);
  335.         
  336.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  337.             ITAgent * This);
  338.         
  339.         ULONG ( STDMETHODCALLTYPE *Release )( 
  340.             ITAgent * This);
  341.         
  342.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  343.             ITAgent * This,
  344.             /* [out] */ UINT *pctinfo);
  345.         
  346.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  347.             ITAgent * This,
  348.             /* [in] */ UINT iTInfo,
  349.             /* [in] */ LCID lcid,
  350.             /* [out] */ ITypeInfo **ppTInfo);
  351.         
  352.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  353.             ITAgent * This,
  354.             /* [in] */ REFIID riid,
  355.             /* [size_is][in] */ LPOLESTR *rgszNames,
  356.             /* [in] */ UINT cNames,
  357.             /* [in] */ LCID lcid,
  358.             /* [size_is][out] */ DISPID *rgDispId);
  359.         
  360.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  361.             ITAgent * This,
  362.             /* [in] */ DISPID dispIdMember,
  363.             /* [in] */ REFIID riid,
  364.             /* [in] */ LCID lcid,
  365.             /* [in] */ WORD wFlags,
  366.             /* [out][in] */ DISPPARAMS *pDispParams,
  367.             /* [out] */ VARIANT *pVarResult,
  368.             /* [out] */ EXCEPINFO *pExcepInfo,
  369.             /* [out] */ UINT *puArgErr);
  370.         
  371.         /* [helpstring][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumerateAgentSessions )( 
  372.             ITAgent * This,
  373.             /* [retval][out] */ IEnumAgentSession **ppEnumAgentSession);
  374.         
  375.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateSession )( 
  376.             ITAgent * This,
  377.             /* [in] */ ITACDGroup *pACDGroup,
  378.             /* [in] */ ITAddress *pAddress,
  379.             /* [retval][out] */ ITAgentSession **ppAgentSession);
  380.         
  381.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *CreateSessionWithPIN )( 
  382.             ITAgent * This,
  383.             /* [in] */ ITACDGroup *pACDGroup,
  384.             /* [in] */ ITAddress *pAddress,
  385.             /* [in] */ BSTR pPIN,
  386.             /* [retval][out] */ ITAgentSession **ppAgentSession);
  387.         
  388.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ID )( 
  389.             ITAgent * This,
  390.             /* [retval][out] */ BSTR *ppID);
  391.         
  392.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_User )( 
  393.             ITAgent * This,
  394.             /* [retval][out] */ BSTR *ppUser);
  395.         
  396.         /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_State )( 
  397.             ITAgent * This,
  398.             /* [in] */ AGENT_STATE AgentState);
  399.         
  400.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( 
  401.             ITAgent * This,
  402.             /* [retval][out] */ AGENT_STATE *pAgentState);
  403.         
  404.         /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MeasurementPeriod )( 
  405.             ITAgent * This,
  406.             /* [in] */ long lPeriod);
  407.         
  408.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MeasurementPeriod )( 
  409.             ITAgent * This,
  410.             /* [retval][out] */ long *plPeriod);
  411.         
  412.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_OverallCallRate )( 
  413.             ITAgent * This,
  414.             /* [retval][out] */ CURRENCY *pcyCallrate);
  415.         
  416.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfACDCalls )( 
  417.             ITAgent * This,
  418.             /* [retval][out] */ long *plCalls);
  419.         
  420.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfIncomingCalls )( 
  421.             ITAgent * This,
  422.             /* [retval][out] */ long *plCalls);
  423.         
  424.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfOutgoingCalls )( 
  425.             ITAgent * This,
  426.             /* [retval][out] */ long *plCalls);
  427.         
  428.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalACDTalkTime )( 
  429.             ITAgent * This,
  430.             /* [retval][out] */ long *plTalkTime);
  431.         
  432.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalACDCallTime )( 
  433.             ITAgent * This,
  434.             /* [retval][out] */ long *plCallTime);
  435.         
  436.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalWrapUpTime )( 
  437.             ITAgent * This,
  438.             /* [retval][out] */ long *plWrapUpTime);
  439.         
  440.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AgentSessions )( 
  441.             ITAgent * This,
  442.             /* [retval][out] */ VARIANT *pVariant);
  443.         
  444.         END_INTERFACE
  445.     } ITAgentVtbl;
  446.     interface ITAgent
  447.     {
  448.         CONST_VTBL struct ITAgentVtbl *lpVtbl;
  449.     };
  450.     
  451. #ifdef COBJMACROS
  452. #define ITAgent_QueryInterface(This,riid,ppvObject)
  453.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  454. #define ITAgent_AddRef(This)
  455.     (This)->lpVtbl -> AddRef(This)
  456. #define ITAgent_Release(This)
  457.     (This)->lpVtbl -> Release(This)
  458. #define ITAgent_GetTypeInfoCount(This,pctinfo)
  459.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  460. #define ITAgent_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  461.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  462. #define ITAgent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  463.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  464. #define ITAgent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  465.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  466. #define ITAgent_EnumerateAgentSessions(This,ppEnumAgentSession)
  467.     (This)->lpVtbl -> EnumerateAgentSessions(This,ppEnumAgentSession)
  468. #define ITAgent_CreateSession(This,pACDGroup,pAddress,ppAgentSession)
  469.     (This)->lpVtbl -> CreateSession(This,pACDGroup,pAddress,ppAgentSession)
  470. #define ITAgent_CreateSessionWithPIN(This,pACDGroup,pAddress,pPIN,ppAgentSession)
  471.     (This)->lpVtbl -> CreateSessionWithPIN(This,pACDGroup,pAddress,pPIN,ppAgentSession)
  472. #define ITAgent_get_ID(This,ppID)
  473.     (This)->lpVtbl -> get_ID(This,ppID)
  474. #define ITAgent_get_User(This,ppUser)
  475.     (This)->lpVtbl -> get_User(This,ppUser)
  476. #define ITAgent_put_State(This,AgentState)
  477.     (This)->lpVtbl -> put_State(This,AgentState)
  478. #define ITAgent_get_State(This,pAgentState)
  479.     (This)->lpVtbl -> get_State(This,pAgentState)
  480. #define ITAgent_put_MeasurementPeriod(This,lPeriod)
  481.     (This)->lpVtbl -> put_MeasurementPeriod(This,lPeriod)
  482. #define ITAgent_get_MeasurementPeriod(This,plPeriod)
  483.     (This)->lpVtbl -> get_MeasurementPeriod(This,plPeriod)
  484. #define ITAgent_get_OverallCallRate(This,pcyCallrate)
  485.     (This)->lpVtbl -> get_OverallCallRate(This,pcyCallrate)
  486. #define ITAgent_get_NumberOfACDCalls(This,plCalls)
  487.     (This)->lpVtbl -> get_NumberOfACDCalls(This,plCalls)
  488. #define ITAgent_get_NumberOfIncomingCalls(This,plCalls)
  489.     (This)->lpVtbl -> get_NumberOfIncomingCalls(This,plCalls)
  490. #define ITAgent_get_NumberOfOutgoingCalls(This,plCalls)
  491.     (This)->lpVtbl -> get_NumberOfOutgoingCalls(This,plCalls)
  492. #define ITAgent_get_TotalACDTalkTime(This,plTalkTime)
  493.     (This)->lpVtbl -> get_TotalACDTalkTime(This,plTalkTime)
  494. #define ITAgent_get_TotalACDCallTime(This,plCallTime)
  495.     (This)->lpVtbl -> get_TotalACDCallTime(This,plCallTime)
  496. #define ITAgent_get_TotalWrapUpTime(This,plWrapUpTime)
  497.     (This)->lpVtbl -> get_TotalWrapUpTime(This,plWrapUpTime)
  498. #define ITAgent_get_AgentSessions(This,pVariant)
  499.     (This)->lpVtbl -> get_AgentSessions(This,pVariant)
  500. #endif /* COBJMACROS */
  501. #endif  /* C style interface */
  502. /* [helpstring][hidden][id] */ HRESULT STDMETHODCALLTYPE ITAgent_EnumerateAgentSessions_Proxy( 
  503.     ITAgent * This,
  504.     /* [retval][out] */ IEnumAgentSession **ppEnumAgentSession);
  505. void __RPC_STUB ITAgent_EnumerateAgentSessions_Stub(
  506.     IRpcStubBuffer *This,
  507.     IRpcChannelBuffer *_pRpcChannelBuffer,
  508.     PRPC_MESSAGE _pRpcMessage,
  509.     DWORD *_pdwStubPhase);
  510. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITAgent_CreateSession_Proxy( 
  511.     ITAgent * This,
  512.     /* [in] */ ITACDGroup *pACDGroup,
  513.     /* [in] */ ITAddress *pAddress,
  514.     /* [retval][out] */ ITAgentSession **ppAgentSession);
  515. void __RPC_STUB ITAgent_CreateSession_Stub(
  516.     IRpcStubBuffer *This,
  517.     IRpcChannelBuffer *_pRpcChannelBuffer,
  518.     PRPC_MESSAGE _pRpcMessage,
  519.     DWORD *_pdwStubPhase);
  520. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITAgent_CreateSessionWithPIN_Proxy( 
  521.     ITAgent * This,
  522.     /* [in] */ ITACDGroup *pACDGroup,
  523.     /* [in] */ ITAddress *pAddress,
  524.     /* [in] */ BSTR pPIN,
  525.     /* [retval][out] */ ITAgentSession **ppAgentSession);
  526. void __RPC_STUB ITAgent_CreateSessionWithPIN_Stub(
  527.     IRpcStubBuffer *This,
  528.     IRpcChannelBuffer *_pRpcChannelBuffer,
  529.     PRPC_MESSAGE _pRpcMessage,
  530.     DWORD *_pdwStubPhase);
  531. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_ID_Proxy( 
  532.     ITAgent * This,
  533.     /* [retval][out] */ BSTR *ppID);
  534. void __RPC_STUB ITAgent_get_ID_Stub(
  535.     IRpcStubBuffer *This,
  536.     IRpcChannelBuffer *_pRpcChannelBuffer,
  537.     PRPC_MESSAGE _pRpcMessage,
  538.     DWORD *_pdwStubPhase);
  539. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_User_Proxy( 
  540.     ITAgent * This,
  541.     /* [retval][out] */ BSTR *ppUser);
  542. void __RPC_STUB ITAgent_get_User_Stub(
  543.     IRpcStubBuffer *This,
  544.     IRpcChannelBuffer *_pRpcChannelBuffer,
  545.     PRPC_MESSAGE _pRpcMessage,
  546.     DWORD *_pdwStubPhase);
  547. /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITAgent_put_State_Proxy( 
  548.     ITAgent * This,
  549.     /* [in] */ AGENT_STATE AgentState);
  550. void __RPC_STUB ITAgent_put_State_Stub(
  551.     IRpcStubBuffer *This,
  552.     IRpcChannelBuffer *_pRpcChannelBuffer,
  553.     PRPC_MESSAGE _pRpcMessage,
  554.     DWORD *_pdwStubPhase);
  555. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_State_Proxy( 
  556.     ITAgent * This,
  557.     /* [retval][out] */ AGENT_STATE *pAgentState);
  558. void __RPC_STUB ITAgent_get_State_Stub(
  559.     IRpcStubBuffer *This,
  560.     IRpcChannelBuffer *_pRpcChannelBuffer,
  561.     PRPC_MESSAGE _pRpcMessage,
  562.     DWORD *_pdwStubPhase);
  563. /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITAgent_put_MeasurementPeriod_Proxy( 
  564.     ITAgent * This,
  565.     /* [in] */ long lPeriod);
  566. void __RPC_STUB ITAgent_put_MeasurementPeriod_Stub(
  567.     IRpcStubBuffer *This,
  568.     IRpcChannelBuffer *_pRpcChannelBuffer,
  569.     PRPC_MESSAGE _pRpcMessage,
  570.     DWORD *_pdwStubPhase);
  571. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_MeasurementPeriod_Proxy( 
  572.     ITAgent * This,
  573.     /* [retval][out] */ long *plPeriod);
  574. void __RPC_STUB ITAgent_get_MeasurementPeriod_Stub(
  575.     IRpcStubBuffer *This,
  576.     IRpcChannelBuffer *_pRpcChannelBuffer,
  577.     PRPC_MESSAGE _pRpcMessage,
  578.     DWORD *_pdwStubPhase);
  579. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_OverallCallRate_Proxy( 
  580.     ITAgent * This,
  581.     /* [retval][out] */ CURRENCY *pcyCallrate);
  582. void __RPC_STUB ITAgent_get_OverallCallRate_Stub(
  583.     IRpcStubBuffer *This,
  584.     IRpcChannelBuffer *_pRpcChannelBuffer,
  585.     PRPC_MESSAGE _pRpcMessage,
  586.     DWORD *_pdwStubPhase);
  587. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_NumberOfACDCalls_Proxy( 
  588.     ITAgent * This,
  589.     /* [retval][out] */ long *plCalls);
  590. void __RPC_STUB ITAgent_get_NumberOfACDCalls_Stub(
  591.     IRpcStubBuffer *This,
  592.     IRpcChannelBuffer *_pRpcChannelBuffer,
  593.     PRPC_MESSAGE _pRpcMessage,
  594.     DWORD *_pdwStubPhase);
  595. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_NumberOfIncomingCalls_Proxy( 
  596.     ITAgent * This,
  597.     /* [retval][out] */ long *plCalls);
  598. void __RPC_STUB ITAgent_get_NumberOfIncomingCalls_Stub(
  599.     IRpcStubBuffer *This,
  600.     IRpcChannelBuffer *_pRpcChannelBuffer,
  601.     PRPC_MESSAGE _pRpcMessage,
  602.     DWORD *_pdwStubPhase);
  603. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_NumberOfOutgoingCalls_Proxy( 
  604.     ITAgent * This,
  605.     /* [retval][out] */ long *plCalls);
  606. void __RPC_STUB ITAgent_get_NumberOfOutgoingCalls_Stub(
  607.     IRpcStubBuffer *This,
  608.     IRpcChannelBuffer *_pRpcChannelBuffer,
  609.     PRPC_MESSAGE _pRpcMessage,
  610.     DWORD *_pdwStubPhase);
  611. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_TotalACDTalkTime_Proxy( 
  612.     ITAgent * This,
  613.     /* [retval][out] */ long *plTalkTime);
  614. void __RPC_STUB ITAgent_get_TotalACDTalkTime_Stub(
  615.     IRpcStubBuffer *This,
  616.     IRpcChannelBuffer *_pRpcChannelBuffer,
  617.     PRPC_MESSAGE _pRpcMessage,
  618.     DWORD *_pdwStubPhase);
  619. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_TotalACDCallTime_Proxy( 
  620.     ITAgent * This,
  621.     /* [retval][out] */ long *plCallTime);
  622. void __RPC_STUB ITAgent_get_TotalACDCallTime_Stub(
  623.     IRpcStubBuffer *This,
  624.     IRpcChannelBuffer *_pRpcChannelBuffer,
  625.     PRPC_MESSAGE _pRpcMessage,
  626.     DWORD *_pdwStubPhase);
  627. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_TotalWrapUpTime_Proxy( 
  628.     ITAgent * This,
  629.     /* [retval][out] */ long *plWrapUpTime);
  630. void __RPC_STUB ITAgent_get_TotalWrapUpTime_Stub(
  631.     IRpcStubBuffer *This,
  632.     IRpcChannelBuffer *_pRpcChannelBuffer,
  633.     PRPC_MESSAGE _pRpcMessage,
  634.     DWORD *_pdwStubPhase);
  635. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgent_get_AgentSessions_Proxy( 
  636.     ITAgent * This,
  637.     /* [retval][out] */ VARIANT *pVariant);
  638. void __RPC_STUB ITAgent_get_AgentSessions_Stub(
  639.     IRpcStubBuffer *This,
  640.     IRpcChannelBuffer *_pRpcChannelBuffer,
  641.     PRPC_MESSAGE _pRpcMessage,
  642.     DWORD *_pdwStubPhase);
  643. #endif  /* __ITAgent_INTERFACE_DEFINED__ */
  644. #ifndef __ITAgentSession_INTERFACE_DEFINED__
  645. #define __ITAgentSession_INTERFACE_DEFINED__
  646. /* interface ITAgentSession */
  647. /* [object][dual][helpstring][uuid] */ 
  648. EXTERN_C const IID IID_ITAgentSession;
  649. #if defined(__cplusplus) && !defined(CINTERFACE)
  650.     
  651.     MIDL_INTERFACE("5AFC3147-4BCC-11d1-BF80-00805FC147D3")
  652.     ITAgentSession : public IDispatch
  653.     {
  654.     public:
  655.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Agent( 
  656.             /* [retval][out] */ ITAgent **ppAgent) = 0;
  657.         
  658.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Address( 
  659.             /* [retval][out] */ ITAddress **ppAddress) = 0;
  660.         
  661.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ACDGroup( 
  662.             /* [retval][out] */ ITACDGroup **ppACDGroup) = 0;
  663.         
  664.         virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_State( 
  665.             /* [in] */ AGENT_SESSION_STATE SessionState) = 0;
  666.         
  667.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_State( 
  668.             /* [retval][out] */ AGENT_SESSION_STATE *pSessionState) = 0;
  669.         
  670.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SessionStartTime( 
  671.             /* [retval][out] */ DATE *pdateSessionStart) = 0;
  672.         
  673.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_SessionDuration( 
  674.             /* [retval][out] */ long *plDuration) = 0;
  675.         
  676.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_NumberOfCalls( 
  677.             /* [retval][out] */ long *plCalls) = 0;
  678.         
  679.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalTalkTime( 
  680.             /* [retval][out] */ long *plTalkTime) = 0;
  681.         
  682.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AverageTalkTime( 
  683.             /* [retval][out] */ long *plTalkTime) = 0;
  684.         
  685.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalCallTime( 
  686.             /* [retval][out] */ long *plCallTime) = 0;
  687.         
  688.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AverageCallTime( 
  689.             /* [retval][out] */ long *plCallTime) = 0;
  690.         
  691.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalWrapUpTime( 
  692.             /* [retval][out] */ long *plWrapUpTime) = 0;
  693.         
  694.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AverageWrapUpTime( 
  695.             /* [retval][out] */ long *plWrapUpTime) = 0;
  696.         
  697.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ACDCallRate( 
  698.             /* [retval][out] */ CURRENCY *pcyCallrate) = 0;
  699.         
  700.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LongestTimeToAnswer( 
  701.             /* [retval][out] */ long *plAnswerTime) = 0;
  702.         
  703.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AverageTimeToAnswer( 
  704.             /* [retval][out] */ long *plAnswerTime) = 0;
  705.         
  706.     };
  707.     
  708. #else  /* C style interface */
  709.     typedef struct ITAgentSessionVtbl
  710.     {
  711.         BEGIN_INTERFACE
  712.         
  713.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  714.             ITAgentSession * This,
  715.             /* [in] */ REFIID riid,
  716.             /* [iid_is][out] */ void **ppvObject);
  717.         
  718.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  719.             ITAgentSession * This);
  720.         
  721.         ULONG ( STDMETHODCALLTYPE *Release )( 
  722.             ITAgentSession * This);
  723.         
  724.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  725.             ITAgentSession * This,
  726.             /* [out] */ UINT *pctinfo);
  727.         
  728.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  729.             ITAgentSession * This,
  730.             /* [in] */ UINT iTInfo,
  731.             /* [in] */ LCID lcid,
  732.             /* [out] */ ITypeInfo **ppTInfo);
  733.         
  734.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  735.             ITAgentSession * This,
  736.             /* [in] */ REFIID riid,
  737.             /* [size_is][in] */ LPOLESTR *rgszNames,
  738.             /* [in] */ UINT cNames,
  739.             /* [in] */ LCID lcid,
  740.             /* [size_is][out] */ DISPID *rgDispId);
  741.         
  742.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  743.             ITAgentSession * This,
  744.             /* [in] */ DISPID dispIdMember,
  745.             /* [in] */ REFIID riid,
  746.             /* [in] */ LCID lcid,
  747.             /* [in] */ WORD wFlags,
  748.             /* [out][in] */ DISPPARAMS *pDispParams,
  749.             /* [out] */ VARIANT *pVarResult,
  750.             /* [out] */ EXCEPINFO *pExcepInfo,
  751.             /* [out] */ UINT *puArgErr);
  752.         
  753.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Agent )( 
  754.             ITAgentSession * This,
  755.             /* [retval][out] */ ITAgent **ppAgent);
  756.         
  757.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Address )( 
  758.             ITAgentSession * This,
  759.             /* [retval][out] */ ITAddress **ppAddress);
  760.         
  761.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ACDGroup )( 
  762.             ITAgentSession * This,
  763.             /* [retval][out] */ ITACDGroup **ppACDGroup);
  764.         
  765.         /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_State )( 
  766.             ITAgentSession * This,
  767.             /* [in] */ AGENT_SESSION_STATE SessionState);
  768.         
  769.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_State )( 
  770.             ITAgentSession * This,
  771.             /* [retval][out] */ AGENT_SESSION_STATE *pSessionState);
  772.         
  773.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionStartTime )( 
  774.             ITAgentSession * This,
  775.             /* [retval][out] */ DATE *pdateSessionStart);
  776.         
  777.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_SessionDuration )( 
  778.             ITAgentSession * This,
  779.             /* [retval][out] */ long *plDuration);
  780.         
  781.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_NumberOfCalls )( 
  782.             ITAgentSession * This,
  783.             /* [retval][out] */ long *plCalls);
  784.         
  785.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalTalkTime )( 
  786.             ITAgentSession * This,
  787.             /* [retval][out] */ long *plTalkTime);
  788.         
  789.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AverageTalkTime )( 
  790.             ITAgentSession * This,
  791.             /* [retval][out] */ long *plTalkTime);
  792.         
  793.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalCallTime )( 
  794.             ITAgentSession * This,
  795.             /* [retval][out] */ long *plCallTime);
  796.         
  797.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AverageCallTime )( 
  798.             ITAgentSession * This,
  799.             /* [retval][out] */ long *plCallTime);
  800.         
  801.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalWrapUpTime )( 
  802.             ITAgentSession * This,
  803.             /* [retval][out] */ long *plWrapUpTime);
  804.         
  805.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AverageWrapUpTime )( 
  806.             ITAgentSession * This,
  807.             /* [retval][out] */ long *plWrapUpTime);
  808.         
  809.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ACDCallRate )( 
  810.             ITAgentSession * This,
  811.             /* [retval][out] */ CURRENCY *pcyCallrate);
  812.         
  813.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LongestTimeToAnswer )( 
  814.             ITAgentSession * This,
  815.             /* [retval][out] */ long *plAnswerTime);
  816.         
  817.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AverageTimeToAnswer )( 
  818.             ITAgentSession * This,
  819.             /* [retval][out] */ long *plAnswerTime);
  820.         
  821.         END_INTERFACE
  822.     } ITAgentSessionVtbl;
  823.     interface ITAgentSession
  824.     {
  825.         CONST_VTBL struct ITAgentSessionVtbl *lpVtbl;
  826.     };
  827.     
  828. #ifdef COBJMACROS
  829. #define ITAgentSession_QueryInterface(This,riid,ppvObject)
  830.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  831. #define ITAgentSession_AddRef(This)
  832.     (This)->lpVtbl -> AddRef(This)
  833. #define ITAgentSession_Release(This)
  834.     (This)->lpVtbl -> Release(This)
  835. #define ITAgentSession_GetTypeInfoCount(This,pctinfo)
  836.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  837. #define ITAgentSession_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  838.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  839. #define ITAgentSession_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  840.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  841. #define ITAgentSession_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  842.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  843. #define ITAgentSession_get_Agent(This,ppAgent)
  844.     (This)->lpVtbl -> get_Agent(This,ppAgent)
  845. #define ITAgentSession_get_Address(This,ppAddress)
  846.     (This)->lpVtbl -> get_Address(This,ppAddress)
  847. #define ITAgentSession_get_ACDGroup(This,ppACDGroup)
  848.     (This)->lpVtbl -> get_ACDGroup(This,ppACDGroup)
  849. #define ITAgentSession_put_State(This,SessionState)
  850.     (This)->lpVtbl -> put_State(This,SessionState)
  851. #define ITAgentSession_get_State(This,pSessionState)
  852.     (This)->lpVtbl -> get_State(This,pSessionState)
  853. #define ITAgentSession_get_SessionStartTime(This,pdateSessionStart)
  854.     (This)->lpVtbl -> get_SessionStartTime(This,pdateSessionStart)
  855. #define ITAgentSession_get_SessionDuration(This,plDuration)
  856.     (This)->lpVtbl -> get_SessionDuration(This,plDuration)
  857. #define ITAgentSession_get_NumberOfCalls(This,plCalls)
  858.     (This)->lpVtbl -> get_NumberOfCalls(This,plCalls)
  859. #define ITAgentSession_get_TotalTalkTime(This,plTalkTime)
  860.     (This)->lpVtbl -> get_TotalTalkTime(This,plTalkTime)
  861. #define ITAgentSession_get_AverageTalkTime(This,plTalkTime)
  862.     (This)->lpVtbl -> get_AverageTalkTime(This,plTalkTime)
  863. #define ITAgentSession_get_TotalCallTime(This,plCallTime)
  864.     (This)->lpVtbl -> get_TotalCallTime(This,plCallTime)
  865. #define ITAgentSession_get_AverageCallTime(This,plCallTime)
  866.     (This)->lpVtbl -> get_AverageCallTime(This,plCallTime)
  867. #define ITAgentSession_get_TotalWrapUpTime(This,plWrapUpTime)
  868.     (This)->lpVtbl -> get_TotalWrapUpTime(This,plWrapUpTime)
  869. #define ITAgentSession_get_AverageWrapUpTime(This,plWrapUpTime)
  870.     (This)->lpVtbl -> get_AverageWrapUpTime(This,plWrapUpTime)
  871. #define ITAgentSession_get_ACDCallRate(This,pcyCallrate)
  872.     (This)->lpVtbl -> get_ACDCallRate(This,pcyCallrate)
  873. #define ITAgentSession_get_LongestTimeToAnswer(This,plAnswerTime)
  874.     (This)->lpVtbl -> get_LongestTimeToAnswer(This,plAnswerTime)
  875. #define ITAgentSession_get_AverageTimeToAnswer(This,plAnswerTime)
  876.     (This)->lpVtbl -> get_AverageTimeToAnswer(This,plAnswerTime)
  877. #endif /* COBJMACROS */
  878. #endif  /* C style interface */
  879. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_Agent_Proxy( 
  880.     ITAgentSession * This,
  881.     /* [retval][out] */ ITAgent **ppAgent);
  882. void __RPC_STUB ITAgentSession_get_Agent_Stub(
  883.     IRpcStubBuffer *This,
  884.     IRpcChannelBuffer *_pRpcChannelBuffer,
  885.     PRPC_MESSAGE _pRpcMessage,
  886.     DWORD *_pdwStubPhase);
  887. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_Address_Proxy( 
  888.     ITAgentSession * This,
  889.     /* [retval][out] */ ITAddress **ppAddress);
  890. void __RPC_STUB ITAgentSession_get_Address_Stub(
  891.     IRpcStubBuffer *This,
  892.     IRpcChannelBuffer *_pRpcChannelBuffer,
  893.     PRPC_MESSAGE _pRpcMessage,
  894.     DWORD *_pdwStubPhase);
  895. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_ACDGroup_Proxy( 
  896.     ITAgentSession * This,
  897.     /* [retval][out] */ ITACDGroup **ppACDGroup);
  898. void __RPC_STUB ITAgentSession_get_ACDGroup_Stub(
  899.     IRpcStubBuffer *This,
  900.     IRpcChannelBuffer *_pRpcChannelBuffer,
  901.     PRPC_MESSAGE _pRpcMessage,
  902.     DWORD *_pdwStubPhase);
  903. /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITAgentSession_put_State_Proxy( 
  904.     ITAgentSession * This,
  905.     /* [in] */ AGENT_SESSION_STATE SessionState);
  906. void __RPC_STUB ITAgentSession_put_State_Stub(
  907.     IRpcStubBuffer *This,
  908.     IRpcChannelBuffer *_pRpcChannelBuffer,
  909.     PRPC_MESSAGE _pRpcMessage,
  910.     DWORD *_pdwStubPhase);
  911. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_State_Proxy( 
  912.     ITAgentSession * This,
  913.     /* [retval][out] */ AGENT_SESSION_STATE *pSessionState);
  914. void __RPC_STUB ITAgentSession_get_State_Stub(
  915.     IRpcStubBuffer *This,
  916.     IRpcChannelBuffer *_pRpcChannelBuffer,
  917.     PRPC_MESSAGE _pRpcMessage,
  918.     DWORD *_pdwStubPhase);
  919. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_SessionStartTime_Proxy( 
  920.     ITAgentSession * This,
  921.     /* [retval][out] */ DATE *pdateSessionStart);
  922. void __RPC_STUB ITAgentSession_get_SessionStartTime_Stub(
  923.     IRpcStubBuffer *This,
  924.     IRpcChannelBuffer *_pRpcChannelBuffer,
  925.     PRPC_MESSAGE _pRpcMessage,
  926.     DWORD *_pdwStubPhase);
  927. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_SessionDuration_Proxy( 
  928.     ITAgentSession * This,
  929.     /* [retval][out] */ long *plDuration);
  930. void __RPC_STUB ITAgentSession_get_SessionDuration_Stub(
  931.     IRpcStubBuffer *This,
  932.     IRpcChannelBuffer *_pRpcChannelBuffer,
  933.     PRPC_MESSAGE _pRpcMessage,
  934.     DWORD *_pdwStubPhase);
  935. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_NumberOfCalls_Proxy( 
  936.     ITAgentSession * This,
  937.     /* [retval][out] */ long *plCalls);
  938. void __RPC_STUB ITAgentSession_get_NumberOfCalls_Stub(
  939.     IRpcStubBuffer *This,
  940.     IRpcChannelBuffer *_pRpcChannelBuffer,
  941.     PRPC_MESSAGE _pRpcMessage,
  942.     DWORD *_pdwStubPhase);
  943. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_TotalTalkTime_Proxy( 
  944.     ITAgentSession * This,
  945.     /* [retval][out] */ long *plTalkTime);
  946. void __RPC_STUB ITAgentSession_get_TotalTalkTime_Stub(
  947.     IRpcStubBuffer *This,
  948.     IRpcChannelBuffer *_pRpcChannelBuffer,
  949.     PRPC_MESSAGE _pRpcMessage,
  950.     DWORD *_pdwStubPhase);
  951. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_AverageTalkTime_Proxy( 
  952.     ITAgentSession * This,
  953.     /* [retval][out] */ long *plTalkTime);
  954. void __RPC_STUB ITAgentSession_get_AverageTalkTime_Stub(
  955.     IRpcStubBuffer *This,
  956.     IRpcChannelBuffer *_pRpcChannelBuffer,
  957.     PRPC_MESSAGE _pRpcMessage,
  958.     DWORD *_pdwStubPhase);
  959. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_TotalCallTime_Proxy( 
  960.     ITAgentSession * This,
  961.     /* [retval][out] */ long *plCallTime);
  962. void __RPC_STUB ITAgentSession_get_TotalCallTime_Stub(
  963.     IRpcStubBuffer *This,
  964.     IRpcChannelBuffer *_pRpcChannelBuffer,
  965.     PRPC_MESSAGE _pRpcMessage,
  966.     DWORD *_pdwStubPhase);
  967. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_AverageCallTime_Proxy( 
  968.     ITAgentSession * This,
  969.     /* [retval][out] */ long *plCallTime);
  970. void __RPC_STUB ITAgentSession_get_AverageCallTime_Stub(
  971.     IRpcStubBuffer *This,
  972.     IRpcChannelBuffer *_pRpcChannelBuffer,
  973.     PRPC_MESSAGE _pRpcMessage,
  974.     DWORD *_pdwStubPhase);
  975. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_TotalWrapUpTime_Proxy( 
  976.     ITAgentSession * This,
  977.     /* [retval][out] */ long *plWrapUpTime);
  978. void __RPC_STUB ITAgentSession_get_TotalWrapUpTime_Stub(
  979.     IRpcStubBuffer *This,
  980.     IRpcChannelBuffer *_pRpcChannelBuffer,
  981.     PRPC_MESSAGE _pRpcMessage,
  982.     DWORD *_pdwStubPhase);
  983. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_AverageWrapUpTime_Proxy( 
  984.     ITAgentSession * This,
  985.     /* [retval][out] */ long *plWrapUpTime);
  986. void __RPC_STUB ITAgentSession_get_AverageWrapUpTime_Stub(
  987.     IRpcStubBuffer *This,
  988.     IRpcChannelBuffer *_pRpcChannelBuffer,
  989.     PRPC_MESSAGE _pRpcMessage,
  990.     DWORD *_pdwStubPhase);
  991. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_ACDCallRate_Proxy( 
  992.     ITAgentSession * This,
  993.     /* [retval][out] */ CURRENCY *pcyCallrate);
  994. void __RPC_STUB ITAgentSession_get_ACDCallRate_Stub(
  995.     IRpcStubBuffer *This,
  996.     IRpcChannelBuffer *_pRpcChannelBuffer,
  997.     PRPC_MESSAGE _pRpcMessage,
  998.     DWORD *_pdwStubPhase);
  999. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_LongestTimeToAnswer_Proxy( 
  1000.     ITAgentSession * This,
  1001.     /* [retval][out] */ long *plAnswerTime);
  1002. void __RPC_STUB ITAgentSession_get_LongestTimeToAnswer_Stub(
  1003.     IRpcStubBuffer *This,
  1004.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1005.     PRPC_MESSAGE _pRpcMessage,
  1006.     DWORD *_pdwStubPhase);
  1007. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSession_get_AverageTimeToAnswer_Proxy( 
  1008.     ITAgentSession * This,
  1009.     /* [retval][out] */ long *plAnswerTime);
  1010. void __RPC_STUB ITAgentSession_get_AverageTimeToAnswer_Stub(
  1011.     IRpcStubBuffer *This,
  1012.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1013.     PRPC_MESSAGE _pRpcMessage,
  1014.     DWORD *_pdwStubPhase);
  1015. #endif  /* __ITAgentSession_INTERFACE_DEFINED__ */
  1016. #ifndef __ITACDGroup_INTERFACE_DEFINED__
  1017. #define __ITACDGroup_INTERFACE_DEFINED__
  1018. /* interface ITACDGroup */
  1019. /* [object][dual][helpstring][uuid] */ 
  1020. EXTERN_C const IID IID_ITACDGroup;
  1021. #if defined(__cplusplus) && !defined(CINTERFACE)
  1022.     
  1023.     MIDL_INTERFACE("5AFC3148-4BCC-11d1-BF80-00805FC147D3")
  1024.     ITACDGroup : public IDispatch
  1025.     {
  1026.     public:
  1027.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( 
  1028.             /* [retval][out] */ BSTR *ppName) = 0;
  1029.         
  1030.         virtual /* [helpstring][hidden][id] */ HRESULT STDMETHODCALLTYPE EnumerateQueues( 
  1031.             /* [retval][out] */ IEnumQueue **ppEnumQueue) = 0;
  1032.         
  1033.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Queues( 
  1034.             /* [retval][out] */ VARIANT *pVariant) = 0;
  1035.         
  1036.     };
  1037.     
  1038. #else  /* C style interface */
  1039.     typedef struct ITACDGroupVtbl
  1040.     {
  1041.         BEGIN_INTERFACE
  1042.         
  1043.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1044.             ITACDGroup * This,
  1045.             /* [in] */ REFIID riid,
  1046.             /* [iid_is][out] */ void **ppvObject);
  1047.         
  1048.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1049.             ITACDGroup * This);
  1050.         
  1051.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1052.             ITACDGroup * This);
  1053.         
  1054.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1055.             ITACDGroup * This,
  1056.             /* [out] */ UINT *pctinfo);
  1057.         
  1058.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1059.             ITACDGroup * This,
  1060.             /* [in] */ UINT iTInfo,
  1061.             /* [in] */ LCID lcid,
  1062.             /* [out] */ ITypeInfo **ppTInfo);
  1063.         
  1064.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1065.             ITACDGroup * This,
  1066.             /* [in] */ REFIID riid,
  1067.             /* [size_is][in] */ LPOLESTR *rgszNames,
  1068.             /* [in] */ UINT cNames,
  1069.             /* [in] */ LCID lcid,
  1070.             /* [size_is][out] */ DISPID *rgDispId);
  1071.         
  1072.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1073.             ITACDGroup * This,
  1074.             /* [in] */ DISPID dispIdMember,
  1075.             /* [in] */ REFIID riid,
  1076.             /* [in] */ LCID lcid,
  1077.             /* [in] */ WORD wFlags,
  1078.             /* [out][in] */ DISPPARAMS *pDispParams,
  1079.             /* [out] */ VARIANT *pVarResult,
  1080.             /* [out] */ EXCEPINFO *pExcepInfo,
  1081.             /* [out] */ UINT *puArgErr);
  1082.         
  1083.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( 
  1084.             ITACDGroup * This,
  1085.             /* [retval][out] */ BSTR *ppName);
  1086.         
  1087.         /* [helpstring][hidden][id] */ HRESULT ( STDMETHODCALLTYPE *EnumerateQueues )( 
  1088.             ITACDGroup * This,
  1089.             /* [retval][out] */ IEnumQueue **ppEnumQueue);
  1090.         
  1091.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Queues )( 
  1092.             ITACDGroup * This,
  1093.             /* [retval][out] */ VARIANT *pVariant);
  1094.         
  1095.         END_INTERFACE
  1096.     } ITACDGroupVtbl;
  1097.     interface ITACDGroup
  1098.     {
  1099.         CONST_VTBL struct ITACDGroupVtbl *lpVtbl;
  1100.     };
  1101.     
  1102. #ifdef COBJMACROS
  1103. #define ITACDGroup_QueryInterface(This,riid,ppvObject)
  1104.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1105. #define ITACDGroup_AddRef(This)
  1106.     (This)->lpVtbl -> AddRef(This)
  1107. #define ITACDGroup_Release(This)
  1108.     (This)->lpVtbl -> Release(This)
  1109. #define ITACDGroup_GetTypeInfoCount(This,pctinfo)
  1110.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1111. #define ITACDGroup_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1112.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1113. #define ITACDGroup_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1114.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1115. #define ITACDGroup_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1116.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1117. #define ITACDGroup_get_Name(This,ppName)
  1118.     (This)->lpVtbl -> get_Name(This,ppName)
  1119. #define ITACDGroup_EnumerateQueues(This,ppEnumQueue)
  1120.     (This)->lpVtbl -> EnumerateQueues(This,ppEnumQueue)
  1121. #define ITACDGroup_get_Queues(This,pVariant)
  1122.     (This)->lpVtbl -> get_Queues(This,pVariant)
  1123. #endif /* COBJMACROS */
  1124. #endif  /* C style interface */
  1125. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITACDGroup_get_Name_Proxy( 
  1126.     ITACDGroup * This,
  1127.     /* [retval][out] */ BSTR *ppName);
  1128. void __RPC_STUB ITACDGroup_get_Name_Stub(
  1129.     IRpcStubBuffer *This,
  1130.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1131.     PRPC_MESSAGE _pRpcMessage,
  1132.     DWORD *_pdwStubPhase);
  1133. /* [helpstring][hidden][id] */ HRESULT STDMETHODCALLTYPE ITACDGroup_EnumerateQueues_Proxy( 
  1134.     ITACDGroup * This,
  1135.     /* [retval][out] */ IEnumQueue **ppEnumQueue);
  1136. void __RPC_STUB ITACDGroup_EnumerateQueues_Stub(
  1137.     IRpcStubBuffer *This,
  1138.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1139.     PRPC_MESSAGE _pRpcMessage,
  1140.     DWORD *_pdwStubPhase);
  1141. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITACDGroup_get_Queues_Proxy( 
  1142.     ITACDGroup * This,
  1143.     /* [retval][out] */ VARIANT *pVariant);
  1144. void __RPC_STUB ITACDGroup_get_Queues_Stub(
  1145.     IRpcStubBuffer *This,
  1146.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1147.     PRPC_MESSAGE _pRpcMessage,
  1148.     DWORD *_pdwStubPhase);
  1149. #endif  /* __ITACDGroup_INTERFACE_DEFINED__ */
  1150. #ifndef __ITQueue_INTERFACE_DEFINED__
  1151. #define __ITQueue_INTERFACE_DEFINED__
  1152. /* interface ITQueue */
  1153. /* [object][dual][helpstring][uuid] */ 
  1154. EXTERN_C const IID IID_ITQueue;
  1155. #if defined(__cplusplus) && !defined(CINTERFACE)
  1156.     
  1157.     MIDL_INTERFACE("5AFC3149-4BCC-11d1-BF80-00805FC147D3")
  1158.     ITQueue : public IDispatch
  1159.     {
  1160.     public:
  1161.         virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_MeasurementPeriod( 
  1162.             /* [in] */ long lPeriod) = 0;
  1163.         
  1164.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_MeasurementPeriod( 
  1165.             /* [retval][out] */ long *plPeriod) = 0;
  1166.         
  1167.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalCallsQueued( 
  1168.             /* [retval][out] */ long *plCalls) = 0;
  1169.         
  1170.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentCallsQueued( 
  1171.             /* [retval][out] */ long *plCalls) = 0;
  1172.         
  1173.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalCallsAbandoned( 
  1174.             /* [retval][out] */ long *plCalls) = 0;
  1175.         
  1176.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalCallsFlowedIn( 
  1177.             /* [retval][out] */ long *plCalls) = 0;
  1178.         
  1179.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_TotalCallsFlowedOut( 
  1180.             /* [retval][out] */ long *plCalls) = 0;
  1181.         
  1182.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_LongestEverWaitTime( 
  1183.             /* [retval][out] */ long *plWaitTime) = 0;
  1184.         
  1185.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CurrentLongestWaitTime( 
  1186.             /* [retval][out] */ long *plWaitTime) = 0;
  1187.         
  1188.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_AverageWaitTime( 
  1189.             /* [retval][out] */ long *plWaitTime) = 0;
  1190.         
  1191.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_FinalDisposition( 
  1192.             /* [retval][out] */ long *plCalls) = 0;
  1193.         
  1194.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Name( 
  1195.             /* [retval][out] */ BSTR *ppName) = 0;
  1196.         
  1197.     };
  1198.     
  1199. #else  /* C style interface */
  1200.     typedef struct ITQueueVtbl
  1201.     {
  1202.         BEGIN_INTERFACE
  1203.         
  1204.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1205.             ITQueue * This,
  1206.             /* [in] */ REFIID riid,
  1207.             /* [iid_is][out] */ void **ppvObject);
  1208.         
  1209.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1210.             ITQueue * This);
  1211.         
  1212.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1213.             ITQueue * This);
  1214.         
  1215.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1216.             ITQueue * This,
  1217.             /* [out] */ UINT *pctinfo);
  1218.         
  1219.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1220.             ITQueue * This,
  1221.             /* [in] */ UINT iTInfo,
  1222.             /* [in] */ LCID lcid,
  1223.             /* [out] */ ITypeInfo **ppTInfo);
  1224.         
  1225.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1226.             ITQueue * This,
  1227.             /* [in] */ REFIID riid,
  1228.             /* [size_is][in] */ LPOLESTR *rgszNames,
  1229.             /* [in] */ UINT cNames,
  1230.             /* [in] */ LCID lcid,
  1231.             /* [size_is][out] */ DISPID *rgDispId);
  1232.         
  1233.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1234.             ITQueue * This,
  1235.             /* [in] */ DISPID dispIdMember,
  1236.             /* [in] */ REFIID riid,
  1237.             /* [in] */ LCID lcid,
  1238.             /* [in] */ WORD wFlags,
  1239.             /* [out][in] */ DISPPARAMS *pDispParams,
  1240.             /* [out] */ VARIANT *pVarResult,
  1241.             /* [out] */ EXCEPINFO *pExcepInfo,
  1242.             /* [out] */ UINT *puArgErr);
  1243.         
  1244.         /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_MeasurementPeriod )( 
  1245.             ITQueue * This,
  1246.             /* [in] */ long lPeriod);
  1247.         
  1248.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_MeasurementPeriod )( 
  1249.             ITQueue * This,
  1250.             /* [retval][out] */ long *plPeriod);
  1251.         
  1252.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalCallsQueued )( 
  1253.             ITQueue * This,
  1254.             /* [retval][out] */ long *plCalls);
  1255.         
  1256.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentCallsQueued )( 
  1257.             ITQueue * This,
  1258.             /* [retval][out] */ long *plCalls);
  1259.         
  1260.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalCallsAbandoned )( 
  1261.             ITQueue * This,
  1262.             /* [retval][out] */ long *plCalls);
  1263.         
  1264.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalCallsFlowedIn )( 
  1265.             ITQueue * This,
  1266.             /* [retval][out] */ long *plCalls);
  1267.         
  1268.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_TotalCallsFlowedOut )( 
  1269.             ITQueue * This,
  1270.             /* [retval][out] */ long *plCalls);
  1271.         
  1272.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_LongestEverWaitTime )( 
  1273.             ITQueue * This,
  1274.             /* [retval][out] */ long *plWaitTime);
  1275.         
  1276.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CurrentLongestWaitTime )( 
  1277.             ITQueue * This,
  1278.             /* [retval][out] */ long *plWaitTime);
  1279.         
  1280.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_AverageWaitTime )( 
  1281.             ITQueue * This,
  1282.             /* [retval][out] */ long *plWaitTime);
  1283.         
  1284.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_FinalDisposition )( 
  1285.             ITQueue * This,
  1286.             /* [retval][out] */ long *plCalls);
  1287.         
  1288.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Name )( 
  1289.             ITQueue * This,
  1290.             /* [retval][out] */ BSTR *ppName);
  1291.         
  1292.         END_INTERFACE
  1293.     } ITQueueVtbl;
  1294.     interface ITQueue
  1295.     {
  1296.         CONST_VTBL struct ITQueueVtbl *lpVtbl;
  1297.     };
  1298.     
  1299. #ifdef COBJMACROS
  1300. #define ITQueue_QueryInterface(This,riid,ppvObject)
  1301.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1302. #define ITQueue_AddRef(This)
  1303.     (This)->lpVtbl -> AddRef(This)
  1304. #define ITQueue_Release(This)
  1305.     (This)->lpVtbl -> Release(This)
  1306. #define ITQueue_GetTypeInfoCount(This,pctinfo)
  1307.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1308. #define ITQueue_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1309.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1310. #define ITQueue_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1311.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1312. #define ITQueue_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1313.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1314. #define ITQueue_put_MeasurementPeriod(This,lPeriod)
  1315.     (This)->lpVtbl -> put_MeasurementPeriod(This,lPeriod)
  1316. #define ITQueue_get_MeasurementPeriod(This,plPeriod)
  1317.     (This)->lpVtbl -> get_MeasurementPeriod(This,plPeriod)
  1318. #define ITQueue_get_TotalCallsQueued(This,plCalls)
  1319.     (This)->lpVtbl -> get_TotalCallsQueued(This,plCalls)
  1320. #define ITQueue_get_CurrentCallsQueued(This,plCalls)
  1321.     (This)->lpVtbl -> get_CurrentCallsQueued(This,plCalls)
  1322. #define ITQueue_get_TotalCallsAbandoned(This,plCalls)
  1323.     (This)->lpVtbl -> get_TotalCallsAbandoned(This,plCalls)
  1324. #define ITQueue_get_TotalCallsFlowedIn(This,plCalls)
  1325.     (This)->lpVtbl -> get_TotalCallsFlowedIn(This,plCalls)
  1326. #define ITQueue_get_TotalCallsFlowedOut(This,plCalls)
  1327.     (This)->lpVtbl -> get_TotalCallsFlowedOut(This,plCalls)
  1328. #define ITQueue_get_LongestEverWaitTime(This,plWaitTime)
  1329.     (This)->lpVtbl -> get_LongestEverWaitTime(This,plWaitTime)
  1330. #define ITQueue_get_CurrentLongestWaitTime(This,plWaitTime)
  1331.     (This)->lpVtbl -> get_CurrentLongestWaitTime(This,plWaitTime)
  1332. #define ITQueue_get_AverageWaitTime(This,plWaitTime)
  1333.     (This)->lpVtbl -> get_AverageWaitTime(This,plWaitTime)
  1334. #define ITQueue_get_FinalDisposition(This,plCalls)
  1335.     (This)->lpVtbl -> get_FinalDisposition(This,plCalls)
  1336. #define ITQueue_get_Name(This,ppName)
  1337.     (This)->lpVtbl -> get_Name(This,ppName)
  1338. #endif /* COBJMACROS */
  1339. #endif  /* C style interface */
  1340. /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE ITQueue_put_MeasurementPeriod_Proxy( 
  1341.     ITQueue * This,
  1342.     /* [in] */ long lPeriod);
  1343. void __RPC_STUB ITQueue_put_MeasurementPeriod_Stub(
  1344.     IRpcStubBuffer *This,
  1345.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1346.     PRPC_MESSAGE _pRpcMessage,
  1347.     DWORD *_pdwStubPhase);
  1348. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_MeasurementPeriod_Proxy( 
  1349.     ITQueue * This,
  1350.     /* [retval][out] */ long *plPeriod);
  1351. void __RPC_STUB ITQueue_get_MeasurementPeriod_Stub(
  1352.     IRpcStubBuffer *This,
  1353.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1354.     PRPC_MESSAGE _pRpcMessage,
  1355.     DWORD *_pdwStubPhase);
  1356. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_TotalCallsQueued_Proxy( 
  1357.     ITQueue * This,
  1358.     /* [retval][out] */ long *plCalls);
  1359. void __RPC_STUB ITQueue_get_TotalCallsQueued_Stub(
  1360.     IRpcStubBuffer *This,
  1361.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1362.     PRPC_MESSAGE _pRpcMessage,
  1363.     DWORD *_pdwStubPhase);
  1364. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_CurrentCallsQueued_Proxy( 
  1365.     ITQueue * This,
  1366.     /* [retval][out] */ long *plCalls);
  1367. void __RPC_STUB ITQueue_get_CurrentCallsQueued_Stub(
  1368.     IRpcStubBuffer *This,
  1369.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1370.     PRPC_MESSAGE _pRpcMessage,
  1371.     DWORD *_pdwStubPhase);
  1372. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_TotalCallsAbandoned_Proxy( 
  1373.     ITQueue * This,
  1374.     /* [retval][out] */ long *plCalls);
  1375. void __RPC_STUB ITQueue_get_TotalCallsAbandoned_Stub(
  1376.     IRpcStubBuffer *This,
  1377.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1378.     PRPC_MESSAGE _pRpcMessage,
  1379.     DWORD *_pdwStubPhase);
  1380. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_TotalCallsFlowedIn_Proxy( 
  1381.     ITQueue * This,
  1382.     /* [retval][out] */ long *plCalls);
  1383. void __RPC_STUB ITQueue_get_TotalCallsFlowedIn_Stub(
  1384.     IRpcStubBuffer *This,
  1385.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1386.     PRPC_MESSAGE _pRpcMessage,
  1387.     DWORD *_pdwStubPhase);
  1388. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_TotalCallsFlowedOut_Proxy( 
  1389.     ITQueue * This,
  1390.     /* [retval][out] */ long *plCalls);
  1391. void __RPC_STUB ITQueue_get_TotalCallsFlowedOut_Stub(
  1392.     IRpcStubBuffer *This,
  1393.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1394.     PRPC_MESSAGE _pRpcMessage,
  1395.     DWORD *_pdwStubPhase);
  1396. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_LongestEverWaitTime_Proxy( 
  1397.     ITQueue * This,
  1398.     /* [retval][out] */ long *plWaitTime);
  1399. void __RPC_STUB ITQueue_get_LongestEverWaitTime_Stub(
  1400.     IRpcStubBuffer *This,
  1401.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1402.     PRPC_MESSAGE _pRpcMessage,
  1403.     DWORD *_pdwStubPhase);
  1404. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_CurrentLongestWaitTime_Proxy( 
  1405.     ITQueue * This,
  1406.     /* [retval][out] */ long *plWaitTime);
  1407. void __RPC_STUB ITQueue_get_CurrentLongestWaitTime_Stub(
  1408.     IRpcStubBuffer *This,
  1409.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1410.     PRPC_MESSAGE _pRpcMessage,
  1411.     DWORD *_pdwStubPhase);
  1412. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_AverageWaitTime_Proxy( 
  1413.     ITQueue * This,
  1414.     /* [retval][out] */ long *plWaitTime);
  1415. void __RPC_STUB ITQueue_get_AverageWaitTime_Stub(
  1416.     IRpcStubBuffer *This,
  1417.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1418.     PRPC_MESSAGE _pRpcMessage,
  1419.     DWORD *_pdwStubPhase);
  1420. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_FinalDisposition_Proxy( 
  1421.     ITQueue * This,
  1422.     /* [retval][out] */ long *plCalls);
  1423. void __RPC_STUB ITQueue_get_FinalDisposition_Stub(
  1424.     IRpcStubBuffer *This,
  1425.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1426.     PRPC_MESSAGE _pRpcMessage,
  1427.     DWORD *_pdwStubPhase);
  1428. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueue_get_Name_Proxy( 
  1429.     ITQueue * This,
  1430.     /* [retval][out] */ BSTR *ppName);
  1431. void __RPC_STUB ITQueue_get_Name_Stub(
  1432.     IRpcStubBuffer *This,
  1433.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1434.     PRPC_MESSAGE _pRpcMessage,
  1435.     DWORD *_pdwStubPhase);
  1436. #endif  /* __ITQueue_INTERFACE_DEFINED__ */
  1437. #ifndef __ITAgentEvent_INTERFACE_DEFINED__
  1438. #define __ITAgentEvent_INTERFACE_DEFINED__
  1439. /* interface ITAgentEvent */
  1440. /* [object][dual][helpstring][uuid] */ 
  1441. EXTERN_C const IID IID_ITAgentEvent;
  1442. #if defined(__cplusplus) && !defined(CINTERFACE)
  1443.     
  1444.     MIDL_INTERFACE("5AFC314A-4BCC-11d1-BF80-00805FC147D3")
  1445.     ITAgentEvent : public IDispatch
  1446.     {
  1447.     public:
  1448.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Agent( 
  1449.             /* [retval][out] */ ITAgent **ppAgent) = 0;
  1450.         
  1451.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Event( 
  1452.             /* [retval][out] */ AGENT_EVENT *pEvent) = 0;
  1453.         
  1454.     };
  1455.     
  1456. #else  /* C style interface */
  1457.     typedef struct ITAgentEventVtbl
  1458.     {
  1459.         BEGIN_INTERFACE
  1460.         
  1461.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1462.             ITAgentEvent * This,
  1463.             /* [in] */ REFIID riid,
  1464.             /* [iid_is][out] */ void **ppvObject);
  1465.         
  1466.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1467.             ITAgentEvent * This);
  1468.         
  1469.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1470.             ITAgentEvent * This);
  1471.         
  1472.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1473.             ITAgentEvent * This,
  1474.             /* [out] */ UINT *pctinfo);
  1475.         
  1476.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1477.             ITAgentEvent * This,
  1478.             /* [in] */ UINT iTInfo,
  1479.             /* [in] */ LCID lcid,
  1480.             /* [out] */ ITypeInfo **ppTInfo);
  1481.         
  1482.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1483.             ITAgentEvent * This,
  1484.             /* [in] */ REFIID riid,
  1485.             /* [size_is][in] */ LPOLESTR *rgszNames,
  1486.             /* [in] */ UINT cNames,
  1487.             /* [in] */ LCID lcid,
  1488.             /* [size_is][out] */ DISPID *rgDispId);
  1489.         
  1490.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1491.             ITAgentEvent * This,
  1492.             /* [in] */ DISPID dispIdMember,
  1493.             /* [in] */ REFIID riid,
  1494.             /* [in] */ LCID lcid,
  1495.             /* [in] */ WORD wFlags,
  1496.             /* [out][in] */ DISPPARAMS *pDispParams,
  1497.             /* [out] */ VARIANT *pVarResult,
  1498.             /* [out] */ EXCEPINFO *pExcepInfo,
  1499.             /* [out] */ UINT *puArgErr);
  1500.         
  1501.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Agent )( 
  1502.             ITAgentEvent * This,
  1503.             /* [retval][out] */ ITAgent **ppAgent);
  1504.         
  1505.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Event )( 
  1506.             ITAgentEvent * This,
  1507.             /* [retval][out] */ AGENT_EVENT *pEvent);
  1508.         
  1509.         END_INTERFACE
  1510.     } ITAgentEventVtbl;
  1511.     interface ITAgentEvent
  1512.     {
  1513.         CONST_VTBL struct ITAgentEventVtbl *lpVtbl;
  1514.     };
  1515.     
  1516. #ifdef COBJMACROS
  1517. #define ITAgentEvent_QueryInterface(This,riid,ppvObject)
  1518.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1519. #define ITAgentEvent_AddRef(This)
  1520.     (This)->lpVtbl -> AddRef(This)
  1521. #define ITAgentEvent_Release(This)
  1522.     (This)->lpVtbl -> Release(This)
  1523. #define ITAgentEvent_GetTypeInfoCount(This,pctinfo)
  1524.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1525. #define ITAgentEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1526.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1527. #define ITAgentEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1528.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1529. #define ITAgentEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1530.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1531. #define ITAgentEvent_get_Agent(This,ppAgent)
  1532.     (This)->lpVtbl -> get_Agent(This,ppAgent)
  1533. #define ITAgentEvent_get_Event(This,pEvent)
  1534.     (This)->lpVtbl -> get_Event(This,pEvent)
  1535. #endif /* COBJMACROS */
  1536. #endif  /* C style interface */
  1537. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentEvent_get_Agent_Proxy( 
  1538.     ITAgentEvent * This,
  1539.     /* [retval][out] */ ITAgent **ppAgent);
  1540. void __RPC_STUB ITAgentEvent_get_Agent_Stub(
  1541.     IRpcStubBuffer *This,
  1542.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1543.     PRPC_MESSAGE _pRpcMessage,
  1544.     DWORD *_pdwStubPhase);
  1545. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentEvent_get_Event_Proxy( 
  1546.     ITAgentEvent * This,
  1547.     /* [retval][out] */ AGENT_EVENT *pEvent);
  1548. void __RPC_STUB ITAgentEvent_get_Event_Stub(
  1549.     IRpcStubBuffer *This,
  1550.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1551.     PRPC_MESSAGE _pRpcMessage,
  1552.     DWORD *_pdwStubPhase);
  1553. #endif  /* __ITAgentEvent_INTERFACE_DEFINED__ */
  1554. #ifndef __ITAgentSessionEvent_INTERFACE_DEFINED__
  1555. #define __ITAgentSessionEvent_INTERFACE_DEFINED__
  1556. /* interface ITAgentSessionEvent */
  1557. /* [object][dual][helpstring][uuid] */ 
  1558. EXTERN_C const IID IID_ITAgentSessionEvent;
  1559. #if defined(__cplusplus) && !defined(CINTERFACE)
  1560.     
  1561.     MIDL_INTERFACE("5AFC314B-4BCC-11d1-BF80-00805FC147D3")
  1562.     ITAgentSessionEvent : public IDispatch
  1563.     {
  1564.     public:
  1565.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Session( 
  1566.             /* [retval][out] */ ITAgentSession **ppSession) = 0;
  1567.         
  1568.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Event( 
  1569.             /* [retval][out] */ AGENT_SESSION_EVENT *pEvent) = 0;
  1570.         
  1571.     };
  1572.     
  1573. #else  /* C style interface */
  1574.     typedef struct ITAgentSessionEventVtbl
  1575.     {
  1576.         BEGIN_INTERFACE
  1577.         
  1578.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1579.             ITAgentSessionEvent * This,
  1580.             /* [in] */ REFIID riid,
  1581.             /* [iid_is][out] */ void **ppvObject);
  1582.         
  1583.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1584.             ITAgentSessionEvent * This);
  1585.         
  1586.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1587.             ITAgentSessionEvent * This);
  1588.         
  1589.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1590.             ITAgentSessionEvent * This,
  1591.             /* [out] */ UINT *pctinfo);
  1592.         
  1593.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1594.             ITAgentSessionEvent * This,
  1595.             /* [in] */ UINT iTInfo,
  1596.             /* [in] */ LCID lcid,
  1597.             /* [out] */ ITypeInfo **ppTInfo);
  1598.         
  1599.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1600.             ITAgentSessionEvent * This,
  1601.             /* [in] */ REFIID riid,
  1602.             /* [size_is][in] */ LPOLESTR *rgszNames,
  1603.             /* [in] */ UINT cNames,
  1604.             /* [in] */ LCID lcid,
  1605.             /* [size_is][out] */ DISPID *rgDispId);
  1606.         
  1607.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1608.             ITAgentSessionEvent * This,
  1609.             /* [in] */ DISPID dispIdMember,
  1610.             /* [in] */ REFIID riid,
  1611.             /* [in] */ LCID lcid,
  1612.             /* [in] */ WORD wFlags,
  1613.             /* [out][in] */ DISPPARAMS *pDispParams,
  1614.             /* [out] */ VARIANT *pVarResult,
  1615.             /* [out] */ EXCEPINFO *pExcepInfo,
  1616.             /* [out] */ UINT *puArgErr);
  1617.         
  1618.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Session )( 
  1619.             ITAgentSessionEvent * This,
  1620.             /* [retval][out] */ ITAgentSession **ppSession);
  1621.         
  1622.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Event )( 
  1623.             ITAgentSessionEvent * This,
  1624.             /* [retval][out] */ AGENT_SESSION_EVENT *pEvent);
  1625.         
  1626.         END_INTERFACE
  1627.     } ITAgentSessionEventVtbl;
  1628.     interface ITAgentSessionEvent
  1629.     {
  1630.         CONST_VTBL struct ITAgentSessionEventVtbl *lpVtbl;
  1631.     };
  1632.     
  1633. #ifdef COBJMACROS
  1634. #define ITAgentSessionEvent_QueryInterface(This,riid,ppvObject)
  1635.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1636. #define ITAgentSessionEvent_AddRef(This)
  1637.     (This)->lpVtbl -> AddRef(This)
  1638. #define ITAgentSessionEvent_Release(This)
  1639.     (This)->lpVtbl -> Release(This)
  1640. #define ITAgentSessionEvent_GetTypeInfoCount(This,pctinfo)
  1641.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1642. #define ITAgentSessionEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1643.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1644. #define ITAgentSessionEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1645.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1646. #define ITAgentSessionEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1647.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1648. #define ITAgentSessionEvent_get_Session(This,ppSession)
  1649.     (This)->lpVtbl -> get_Session(This,ppSession)
  1650. #define ITAgentSessionEvent_get_Event(This,pEvent)
  1651.     (This)->lpVtbl -> get_Event(This,pEvent)
  1652. #endif /* COBJMACROS */
  1653. #endif  /* C style interface */
  1654. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSessionEvent_get_Session_Proxy( 
  1655.     ITAgentSessionEvent * This,
  1656.     /* [retval][out] */ ITAgentSession **ppSession);
  1657. void __RPC_STUB ITAgentSessionEvent_get_Session_Stub(
  1658.     IRpcStubBuffer *This,
  1659.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1660.     PRPC_MESSAGE _pRpcMessage,
  1661.     DWORD *_pdwStubPhase);
  1662. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITAgentSessionEvent_get_Event_Proxy( 
  1663.     ITAgentSessionEvent * This,
  1664.     /* [retval][out] */ AGENT_SESSION_EVENT *pEvent);
  1665. void __RPC_STUB ITAgentSessionEvent_get_Event_Stub(
  1666.     IRpcStubBuffer *This,
  1667.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1668.     PRPC_MESSAGE _pRpcMessage,
  1669.     DWORD *_pdwStubPhase);
  1670. #endif  /* __ITAgentSessionEvent_INTERFACE_DEFINED__ */
  1671. #ifndef __ITACDGroupEvent_INTERFACE_DEFINED__
  1672. #define __ITACDGroupEvent_INTERFACE_DEFINED__
  1673. /* interface ITACDGroupEvent */
  1674. /* [object][dual][helpstring][uuid] */ 
  1675. EXTERN_C const IID IID_ITACDGroupEvent;
  1676. #if defined(__cplusplus) && !defined(CINTERFACE)
  1677.     
  1678.     MIDL_INTERFACE("297F3032-BD11-11d1-A0A7-00805FC147D3")
  1679.     ITACDGroupEvent : public IDispatch
  1680.     {
  1681.     public:
  1682.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Group( 
  1683.             /* [retval][out] */ ITACDGroup **ppGroup) = 0;
  1684.         
  1685.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Event( 
  1686.             /* [retval][out] */ ACDGROUP_EVENT *pEvent) = 0;
  1687.         
  1688.     };
  1689.     
  1690. #else  /* C style interface */
  1691.     typedef struct ITACDGroupEventVtbl
  1692.     {
  1693.         BEGIN_INTERFACE
  1694.         
  1695.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1696.             ITACDGroupEvent * This,
  1697.             /* [in] */ REFIID riid,
  1698.             /* [iid_is][out] */ void **ppvObject);
  1699.         
  1700.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1701.             ITACDGroupEvent * This);
  1702.         
  1703.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1704.             ITACDGroupEvent * This);
  1705.         
  1706.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1707.             ITACDGroupEvent * This,
  1708.             /* [out] */ UINT *pctinfo);
  1709.         
  1710.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1711.             ITACDGroupEvent * This,
  1712.             /* [in] */ UINT iTInfo,
  1713.             /* [in] */ LCID lcid,
  1714.             /* [out] */ ITypeInfo **ppTInfo);
  1715.         
  1716.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1717.             ITACDGroupEvent * This,
  1718.             /* [in] */ REFIID riid,
  1719.             /* [size_is][in] */ LPOLESTR *rgszNames,
  1720.             /* [in] */ UINT cNames,
  1721.             /* [in] */ LCID lcid,
  1722.             /* [size_is][out] */ DISPID *rgDispId);
  1723.         
  1724.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1725.             ITACDGroupEvent * This,
  1726.             /* [in] */ DISPID dispIdMember,
  1727.             /* [in] */ REFIID riid,
  1728.             /* [in] */ LCID lcid,
  1729.             /* [in] */ WORD wFlags,
  1730.             /* [out][in] */ DISPPARAMS *pDispParams,
  1731.             /* [out] */ VARIANT *pVarResult,
  1732.             /* [out] */ EXCEPINFO *pExcepInfo,
  1733.             /* [out] */ UINT *puArgErr);
  1734.         
  1735.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Group )( 
  1736.             ITACDGroupEvent * This,
  1737.             /* [retval][out] */ ITACDGroup **ppGroup);
  1738.         
  1739.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Event )( 
  1740.             ITACDGroupEvent * This,
  1741.             /* [retval][out] */ ACDGROUP_EVENT *pEvent);
  1742.         
  1743.         END_INTERFACE
  1744.     } ITACDGroupEventVtbl;
  1745.     interface ITACDGroupEvent
  1746.     {
  1747.         CONST_VTBL struct ITACDGroupEventVtbl *lpVtbl;
  1748.     };
  1749.     
  1750. #ifdef COBJMACROS
  1751. #define ITACDGroupEvent_QueryInterface(This,riid,ppvObject)
  1752.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1753. #define ITACDGroupEvent_AddRef(This)
  1754.     (This)->lpVtbl -> AddRef(This)
  1755. #define ITACDGroupEvent_Release(This)
  1756.     (This)->lpVtbl -> Release(This)
  1757. #define ITACDGroupEvent_GetTypeInfoCount(This,pctinfo)
  1758.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1759. #define ITACDGroupEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1760.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1761. #define ITACDGroupEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1762.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1763. #define ITACDGroupEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1764.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1765. #define ITACDGroupEvent_get_Group(This,ppGroup)
  1766.     (This)->lpVtbl -> get_Group(This,ppGroup)
  1767. #define ITACDGroupEvent_get_Event(This,pEvent)
  1768.     (This)->lpVtbl -> get_Event(This,pEvent)
  1769. #endif /* COBJMACROS */
  1770. #endif  /* C style interface */
  1771. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITACDGroupEvent_get_Group_Proxy( 
  1772.     ITACDGroupEvent * This,
  1773.     /* [retval][out] */ ITACDGroup **ppGroup);
  1774. void __RPC_STUB ITACDGroupEvent_get_Group_Stub(
  1775.     IRpcStubBuffer *This,
  1776.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1777.     PRPC_MESSAGE _pRpcMessage,
  1778.     DWORD *_pdwStubPhase);
  1779. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITACDGroupEvent_get_Event_Proxy( 
  1780.     ITACDGroupEvent * This,
  1781.     /* [retval][out] */ ACDGROUP_EVENT *pEvent);
  1782. void __RPC_STUB ITACDGroupEvent_get_Event_Stub(
  1783.     IRpcStubBuffer *This,
  1784.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1785.     PRPC_MESSAGE _pRpcMessage,
  1786.     DWORD *_pdwStubPhase);
  1787. #endif  /* __ITACDGroupEvent_INTERFACE_DEFINED__ */
  1788. #ifndef __ITQueueEvent_INTERFACE_DEFINED__
  1789. #define __ITQueueEvent_INTERFACE_DEFINED__
  1790. /* interface ITQueueEvent */
  1791. /* [object][dual][helpstring][uuid] */ 
  1792. EXTERN_C const IID IID_ITQueueEvent;
  1793. #if defined(__cplusplus) && !defined(CINTERFACE)
  1794.     
  1795.     MIDL_INTERFACE("297F3033-BD11-11d1-A0A7-00805FC147D3")
  1796.     ITQueueEvent : public IDispatch
  1797.     {
  1798.     public:
  1799.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Queue( 
  1800.             /* [retval][out] */ ITQueue **ppQueue) = 0;
  1801.         
  1802.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Event( 
  1803.             /* [retval][out] */ ACDQUEUE_EVENT *pEvent) = 0;
  1804.         
  1805.     };
  1806.     
  1807. #else  /* C style interface */
  1808.     typedef struct ITQueueEventVtbl
  1809.     {
  1810.         BEGIN_INTERFACE
  1811.         
  1812.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  1813.             ITQueueEvent * This,
  1814.             /* [in] */ REFIID riid,
  1815.             /* [iid_is][out] */ void **ppvObject);
  1816.         
  1817.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  1818.             ITQueueEvent * This);
  1819.         
  1820.         ULONG ( STDMETHODCALLTYPE *Release )( 
  1821.             ITQueueEvent * This);
  1822.         
  1823.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  1824.             ITQueueEvent * This,
  1825.             /* [out] */ UINT *pctinfo);
  1826.         
  1827.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  1828.             ITQueueEvent * This,
  1829.             /* [in] */ UINT iTInfo,
  1830.             /* [in] */ LCID lcid,
  1831.             /* [out] */ ITypeInfo **ppTInfo);
  1832.         
  1833.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  1834.             ITQueueEvent * This,
  1835.             /* [in] */ REFIID riid,
  1836.             /* [size_is][in] */ LPOLESTR *rgszNames,
  1837.             /* [in] */ UINT cNames,
  1838.             /* [in] */ LCID lcid,
  1839.             /* [size_is][out] */ DISPID *rgDispId);
  1840.         
  1841.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  1842.             ITQueueEvent * This,
  1843.             /* [in] */ DISPID dispIdMember,
  1844.             /* [in] */ REFIID riid,
  1845.             /* [in] */ LCID lcid,
  1846.             /* [in] */ WORD wFlags,
  1847.             /* [out][in] */ DISPPARAMS *pDispParams,
  1848.             /* [out] */ VARIANT *pVarResult,
  1849.             /* [out] */ EXCEPINFO *pExcepInfo,
  1850.             /* [out] */ UINT *puArgErr);
  1851.         
  1852.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Queue )( 
  1853.             ITQueueEvent * This,
  1854.             /* [retval][out] */ ITQueue **ppQueue);
  1855.         
  1856.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_Event )( 
  1857.             ITQueueEvent * This,
  1858.             /* [retval][out] */ ACDQUEUE_EVENT *pEvent);
  1859.         
  1860.         END_INTERFACE
  1861.     } ITQueueEventVtbl;
  1862.     interface ITQueueEvent
  1863.     {
  1864.         CONST_VTBL struct ITQueueEventVtbl *lpVtbl;
  1865.     };
  1866.     
  1867. #ifdef COBJMACROS
  1868. #define ITQueueEvent_QueryInterface(This,riid,ppvObject)
  1869.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  1870. #define ITQueueEvent_AddRef(This)
  1871.     (This)->lpVtbl -> AddRef(This)
  1872. #define ITQueueEvent_Release(This)
  1873.     (This)->lpVtbl -> Release(This)
  1874. #define ITQueueEvent_GetTypeInfoCount(This,pctinfo)
  1875.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  1876. #define ITQueueEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1877.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1878. #define ITQueueEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1879.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1880. #define ITQueueEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1881.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1882. #define ITQueueEvent_get_Queue(This,ppQueue)
  1883.     (This)->lpVtbl -> get_Queue(This,ppQueue)
  1884. #define ITQueueEvent_get_Event(This,pEvent)
  1885.     (This)->lpVtbl -> get_Event(This,pEvent)
  1886. #endif /* COBJMACROS */
  1887. #endif  /* C style interface */
  1888. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueueEvent_get_Queue_Proxy( 
  1889.     ITQueueEvent * This,
  1890.     /* [retval][out] */ ITQueue **ppQueue);
  1891. void __RPC_STUB ITQueueEvent_get_Queue_Stub(
  1892.     IRpcStubBuffer *This,
  1893.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1894.     PRPC_MESSAGE _pRpcMessage,
  1895.     DWORD *_pdwStubPhase);
  1896. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE ITQueueEvent_get_Event_Proxy( 
  1897.     ITQueueEvent * This,
  1898.     /* [retval][out] */ ACDQUEUE_EVENT *pEvent);
  1899. void __RPC_STUB ITQueueEvent_get_Event_Stub(
  1900.     IRpcStubBuffer *This,
  1901.     IRpcChannelBuffer *_pRpcChannelBuffer,
  1902.     PRPC_MESSAGE _pRpcMessage,
  1903.     DWORD *_pdwStubPhase);
  1904. #endif  /* __ITQueueEvent_INTERFACE_DEFINED__ */