ReactOS  0.4.13-dev-563-g0561610
CBDASignalStatistics Class Reference
Inheritance diagram for CBDASignalStatistics:
Collaboration diagram for CBDASignalStatistics:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID InterfaceId, PVOID *Interface)
 
 STDMETHODIMP_ (ULONG) AddRef()
 
 STDMETHODIMP_ (ULONG) Release()
 
HRESULT STDMETHODCALLTYPE put_SignalStrength (LONG lDbStrength)
 
HRESULT STDMETHODCALLTYPE get_SignalStrength (LONG *plDbStrength)
 
HRESULT STDMETHODCALLTYPE put_SignalQuality (LONG lPercentQuality)
 
HRESULT STDMETHODCALLTYPE get_SignalQuality (LONG *plPercentQuality)
 
HRESULT STDMETHODCALLTYPE put_SignalPresent (BOOLEAN fPresent)
 
HRESULT STDMETHODCALLTYPE get_SignalPresent (BOOLEAN *pfPresent)
 
HRESULT STDMETHODCALLTYPE put_SignalLocked (BOOLEAN fLocked)
 
HRESULT STDMETHODCALLTYPE get_SignalLocked (BOOLEAN *pfLocked)
 
HRESULT STDMETHODCALLTYPE put_SampleTime (LONG lmsSampleTime)
 
HRESULT STDMETHODCALLTYPE get_SampleTime (LONG *plmsSampleTime)
 
 CBDASignalStatistics (IKsPropertySet *pProperty, ULONG NodeId)
 
 ~CBDASignalStatistics ()
 
- 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 signalstatistics.cpp.

Constructor & Destructor Documentation

◆ CBDASignalStatistics()

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

Definition at line 50 of file signalstatistics.cpp.

50 : m_Ref(0), m_pProperty(pProperty), m_NodeId(NodeId){};
IKsPropertySet * m_pProperty
_Must_inspect_result_ _In_ KSP_BDA_NODE_PIN * pProperty
Definition: bdasup.h:156

◆ ~CBDASignalStatistics()

CBDASignalStatistics::~CBDASignalStatistics ( )
inline

Definition at line 51 of file signalstatistics.cpp.

51 {};

Member Function Documentation

◆ get_SampleTime()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::get_SampleTime ( LONG plmsSampleTime)

Implements IBDA_SignalStatistics.

Definition at line 241 of file signalstatistics.cpp.

