mirror of
https://github.com/Const-me/Whisper.git
synced 2026-10-18 05:00:40 +08:00
17 lines
576 B
C++
17 lines
576 B
C++
#include "freeThreadedMarshaller.h"
|
|
#ifdef _MSC_VER
|
|
#include <combaseapi.h>
|
|
|
|
HRESULT ComLight::details::createFreeThreadedMarshaller( IUnknown* pUnkOuter, IUnknown** ppUnkMarshal )
|
|
{
|
|
return ::CoCreateFreeThreadedMarshaler( (LPUNKNOWN)pUnkOuter, (LPUNKNOWN *)ppUnkMarshal );
|
|
}
|
|
|
|
bool ComLight::details::queryMarshallerInterface( REFIID riid, void **ppvObject, IUnknown* marshaller )
|
|
{
|
|
if( riid != IID_IMarshal || nullptr == marshaller )
|
|
return false;
|
|
const HRESULT hr = marshaller->QueryInterface( IID_IMarshal, ppvObject );
|
|
return SUCCEEDED( hr ) ? true : false;
|
|
}
|
|
#endif |