Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 92 of file controlnode.cpp.
Referenced by CBDADeviceControl::GetControlNode().
{ WCHAR Buffer[100]; HRESULT hr; IPin * pPin = NULL; IKsPropertySet * pProperty; // store pin id swprintf(Buffer, L"%u", PinId); // try find target pin hr = pFilter->FindPin(Buffer, &pPin); if (FAILED(hr)) { #ifdef BDAPLGIN_TRACE swprintf(Buffer, L"CControlNode_fnConstructor failed find pin %lu with %lx\n", PinId, hr); OutputDebugStringW(Buffer); #endif return hr; } // query for IKsPropertySet interface hr = pPin->QueryInterface(IID_IKsPropertySet, (void**)&pProperty); if (FAILED(hr)) return hr; #ifdef BDAPLGIN_TRACE swprintf(Buffer, L"CControlNode_fnConstructor get IID_IKsObject status %lx\n", hr); OutputDebugStringW(Buffer); #endif // release IPin interface pPin->Release(); // construct device control CControlNode * handler = new CControlNode(pProperty, NodeType, PinId); #ifdef BDAPLGIN_TRACE OutputDebugStringW(L"CControlNode_fnConstructor\n"); #endif if (!handler) return E_OUTOFMEMORY; if (FAILED(handler->QueryInterface(riid, ppv))) { /* not supported */ delete handler; return E_NOINTERFACE; } return NOERROR; }