Can I get the camera device list using SetupDiGetClassDevs?

Dear Sirs,
Can I get the camera device list using the function SetupDiGetClassDevs?What are the parameters?(I try to do this, but it failed.So I hope for your help.)
Thank you for your reading and answering.

xxxxx@gmail.com wrote:

Can I get the camera device list using the function SetupDiGetClassDevs?What are the parameters?(I try to do this, but it failed.So I hope for your help.)

There are many examples of this on the web. It’s not hard, although
there is a lot of code. In addition, there is even a utility function
provided for you that handles this whole thing in dshowutil.cpp in
DirectShow, which is part of the Platform SDK. If you will be working
with cameras, you will certainly want to be using DirectShow.

If you really can’t find this out on your own, post the code you have
and we will take a look.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.