IWDFUsbTargetDevice::GetNumInterfaces method

[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();

Parameters

This method has no parameters.

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

Target platform

Desktop

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.5

Header

Wudfusb.h (include Wudfusb.h)

DLL

WUDFx.dll

See also

IWDFUsbTargetDevice
IWDFUsbInterface

 

 

Send comments about this topic to Microsoft

Show: