add dvb channels list .conf as filetype.
[vlc/solaris.git] / include / vlc_windows_interfaces.h
blob1f0a60adf3cdb1fb121ec1659359858a60e39ad2
1 /*****************************************************************************
2 * vlc_windows_interfaces.h : Vista/7 helpers
3 ****************************************************************************
5 * Copyright (C) 2009-2010 VideoLAN
7 * Authors: Geoffroy Couprie <geal@videolan.org>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef VISTAASSOC_H
25 #define VISTAASSOC_H
27 #include <commctrl.h>
29 #ifndef STDCALL
30 #define STDCALL
31 #endif
33 #define CLSCTX_INPROC_SERVER 1
34 typedef GUID IID;
36 #ifndef _REFIID_DEFINED
37 # ifdef __cplusplus
38 # define REFIID const IID&
39 # else
40 # define REFIID const IID* const
41 # endif
42 #endif
44 const GUID clsid_IApplication2 = { 0x1968106d,0xf3b5,0x44cf,{0x89,0x0e,0x11,0x6f,0xcb,0x9e,0xce,0xf1}};
45 const GUID IID_IApplicationAssociationRegistrationUI = {0x1f76a169,0xf994,0x40ac, {0x8f,0xc8,0x09,0x59,0xe8,0x87,0x47,0x10}};
47 const GUID clsid_ITaskbarList ={ 0x56FDF344,0xFD6D,0x11d0,{0x95,0x8A,0x00,0x60,0x97,0xC9,0xA0,0x90}};
48 const GUID IID_ITaskbarList3 = { 0xea1afb91,0x9e28,0x4b86,{0x90,0xe9,0x9e,0x9f,0x8a,0x5e,0xef,0xaf}};
49 #ifndef __IUnknown_INTERFACE_DEFINED__
50 #undef IUnknown
51 typedef struct _IUnknown IUnknown;
52 #endif
53 typedef struct _IApplicationAssociationRegistrationUI IApplicationAssociationRegistrationUI;
54 typedef struct _ITaskbarList3 ITaskbarList3;
56 typedef struct IUnknown_vt
58 long (STDCALL *QueryInterface)(IUnknown *This, const GUID *riid,
59 void **ppvObject);
60 long (STDCALL *AddRef)(IUnknown *This);
61 long (STDCALL *Release)(IUnknown *This);
63 } IUnknown_vt;
64 struct _IUnknown { IUnknown_vt* vt; };
65 #ifndef __IUnknown_INTERFACE_DEFINED__
66 typedef IUnknown *LPUNKNOWN;
67 #endif
68 typedef struct IApplicationAssociationRegistrationUI_vt
70 /* IUnknown methods */
71 long (STDCALL *QueryInterface)(IUnknown *This, const GUID *riid,
72 void **ppvObject);
73 long (STDCALL *AddRef)(IUnknown *This);
74 long (STDCALL *Release)(IUnknown *This);
75 long (STDCALL *LaunchAdvancedAssociationUI)(IApplicationAssociationRegistrationUI *This, LPCWSTR app);
76 } IApplicationAssociationRegistrationUI_vt;
77 struct _IApplicationAssociationRegistrationUI { IApplicationAssociationRegistrationUI_vt* vt; };
78 typedef IApplicationAssociationRegistrationUI *LPAPPASSOCREGUI, *PAPPASSOCREGUI;
80 typedef enum TBPFLAG
82 TBPF_NOPROGRESS = 0,
83 TBPF_INDETERMINATE = 0x1,
84 TBPF_NORMAL = 0x2,
85 TBPF_ERROR = 0x4,
86 TBPF_PAUSED = 0x8
87 } TBPFLAG;
89 typedef enum TBATFLAG
91 TBATF_USEMDITHUMBNAIL = 0x1,
92 TBATF_USEMDILIVEPREVIEW = 0x2
93 } TBATFLAG;
95 typedef struct tagTHUMBBUTTON
97 DWORD dwMask;
98 UINT iId;
99 UINT iBitmap;
100 HICON hIcon;
101 // WCHAR pszTip[ 260 ];
102 wchar_t pszTip[ 260 ];
103 DWORD dwFlags;
104 } THUMBBUTTON;
106 typedef struct tagTHUMBBUTTON *LPTHUMBBUTTON;
108 // THUMBBUTTON flags
109 #define THBF_ENABLED 0x0000
110 #define THBF_DISABLED 0x0001
111 #define THBF_DISMISSONCLICK 0x0002
112 #define THBF_NOBACKGROUND 0x0004
113 #define THBF_HIDDEN 0x0008
115 // THUMBBUTTON mask
116 #define THB_BITMAP 0x0001
117 #define THB_ICON 0x0002
118 #define THB_TOOLTIP 0x0004
119 #define THB_FLAGS 0x0008
120 #define THBN_CLICKED 0x1800
122 typedef struct ITaskbarList3Vtbl
125 long ( STDCALL *QueryInterface )(ITaskbarList3 * This, REFIID riid, void **ppvObject);
127 long ( STDCALL *AddRef )( ITaskbarList3 * This);
129 long ( STDCALL *Release )( ITaskbarList3 * This);
131 long ( STDCALL *HrInit )( ITaskbarList3 * This);
133 long ( STDCALL *AddTab )( ITaskbarList3 * This, HWND hwnd);
135 long ( STDCALL *DeleteTab )( ITaskbarList3 * This, HWND hwnd);
137 long ( STDCALL *ActivateTab )( ITaskbarList3 * This, HWND hwnd);
139 long ( STDCALL *SetActiveAlt )( ITaskbarList3 * This, HWND hwnd);
141 long ( STDCALL *MarkFullscreenWindow )( ITaskbarList3 * This, HWND hwnd,
142 BOOL fFullscreen);
144 long ( STDCALL *SetProgressValue )( ITaskbarList3 * This, HWND hwnd,
145 ULONGLONG ullCompleted, ULONGLONG ullTotal);
147 long ( STDCALL *SetProgressState )( ITaskbarList3 * This, HWND hwnd,
148 TBPFLAG tbpFlags);
150 long ( STDCALL *RegisterTab )( ITaskbarList3 * This, HWND hwndTab, HWND hwndMDI);
152 long ( STDCALL *UnregisterTab )( ITaskbarList3 * This, HWND hwndTab);
154 long ( STDCALL *SetTabOrder )( ITaskbarList3 * This, HWND hwndTab,
155 HWND hwndInsertBefore);
157 long ( STDCALL *SetTabActive )( ITaskbarList3 * This, HWND hwndTab,
158 HWND hwndMDI, TBATFLAG tbatFlags);
160 long ( STDCALL *ThumbBarAddButtons )( ITaskbarList3 * This, HWND hwnd,
161 UINT cButtons, LPTHUMBBUTTON pButton);
163 long ( STDCALL *ThumbBarUpdateButtons )( ITaskbarList3 * This, HWND hwnd,
164 UINT cButtons, LPTHUMBBUTTON pButton);
166 long ( STDCALL *ThumbBarSetImageList )( ITaskbarList3 * This, HWND hwnd,
167 HIMAGELIST himl);
169 long ( STDCALL *SetOverlayIcon )( ITaskbarList3 * This, HWND hwnd,
170 HICON hIcon, LPCWSTR pszDescription);
172 long ( STDCALL *SetThumbnailTooltip )( ITaskbarList3 * This, HWND hwnd,
173 LPCWSTR pszTip);
175 long ( STDCALL *SetThumbnailClip )( ITaskbarList3 * This, HWND hwnd,
176 RECT *prcClip);
178 } ITaskbarList3Vtbl;
180 struct _ITaskbarList3 { ITaskbarList3Vtbl* vt; };
181 typedef ITaskbarList3 *LPTASKBARLIST3, *PTASKBARLIST3;
184 #ifdef __cplusplus
185 extern "C" {
186 #endif
187 HRESULT WINAPI CoCreateInstance(const GUID *,LPUNKNOWN,DWORD,REFIID,PVOID*);
188 HRESULT WINAPI CoInitialize(PVOID);
189 void WINAPI CoUninitialize(void);
190 #ifdef __cplusplus
192 #endif
194 #endif //VISTAASSOC_H