diff options
author | Simon Rozman <simon@rozman.si> | 2019-02-01 11:51:39 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-05 12:59:42 +0100 |
commit | 25e18d01e66f4949ee64651177b2ade7199893c1 (patch) | |
tree | 65f1907103eabebe85d87cce0ff52273db23bf99 | |
parent | 45959c116aae4c81e0be7bec8ab21d2f715caddf (diff) |
Update exported types and functions annotations
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r-- | setupapi/types_windows.go | 4 |
1 files changed, 3 insertions, 1 deletions
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) |