Add support for setupapi.SetupDiEnumDeviceInfo()
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
25e18d01e6
commit
955d8dfe04
4 changed files with 83 additions and 18 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue