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

模拟服务器

开发平台:

C/C++

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