aboutsummaryrefslogtreecommitdiffstats
path: root/setupapi/types_windows.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-02-04 11:52:42 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-05 12:59:42 +0100
commitdd998ca86ac47869e2ff577b63b961e470a88c9b (patch)
treec7dea0ce9a708c77b6674bc359e479859a8ddde1 /setupapi/types_windows.go
parentAdd support for setupapi.setupDiCreateDeviceInfoListEx() (diff)
downloadwireguard-go-dd998ca86ac47869e2ff577b63b961e470a88c9b.tar.xz
wireguard-go-dd998ca86ac47869e2ff577b63b961e470a88c9b.zip
Add support for setupapi.SetupDiCreateDeviceInfo()
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'setupapi/types_windows.go')
-rw-r--r--setupapi/types_windows.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/setupapi/types_windows.go b/setupapi/types_windows.go
index e407f77..1ec910d 100644
--- a/setupapi/types_windows.go
+++ b/setupapi/types_windows.go
@@ -20,7 +20,15 @@ const (
CONFIGMG_VERSION = 0x0400
)
-// DIGCF flags controll what is included in the device information set built by SetupDiGetClassDevs
+// DICD flags control SetupDiCreateDeviceInfo
+type DICD uint32
+
+const (
+ DICD_GENERATE_ID DICD = 0x00000001
+ DICD_INHERIT_CLASSDRVS DICD = 0x00000002
+)
+
+// DIGCF flags control what is included in the device information set built by SetupDiGetClassDevs
type DIGCF uint32
const (