-
-
Notifications
You must be signed in to change notification settings - Fork 457
Expand file tree
/
Copy pathTaskbarLib.idl
More file actions
133 lines (109 loc) · 2.61 KB
/
TaskbarLib.idl
File metadata and controls
133 lines (109 loc) · 2.61 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[
uuid(683BF642-E9CA-4124-BE43-67065B2FA653),
version(1.0),
]
library TaskbarLib
{
[
uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
object,
]
interface ITaskbarList : IUnknown
{
HRESULT _stdcall HrInit();
HRESULT _stdcall AddTab([in] long hwnd);
HRESULT _stdcall DeleteTab([in] long hwnd);
HRESULT _stdcall ActivateTab([in] long hwnd);
HRESULT _stdcall SetActivateAlt([in] long hwnd);
};
[
uuid(602D4995-B13A-429b-A66E-1935E44F4317),
object,
]
interface ITaskbarList2 : ITaskbarList
{
HRESULT MarkFullscreenWindow(
[in] long hwnd,
[in] BOOL fFullscreen);
}
cpp_quote("#ifdef MIDL_PASS")
typedef IUnknown* HIMAGELIST;
typedef IUNknown* HICON;
cpp_quote("#endif")
cpp_quote("#include <pshpack8.h>")
typedef struct tagTHUMBBUTTON
{
DWORD dwMask;
UINT iId;
UINT iBitmap;
HICON hIcon;
WCHAR szTip[260];
DWORD dwFlags;
} THUMBBUTTON, *LPTHUMBBUTTON;
cpp_quote("#include <poppack.h>")
[
uuid(ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf),
object,
]
interface ITaskbarList3 : ITaskbarList2
{
// Flags for Setting Taskbar Progress state
typedef [v1_enum] enum TBPFLAG
{
TBPF_NOPROGRESS = 0x00000000,
TBPF_INDETERMINATE = 0x00000001,
TBPF_NORMAL = 0x00000002,
TBPF_ERROR = 0x00000004,
TBPF_PAUSED = 0x00000008,
} TBPFLAG;
cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(TBPFLAG)")
// Flags for SetTabActive
typedef [v1_enum] enum TBATFLAG
{
TBATF_USEMDITHUMBNAIL = 0x00000001,
TBATF_USEMDILIVEPREVIEW = 0x00000002,
} TBATFLAG;
cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(TBATFLAG)")
HRESULT SetProgressValue(
[in] long hwnd,
[in] ULONGLONG ullCompleted,
[in] ULONGLONG ullTotal);
HRESULT SetProgressState(
[in] long hwnd,
[in] TBPFLAG tbpFlags);
HRESULT RegisterTab(
[in] long hwndTab,
[in] HWND hwndMDI);
HRESULT UnregisterTab(
[in] long hwndTab);
HRESULT SetTabOrder(
[in] long hwndTab,
[in] long hwndInsertBefore);
HRESULT SetTabActive(
[in] long hwndTab,
[in] long hwndMDI,
[in] TBATFLAG tbatFlags);
HRESULT ThumbBarAddButtons(
[in] long hwnd,
[in] UINT cButtons,
[in, size_is(cButtons)] LPTHUMBBUTTON pButton);
HRESULT ThumbBarUpdateButtons(
[in] long hwnd,
[in] UINT cButtons,
[in, size_is(cButtons)] LPTHUMBBUTTON pButton);
HRESULT ThumbBarSetImageList(
[in] long hwnd,
[in] HIMAGELIST himl);
HRESULT SetOverlayIcon(
[in] long hwnd,
[in] HICON hIcon,
[in, string] LPCWSTR pszDescription);
HRESULT SetThumbnailTooltip(
[in] long hwnd,
[in, string] LPCWSTR pszTip);
HRESULT SetThumbnailClip(
[in] long hwnd,
[in] RECT *prcClip);
}
[ uuid(56FDF344-FD6D-11d0-958A-006097C9A090) ] coclass TaskbarList { interface ITaskbarList3; }
};