mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-07 09:31:07 +08:00
setupapi: Introduce DevInfo methods for cleaner code
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:

committed by
Jason A. Donenfeld

parent
35f72239ac
commit
e7ffce0d21
@@ -31,11 +31,6 @@ type HSPFILEQ uintptr
|
||||
// DevInfo holds reference to device information set
|
||||
type DevInfo windows.Handle
|
||||
|
||||
// Close function deletes a device information set and frees all associated memory.
|
||||
func (h DevInfo) Close() error {
|
||||
return SetupDiDestroyDeviceInfoList(h)
|
||||
}
|
||||
|
||||
// SP_DEVINFO_DATA is a device information structure (references a device instance that is a member of a device information set)
|
||||
type SP_DEVINFO_DATA struct {
|
||||
Size uint32
|
||||
|
Reference in New Issue
Block a user