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.
 
 
 
 
 
 

46 lines
1.3 KiB

//==========================================================================;
//
// closedcaptioningimpl.h : additional infrastructure to support implementing IMSVidClosedCaptionings
// nicely from c++
// Copyright (c) Microsoft Corporation 1999.
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#ifndef CLOSEDCAPTIONINGIMPL_H
#define CLOSEDCAPTIONINGIMPL_H
#include "featureimpl.h"
namespace MSVideoControl {
template<class T, LPCGUID LibID, LPCGUID KSCategory, class MostDerivedInterface = IMSVidClosedCaptioning>
class DECLSPEC_NOVTABLE IMSVidClosedCaptioningImpl : public IMSVidFeatureImpl<T, LibID, KSCategory, MostDerivedInterface> {
public:
IMSVidClosedCaptioningImpl() : m_fCCEnable(false) {}
bool m_fCCEnable;
STDMETHOD(put_Enable)(VARIANT_BOOL fEnable) {
m_fCCEnable = (fEnable == VARIANT_TRUE);
return NOERROR;
}
STDMETHOD(get_Enable)(VARIANT_BOOL *pfEnable) {
if (!pfEnable) {
return E_POINTER;
}
try {
*pfEnable = m_fCCEnable ? VARIANT_TRUE : VARIANT_FALSE;
return NOERROR;
} catch(...) {
return E_POINTER;
}
}
};
}; /// namespace
#endif
// end of file - closedcaptioningimpl.h