hwprofile

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 (
	Global         = 0x00000001 // DI_REMOVEDEVICE_GLOBAL, DICS_FLAG_GLOBAL
	ConfigSpecific = 0x00000002 // DI_REMOVEDEVICE_CONFIGSPECIFIC, DICS_FLAG_CONFIGSPECIFIC
	ConfigGeneral  = 0x00000004 // DICS_FLAG_CONFIGGENERAL
)

Windows hardware profile scope flags.

https://docs.microsoft.com/en-us/windows/desktop/api/setupapi/ns-setupapi-_sp_removedevice_params

Variables

View Source
var FormatGo = Format{
	Global:         "Global",
	ConfigSpecific: "ConfigSpecific",
	ConfigGeneral:  "ConfigGeneral",
}

FormatGo maps hardware profile scope flags to Go-style constant strings.

Functions

This section is empty.

Types

type Format

type Format map[Scope]string

Format maps hardware profile scope flags to their string representations.

type ID

type ID uint32

ID is a hardware profile ID.

type Scope

type Scope uint32

Scope hold a set of hardware profile scope flags.

func (Scope) Join

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

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

func (Scope) Match

func (v Scope) Match(c Scope) bool

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

func (Scope) String

func (v Scope) String() string

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

Jump to

Keyboard shortcuts

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