次の方法で共有


インストールされているキャプチャ ドライバーの列挙

次の例では、 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.
    }
} 

ビデオ キャプチャの使用