deviceid

package
v0.0.0-...-9f4f02d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 2 Imported by: 0

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

View Source
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

func (Device) Validate

func (id Device) Validate() error

Validate returns an error if the device ID is not valid.

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

func (Hardware) Validate

func (id Hardware) Validate() error

Validate returns an error if the hardware ID is not valid.

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

func (Instance) Validate

func (id Instance) Validate() error

Validate returns an error if the instance ID is not valid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL