Update exported types and functions annotations

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2019-02-01 11:51:39 +01:00 committed by Jason A. Donenfeld
parent 45959c116a
commit 25e18d01e6

View File

@ -9,6 +9,7 @@ import (
"golang.org/x/sys/windows"
)
// DIGCF flags controll what is included in the device information set built by SetupDiGetClassDevs
type DIGCF uint32
const (
@ -19,9 +20,10 @@ const (
DIGCF_DEVICEINTERFACE DIGCF = 0x00000010
)
// DevInfo holds reference to device information set
type DevInfo windows.Handle
// SetupDiDestroyDeviceInfoList function deletes a device information set and frees all associated memory.
// Close function deletes a device information set and frees all associated memory.
func (h DevInfo) Close() error {
if h != DevInfo(windows.InvalidHandle) {
return SetupDiDestroyDeviceInfoList(h)