本文整理汇总了C++中GetInterface函数的典型用法代码示例。如果您正苦于以下问题:C++ GetInterface函数的具体用法?C++ GetInterface怎么用?C++ GetInterface使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetInterface函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: KUIErrorUO
bool UKUIInterfaceElement::IsCursorOver() const
{
if ( GetInterface() == NULL )
{
KUIErrorUO( "Null interface" );
return false;
}
return IsPointOver( GetInterface()->GetCursorLocation() );
}
开发者ID:cllpyl,项目名称:KeshUI,代码行数:10,代码来源:KUIInterfaceElement.cpp
示例2: GetInterface
STDMETHODIMP CAVISplitter::NonDelegatingQueryInterface(REFIID iid, void** ppv)
{
if (iid == IID_ISpecifyPropertyPages)
return GetInterface((ISpecifyPropertyPages *) this, ppv);
else if (iid == IID_ISMMModuleConfig)
return GetInterface((ISMMModuleConfig*)this, ppv);
else if (iid == IID_IPersistStream)
return GetInterface((CPersistStream*)this, ppv);
return CBaseFilter::NonDelegatingQueryInterface(iid, ppv);
}
开发者ID:SolveigMultimedia,项目名称:smm_avi_splitter,代码行数:10,代码来源:avisplitter.cpp
示例3: CPedSA
/**
* Constructor for CCivilianPedSA
*/
CCivilianPedSA::CCivilianPedSA( CCivilianPedSAInterface *ped, modelId_t modelID ) : CPedSA( ped )
{
DEBUG_TRACE("CCivilianPedSA::CCivilianPedSA( CCivilianPedSAInterface *ped, unsigned short modelID )");
SetType( CIVILIAN_PED );
SetModelIndex( modelID );
BOOL_FLAG( GetInterface()->m_entityFlags, ENTITY_DISABLESTREAMING, true );
BOOL_FLAG( GetInterface()->m_entityFlags, ENTITY_NOSTREAM, true );
}
开发者ID:qaisjp,项目名称:green-candy,代码行数:13,代码来源:CCivilianPedSA.cpp
示例4: GetInterface
//----------------------------------------------------------------------------
//! @brief 要求されたインターフェイスを返す
//! @param riid : インターフェイスのIID
//! @param ppv : インターフェイスを返すポインターへのポインタ
//! @return エラーコード
//----------------------------------------------------------------------------
STDMETHODIMP CDemuxSource::NonDelegatingQueryInterface( REFIID riid, void ** ppv )
{
if( riid == IID_IMediaSeeking ) {
return GetInterface( static_cast<IMediaSeeking*>( this ), ppv );
} else if( riid == IID_IAMFilterMiscFlags ) {
return GetInterface( static_cast<IAMFilterMiscFlags*>( this ), ppv );
} else {
return CSource::NonDelegatingQueryInterface(riid, ppv);
}
}
开发者ID:xmoeproject,项目名称:X-moe,代码行数:16,代码来源:CDemuxSource.cpp
示例5: GetInterface
HRESULT CamShiftTracker::NonDelegatingQueryInterface(REFIID iid, void **ppv)
{
if (iid == IID_ICamShiftTracker)
return GetInterface((IUnknown *)(void *)static_cast<ICamShiftTracker *>(this), ppv);
if (iid == IID_ITracker)
return GetInterface((IUnknown *)(void *)static_cast<ITracker *>(this), ppv);
return CUnknown::NonDelegatingQueryInterface(iid, ppv);
}
开发者ID:JackJone,项目名称:opencv,代码行数:10,代码来源:CamShiftTracker.cpp
示例6: GetInterface
STDMETHODIMP CMediaPacketSample::QueryInterface(REFIID riid, void **ppv)
{
if (riid == __uuidof(ILAVMediaSample)) {
return GetInterface((ILAVMediaSample *) this, ppv);
}
else if (riid == __uuidof(IMediaSideData)) {
return GetInterface((IMediaSideData *) this, ppv);
}
return CMediaSample::QueryInterface(riid, ppv);
}
开发者ID:aracnoz,项目名称:LAVFilters,代码行数:10,代码来源:PacketAllocator.cpp
示例7: GetInterface
STDMETHODIMP my12doomImageSource::NonDelegatingQueryInterface(REFIID riid, void ** ppv)
{
if (riid == IID_IFileSourceFilter)
return GetInterface((IFileSourceFilter *) this, ppv);
if (riid == IID_IStereoLayout)
return GetInterface((IStereoLayout *) this, ppv);
return __super::NonDelegatingQueryInterface(riid, ppv);
}
开发者ID:my12doom,项目名称:personalProjects,代码行数:10,代码来源:ImageSource.cpp
示例8: GetInterface
STDMETHODIMP VMRSurfaceAllocator::NonDelegatingQueryInterface( REFIID refiid, void **lplpInterface )
{
if ( IsEqualIID( refiid, IID_IVMRSurfaceAllocator9 ) )
{
return GetInterface( static_cast<IVMRSurfaceAllocator9 *>( this ), lplpInterface );
} else if ( IsEqualIID( refiid, IID_IVMRImagePresenter9 ) )
{
return GetInterface( static_cast<IVMRImagePresenter9 *>( this ), lplpInterface );
}
return CUnknown::NonDelegatingQueryInterface( refiid, lplpInterface );
}
开发者ID:HirokiMiyaoka,项目名称:Mikan,代码行数:12,代码来源:VMRSurfaceAllocator.cpp
示例9: CheckPointer
STDMETHODIMP CSyncClockFilter::NonDelegatingQueryInterface(REFIID riid, void** ppv)
{
CheckPointer(ppv, E_POINTER);
if (riid == IID_IReferenceClock) {
return GetInterface(static_cast<IReferenceClock*>(&m_Clock), ppv);
} else if (riid == IID_ISyncClock) {
return GetInterface(static_cast<ISyncClock*>(this), ppv);
} else {
return CBaseFilter::NonDelegatingQueryInterface(riid, ppv);
}
}
开发者ID:Azpidatziak,项目名称:mpc-hc,代码行数:12,代码来源:SyncClock.cpp
示例10: CheckPointer
STDMETHODIMP CDXVA2MediaSample::QueryInterface(REFIID riid, void **ppv)
{
CheckPointer(ppv, E_POINTER);
if (riid == __uuidof(IDXVA2MediaSample)) {
return GetInterface(static_cast<IDXVA2MediaSample*>(this), ppv);
}
if (riid == IID_IMFGetService) {
return GetInterface(static_cast<IMFGetService*>(this), ppv);
}
return CMediaSample::QueryInterface(riid, ppv);
}
开发者ID:KayoAiko,项目名称:TVTestVideoDecoder,代码行数:13,代码来源:DXVA2Allocator.cpp
示例11: GetInterface
STDMETHODIMP
CBasePin::NonDelegatingQueryInterface(REFIID riid, void ** ppv)
{
/* Do we have this interface */
if (riid == IID_IPin) {
return GetInterface((IPin *) this, ppv);
} else if (riid == IID_IQualityControl) {
return GetInterface((IQualityControl *) this, ppv);
} else {
return CUnknown::NonDelegatingQueryInterface(riid, ppv);
}
}
开发者ID:EnoroF,项目名称:easygamelibs,代码行数:13,代码来源:BasePin.cpp
示例12: CheckPointer
//
// NonDelegatingQueryInterface
//
// Reveals ICKalmTrack and ISpecifyPropertyPages
//
STDMETHODIMP CKalmTrack::NonDelegatingQueryInterface(REFIID riid, void **ppv)
{
CheckPointer(ppv,E_POINTER);
if (riid == IID_ICKalmTrack) {
return GetInterface((ICKalmTrack *) this, ppv);
} else if (riid == IID_ISpecifyPropertyPages) {
return GetInterface((ISpecifyPropertyPages *) this, ppv);
} else {
return CTransInPlaceFilter::NonDelegatingQueryInterface(riid, ppv);
}
} // NonDelegatingQueryInterface
开发者ID:mikanradojevic,项目名称:sdkpub,代码行数:18,代码来源:Kalman.cpp
示例13: CheckPointer
STDMETHODIMP CM4M3DS::NonDelegatingQueryInterface(REFIID riid, void **ppv)
{
CheckPointer(ppv, E_POINTER);
if (riid == IID_IM4M3decoder)
{
return GetInterface((IM4M3decoder *) this, ppv);
}
if (riid == IID_ISpecifyPropertyPages)
{
return GetInterface((ISpecifyPropertyPages *) this, ppv);
}
return CVideoTransformFilter::NonDelegatingQueryInterface(riid, ppv);
}
开发者ID:mojo-codec,项目名称:M4M3-H265-Codec,代码行数:14,代码来源:M4M3DS.cpp
示例14: CheckPointer
STDMETHODIMP CDXVA2Sample::QueryInterface(REFIID riid, __deref_out void **ppv)
{
CheckPointer(ppv,E_POINTER);
ValidateReadWritePtr(ppv,sizeof(PVOID));
if (riid == __uuidof(IMFGetService)) {
return GetInterface((IMFGetService*) this, ppv);
}
if (riid == __uuidof(ILAVDXVA2Sample)) {
return GetInterface((ILAVDXVA2Sample*) this, ppv);
} else {
return CMediaSample::QueryInterface(riid, ppv);
}
}
开发者ID:1pi,项目名称:LAVFilters,代码行数:14,代码来源:DXVA2SurfaceAllocator.cpp
示例15: GetInterface
//----------------------------------------------------------------------------
// NonDelegatingQueryInterface
//
//----------------------------------------------------------------------------
STDMETHODIMP
CMpegMovie::NonDelegatingQueryInterface(
REFIID riid,
void** ppv
)
{
if (riid == __uuidof(IVMRSurfaceAllocator)) {
return GetInterface((IVMRSurfaceAllocator*)this, ppv);
}
else if (riid == __uuidof(IVMRImagePresenter)) {
return GetInterface((IVMRImagePresenter*)this, ppv);
}
return CUnknown::NonDelegatingQueryInterface(riid,ppv);
}
开发者ID:grakidov,项目名称:Render3D,代码行数:19,代码来源:AllocPresenter.cpp
示例16: LOG
STDMETHODIMP OggDemuxFilter::NonDelegatingQueryInterface(REFIID riid, void **ppv)
{
LOG(logDEBUG4) << L"NonDelegatingQueryInterface: " << riid;
if (riid == IID_IOggBaseTime)
{
return GetInterface((IOggBaseTime*)this, ppv);
}
else if (riid == IID_IOggSeekTable)
{
return GetInterface((IOggSeekTable*)this, ppv);
}
return CBaseFilter::NonDelegatingQueryInterface(riid, ppv);
}
开发者ID:John-He-928,项目名称:krkrz,代码行数:15,代码来源:OggDemuxFilter.cpp
示例17: GetInterface
STDMETHODIMP CSynthFilter::NonDelegatingQueryInterface(REFIID riid, void **ppv)
{
if (riid == IID_ISynth2) {
return GetInterface((ISynth2 *) this, ppv);
}
else if (riid == IID_IPersistStream) {
return GetInterface((IPersistStream *) this, ppv);
}
else if (riid == IID_ISpecifyPropertyPages) {
return GetInterface((ISpecifyPropertyPages *) this, ppv);
}
else {
return CDynamicSource::NonDelegatingQueryInterface(riid, ppv);
}
}
开发者ID:FerozAhmed,项目名称:virtual-audio-capture-grabber-device,代码行数:15,代码来源:useless_synth.cpp
示例18: GetInterface
STDMETHODIMP CVideoSpringSendInputPin::NonDelegatingQueryInterface(REFIID riid, void **ppv)
{
if(riid == IID_IVideoSpringSend)
{
return GetInterface(static_cast<IVideoSpringSend*>(this), ppv);
}
else if(riid == IID_IStream)
{
return GetInterface(static_cast<IStream*>(this), ppv);
}
else
{
return CBaseInputPin::NonDelegatingQueryInterface(riid, ppv);
}
}
开发者ID:woodcom,项目名称:videospring,代码行数:15,代码来源:VideoSpringSend.cpp
示例19: IsAccessibilityCompatible
LRESULT CBCGPWnd::OnGetObject(WPARAM wParam, LPARAM lParam)
{
if (globalData.IsAccessibilitySupport () &&
IsAccessibilityCompatible ())
{
#if _MSC_VER >= 1300
return CWnd::OnGetObject (wParam, lParam);
#else
if ((DWORD)lParam == OBJID_CLIENT)
{
LPUNKNOWN pUnknown = GetInterface(&IID_IAccessible);
if (!pUnknown)
{
return E_FAIL;
}
m_pStdObject = (IAccessible*)pUnknown;
return LresultFromObject(IID_IAccessible, wParam, pUnknown);
}
#endif
}
return (LRESULT)0L;
}
开发者ID:iclosure,项目名称:jframework,代码行数:26,代码来源:BCGPWnd.cpp
示例20: GetInterface
STDMETHODIMP CPageSite::NonDelegatingQueryInterface(REFIID riid, void **ppv)
{
if (riid == IID_IPropertyPageSite) {
return GetInterface((IPropertyPageSite*)this, ppv);
} else
return __super::NonDelegatingQueryInterface(riid, ppv);
}
开发者ID:CyberShadow,项目名称:graphstudio,代码行数:7,代码来源:PropertyForm.cpp
注:本文中的GetInterface函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论