X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_windows_interfaces.h;h=7e7e791656049d24af2b9f10dbd484ab420fc123;hb=12ade3e3bc975d5426ba4af155b7372c31093b31;hp=83506908072f7c2d66d0b4ad7c1484d0642866c6;hpb=cbec8dca91a729761e434e8141e1ccab5be85166;p=vlc diff --git a/include/vlc_windows_interfaces.h b/include/vlc_windows_interfaces.h index 8350690807..7e7e791656 100644 --- a/include/vlc_windows_interfaces.h +++ b/include/vlc_windows_interfaces.h @@ -1,8 +1,8 @@ /***************************************************************************** - * vistaext.h : "Vista file associations support" + * vlc_windows_interfaces.h : Vista/7 helpers **************************************************************************** - * Copyright (C) 2009 the VideoLAN team - * $Id$ + * + * Copyright (C) 2009-2010 VideoLAN * * Authors: Geoffroy Couprie * @@ -35,8 +35,10 @@ const GUID IID_IApplicationAssociationRegistrationUI = {0x1f76a169,0xf994,0x40ac const GUID clsid_ITaskbarList ={ 0x56FDF344,0xFD6D,0x11d0,{0x95,0x8A,0x00,0x60,0x97,0xC9,0xA0,0x90}}; const GUID IID_ITaskbarList3 = { 0xea1afb91,0x9e28,0x4b86,{0x90,0xe9,0x9e,0x9f,0x8a,0x5e,0xef,0xaf}}; +#ifndef __IUnknown_INTERFACE_DEFINED__ #undef IUnknown typedef struct _IUnknown IUnknown; +#endif typedef struct _IApplicationAssociationRegistrationUI IApplicationAssociationRegistrationUI; typedef struct _ITaskbarList3 ITaskbarList3; @@ -49,8 +51,9 @@ typedef struct IUnknown_vt } IUnknown_vt; struct _IUnknown { IUnknown_vt* vt; }; +#ifndef __IUnknown_INTERFACE_DEFINED__ typedef IUnknown *LPUNKNOWN; - +#endif typedef struct IApplicationAssociationRegistrationUI_vt { /* IUnknown methods */ @@ -64,30 +67,30 @@ struct _IApplicationAssociationRegistrationUI { IApplicationAssociationRegistrat typedef IApplicationAssociationRegistrationUI *LPAPPASSOCREGUI, *PAPPASSOCREGUI; typedef enum TBPFLAG -{ - TBPF_NOPROGRESS = 0, - TBPF_INDETERMINATE = 0x1, - TBPF_NORMAL = 0x2, - TBPF_ERROR = 0x4, - TBPF_PAUSED = 0x8 -} TBPFLAG; +{ + TBPF_NOPROGRESS = 0, + TBPF_INDETERMINATE = 0x1, + TBPF_NORMAL = 0x2, + TBPF_ERROR = 0x4, + TBPF_PAUSED = 0x8 +} TBPFLAG; typedef enum TBATFLAG -{ - TBATF_USEMDITHUMBNAIL = 0x1, - TBATF_USEMDILIVEPREVIEW = 0x2 -} TBATFLAG; +{ + TBATF_USEMDITHUMBNAIL = 0x1, + TBATF_USEMDILIVEPREVIEW = 0x2 +} TBATFLAG; typedef struct tagTHUMBBUTTON - { +{ DWORD dwMask; UINT iId; UINT iBitmap; HICON hIcon; -// WCHAR pszTip[ 260 ]; + // WCHAR pszTip[ 260 ]; wchar_t pszTip[ 260 ]; DWORD dwFlags; - } THUMBBUTTON; +} THUMBBUTTON; typedef struct tagTHUMBBUTTON *LPTHUMBBUTTON; @@ -97,6 +100,7 @@ typedef struct tagTHUMBBUTTON *LPTHUMBBUTTON; #define THBF_DISMISSONCLICK 0x0002 #define THBF_NOBACKGROUND 0x0004 #define THBF_HIDDEN 0x0008 + // THUMBBUTTON mask #define THB_BITMAP 0x0001 #define THB_ICON 0x0002 @@ -106,57 +110,57 @@ typedef struct tagTHUMBBUTTON *LPTHUMBBUTTON; typedef struct ITaskbarList3Vtbl { - + long ( STDCALL *QueryInterface )(ITaskbarList3 * This, REFIID riid, void **ppvObject); - + long ( STDCALL *AddRef )( ITaskbarList3 * This); - + long ( STDCALL *Release )( ITaskbarList3 * This); - + long ( STDCALL *HrInit )( ITaskbarList3 * This); - + long ( STDCALL *AddTab )( ITaskbarList3 * This, HWND hwnd); - + long ( STDCALL *DeleteTab )( ITaskbarList3 * This, HWND hwnd); - + long ( STDCALL *ActivateTab )( ITaskbarList3 * This, HWND hwnd); - + long ( STDCALL *SetActiveAlt )( ITaskbarList3 * This, HWND hwnd); - + long ( STDCALL *MarkFullscreenWindow )( ITaskbarList3 * This, HWND hwnd, BOOL fFullscreen); - + long ( STDCALL *SetProgressValue )( ITaskbarList3 * This, HWND hwnd, ULONGLONG ullCompleted, ULONGLONG ullTotal); - + long ( STDCALL *SetProgressState )( ITaskbarList3 * This, HWND hwnd, TBPFLAG tbpFlags); - + long ( STDCALL *RegisterTab )( ITaskbarList3 * This, HWND hwndTab, HWND hwndMDI); - + long ( STDCALL *UnregisterTab )( ITaskbarList3 * This, HWND hwndTab); - + long ( STDCALL *SetTabOrder )( ITaskbarList3 * This, HWND hwndTab, HWND hwndInsertBefore); - + long ( STDCALL *SetTabActive )( ITaskbarList3 * This, HWND hwndTab, HWND hwndMDI, TBATFLAG tbatFlags); - + long ( STDCALL *ThumbBarAddButtons )( ITaskbarList3 * This, HWND hwnd, UINT cButtons, LPTHUMBBUTTON pButton); - + long ( STDCALL *ThumbBarUpdateButtons )( ITaskbarList3 * This, HWND hwnd, UINT cButtons, LPTHUMBBUTTON pButton); - + long ( STDCALL *ThumbBarSetImageList )( ITaskbarList3 * This, HWND hwnd, HIMAGELIST himl); - + long ( STDCALL *SetOverlayIcon )( ITaskbarList3 * This, HWND hwnd, HICON hIcon, LPCWSTR pszDescription); - + long ( STDCALL *SetThumbnailTooltip )( ITaskbarList3 * This, HWND hwnd, LPCWSTR pszTip); - + long ( STDCALL *SetThumbnailClip )( ITaskbarList3 * This, HWND hwnd, RECT *prcClip); @@ -166,11 +170,14 @@ struct _ITaskbarList3 { ITaskbarList3Vtbl* vt; }; typedef ITaskbarList3 *LPTASKBARLIST3, *PTASKBARLIST3; - +#ifdef __cplusplus extern "C" { +#endif HRESULT WINAPI CoCreateInstance(const GUID *,LPUNKNOWN,DWORD,REFIID,PVOID*); HRESULT WINAPI CoInitialize(PVOID); void WINAPI CoUninitialize(void); +#ifdef __cplusplus }; +#endif #endif //VISTAASSOC_H