installflag

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 (
	Force          = 0x00000001 // INSTALLFLAG_FORCE
	ReadOnly       = 0x00000002 // INSTALLFLAG_READONLY
	NonInteractive = 0x00000004 // INSTALLFLAG_NONINTERACTIVE
)

Windows device installation and update flags.

https://docs.microsoft.com/en-us/windows/desktop/api/newdev/nf-newdev-updatedriverforplugandplaydevicesw

Variables

View Source
var FormatGo = Format{
	Force:          "Force",
	ReadOnly:       "ReadOnly",
	NonInteractive: "NonInteractive",
}

FormatGo maps values to Go-style constant strings.

Functions

This section is empty.

Types

type Format

type Format map[Value]string

Format maps flags to their string representations.

type Value

type Value uint32

Value holds a set of flags for device installation and updating.

func (Value) Join

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

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

func (Value) Match

func (v Value) Match(c Value) bool

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

func (Value) String

func (v Value) 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