aboutsummaryrefslogtreecommitdiffstats
path: root/setupapi/types_windows.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-02-06 22:30:14 +0100
committerSimon Rozman <simon@rozman.si>2019-02-06 22:30:14 +0100
commitcb2bc4b34c281cf6ba61fc9723244e591854cd8f (patch)
tree4dbe9647bbc56fcb8a9012dfbb8b77e94c198aa2 /setupapi/types_windows.go
parenttun_windows: Stop checking minimum size of received TUN packets (diff)
downloadwireguard-go-cb2bc4b34c281cf6ba61fc9723244e591854cd8f.tar.xz
wireguard-go-cb2bc4b34c281cf6ba61fc9723244e591854cd8f.zip
tun_windows: Introduce preliminary TUN interface creation
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'setupapi/types_windows.go')
-rw-r--r--setupapi/types_windows.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/setupapi/types_windows.go b/setupapi/types_windows.go
index db2f8ce..173c32b 100644
--- a/setupapi/types_windows.go
+++ b/setupapi/types_windows.go
@@ -300,6 +300,21 @@ const (
DICS_FLAG_CONFIGGENERAL DICS_FLAG = 0x00000004 // 1 or more hardware profile-specific changes to follow
)
+// DI_REMOVEDEVICE specifies the scope of the device removal
+type DI_REMOVEDEVICE uint32
+
+const (
+ DI_REMOVEDEVICE_GLOBAL DI_REMOVEDEVICE = 0x00000001 // Make this change in all hardware profiles. Remove information about the device from the registry.
+ DI_REMOVEDEVICE_CONFIGSPECIFIC DI_REMOVEDEVICE = 0x00000002 // Make this change to only the hardware profile specified by HwProfile. this flag only applies to root-enumerated devices. When Windows removes the device from the last hardware profile in which it was configured, Windows performs a global removal.
+)
+
+// SP_REMOVEDEVICE_PARAMS is a structure corresponding to a DIF_REMOVE install function.
+type SP_REMOVEDEVICE_PARAMS struct {
+ ClassInstallHeader SP_CLASSINSTALL_HEADER
+ Scope DI_REMOVEDEVICE
+ HwProfile uint32
+}
+
type SP_DRVINFO_DATA struct {
Size uint32
DriverType uint32