mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-06 00:57:23 +08:00
Add support for setupapi.SetupDiEnumDeviceInfo()
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:

committed by
Jason A. Donenfeld

parent
25e18d01e6
commit
955d8dfe04
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user