diff options
author | Simon Rozman <simon@rozman.si> | 2019-02-05 08:45:44 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-05 12:59:42 +0100 |
commit | e7ffce0d21ee87f36a86d854fed5a6d18d9fa4bf (patch) | |
tree | d45f06b896f1c9e2215fd239a14f57b633641181 /setupapi/types_windows.go | |
parent | Add support for setupapi.SetupDi(Get|Set)SelectedDevice() (diff) | |
download | wireguard-go-e7ffce0d21ee87f36a86d854fed5a6d18d9fa4bf.tar.xz wireguard-go-e7ffce0d21ee87f36a86d854fed5a6d18d9fa4bf.zip |
setupapi: Introduce DevInfo methods for cleaner code
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r-- | setupapi/types_windows.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/setupapi/types_windows.go b/setupapi/types_windows.go index ef23614..83a4753 100644 --- a/setupapi/types_windows.go +++ b/setupapi/types_windows.go @@ -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 |