diff options
author | zhubicen <zhubicen@gmail.com> | 2012-09-16 21:25:58 +0800 |
---|---|---|
committer | zhubicen <zhubicen@gmail.com> | 2012-09-16 21:25:58 +0800 |
commit | 9456be693d7d5525580e0de84c605a6b015f6f3b (patch) | |
tree | c5f72cd658ac32c660099a435d17b9884ff7bb5c /shobj_386.go | |
parent | remove the WM_USR message for logview (diff) | |
download | wireguard-windows-9456be693d7d5525580e0de84c605a6b015f6f3b.tar.xz wireguard-windows-9456be693d7d5525580e0de84c605a6b015f6f3b.zip |
go fmt runned
Diffstat (limited to 'shobj_386.go')
-rw-r--r-- | shobj_386.go | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/shobj_386.go b/shobj_386.go index e8d54037..447ea5ef 100644 --- a/shobj_386.go +++ b/shobj_386.go @@ -1,23 +1,22 @@ // Copyright 2012 The Walk Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-
-package winapi
-
-import (
- "unsafe"
- "syscall"
-)
-
-
-func (obj *ITaskbarList3) SetProgressValue(hwnd HWND, current uint32, length uint32) HRESULT{
- ret, _, _ := syscall.Syscall6(obj.LpVtbl.SetProgressValue, 6,
- uintptr(unsafe.Pointer(obj)),
- uintptr(hwnd),
- uintptr(current),
- 0,
- uintptr(length),
- 0)
-
- return HRESULT(ret)
-}
\ No newline at end of file + +package winapi + +import ( + "syscall" + "unsafe" +) + +func (obj *ITaskbarList3) SetProgressValue(hwnd HWND, current uint32, length uint32) HRESULT { + ret, _, _ := syscall.Syscall6(obj.LpVtbl.SetProgressValue, 6, + uintptr(unsafe.Pointer(obj)), + uintptr(hwnd), + uintptr(current), + 0, + uintptr(length), + 0) + + return HRESULT(ret) +} |