ReactOS 0.4.15-dev-8138-g1e75ea8
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)
 
HRESULT put_HighLowSwitchFrequency ([in] ULONG ulSwitchFrequency)
 
HRESULT get_HighLowSwitchFrequency ([in, out] ULONG *pulSwitchFrequency)
 
- 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){};
_Must_inspect_result_ _In_ KSP_BDA_NODE_PIN * pProperty
Definition: bdasup.h:156
IKsPropertySet * m_pProperty
Definition: lnbinfo.cpp:51
LONG m_Ref
Definition: lnbinfo.cpp:50
ULONG m_NodeId
Definition: lnbinfo.cpp:52

◆ ~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}

◆ get_LocalOscillatorFrequencyLowBand()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::get_LocalOscillatorFrequencyLowBand ( ULONG pulLOFLow)

Definition at line 114 of file lnbinfo.cpp.

115{
116 return E_NOINTERFACE;
117}

◆ put_HighLowSwitchFrequency()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::put_HighLowSwitchFrequency ( ULONG  ulSwitchFrequency)

Implements IBDA_LNBInfo.

Definition at line 151 of file lnbinfo.cpp.

152{
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}
@ KSPROPERTY_BDA_LNB_SWITCH_FREQUENCY
Definition: bdamedia.h:317
Definition: bufpool.h:45
union node Node
Definition: types.h:1255
#define swprintf
Definition: precomp.h:40
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
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
#define L(x)
Definition: ntvdm.h:50
HRESULT hr
Definition: shlfolder.c:183
Definition: ks.h:2074
uint32_t ULONG
Definition: typedefs.h:59
Definition: dlist.c:348
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ put_LocalOscillatorFrequencyHighBand()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::put_LocalOscillatorFrequencyHighBand ( ULONG  ulLOFHigh)

Definition at line 121 of file lnbinfo.cpp.

122{
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}
@ KSPROPERTY_BDA_LNB_LOF_HIGH_BAND
Definition: bdamedia.h:316

◆ put_LocalOscillatorFrequencyLowBand()

HRESULT STDMETHODCALLTYPE CBDALNBInfo::put_LocalOscillatorFrequencyLowBand ( ULONG  ulLOFLow)

Definition at line 91 of file lnbinfo.cpp.

92{
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}
@ KSPROPERTY_BDA_LNB_LOF_LOW_BAND
Definition: bdamedia.h:315
long LONG
Definition: pedump.c:60

◆ 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}
const GUID IID_IUnknown
#define NULL
Definition: types.h:112
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR *idstr)
Definition: compobj.c:2412
VOID WINAPI CoTaskMemFree(LPVOID ptr)
Definition: ifs.c:442
ULONG AddRef()
const GUID IID_IBDA_LNBInfo
Definition: lnbinfo.cpp:13
static LPCSTR lpstr
Definition: font.c:51
static LPOLESTR
Definition: stg_prop.c:27
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
@ Output
Definition: arc.h:85
void * PVOID
Definition: typedefs.h:50
#define NOERROR
Definition: winerror.h:2354

◆ STDMETHODIMP_() [1/2]

CBDALNBInfo::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 22 of file lnbinfo.cpp.

23 {
25 return m_Ref;
26 }
#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 }
#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 50 of file lnbinfo.cpp.

Referenced by STDMETHODIMP_().


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