aboutsummaryrefslogtreecommitdiffstats
path: root/setupapi/types_windows.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-02-04 08:23:55 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-05 12:59:42 +0100
commit9635a0b3a69272aac998fad700344fac392d2adf (patch)
treed6ff68dea9ac416df4de0bae05ce936d94cdcea6 /setupapi/types_windows.go
parentStop checking for valid handle in DevInfo.Close() (diff)
downloadwireguard-go-9635a0b3a69272aac998fad700344fac392d2adf.tar.xz
wireguard-go-9635a0b3a69272aac998fad700344fac392d2adf.zip
Add support for setupapi.SetupDiClassNameFromGuid()
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'setupapi/types_windows.go')
-rw-r--r--setupapi/types_windows.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/setupapi/types_windows.go b/setupapi/types_windows.go
index bc6f66b..fa47a5a 100644
--- a/setupapi/types_windows.go
+++ b/setupapi/types_windows.go
@@ -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