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.

73 lines
1.9 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Name: IPConfvidt.h
  4. //
  5. // Description: Definition of the CIPConfVideoCaptureTerminal class
  6. //
  7. ///////////////////////////////////////////////////////////////////////////////
  8. #ifndef _IPConfVIDT_H_
  9. #define _IPConfVIDT_H_
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CIPConfVideoCaptureTerminal
  12. /////////////////////////////////////////////////////////////////////////////
  13. const DWORD VIDEO_CAPTURE_FILTER_NUMPINS = 3;
  14. interface DECLSPEC_UUID("4eb8cf35-0015-4260-83ee-1a179b05717c") DECLSPEC_NOVTABLE
  15. IConfVideoDummy : public IUnknown
  16. {
  17. };
  18. #define IID_IConfVideoDummy __uuidof(IConfVideoDummy)
  19. class CIPConfVideoCaptureTerminal :
  20. public IConfVideoDummy,
  21. public CIPConfBaseTerminal
  22. {
  23. // COM_INTERFACE_ENTRY_CHAIN is not allowed to the 1st one is a MAP
  24. // entry IConfVideoDummy is to make BEGIN_COM_MAP happy
  25. BEGIN_COM_MAP(CIPConfVideoCaptureTerminal)
  26. COM_INTERFACE_ENTRY(IConfVideoDummy)
  27. COM_INTERFACE_ENTRY_CHAIN(CIPConfBaseTerminal)
  28. END_COM_MAP()
  29. public:
  30. CIPConfVideoCaptureTerminal();
  31. virtual ~CIPConfVideoCaptureTerminal();
  32. static HRESULT CreateTerminal(
  33. IN char * strDeviceName,
  34. IN UINT VideoCaptureID,
  35. IN MSP_HANDLE htAddress,
  36. OUT ITTerminal **ppTerm
  37. );
  38. HRESULT Initialize (
  39. IN char * strName,
  40. IN UINT VideoCaptureID,
  41. IN MSP_HANDLE htAddress
  42. );
  43. protected:
  44. HRESULT CreateFilter();
  45. DWORD GetNumExposedPins() const
  46. {
  47. return VIDEO_CAPTURE_FILTER_NUMPINS;
  48. }
  49. HRESULT GetExposedPins(
  50. IN IPin ** ppPins,
  51. IN DWORD dwNumPins
  52. );
  53. protected:
  54. UINT m_VideoCaptureID;
  55. };
  56. #endif // _IPConfVIDT_H_