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.

97 lines
2.6 KiB

  1. #include "precomp.h"
  2. //
  3. // Interface stuff
  4. //
  5. HRESULT ImpIConnection::QueryInterface( REFIID iid, void ** ppvObject)
  6. {
  7. HRESULT hr = E_NOINTERFACE;
  8. if(!ppvObject)
  9. return hr;
  10. *ppvObject = 0;
  11. if((iid == IID_IPhoneConnection)
  12. || (iid == IID_IUnknown)) // satisfy symmetric property of QI
  13. {
  14. *ppvObject = this;
  15. hr = hrSuccess;
  16. AddRef();
  17. }
  18. else
  19. hr = m_pConnection->QueryInterface(iid, ppvObject);
  20. return hr;
  21. }
  22. ULONG ImpIConnection::AddRef()
  23. {
  24. return (m_pConnection->AddRef());
  25. }
  26. ULONG ImpIConnection::Release()
  27. {
  28. return (m_pConnection->Release());
  29. }
  30. HRESULT ImpIConnection::SetAdviseInterface(IH323ConfAdvise *pH323ConfAdvise)
  31. {
  32. return (m_pConnection->SetAdviseInterface(pH323ConfAdvise));
  33. }
  34. HRESULT ImpIConnection::ClearAdviseInterface()
  35. {
  36. return (m_pConnection->ClearAdviseInterface());
  37. }
  38. HRESULT ImpIConnection::PlaceCall(BOOL bUseGKResolution, PSOCKADDR_IN pCallAddr,
  39. P_H323ALIASLIST pDestinationAliases, P_H323ALIASLIST pExtraAliases,
  40. LPCWSTR pCalledPartyNumber, P_APP_CALL_SETUP_DATA pAppData)
  41. {
  42. return (m_pConnection->PlaceCall(bUseGKResolution, pCallAddr,
  43. pDestinationAliases, pExtraAliases,
  44. pCalledPartyNumber, pAppData));
  45. }
  46. HRESULT ImpIConnection::Disconnect()
  47. {
  48. return (m_pConnection->Disconnect());
  49. }
  50. HRESULT ImpIConnection::GetState(ConnectStateType *pState)
  51. {
  52. return (m_pConnection->GetState(pState));
  53. }
  54. HRESULT ImpIConnection::GetRemoteUserName(LPWSTR lpwszName, UINT uSize)
  55. {
  56. return (m_pConnection->GetRemoteUserName(lpwszName, uSize));
  57. }
  58. HRESULT ImpIConnection::GetRemoteUserAddr(PSOCKADDR_IN psinUser)
  59. {
  60. return (m_pConnection->GetRemoteUserAddr(psinUser));
  61. }
  62. HRESULT ImpIConnection::AcceptRejectConnection(CREQ_RESPONSETYPE Response)
  63. {
  64. return (m_pConnection->AcceptRejectConnection(Response));
  65. }
  66. HRESULT ImpIConnection::GetSummaryCode()
  67. {
  68. return (m_pConnection->GetSummaryCode());
  69. }
  70. HRESULT ImpIConnection::CreateCommChannel(LPGUID pMediaGuid, ICommChannel **ppICommChannel,
  71. BOOL fSend)
  72. {
  73. return (m_pConnection->CreateCommChannel(pMediaGuid, ppICommChannel, fSend));
  74. }
  75. HRESULT ImpIConnection:: ResolveFormats (LPGUID pMediaGuidArray, UINT uNumMedia,
  76. PRES_PAIR pResOutput)
  77. {
  78. return (m_pConnection->ResolveFormats(pMediaGuidArray, uNumMedia, pResOutput));
  79. }
  80. HRESULT ImpIConnection::GetVersionInfo(PCC_VENDORINFO *ppLocalVendorInfo,
  81. PCC_VENDORINFO *ppRemoteVendorInfo)
  82. {
  83. return (m_pConnection->GetVersionInfo(ppLocalVendorInfo, ppRemoteVendorInfo));
  84. }
  85. ImpIConnection::ImpIConnection()
  86. {
  87. }