Does anyone know of a way to pragmatically identify the number of DVI ports on a graphics card? I'm developing with C++ under Windows. Using GDI and DirectX is not a problem if that is what is necessary.

I know I can get the number of output ports by checking DirectX caps but it doesn't distinguish between VGA, DVI or other ports while I need to specifically count the number of DVI ports.

Also I am constrained to the WinXP display driver model so I can't use structures like D3DKMDT_VIDEO_OUTPUT_TECHNOLOGY that I think are available only under Windows Vista.

Thanks in advance!