IWDFUsbTargetDevice::GetNumInterfaces method (wudfusb.h)

[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]

The GetNumInterfaces method retrieves the number of USB interfaces for the USB device.

Syntax

UCHAR GetNumInterfaces();

Return value

GetNumInterfaces returns the number of IWDFUsbInterface interfaces for the USB device in the default configuration. The default configuration is identified by index zero.

Remarks

UMDF USB I/O target devices do not support multiple configurations.

Examples

The following code example retrieves the number of USB interfaces for the USB device.

    UCHAR NumInterfaces = pIUsbTargetDevice->GetNumInterfaces();

Requirements

Requirement Value
End of support Unavailable in UMDF 2.0 and later.
Target Platform Desktop
Minimum UMDF version 1.5
Header wudfusb.h (include Wudfusb.h)
DLL WUDFx.dll

See also

IWDFUsbInterface

IWDFUsbTargetDevice