summaryrefslogtreecommitdiffstatshomepage
path: root/shobj_386.go
diff options
context:
space:
mode:
authorzhubicen <zhubicen@gmail.com>2012-09-02 08:33:35 +0800
committerzhubicen <zhubicen@gmail.com>2012-09-02 08:33:35 +0800
commita723210afd8937427160fff61a1db4bb2ac3e761 (patch)
tree7b358e65d15783af7b5917f5282213be3dc1d097 /shobj_386.go
parentSetProgressValue uses uint64 (diff)
downloadwireguard-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.go23
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