VideoDeviceIndex
Delphi
function VideoDeviceIndex (Value: string): LongInt;
C++Builder
System::LongInt __fastcall VideoDeviceIndex(System::UnicodeString Value);
C#
public int VideoDeviceIndex(string Value);
VB.NET
Public Function VideoDeviceIndex(Value As String) As Integer
C++/Qt
int VideoDeviceIndex (wchar_t *Value);
Retrieves the index of a given video device in the VideoDevices list. The function accepts wildcards. E.g.: VideoGrabber1.VideoDevice := VideoDeviceIndex ('Microsoft DV Camera and VCR (WDM)'); // selects the "Microsoft DV Camera and VCR (WDM)" video device. VideoGrabber1.VideoDevice := VideoDeviceIndex ('Microsoft DV Camera'); // selects the 1st video device that begins with "Microsoft DV Camera". VideoGrabber1.VideoDevice := VideoDeviceIndex ('DV Camera'); // selects the 1st video device that contains "DV Camera".