-
Notifications
You must be signed in to change notification settings - Fork 3
/
IVirtualDesktopPinnedApps.ahk
59 lines (53 loc) · 1.13 KB
/
IVirtualDesktopPinnedApps.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
class IVirtualDesktopPinnedApps_19044 extends IUnknown {
static GUID := "{4CE81583-1E4C-4632-A621-07A53543148F}"
static Methods := [
"IsAppIdPinned",
"PinAppID",
"UnpinAppID",
"IsViewPinned",
"PinView",
"UnpinView",
]
IsAppIdPinned(appId) {
ret := 0
this._funcs["IsAppIdPinned"](
"Str", appId,
"Int*", &ret,
"HRESULT",
)
return ret > 0
}
PinAppID(appId) {
this._funcs["PinAppID"](
"Str", appId,
"HRESULT",
)
}
UnpinAppID(appId) {
this._funcs["UnpinAppID"](
"Str", appId,
"HRESULT",
)
}
IsViewPinned(view) {
ret := 0
this._funcs["IsViewPinned"](
"Ptr", view,
"Int*", &ret,
"HRESULT",
)
return ret > 0
}
PinView(view) {
this._funcs["PinView"](
"Ptr", view,
"HRESULT",
)
}
UnpinView(view) {
this._funcs["UnpinView"](
"Ptr", view,
"HRESULT",
)
}
}