windows-nt/Source/XPSP1/NT/net/tapi/skywalker/ipconf/msp/confvidt.h
2020-09-26 16:20:57 +08:00

74 lines
1.8 KiB
C++

///////////////////////////////////////////////////////////////////////////////
//
// Name: IPConfvidt.h
//
// Description: Definition of the CIPConfVideoCaptureTerminal class
//
///////////////////////////////////////////////////////////////////////////////
#ifndef _IPConfVIDT_H_
#define _IPConfVIDT_H_
/////////////////////////////////////////////////////////////////////////////
// CIPConfVideoCaptureTerminal
/////////////////////////////////////////////////////////////////////////////
const DWORD VIDEO_CAPTURE_FILTER_NUMPINS = 3;
interface DECLSPEC_UUID("4eb8cf35-0015-4260-83ee-1a179b05717c") DECLSPEC_NOVTABLE
IConfVideoDummy : public IUnknown
{
};
#define IID_IConfVideoDummy __uuidof(IConfVideoDummy)
class CIPConfVideoCaptureTerminal :
public IConfVideoDummy,
public CIPConfBaseTerminal
{
// COM_INTERFACE_ENTRY_CHAIN is not allowed to the 1st one is a MAP
// entry IConfVideoDummy is to make BEGIN_COM_MAP happy
BEGIN_COM_MAP(CIPConfVideoCaptureTerminal)
COM_INTERFACE_ENTRY(IConfVideoDummy)
COM_INTERFACE_ENTRY_CHAIN(CIPConfBaseTerminal)
END_COM_MAP()
public:
CIPConfVideoCaptureTerminal();
virtual ~CIPConfVideoCaptureTerminal();
static HRESULT CreateTerminal(
IN char * strDeviceName,
IN UINT VideoCaptureID,
IN MSP_HANDLE htAddress,
OUT ITTerminal **ppTerm
);
HRESULT Initialize (
IN char * strName,
IN UINT VideoCaptureID,
IN MSP_HANDLE htAddress
);
protected:
HRESULT CreateFilter();
DWORD GetNumExposedPins() const
{
return VIDEO_CAPTURE_FILTER_NUMPINS;
}
HRESULT GetExposedPins(
IN IPin ** ppPins,
IN DWORD dwNumPins
);
protected:
UINT m_VideoCaptureID;
};
#endif // _IPConfVIDT_H_