ReactOS  0.4.14-dev-317-g96040ec
qualityforward.cpp File Reference
#include "precomp.h"
Include dependency graph for qualityforward.cpp:

Go to the source code of this file.

Classes

class  CKsQualityForwarder
 

Macros

#define IID_IKsQualityForwarder   KSCATEGORY_QUALITY
 

Functions

HRESULT WINAPI CKsQualityForwarder_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
 

Macro Definition Documentation

◆ IID_IKsQualityForwarder

#define IID_IKsQualityForwarder   KSCATEGORY_QUALITY

Definition at line 11 of file qualityforward.cpp.

Function Documentation

◆ CKsQualityForwarder_Constructor()

HRESULT WINAPI CKsQualityForwarder_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 94 of file qualityforward.cpp.

98 {
99  HRESULT hr;
100  HANDLE handle;
101 
102 #ifdef KSPROXY_TRACE
103  OutputDebugStringW(L"CKsQualityForwarder_Constructor\n");
104 #endif
105 
106  // open default clock
108 
109  if (hr != NOERROR)
110  {
111 #ifdef KSPROXY_TRACE
112  OutputDebugString("CKsClockForwarder_Constructor failed to open device\n");
113 #endif
114  return hr;
115  }
116 
118 
119  if (!quality)
120  {
121  // free clock handle
123  return E_OUTOFMEMORY;
124  }
125 
126  if (FAILED(quality->QueryInterface(riid, ppv)))
127  {
128  /* not supported */
129  delete quality;
130  return E_NOINTERFACE;
131  }
132 
133  return NOERROR;
134 }
namespace GUID const ADDRINFOEXW ADDRINFOEXW struct timeval OVERLAPPED LPLOOKUPSERVICE_COMPLETION_ROUTINE HANDLE * handle
Definition: sock.c:82
#define CloseHandle
Definition: compat.h:398
#define E_NOINTERFACE
Definition: winerror.h:2364
HRESULT hr
Definition: shlfolder.c:183
#define NOERROR
Definition: winerror.h:2354
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define OutputDebugString
Definition: winbase.h:3714
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define GENERIC_WRITE
Definition: nt_native.h:90
LONG HRESULT
Definition: typedefs.h:77
int quality
Definition: jpeglib.h:991
static const WCHAR L[]
Definition: oid.c:1250
#define GENERIC_READ
Definition: compat.h:124
#define KSCATEGORY_QUALITY
Definition: ks.h:225
KSDDKAPI HRESULT WINAPI KsOpenDefaultDevice(REFGUID Category, ACCESS_MASK Access, PHANDLE DeviceHandle)
Definition: ksproxy.cpp:101