I installed on Windows 10, then I wanted to get ksproperty from the device by ibasefilter.
But I failed on BindtoObject function as https://learn.microsoft.com/en-us/windows/win32/directshow/selecting-a-capture-device
It worked on Windows 11.
hr = pMoniker->BindToStorage(0, 0, IID_PPV_ARGS(&pPropBag)); works
hr = pMoniker->BindToObject(0, 0, IID_IBaseFilter, (void**)&pCap); doesn’t work
IBaseFilter* pFilter(nullptr); // Receives a pointer to the filter.
// This is the right filter.
hr = pMoniker->BindToObject(pbc, 0, IID_IBaseFilter,
(void**)&pFilter);
if (SUCCEEDED(hr))
{
printf("BindToObject IID_IBaseFilter success\n");
}
else
{
printf("BindToObject IID_IBaseFilter fail 0x%x\n", hr);
}
I got
BindToObject IID_IBaseFilter fail 0x80070002
it works with another camera on the same computer
and failed on HLK test like below
OS: Windows 10 Pro
Version: 6.3.19045.00 AMD64
ERROR: No IBaseFilter filter on the device
Any help will be highly appreciated and looking forward your replys, thanks a lot.