47 stream_id,
void** ctrl )
49 Usgfw2Lib::IUsgControl* ctrl2;
51 if (data_view == NULL)
return false;
52 data_view->GetControlObj( (GUID*)(&type_id), scan_mode, stream_id, &ctrl2 );
56 hr = ctrl2->QueryInterface( type_id, (
void**)ctrl );
57 if (hr != S_OK) *ctrl = NULL;
67 std::wstring tmp(input);
70 std::string output(tmp.begin(), tmp.end());
std::string ConvertWcharToString(const BSTR input)
bool CreateUsgControl(Usgfw2Lib::IUsgDataView *dataView, const IID &typeId, ULONG scanMode, ULONG streamId, void **ctrl)