242 {
243  KSP_NODE Node;
244  HRESULT hr;
246 
247  // setup request
248  Node.NodeId = (ULONG)-1;
249  Node.Reserved = 0;
250 
251  // perform request
252  hr = m_pProperty->Get(KSPROPSETID_BdaSignalStats, KSPROPERTY_BDA_SAMPLE_TIME, &Node.NodeId, sizeof(KSP_NODE)-sizeof(KSPROPERTY), plmsSampleTime, sizeof(LONG), &BytesReturned);
253 
254 #ifdef BDAPLGIN_TRACE
255  WCHAR Buffer[100];
256  swprintf(Buffer, L"CBDASignalStatistics::get_SampleTime: m_NodeId %lu hr %lx, BytesReturned %lu \n", m_NodeId, hr, BytesReturned);
258 #endif
259 
260  return hr;
261 }
const GUID KSPROPSETID_BdaSignalStats
HRESULT hr
Definition: shlfolder.c:183
IKsPropertySet * m_pProperty
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:2104
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
HRESULT Get([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [out, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData, [out] DWORD *pcbReturned)
_In_ FILTER_INFORMATION_CLASS _In_ ULONG _Out_ PULONG BytesReturned
Definition: fltkernel.h:1716
unsigned int ULONG
Definition: retypes.h:1
Definition: dlist.c:348

◆ get_SignalLocked()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::get_SignalLocked ( BOOLEAN pfLocked)

Implements IBDA_SignalStatistics.

Definition at line 191 of file signalstatistics.cpp.

192 {
193  KSP_NODE Node;
194  HRESULT hr;
195  ULONG Locked;
197 
198  // setup request
199  Node.NodeId = (ULONG)-1;
200  Node.Reserved = 0;
201 
202  // perform request
204 
205  *pfLocked = Locked;
206 
207 #ifdef BDAPLGIN_TRACE
208  WCHAR Buffer[100];
209  swprintf(Buffer, L"CBDASignalStatistics::get_SignalLocked: m_NodeId %lu hr %lx, BytesReturned %lu Locked %lu\n", m_NodeId, hr, BytesReturned, Locked);
211 #endif
212 
213  return hr;
214 }
const GUID KSPROPSETID_BdaSignalStats
HRESULT hr
Definition: shlfolder.c:183
IKsPropertySet * m_pProperty
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
union node Node
Definition: types.h:1255
_In_ PMEMORY_AREA _In_ PVOID _In_ BOOLEAN Locked
Definition: newmm.h:260
Definition: ks.h:2104
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
HRESULT Get([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [out, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData, [out] DWORD *pcbReturned)
_In_ FILTER_INFORMATION_CLASS _In_ ULONG _Out_ PULONG BytesReturned
Definition: fltkernel.h:1716
unsigned int ULONG
Definition: retypes.h:1
Definition: dlist.c:348

◆ get_SignalPresent()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::get_SignalPresent ( BOOLEAN pfPresent)

Implements IBDA_SignalStatistics.

Definition at line 156 of file signalstatistics.cpp.

157 {
158  KSP_NODE Node;
159  HRESULT hr;
160  ULONG Present;
162 
163  // setup request
164  Node.NodeId = (ULONG)-1;
165  Node.Reserved = 0;
166 
167  // perform request
169 
170  // store result
171  *pfPresent = Present;
172 
173 #ifdef BDAPLGIN_TRACE
174  WCHAR Buffer[100];
175  swprintf(Buffer, L"CBDASignalStatistics::get_SignalPresent: m_NodeId %lu hr %lx, BytesReturned %lu Present %lu\n", m_NodeId, hr, BytesReturned, Present);
177 #endif
178 
179  return hr;
180 }
const GUID KSPROPSETID_BdaSignalStats
HRESULT hr
Definition: shlfolder.c:183
IKsPropertySet * m_pProperty
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
union node Node
Definition: types.h:1255
Definition: ks.h:2104
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
HRESULT Get([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [out, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData, [out] DWORD *pcbReturned)
_In_ FILTER_INFORMATION_CLASS _In_ ULONG _Out_ PULONG BytesReturned
Definition: fltkernel.h:1716
unsigned int ULONG
Definition: retypes.h:1
Definition: dlist.c:348

◆ get_SignalQuality()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::get_SignalQuality ( LONG plPercentQuality)

Implements IBDA_SignalStatistics.

Definition at line 125 of file signalstatistics.cpp.

126 {
127  KSP_NODE Node;
128  HRESULT hr;
130 
131  // setup request
132  Node.NodeId = (ULONG)-1;
133  Node.Reserved = 0;
134 
135  // perform request
136  hr = m_pProperty->Get(KSPROPSETID_BdaSignalStats, KSPROPERTY_BDA_SIGNAL_QUALITY, &Node.NodeId, sizeof(KSP_NODE)-sizeof(KSPROPERTY), plPercentQuality, sizeof(LONG), &BytesReturned);
137 
138 #ifdef BDAPLGIN_TRACE
139  WCHAR Buffer[100];
140  swprintf(Buffer, L"CBDASignalStatistics::get_SignalQuality: m_NodeId %lu hr %lx, BytesReturned %lu plPercentQuality %lu\n", m_NodeId, hr, BytesReturned, *plPercentQuality);
142 #endif
143 
144  return hr;
145 }
const GUID KSPROPSETID_BdaSignalStats
HRESULT hr
Definition: shlfolder.c:183
IKsPropertySet * m_pProperty
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:2104
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
HRESULT Get([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [out, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData, [out] DWORD *pcbReturned)
_In_ FILTER_INFORMATION_CLASS _In_ ULONG _Out_ PULONG BytesReturned
Definition: fltkernel.h:1716
unsigned int ULONG
Definition: retypes.h:1
Definition: dlist.c:348

◆ get_SignalStrength()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::get_SignalStrength ( LONG plDbStrength)

Implements IBDA_SignalStatistics.

Definition at line 92 of file signalstatistics.cpp.

93 {
94  KSP_NODE Node;
95  HRESULT hr;
97 
98  // setup request
99  Node.NodeId = (ULONG)-1;
100  Node.Reserved = 0;
101 
103 
105 
106 
107 #ifdef BDAPLGIN_TRACE
108  WCHAR Buffer[100];
109  swprintf(Buffer, L"CBDASignalStatistics::get_SignalStrength: m_NodeId %lu hr %lx, BytesReturned %lu plDbStrength %ld\n", m_NodeId, hr, BytesReturned, *plDbStrength);
111 #endif
112 
113  return hr;
114 }
const GUID KSPROPSETID_BdaSignalStats
HRESULT hr
Definition: shlfolder.c:183
#define assert(x)
Definition: debug.h:53
IKsPropertySet * m_pProperty
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:2104
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
#define swprintf(buf, format,...)
Definition: sprintf.c:56
static const WCHAR L[]
Definition: oid.c:1250
HRESULT Get([in] REFGUID guidPropSet, [in] DWORD dwPropID, [in, size_is(cbInstanceData)] LPVOID pInstanceData, [in] DWORD cbInstanceData, [out, size_is(cbPropData)] LPVOID pPropData, [in] DWORD cbPropData, [out] DWORD *pcbReturned)
_In_ FILTER_INFORMATION_CLASS _In_ ULONG _Out_ PULONG BytesReturned
Definition: fltkernel.h:1716
unsigned int ULONG
Definition: retypes.h:1
Definition: dlist.c:348

◆ put_SampleTime()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::put_SampleTime ( LONG  lmsSampleTime)

Implements IBDA_SignalStatistics.

Definition at line 218 of file signalstatistics.cpp.

219 {
220  KSP_NODE Node;
221  HRESULT hr;
222 
223  // setup request
224  Node.NodeId = (ULONG)-1;
225  Node.Reserved = 0;
226 
227  // perform request
228  hr = m_pProperty->Set(KSPROPSETID_BdaSignalStats, KSPROPERTY_BDA_SAMPLE_TIME, &Node.NodeId, sizeof(KSP_NODE)-sizeof(KSPROPERTY), &lmsSampleTime, sizeof(LONG));
229 
230 #ifdef BDAPLGIN_TRACE
231  WCHAR Buffer[100];
232  swprintf(Buffer, L"CBDASignalStatistics::put_SampleTime: m_NodeId %lu hr %lx\n", m_NodeId, hr);
234 #endif
235 
236  return hr;
237 }
const GUID KSPROPSETID_BdaSignalStats
HRESULT hr
Definition: shlfolder.c:183
IKsPropertySet * m_pProperty
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:2104
Definition: bufpool.h:45
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
#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)
unsigned int ULONG
Definition: retypes.h:1
Definition: dlist.c:348

◆ put_SignalLocked()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::put_SignalLocked ( BOOLEAN  fLocked)

Implements IBDA_SignalStatistics.

Definition at line 184 of file signalstatistics.cpp.

185 {
186  return E_NOINTERFACE;
187 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ put_SignalPresent()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::put_SignalPresent ( BOOLEAN  fPresent)

Implements IBDA_SignalStatistics.

Definition at line 149 of file signalstatistics.cpp.

150 {
151  return E_NOINTERFACE;
152 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ put_SignalQuality()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::put_SignalQuality ( LONG  lPercentQuality)

Implements IBDA_SignalStatistics.

Definition at line 118 of file signalstatistics.cpp.

119 {
120  return E_NOINTERFACE;
121 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ put_SignalStrength()

HRESULT STDMETHODCALLTYPE CBDASignalStatistics::put_SignalStrength ( LONG  lDbStrength)

Implements IBDA_SignalStatistics.

Definition at line 85 of file signalstatistics.cpp.

86 {
87  return E_NOINTERFACE;
88 }
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ QueryInterface()

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

Definition at line 61 of file signalstatistics.cpp.

64 {
65  *Output = NULL;
66 
67  if (IsEqualGUID(refiid, IID_IUnknown))
68  {
69  *Output = PVOID(this);
70  reinterpret_cast<IUnknown*>(*Output)->AddRef();
71  return NOERROR;
72  }
73 
75  {
76  *Output = (IBDA_SignalStatistics*)(this);
77  reinterpret_cast<IBDA_SignalStatistics*>(*Output)->AddRef();
78  return NOERROR;
79  }
80  return E_NOINTERFACE;
81 }
#define E_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354
smooth NULL
Definition: ftsmooth.c:416
void * PVOID
Definition: retypes.h:9
const GUID IID_IUnknown
Definition: arc.h:85
const GUID IID_IBDA_SignalStatistics
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4021

◆ STDMETHODIMP_() [1/2]

CBDASignalStatistics::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 22 of file signalstatistics.cpp.

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

◆ STDMETHODIMP_() [2/2]

CBDASignalStatistics::STDMETHODIMP_ ( ULONG  )
inline

Definition at line 27 of file signalstatistics.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 CBDASignalStatistics::m_NodeId
protected

◆ m_pProperty

IKsPropertySet* CBDASignalStatistics::m_pProperty
protected

◆ m_Ref

LONG CBDASignalStatistics::m_Ref
protected

Definition at line 51 of file signalstatistics.cpp.

Referenced by STDMETHODIMP_().


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