diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-05-14 14:24:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 14:24:36 +0200 |
commit | 6f00d814e89c2442495334cdd91bb6ff3003eeb7 (patch) | |
tree | 36a901429dabcfd36314ee430f48850417baf68b | |
parent | Merge pull request #77 from zx2c4-forks/jd/systememnu (diff) | |
parent | shobj: expose overlay icon (diff) | |
download | wireguard-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.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) +} |