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.

78 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. H323addr.h
  5. Abstract:
  6. Declaration of the CH323MSP
  7. Author:
  8. Mu Han (muhan) 1-November-1997
  9. --*/
  10. #ifndef __CONFADDR_H_
  11. #define __CONFADDR_H_
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. #include "resource.h"
  16. const DWORD H323CALLMEDIATYPES = (TAPIMEDIATYPE_AUDIO | TAPIMEDIATYPE_VIDEO);
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CH323MSP
  19. /////////////////////////////////////////////////////////////////////////////
  20. class CH323MSP :
  21. public CMSPAddress,
  22. public CComCoClass<CH323MSP, &CLSID_H323MSP>,
  23. public CMSPObjectSafetyImpl
  24. {
  25. public:
  26. DECLARE_REGISTRY_RESOURCEID(IDR_H323MSP)
  27. DECLARE_POLY_AGGREGATABLE(CH323MSP)
  28. BEGIN_COM_MAP(CH323MSP)
  29. COM_INTERFACE_ENTRY(IObjectSafety)
  30. COM_INTERFACE_ENTRY_CHAIN(CMSPAddress)
  31. END_COM_MAP()
  32. public:
  33. STDMETHOD (CreateTerminal) (
  34. IN BSTR pTerminalClass,
  35. IN long lMediaType,
  36. IN TERMINAL_DIRECTION Direction,
  37. OUT ITTerminal ** ppTerminal
  38. );
  39. STDMETHOD (CreateMSPCall) (
  40. IN MSP_HANDLE htCall,
  41. IN DWORD dwReserved,
  42. IN DWORD dwMediaType,
  43. IN IUnknown * pOuterUnknown,
  44. OUT IUnknown ** ppMSPCall
  45. );
  46. STDMETHOD (ShutdownMSPCall) (
  47. IN IUnknown * pMSPCall
  48. );
  49. ULONG MSPAddressAddRef(void);
  50. ULONG MSPAddressRelease(void);
  51. protected:
  52. DWORD GetCallMediaTypes(void);
  53. };
  54. #endif //__CONFADDR_H_