本文整理汇总了C++中GetInterface函数的典型用法代码示例。如果您正苦于以下问题:C++ GetInterface函数的具体用法?C++ GetInterface怎么用?C++ GetInterface使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetInterface函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: KUIErrorUO
bool UKUIInterfaceElement::IsCursorOver() const
{
if ( GetInterface() == NULL )
{
KUIErrorUO( "Null interface" );
return false;
}
return IsPointOver( GetInterface()->GetCursorLocation() );
}
示例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);
}
示例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 );
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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 );
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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
示例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);
}
示例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);
}
}
示例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);
}