diff options
author | Simon Rozman <simon@rozman.si> | 2019-02-04 08:23:55 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-05 12:59:42 +0100 |
commit | 9635a0b3a69272aac998fad700344fac392d2adf (patch) | |
tree | d6ff68dea9ac416df4de0bae05ce936d94cdcea6 /setupapi/types_windows.go | |
parent | Stop checking for valid handle in DevInfo.Close() (diff) | |
download | wireguard-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.go | 11 |
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 |