枚举已安装的捕获驱动程序
以下示例使用 capGetDriverDescription 函数获取已安装捕获驱动程序的名称和版本。
char szDeviceName[80];
char szDeviceVersion[80];
for (wIndex = 0; wIndex < 10; wIndex++)
{
if (capGetDriverDescription(
wIndex,
szDeviceName,
sizeof (szDeviceName),
szDeviceVersion,
sizeof (szDeviceVersion)
))
{
// Append name to list of installed capture drivers
// and then let the user select a driver to use.
}
}
相关主题