ScnLib_GetWebcamDeviceCount()

ScnLib_GetWebcamDeviceCount()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) int __stdcall ScnLib_GetWebcamDeviceCount(void);
C# [DllImport("ScnLib.dll")] public static extern int ScnLib_GetWebcamDeviceCount();
Basic Public Declare Function ScnLib_GetWebcamDeviceCount Lib "ScnLib.dll" () As Int32
Delphi function ScnLib_GetWebcamDeviceCount(): Integer; stdcall; external 'ScnLib.dll';
  • Description
    Obtain the count of webcam devices currently connected to the system.

  • Parameters
    None.

  • Return Value
    The count of webcam devices currently connected to the system.

  • Remarks
    Use this function to obtain the count of webcam devices currently connected to the system. It's typically used for webcam device enumeration. After obtaining the count of webcam devices, you can loop through them using ScnLib_GetWebcamDeviceA/W(), starting from index 0 up to count - 1, to retrieve each device's name and ID sequentially.

  • See Also
    ScnLib_GetWebcamDeviceA/W()
    ScnLib_SelectWebcamDevice()
    ScnLib_GetSelectedWebcamDevice()

Try the SDK for FREE SDK APIs overview