Leaked source code of windows server 2003
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.

175 lines
5.3 KiB

  1. #ifndef _DIALER_H_
  2. #define _DIALER_H_
  3. #include <tapi.h>
  4. #ifdef _NT50_TAPI30
  5. #include <oleauto.h>
  6. #include <objbase.h>
  7. #endif //#ifdef _NT50_TAPI30
  8. HRESULT HrExecDialDlg(HWND, LPADRBOOK);
  9. #ifdef _NT50_TAPI30
  10. DEFINE_GUID(IID_ITRequest, 0xAC48FFDF, 0xF8C4, 0x11d1, 0xA0, 0x30, 0x0, 0xC0, 0x4F, 0xB6, 0x80, 0x9F);
  11. DEFINE_GUID(CLSID_RequestMakeCall, 0xAC48FFE0, 0xF8C4, 0x11d1, 0xA0, 0x30, 0x0, 0xC0, 0x4F, 0xB6, 0x80, 0x9F);
  12. //from tapi3if.h
  13. #ifndef __ITRequest_FWD_DEFINED__
  14. #define __ITRequest_FWD_DEFINED__
  15. typedef interface ITRequest ITRequest;
  16. #endif /* __ITRequest_FWD_DEFINED__ */
  17. #ifndef __ITRequest_INTERFACE_DEFINED__
  18. #define __ITRequest_INTERFACE_DEFINED__
  19. /* interface ITRequest */
  20. /* [object][oleautomation][helpstring][uuid] */
  21. EXTERN_C const IID IID_ITRequest;
  22. #if defined(__cplusplus) && !defined(CINTERFACE)
  23. MIDL_INTERFACE("AC48FFDF-F8C4-11d1-A030-00C04FB6809F")
  24. ITRequest : public IDispatch
  25. {
  26. public:
  27. virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE MakeCall(
  28. /* [in] */ BSTR pDestAddress,
  29. /* [in] */ BSTR pAppName,
  30. /* [in] */ BSTR pCalledParty,
  31. /* [in] */ BSTR pComment) = 0;
  32. };
  33. #else /* C style interface */
  34. typedef struct ITRequestVtbl
  35. {
  36. BEGIN_INTERFACE
  37. HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
  38. ITRequest __RPC_FAR * This,
  39. /* [in] */ REFIID riid,
  40. /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  41. ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
  42. ITRequest __RPC_FAR * This);
  43. ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
  44. ITRequest __RPC_FAR * This);
  45. HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )(
  46. ITRequest __RPC_FAR * This,
  47. /* [out] */ UINT __RPC_FAR *pctinfo);
  48. HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )(
  49. ITRequest __RPC_FAR * This,
  50. /* [in] */ UINT iTInfo,
  51. /* [in] */ LCID lcid,
  52. /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  53. HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )(
  54. ITRequest __RPC_FAR * This,
  55. /* [in] */ REFIID riid,
  56. /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  57. /* [in] */ UINT cNames,
  58. /* [in] */ LCID lcid,
  59. /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  60. /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )(
  61. ITRequest __RPC_FAR * This,
  62. /* [in] */ DISPID dispIdMember,
  63. /* [in] */ REFIID riid,
  64. /* [in] */ LCID lcid,
  65. /* [in] */ WORD wFlags,
  66. /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  67. /* [out] */ VARIANT __RPC_FAR *pVarResult,
  68. /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  69. /* [out] */ UINT __RPC_FAR *puArgErr);
  70. /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *MakeCall )(
  71. ITRequest __RPC_FAR * This,
  72. /* [in] */ BSTR pDestAddress,
  73. /* [in] */ BSTR pAppName,
  74. /* [in] */ BSTR pCalledParty,
  75. /* [in] */ BSTR pComment);
  76. END_INTERFACE
  77. } ITRequestVtbl;
  78. interface ITRequest
  79. {
  80. CONST_VTBL struct ITRequestVtbl __RPC_FAR *lpVtbl;
  81. };
  82. #ifdef COBJMACROS
  83. #define ITRequest_QueryInterface(This,riid,ppvObject) \
  84. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  85. #define ITRequest_AddRef(This) \
  86. (This)->lpVtbl -> AddRef(This)
  87. #define ITRequest_Release(This) \
  88. (This)->lpVtbl -> Release(This)
  89. #define ITRequest_GetTypeInfoCount(This,pctinfo) \
  90. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  91. #define ITRequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  92. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  93. #define ITRequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  94. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  95. #define ITRequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  96. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  97. #define ITRequest_MakeCall(This,pDestAddress,pAppName,pCalledParty,pComment) \
  98. (This)->lpVtbl -> MakeCall(This,pDestAddress,pAppName,pCalledParty,pComment)
  99. #endif /* COBJMACROS */
  100. #endif /* C style interface */
  101. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ITRequest_MakeCall_Proxy(
  102. ITRequest __RPC_FAR * This,
  103. /* [in] */ BSTR pDestAddress,
  104. /* [in] */ BSTR pAppName,
  105. /* [in] */ BSTR pCalledParty,
  106. /* [in] */ BSTR pComment);
  107. void __RPC_STUB ITRequest_MakeCall_Stub(
  108. IRpcStubBuffer *This,
  109. IRpcChannelBuffer *_pRpcChannelBuffer,
  110. PRPC_MESSAGE _pRpcMessage,
  111. DWORD *_pdwStubPhase);
  112. #endif /* __ITRequest_INTERFACE_DEFINED__ */
  113. // from tapi3.h
  114. EXTERN_C const CLSID CLSID_RequestMakeCall;
  115. #ifdef __cplusplus
  116. class DECLSPEC_UUID("AC48FFE0-F8C4-11d1-A030-00C04FB6809F")
  117. RequestMakeCall;
  118. #endif
  119. //end from tapi3.h
  120. #endif //#ifdef _NT50_TAPI30
  121. #endif /* _DIALER_H_ defined */