ReactOS 0.4.15-dev-8102-g108db8f
node.cpp File Reference
#include "precomp.h"
Include dependency graph for node.cpp:

Go to the source code of this file.

Classes

class  CKsNode
 

Functions

HRESULT WINAPI CKsNode_Constructor (IUnknown *pUnkOuter, HANDLE ParentHandle, ULONG NodeId, ACCESS_MASK DesiredAccess, REFIID riid, LPVOID *ppv)
 

Function Documentation

◆ CKsNode_Constructor()

HRESULT WINAPI CKsNode_Constructor ( IUnknown pUnkOuter,
HANDLE  ParentHandle,
ULONG  NodeId,
ACCESS_MASK  DesiredAccess,
REFIID  riid,
LPVOID ppv 
)

Definition at line 115 of file node.cpp.

122{
123 HRESULT hr;
126
127#ifdef KSPROXY_TRACE
128 OutputDebugStringW(L"CKsNode_Constructor\n");
129#endif
130
131 //setup request
133 NodeCreate.Node = NodeId;
134
136 if (hr != NOERROR)
137 {
138 OutputDebugString("CKsNode_Constructor failed to open device\n");
140 }
141
142 CKsNode * quality = new CKsNode(pUnkOuter, handle);
143
144 if (!quality)
145 {
146 // free clock handle
148 return E_OUTOFMEMORY;
149 }
150
151 if (FAILED(quality->QueryInterface(riid, ppv)))
152 {
153 /* not supported */
154 delete quality;
155 return E_NOINTERFACE;
156 }
157
158 return NOERROR;
159}
Definition: node.cpp:12
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define CloseHandle
Definition: compat.h:739
#define MAKE_HRESULT(sev, fac, code)
Definition: dmerror.h:30
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define FAILED(hr)
Definition: intsafe.h:51
int quality
Definition: jpeglib.h:992
_In_ PKSNODE_CREATE NodeCreate
Definition: ks.h:4546
KSDDKAPI DWORD NTAPI KsCreateTopologyNode(HANDLE ParentHandle, PKSNODE_CREATE NodeCreate, IN ACCESS_MASK DesiredAccess, OUT PHANDLE NodeHandle)
Definition: ksuser.c:240
#define L(x)
Definition: ntvdm.h:50
HRESULT hr
Definition: shlfolder.c:183
ULONG Node
Definition: ks.h:2094
ULONG CreateFlags
Definition: ks.h:2093
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Definition: wdfdevice.h:2658
#define OutputDebugString
Definition: winbase.h:3890
#define E_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354
#define SEVERITY_ERROR
Definition: winerror.h:65
#define FACILITY_WIN32
Definition: winerror.h:27

Referenced by CKsProxy::CreateNodeInstance().