diff options
author | zhubicen <zhubicen@gmail.com> | 2012-09-02 08:33:35 +0800 |
---|---|---|
committer | zhubicen <zhubicen@gmail.com> | 2012-09-02 08:33:35 +0800 |
commit | a723210afd8937427160fff61a1db4bb2ac3e761 (patch) | |
tree | 7b358e65d15783af7b5917f5282213be3dc1d097 /shobj_386.go | |
parent | SetProgressValue uses uint64 (diff) | |
download | wireguard-windows-a723210afd8937427160fff61a1db4bb2ac3e761.tar.xz wireguard-windows-a723210afd8937427160fff61a1db4bb2ac3e761.zip |
coditinal compilation for SetProgressValue on 386 and amd64. Thanks Alex help
Diffstat (limited to 'shobj_386.go')
-rw-r--r-- | shobj_386.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/shobj_386.go b/shobj_386.go new file mode 100644 index 00000000..e8d54037 --- /dev/null +++ b/shobj_386.go @@ -0,0 +1,23 @@ +// 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 |