summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2019-05-14 14:24:36 +0200
committerGitHub <noreply@github.com>2019-05-14 14:24:36 +0200
commit6f00d814e89c2442495334cdd91bb6ff3003eeb7 (patch)
tree36a901429dabcfd36314ee430f48850417baf68b
parentMerge pull request #77 from zx2c4-forks/jd/systememnu (diff)
parentshobj: expose overlay icon (diff)
downloadwireguard-windows-6f00d814e89c2442495334cdd91bb6ff3003eeb7.tar.xz
wireguard-windows-6f00d814e89c2442495334cdd91bb6ff3003eeb7.zip
Merge pull request #78 from zx2c4-forks/jd/shobj
shobj: expose overlay icon
-rw-r--r--shobj.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/shobj.go b/shobj.go
index b3aeefae..656e02d2 100644
--- a/shobj.go
+++ b/shobj.go
@@ -60,3 +60,14 @@ func (obj *ITaskbarList3) SetProgressState(hwnd HWND, state int) HRESULT {
uintptr(state))
return HRESULT(ret)
}
+
+func (obj *ITaskbarList3) SetOverlayIcon(hwnd HWND, icon HICON, description *uint16) HRESULT {
+ ret, _, _ := syscall.Syscall6(obj.LpVtbl.SetOverlayIcon, 4,
+ uintptr(unsafe.Pointer(obj)),
+ uintptr(hwnd),
+ uintptr(icon),
+ uintptr(unsafe.Pointer(description)),
+ 0,
+ 0)
+ return HRESULT(ret)
+}