Documentation ¶
Overview ¶
Package deviceid defines various kinds of device identification strings used by the windows device and driver system.
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/device-identification-strings
Index ¶
Constants ¶
const ( // MaxLength is the maximum length of device, instance, device instance, // hardware and compatibility identifiers, excluding a null terminator. MaxLength = 200 // MAX_DEVICE_ID_LEN )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compatible ¶
type Compatible string
Compatible is a device compatibility identifier. It has the same format and role as a hardware identifier, but is only used if a hardware ID match fails. A device can have more than one compatible ID.
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/compatible-ids
func (Compatible) Validate ¶
func (id Compatible) Validate() error
Validate returns an error if the compatible ID is not valid.
type Device ¶
type Device string
Device is a device identifier. It is assigned by a device enumerator to a device.
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/device-ids
type DeviceInstance ¶
type DeviceInstance string
DeviceInstance is a device instance identifier. It is assigned by the operating system to device nodes and is unique to the node. It is formed by combining a device identifier with an instance identifier.
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/device-instance-ids
func (DeviceInstance) Validate ¶
func (id DeviceInstance) Validate() error
Validate returns an error if the device instance ID is not valid.
type Hardware ¶
type Hardware string
Hardware is a hardware identifier. It is used to match devices to setup information files. A device can have more than one hardware ID.
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/hardware-ids
type Instance ¶
type Instance string
Instance is an instance identifier. It is used distinguish multiple instances a device.
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/instance-ids