devicecreation

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenerateID          = 0x00000001 // DICD_GENERATE_ID
	InheritClassDrivers = 0x00000002 // DICD_INHERIT_CLASSDRVS
)

Windows device creation flags.

https://docs.microsoft.com/en-us/windows/desktop/api/setupapi/nf-setupapi-setupdicreatedeviceinfow

Variables

View Source
var FormatGo = Format{
	GenerateID:          "GenerateID",
	InheritClassDrivers: "InheritClassDrivers",
}

FormatGo maps flags to Go-style constant strings.

Functions

This section is empty.

Types

type Flags

type Flags uint32

Flags hold a set of device creation flags.

func (Flags) Join

func (v Flags) Join(sep string, format Format) string

Join returns a string representation of the flags using the given separator and format.

func (Flags) Match

func (v Flags) Match(c Flags) bool

Match returns true if v contains all of the flags specified by c.

func (Flags) String

func (v Flags) String() string

String returns a string representation of the flags using a default separator and format.

type Format

type Format map[Flags]string

Format maps flags to their string representations.

Jump to

Keyboard shortcuts

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