ReactOS  0.4.15-dev-494-g1d8c567
CBDALNBInfo Class Reference
Inheritance diagram for CBDALNBInfo:
Collaboration diagram for CBDALNBInfo:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
HRESULT STDMETHODCALLTYPE put_LocalOscillatorFrequencyLowBand (ULONG ulLOFLow)
 
HRESULT STDMETHODCALLTYPE get_LocalOscillatorFrequencyLowBand (ULONG *pulLOFLow)
 
HRESULT STDMETHODCALLTYPE put_LocalOscillatorFrequencyHighBand (ULONG ulLOFHigh)
 
HRESULT STDMETHODCALLTYPE get_LocalOscillatorFrequencyHighBand (ULONG *pulLOFHigh)
 
HRESULT STDMETHODCALLTYPE put_HighLowSwitchFrequency (ULONG ulSwitchFrequency)
 
HRESULT STDMETHODCALLTYPE get_HighLowSwitchFrequency (ULONG *pulSwitchFrequency)
 
 CBDALNBInfo (IKsPropertySet *pProperty, ULONG NodeId)
 
 ~CBDALNBInfo ()
 
- Public Member Functions inherited from IBDA_LNBInfo
HRESULT put_LocalOscilatorFrequencyLowBand ([in] ULONG ulLOFLow)
 
HRESULT get_LocalOscilatorFrequencyLowBand ([in, out] ULONG *pulLOFLow)
 
HRESULT put_LocalOscilatorFrequencyHighBand ([in] ULONG ulLOFHigh)
 
HRESULT get_LocalOscilatorFrequencyHighBand ([in, out] ULONG *pulLOFHigh)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Protected Attributes

LONG m_Ref
 
IKsPropertySetm_pProperty
 
ULONG m_NodeId
 

Additional Inherited Members

- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 

Detailed Description

Definition at line 17 of file lnbinfo.cpp.

Constructor & Destructor Documentation

◆ CBDALNBInfo()

CBDALNBInfo::CBDALNBInfo ( IKsPropertySet pProperty,
ULONG  NodeId 
)
inline

Definition at line 46 of file lnbinfo.cpp.

46 : m_Ref(0), m_pProperty(pProperty), m_NodeId(NodeId){};
IKsPropertySet * m_pProperty
Definition: lnbinfo.cpp:51
LONG m_Ref
Definition: lnbinfo.cpp:47
ULONG m_NodeId
Definition: lnbinfo.cpp:52
_Must_inspect_result_ _In_ KSP_BDA_NODE_PIN * pProperty
Definition: bdasup.h:156

◆ ~CBDALNBInfo()

CBDALNBInfo::~CBDALNBInfo ( )
inline

Definition at line 47 of file lnbinfo.cpp.

47 {};

Member Function Documentation

◆ get_HighLowSwitchFrequency()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::get_HighLowSwitchFrequency ( ULONG pulSwitchFrequency)

Implements IBDA_LNBInfo.

Definition at line 174 of file lnbinfo.cpp.

175 {
176  return E_NOINTERFACE;
177 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ get_LocalOscillatorFrequencyHighBand()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::get_LocalOscillatorFrequencyHighBand ( ULONG pulLOFHigh)

Definition at line 144 of file lnbinfo.cpp.

145 {
146  return E_NOINTERFACE;
147 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ get_LocalOscillatorFrequencyLowBand()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::get_LocalOscillatorFrequencyLowBand ( ULONG pulLOFLow)

Definition at line 114 of file lnbinfo.cpp.

115 {
116  return E_NOINTERFACE;
117 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ put_HighLowSwitchFrequency()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::put_HighLowSwitchFrequency ( ULONG  ulSwitchFrequency)

Implements IBDA_LNBInfo.

Definition at line 151 of file lnbinfo.cpp.

152 {
153  KSP_NODE Node;
154  HRESULT hr;
155 
156  // setup request
157  Node.NodeId = m_NodeId;
158  Node.Reserved = 0;
159 
160  // perform request
161  hr = m_pProperty->Set(KSPROPSETID_BdaLNBInfo, KSPROPERTY_BDA_LNB_SWITCH_FREQUENCY, &Node.NodeId, sizeof(KSP_NODE)-sizeof(KSPROPERTY), &ulSwitchFrequency, sizeof(ULONG));
162 
163 #ifdef BDAPLGIN_TRACE
164  WCHAR Buffer[100];
165  swprintf(Buffer, L"CBDALNBInfo::put_HighLowSwitchFrequency: m_NodeId %lu ulSwitchFrequency %lu hr %lx\n", m_NodeId, ulSwitchFrequency, hr);
167 #endif
168 
169  return hr;
170 }
IKsPropertySet * m_pProperty
Definition: lnbinfo.cpp:51
HRESULT hr
Definition: shlfolder.c:183
ULONG m_NodeId
Definition: lnbinfo.cpp:52
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
union node Node
Definition: types.h:1255
Definition: ks.h:2074
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:78
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)
const GUID KSPROPSETID_BdaLNBInfo
Definition: lnbinfo.cpp:14
unsigned int ULONG
Definition: retypes.h:1
Definition: dlist.c:348

◆ put_LocalOscillatorFrequencyHighBand()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::put_LocalOscillatorFrequencyHighBand ( ULONG  ulLOFHigh)

Definition at line 121 of file lnbinfo.cpp.

122 {
123  KSP_NODE Node;
124  HRESULT hr;
125 
126  // setup request
127  Node.NodeId = m_NodeId;
128  Node.Reserved = 0;
129 
130  // perform request
131  hr = m_pProperty->Set(KSPROPSETID_BdaLNBInfo, KSPROPERTY_BDA_LNB_LOF_HIGH_BAND, &Node.NodeId, sizeof(KSP_NODE)-sizeof(KSPROPERTY), &ulLOFHigh, sizeof(ULONG));
132 
133 #ifdef BDAPLGIN_TRACE
134  WCHAR Buffer[100];
135  swprintf(Buffer, L"CBDALNBInfo::put_LocalOscillatorFrequencyHighBand: m_NodeId %lu ulLOFHigh %lu hr %lx\n", m_NodeId, ulLOFHigh, hr);
137 #endif
138 
139  return hr;
140 }
IKsPropertySet * m_pProperty
Definition: lnbinfo.cpp:51
HRESULT hr
Definition: shlfolder.c:183
ULONG m_NodeId
Definition: lnbinfo.cpp:52
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
union node Node
Definition: types.h:1255
Definition: ks.h:2074
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:78
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)
const GUID KSPROPSETID_BdaLNBInfo
Definition: lnbinfo.cpp:14
unsigned int ULONG
Definition: retypes.h:1
Definition: dlist.c:348

◆ put_LocalOscillatorFrequencyLowBand()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::put_LocalOscillatorFrequencyLowBand ( ULONG  ulLOFLow)

Definition at line 91 of file lnbinfo.cpp.

92 {
93  KSP_NODE Node;
94  HRESULT hr;
95 
96  // setup request
97  Node.NodeId = m_NodeId;
98  Node.Reserved = 0;
99 
100  // perform request
101  hr = m_pProperty->Set(KSPROPSETID_BdaLNBInfo, KSPROPERTY_BDA_LNB_LOF_LOW_BAND, &Node.NodeId, sizeof(KSP_NODE)-sizeof(KSPROPERTY), &ulLOFLow, sizeof(LONG));
102 
103 #ifdef BDAPLGIN_TRACE
104  WCHAR Buffer[100];
105  swprintf(Buffer, L"CBDALNBInfo::put_LocalOscillatorFrequencyLowBand: m_NodeId %lu ulLOFLow %lu hr %lx\n", m_NodeId, ulLOFLow, hr);
107 #endif
108 
109  return hr;
110 }
IKsPropertySet * m_pProperty
Definition: lnbinfo.cpp:51
HRESULT hr
Definition: shlfolder.c:183
ULONG m_NodeId
Definition: lnbinfo.cpp:52
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
long LONG
Definition: pedump.c:60
union node Node
Definition: types.h:1255
Definition: ks.h:2074
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:78
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
HRESULT Set([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [in, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData)
const GUID KSPROPSETID_BdaLNBInfo
Definition: lnbinfo.cpp:14
Definition: dlist.c:348

◆ QueryInterface()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::QueryInterface ( REFIID  InterfaceId,
PVOID Interface 
)

Definition at line 57 of file lnbinfo.cpp.

60 {
61  *Output = NULL;
62 
63  if (IsEqualGUID(refiid, IID_IUnknown))
64  {
65  *Output = PVOID(this);
66  reinterpret_cast<IUnknown*>(*Output)->AddRef();
67  return NOERROR;
68  }
69 
70  if (IsEqualGUID(refiid, IID_IBDA_LNBInfo))
71  {
72  *Output = (IBDA_LNBInfo*)(this);
73  reinterpret_cast<IBDA_LNBInfo*>(*Output)->AddRef();
74  return NOERROR;
75  }
76 
77 #ifdef BDAPLGIN_TRACE
78  WCHAR Buffer[100];
80  StringFromCLSID(refiid, &lpstr);
81  swprintf(Buffer, L"CBDALNBInfo::QueryInterface: NoInterface for %s", lpstr);
84 #endif
85 
86  return E_NOINTERFACE;
87 }
#define E_NOINTERFACE
Definition: winerror.h:2364
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
#define NOERROR
Definition: winerror.h:2354
static LPOLESTR
Definition: stg_prop.c:27
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
smooth NULL
Definition: ftsmooth.c:416
Definition: bufpool.h:45
void * PVOID
Definition: retypes.h:9
__wchar_t WCHAR
Definition: xmlstorage.h:180
const GUID IID_IUnknown
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
Definition: arc.h:85
const GUID IID_IBDA_LNBInfo
Definition: lnbinfo.cpp:13
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112
static LPCSTR lpstr
Definition: font.c:51
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412

◆ STDMETHODIMP_() [1/2]

CBDALNBInfo::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 22 of file lnbinfo.cpp.

23  {
25  return m_Ref;
26  }
LONG m_Ref
Definition: lnbinfo.cpp:47
#define InterlockedIncrement
Definition: armddk.h:53

◆ STDMETHODIMP_() [2/2]

CBDALNBInfo::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 27 of file lnbinfo.cpp.

28  {
30  if (!m_Ref)
31  {
32  delete this;
33  return 0;
34  }
35  return m_Ref;
36  }
LONG m_Ref
Definition: lnbinfo.cpp:47
#define InterlockedDecrement
Definition: armddk.h:52

Member Data Documentation

◆ m_NodeId

ULONG CBDALNBInfo::m_NodeId
protected

◆ m_pProperty

IKsPropertySet* CBDALNBInfo::m_pProperty
protected

◆ m_Ref

LONG CBDALNBInfo::m_Ref
protected

Definition at line 47 of file lnbinfo.cpp.

Referenced by STDMETHODIMP_().


The documentation for this class was generated from the following file: