Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

202 lines
6.3 KiB

  1. //
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. cpp_quote("/* Copyright (c) Microsoft Corporation. All rights reserved. */")
  4. //
  5. // tapi3.idl : IDL source for tapi3.dll
  6. //
  7. #ifndef __TAPI3_IDL__
  8. #define __TAPI3_IDL__
  9. import "oaidl.idl";
  10. import "ocidl.idl";
  11. import "tapi3if.idl";
  12. #include "tapi3cc.idl"
  13. #include "tapi3ds.idl"
  14. #include "msp.idl"
  15. [
  16. uuid(21D6D480-A88B-11D0-83DD-00AA003CCABD),
  17. version(1.0),
  18. helpstring("Microsoft TAPI 3.0 Type Library")
  19. ]
  20. library TAPI3Lib
  21. {
  22. importlib("stdole2.tlb");
  23. interface ITCollection;
  24. interface ITMediaPlayback;
  25. interface ITMediaRecord;
  26. interface ITCollection2;
  27. interface ITCallStateEvent;
  28. interface ITCallNotificationEvent;
  29. interface ITTAPIEventNotification;
  30. interface ITBasicAudioTerminal;
  31. interface ITCallHubEvent;
  32. interface ITParticipantUpdateEvent;
  33. interface ITForwardInformation;
  34. interface ITForwardInformation2;
  35. interface ITAddressCapabilities;
  36. interface ITQOSEvent;
  37. interface ITAddressEvent;
  38. interface ITAddressDeviceSpecificEvent;
  39. interface ITCallMediaEvent;
  40. interface ITTAPIObjectEvent;
  41. interface ITTAPIObjectEvent2;
  42. interface ITAddressTranslation;
  43. interface ITAddressTranslationInfo;
  44. interface ITLocationInfo;
  45. interface ITAgent;
  46. interface ITAgentEvent;
  47. interface ITAgentSession;
  48. interface ITAgentSessionEvent;
  49. interface ITACDGroup;
  50. interface ITACDGroupEvent;
  51. interface ITQueue;
  52. interface ITQueueEvent;
  53. interface ITTAPICallCenter;
  54. interface ITAgentHandler;
  55. interface ITAgentHandlerEvent;
  56. interface ITCallInfoChangeEvent;
  57. interface ITRequestEvent;
  58. interface ITMediaSupport;
  59. interface ITTerminalSupport;
  60. interface ITTerminalSupport2;
  61. interface ITStreamControl;
  62. interface ITStream;
  63. interface ITSubStreamControl;
  64. interface ITSubStream;
  65. interface ITLegacyAddressMediaControl;
  66. interface ITLegacyAddressMediaControl2;
  67. interface ITLegacyCallMediaControl;
  68. interface ITLegacyCallMediaControl2;
  69. interface ITDigitDetectionEvent;
  70. interface ITDigitGenerationEvent;
  71. interface ITDigitsGatheredEvent;
  72. interface ITToneDetectionEvent;
  73. interface ITDetectTone;
  74. interface ITCustomTone;
  75. interface ITPrivateEvent;
  76. interface ITAddress2;
  77. interface ITPhone;
  78. interface ITTAPI2;
  79. interface ITMultiTrackTerminal;
  80. interface ITStaticAudioTerminal;
  81. interface ITBasicCallControl2;
  82. interface ITAutomatedPhoneControl;
  83. interface ITMediaControl;
  84. interface ITFileTrack;
  85. interface ITCallInfo2;
  86. interface ITFileTerminalEvent;
  87. interface ITToneTerminalEvent;
  88. interface ITASRTerminalEvent;
  89. interface ITTTSTerminalEvent;
  90. interface ITPhoneEvent;
  91. interface ITPhoneDeviceSpecificEvent;
  92. interface ITLegacyWaveSupport;
  93. dispinterface ITTAPIDispatchEventNotification;
  94. [
  95. uuid(21D6D48E-A88B-11D0-83DD-00AA003CCABD),
  96. helpstring("TAPI 3.0 TAPI Object")
  97. ]
  98. coclass TAPI
  99. {
  100. [default] interface ITTAPI;
  101. [default, source] dispinterface ITTAPIDispatchEventNotification;
  102. [defaultvtable, source] interface ITTAPIEventNotification;
  103. interface ITTAPICallCenter;
  104. };
  105. [
  106. uuid(E9225296-C759-11d1-A02B-00C04FB6809F),
  107. helpstring("TAPI 3.0 DispatchMapper Object")
  108. ]
  109. coclass DispatchMapper
  110. {
  111. [default] interface ITDispatchMapper;
  112. };
  113. [
  114. uuid( AC48FFE0-F8C4-11d1-A030-00C04FB6809F ),
  115. helpstring("TAPI 3.0 RequestMakeCall Object")
  116. ]
  117. coclass RequestMakeCall
  118. {
  119. [default] interface ITRequest;
  120. };
  121. [
  122. uuid( 05B96A7A-DD39-11d0-8ED3-00C04FB6809F ),
  123. dllname("tapi3.dll"),
  124. helpstring("TAPI 3.0 Constants")
  125. ]
  126. module TapiConstants
  127. {
  128. const BSTR CLSID_String_VideoWindowTerm = L"{F7438990-D6EB-11D0-82A6-00AA00B5CA1B}";
  129. const BSTR CLSID_String_VideoInputTerminal = L"{AAF578EC-DC70-11D0-8ED3-00C04FB6809F}";
  130. const BSTR CLSID_String_HandsetTerminal = L"{AAF578EB-DC70-11D0-8ED3-00C04FB6809F}";
  131. const BSTR CLSID_String_HeadsetTerminal = L"{AAF578ED-DC70-11D0-8ED3-00C04FB6809F}";
  132. const BSTR CLSID_String_SpeakerphoneTerminal = L"{AAF578EE-DC70-11D0-8ED3-00C04FB6809F}";
  133. const BSTR CLSID_String_MicrophoneTerminal = L"{AAF578EF-DC70-11D0-8ED3-00C04FB6809F}";
  134. const BSTR CLSID_String_SpeakersTerminal = L"{AAF578F0-DC70-11D0-8ED3-00C04FB6809F}";
  135. const BSTR CLSID_String_MediaStreamTerminal = L"{E2F7AEF7-4971-11D1-A671-006097C9A2E8}";
  136. const BSTR CLSID_String_FileRecordingTerminal = L"{521F3D06-C3D0-4511-8617-86B9A783DA77}";
  137. const BSTR CLSID_String_FilePlaybackTerminal = L"{0CB9914C-79CD-47DC-ADB0-327F47CEFB20}";
  138. const BSTR TAPIPROTOCOL_String_PSTN = L"{831CE2D6-83B5-11D1-BB5C-00C04FB6809F}";
  139. const BSTR TAPIPROTOCOL_String_H323 = L"{831CE2D7-83B5-11D1-BB5C-00C04FB6809F}";
  140. const BSTR TAPIPROTOCOL_String_Multicast = L"{831CE2D8-83B5-11D1-BB5C-00C04FB6809F}";
  141. const long LINEADDRESSTYPE_PHONENUMBER = 0x00000001;
  142. const long LINEADDRESSTYPE_SDP = 0x00000002;
  143. const long LINEADDRESSTYPE_EMAILNAME = 0x00000004;
  144. const long LINEADDRESSTYPE_DOMAINNAME = 0x00000008;
  145. const long LINEADDRESSTYPE_IPADDRESS = 0x00000010;
  146. const long LINEDIGITMODE_PULSE = 0x00000001;
  147. const long LINEDIGITMODE_DTMF = 0x00000002;
  148. const long LINEDIGITMODE_DTMFEND = 0x00000004;
  149. const long TAPIMEDIATYPE_AUDIO = 0x8;
  150. const long TAPIMEDIATYPE_VIDEO = 0x8000;
  151. const long TAPIMEDIATYPE_DATAMODEM = 0x10;
  152. const long TAPIMEDIATYPE_G3FAX = 0x20;
  153. const long TAPIMEDIATYPE_MULTITRACK = 0x10000;
  154. };
  155. };
  156. // define ITTAPIDispatchEventNotification here, rather than in tapi3if.idl otherwise
  157. // we get link warnings for the DIID const appearing twice
  158. [
  159. uuid(9f34325b-7e62-11d2-9457-00c04f8ec888),
  160. helpstring("TAPI 3.0 ITTAPIDispatchEventNotification Interface")
  161. ]
  162. dispinterface ITTAPIDispatchEventNotification
  163. {
  164. properties:
  165. methods:
  166. [id(1), helpstring("method Event")]
  167. HRESULT Event(
  168. [in] TAPI_EVENT TapiEvent,
  169. [in] IDispatch * pEvent
  170. );
  171. };
  172. cpp_quote("#define TAPI_CURRENT_VERSION 0x00030001")
  173. cpp_quote("#include <tapi.h>")
  174. cpp_quote("#include <tapi3err.h>")
  175. #endif // __TAPI3_IDL__