Home > OS >  Uvc camera extension interface to get failure
Uvc camera extension interface to get failure

Time:01-09

# if defined (__cplusplus) & amp; & ! Defined (CINTERFACE)

MIDL_INTERFACE (44 d9 "DE - 97 cc - 082804-921 - f - CFCC74C69C12")
//MIDL_INTERFACE (" 2772 e1 - ab4f - ea9f c6fa - 78-7 dbe3d7de7b4 ")
IExtensionUnit: public IUnknown
{
Public:
Virtual HRESULT STDMETHODCALLTYPE get_InfoSize (
/* */ULONG [out] * pulSize)=0;

Virtual HRESULT STDMETHODCALLTYPE get_Info (
/* [in] */ULONG ulSize,
/* [size_is] [out] [in] */BYTE pInfo [])=0;

Virtual HRESULT STDMETHODCALLTYPE get_PropertySize (
/* [in] */ULONG PropertyId,
/* */ULONG [out] * pulSize)=0;

Virtual HRESULT STDMETHODCALLTYPE get_Property (
/* [in] */ULONG PropertyId,
/* [in] */ULONG ulSize,
/* [size_is] [out] [in] */BYTE pValue [])=0;

Virtual HRESULT STDMETHODCALLTYPE put_Property (
/* [in] */ULONG PropertyId,
/* [in] */ULONG ulSize,
/* [size_is] [out] [in] */BYTE pValue [])=0;

Virtual HRESULT STDMETHODCALLTYPE get_PropertyRange (
/* [in] */ULONG PropertyId,
/* [in] */ULONG ulSize,
/* [size_is] [out] [in] */BYTE pMin [],
/* [size_is] [out] [in] */BYTE pMax [],
/* [size_is] [out] [in] */BYTE pSteppingDelta [],
/* [size_is] [out] [in] */BYTE pDefault [])=0;

};

If (IsEqualGUID (guidNodeType KSNODETYPE_DEV_SPECIFIC))
{
Printf (" found one xu node \ n ");
IExtensionUnit * pExtensionUnit=NULL;
__uuidof (IExtensionUnit);
Hr=pKsTopologyInfo - & gt; CreateNodeInstance (I, __uuidof (IExtensionUnit), (void * *) & amp; PExtensionUnit);
If (SUCCEEDED (hr))
{
ExtensionProp. Property. Set=guid;
ExtensionProp. Property. Id=0;
ExtensionProp. Property. Flags=KSPROPERTY_TYPE_SETSUPPORT | KSPROPERTY_TYPE_TOPOLOGY;
ExtensionProp. NodeId=I;
ExtensionProp. Reserved=0;
PKsTopologyInfo - & gt; CreateNodeInstance always quote this interface is no problem here
  • Related