Public Method DeviceNameMatch

Compares two device path names. Used to find out if the device name of a recently attached or removed device matches the name of a device the application is communicating with.

Returns True if the names match, False if not.

Type Return

A Boolean Value

Syntax

Object.DeviceNameMatch ( m, DevicePathName)

The DeviceNameMatch Methods syntax has these parts:

Part Description
object An expression evaluating to an Object of type modWinUSB.
mRequired. A Message Value. A WM_DEVICECHANGE message. A call to RegisterDeviceNotification causes WM_DEVICECHANGE messages to be passed to an OnDeviceChange routine..
DevicePathNameRequired. A String Value. A device pathname returned by SetupDiGetDeviceInterfaceDetail in an SP_DEVICE_INTERFACE_DETAIL_DATA structure.