diflagex

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 (
	UseOldInfSearch              = 0x00000001 // DI_FLAGSEX_USEOLDINFSEARCH, OBSOLETE
	AutoSelectRank0              = 0x00000002 // DI_FLAGSEX_AUTOSELECTRANK0, OBSOLETE
	ClassInstallerFailed         = 0x00000004 // DI_FLAGSEX_CI_FAILED
	FinishInstallAction          = 0x00000008 // DI_FLAGSEX_FINISHINSTALL_ACTION
	DidInfoList                  = 0x00000010 // DI_FLAGSEX_DIDINFOLIST
	DidCompatInfo                = 0x00000020 // DI_FLAGSEX_DIDCOMPATINFO
	FilterClasses                = 0x00000040 // DI_FLAGSEX_FILTERCLASSES
	SetFailedInstall             = 0x00000080 // DI_FLAGSEX_SETFAILEDINSTALL
	DeviceChange                 = 0x00000100 // DI_FLAGSEX_DEVICECHANGE
	AlwaysWriteIDs               = 0x00000200 // DI_FLAGSEX_ALWAYSWRITEIDS
	PropertyChangePending        = 0x00000400 // DI_FLAGSEX_PROPCHANGE_PENDING
	AllowExcludedDrivers         = 0x00000800 // DI_FLAGSEX_ALLOWEXCLUDEDDRVS
	NoUserInterfaceOnQueryRemove = 0x00001000 // DI_FLAGSEX_NOUIONQUERYREMOVE
	UseClassForCompat            = 0x00002000 // DI_FLAGSEX_USECLASSFORCOMPAT
	OldInfInClassList            = 0x00004000 // DI_FLAGSEX_OLDINF_IN_CLASSLIST, OBSOLETE
	NoDriverRegistryModify       = 0x00008000 // DI_FLAGSEX_NO_DRVREG_MODIFY
	InSystemSetup                = 0x00010000 // DI_FLAGSEX_IN_SYSTEM_SETUP
	InetDriver                   = 0x00020000 // DI_FLAGSEX_INET_DRIVER
	AppendDriverList             = 0x00040000 // DI_FLAGSEX_APPENDDRIVERLIST
	PreInstallBackup             = 0x00080000 // DI_FLAGSEX_PREINSTALLBACKUP
	BackupOnReplace              = 0x00100000 // DI_FLAGSEX_BACKUPONREPLACE
	DriverListFromURL            = 0x00200000 // DI_FLAGSEX_DRIVERLIST_FROM_URL
	Reserved1                    = 0x00400000 // DI_FLAGSEX_RESERVED1
	ExcludeOldInetDrivers        = 0x00800000 // DI_FLAGSEX_EXCLUDE_OLD_INET_DRIVERS
	PowerPageAdded               = 0x01000000 // DI_FLAGSEX_POWERPAGE_ADDED
	FilterSimilarDrivers         = 0x02000000 // DI_FLAGSEX_FILTERSIMILARDRIVERS
	InstalledDriver              = 0x04000000 // DI_FLAGSEX_INSTALLEDDRIVER
	NoClassListNodeMerge         = 0x08000000 // DI_FLAGSEX_NO_CLASSLIST_NODE_MERGE
	AltPlatformDriverSearch      = 0x10000000 // DI_FLAGSEX_ALTPLATFORM_DRVSEARCH
	RestartDeviceOnly            = 0x20000000 // DI_FLAGSEX_RESTART_DEVICE_ONLY
	RecursiveSearch              = 0x40000000 // DI_FLAGSEX_RECURSIVESEARCH
	SearchPublishedInfs          = 0x80000000 // DI_FLAGSEX_SEARCH_PUBLISHED_INFS
)

Windows device installation and enumeration flags.

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

Variables

View Source
var FormatGo = Format{
	UseOldInfSearch:              "UseOldInfSearch",
	AutoSelectRank0:              "AutoSelectRank0",
	ClassInstallerFailed:         "ClassInstallerFailed",
	DidInfoList:                  "DIDInfoList",
	DidCompatInfo:                "DIDCompatInfo",
	FilterClasses:                "FilterClasses",
	SetFailedInstall:             "SetFailedInstall",
	DeviceChange:                 "DeviceChange",
	AlwaysWriteIDs:               "AlwaysWriteIDs",
	PropertyChangePending:        "PropertyChangePending",
	AllowExcludedDrivers:         "AllowExcludedDrivers",
	NoUserInterfaceOnQueryRemove: "NoUserInterfaceOnQueryRemove",
	UseClassForCompat:            "UseClassForCompat",
	OldInfInClassList:            "OldInfInClassList",
	NoDriverRegistryModify:       "NoDriverRegistryModify",
	InSystemSetup:                "InSystemSetup",
	InetDriver:                   "InetDriver",
	AppendDriverList:             "AppendDriverList",
	PreInstallBackup:             "PreInstallBackup",
	BackupOnReplace:              "BackupOnReplace",
	DriverListFromURL:            "DriverListFromURL",
	Reserved1:                    "Reserved1",
	ExcludeOldInetDrivers:        "ExcludeOldInetDrivers",
	PowerPageAdded:               "PowerPageAdded",
	FilterSimilarDrivers:         "FilterSimilarDrivers",
	InstalledDriver:              "InstalledDriver",
	NoClassListNodeMerge:         "NoClassListNodeMerge",
	AltPlatformDriverSearch:      "AltPlatformDriverSearch",
	RestartDeviceOnly:            "RestartDeviceOnly",
	RecursiveSearch:              "RecursiveSearch",
	SearchPublishedInfs:          "SearchPublishedInfs",
}

FormatGo maps values to Go-style constant strings.

Functions

This section is empty.

Types

type Format

type Format map[Value]string

Format maps extended flags to their string representations.

type Value

type Value uint32

Value holds a set of extended flags for device installation and enumeration.

func (Value) Join

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

Join returns a string representation of the extended 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 extended flags specified by c.

func (Value) String

func (v Value) String() string

String returns a string representation of the extended 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