Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 115 of file node.cpp.
Referenced by CKsProxy::CreateNodeInstance().
{ HRESULT hr; HANDLE handle; KSNODE_CREATE NodeCreate; #ifdef KSPROXY_TRACE OutputDebugStringW(L"CKsNode_Constructor\n"); #endif //setup request NodeCreate.CreateFlags = 0; NodeCreate.Node = NodeId; hr = KsCreateTopologyNode(ParentHandle, &NodeCreate, DesiredAccess, &handle); if (hr != NOERROR) { OutputDebugString("CKsNode_Constructor failed to open device\n"); return MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, hr); } CKsNode * quality = new CKsNode(pUnkOuter, handle); if (!quality) { // free clock handle CloseHandle(handle); return E_OUTOFMEMORY; } if (FAILED(quality->QueryInterface(riid, ppv))) { /* not supported */ delete quality; return E_NOINTERFACE; } return NOERROR; }