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. |
m | Required. A Message Value. A WM_DEVICECHANGE message. A call to RegisterDeviceNotification causes WM_DEVICECHANGE messages to be passed to an OnDeviceChange routine.. |
DevicePathName | Required. A String Value. A device pathname returned by SetupDiGetDeviceInterfaceDetail in an SP_DEVICE_INTERFACE_DETAIL_DATA structure. |