anybody know how can enumerate Device Inputs without connecting device
DsDevice MyVideoDevice = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice);
this list only VideoDevice Names. but i need to know input from VideoDevice
Not sure what you mean by "without connecting device." If you mean the device isn't connected to the computer, then you probably can't do that.
device is already connected to PC. enumerate Inputs (crosbar) details without Intialzing hardware
You can enumerate devices using the Setup API, but this is the API used by the DS's "System Device Enumerator" (used by the DS.NET's DsDevice) :
The medium details are stored in the registry but I don't know where. You could try to read the Windows DDK (or WDK or what ever it is called today) to find that (assuming that its documented...). Documentation about KsProxy seam a good start to search... Considering how complicated it is and how random is the potential result, I don't know if it's a good idea to explore that...
The other possible way is to relay on the IKsPropertySet interface. But to use it, you must allocate a device instance and you sayed you don't want that.
You could look at pin information in the FilterData:
...but I don't know if it will tell you enough. Is it not possible to initialise the hardware first time it is detected and store the input information in a file, database etc.
And what's the downside to creating an instance of the filter and querying it? I don't believe the device is "in use" until the graph is actually running.
I think instancing additional instances of filters can disrupt. This is a driver dependent behaviour though. In my experience most drivers don't have a problem with it.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.