aboutsummaryrefslogtreecommitdiffstats
path: root/setupapi/types_windows.go
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-02-01 12:17:09 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-05 12:59:42 +0100
commit955d8dfe04fa87d265bb1ccb671db05a323eb86f (patch)
treea85f87d2524c9d2491877be6d57418dc8682f161 /setupapi/types_windows.go
parentUpdate exported types and functions annotations (diff)
downloadwireguard-go-955d8dfe04fa87d265bb1ccb671db05a323eb86f.tar.xz
wireguard-go-955d8dfe04fa87d265bb1ccb671db05a323eb86f.zip
Add support for setupapi.SetupDiEnumDeviceInfo()
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'setupapi/types_windows.go')
-rw-r--r--setupapi/types_windows.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/setupapi/types_windows.go b/setupapi/types_windows.go
index a5bda6d..e94d112 100644
--- a/setupapi/types_windows.go
+++ b/setupapi/types_windows.go
@@ -37,8 +37,7 @@ const (
SP_MAX_MACHINENAME_LENGTH = windows.MAX_PATH + 3
)
-// SP_DEVINFO_LIST_DETAIL_DATA is a structure for detailed information on a device information set (used for SetupDiGetDeviceInfoListDetail which supercedes the functionality of SetupDiGetDeviceInfoListClass).
-type SP_DEVINFO_LIST_DETAIL_DATA struct {
+type _SP_DEVINFO_LIST_DETAIL_DATA struct {
Size uint32
ClassGUID windows.GUID
RemoteMachineHandle windows.Handle
@@ -51,3 +50,16 @@ type DevInfoListDetailData struct {
RemoteMachineHandle windows.Handle
RemoteMachineName string
}
+
+type _SP_DEVINFO_DATA struct {
+ Size uint32
+ ClassGUID windows.GUID
+ DevInst uint32 // DEVINST handle
+ _ uintptr
+}
+
+// DevInfoData is a device information structure (references a device instance that is a member of a device information set)
+type DevInfoData struct {
+ ClassGUID windows.GUID
+ DevInst uint32 // DEVINST handle
+}