From 25e18d01e66f4949ee64651177b2ade7199893c1 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 1 Feb 2019 11:51:39 +0100 Subject: [PATCH] Update exported types and functions annotations Signed-off-by: Simon Rozman --- setupapi/types_windows.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setupapi/types_windows.go b/setupapi/types_windows.go index bf7d67b..a5bda6d 100644 --- a/setupapi/types_windows.go +++ b/setupapi/types_windows.go @@ -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)