Add support for setupapi.SetupDiClassNameFromGuid()

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman
2019-02-04 08:23:55 +01:00
committed by Jason A. Donenfeld
parent 90b6938ca0
commit 9635a0b3a6
4 changed files with 57 additions and 0 deletions

View File

@@ -9,6 +9,17 @@ import (
"golang.org/x/sys/windows"
)
const (
MAX_DEVICE_ID_LEN = 200
MAX_DEVNODE_ID_LEN = MAX_DEVICE_ID_LEN
MAX_GUID_STRING_LEN = 39 // 38 chars + terminator null
MAX_CLASS_NAME_LEN = 32
MAX_PROFILE_LEN = 80
MAX_CONFIG_VALUE = 9999
MAX_INSTANCE_VALUE = 9999
CONFIGMG_VERSION = 0x0400
)
// DIGCF flags controll what is included in the device information set built by SetupDiGetClassDevs
type DIGCF uint32