2 * Copyright (C) 2007 Francois Gouget
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_INTSHCUT_H
20 #define __WINE_INTSHCUT_H
30 #define E_FLAGS MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1000)
31 #define IS_E_EXEC_FAILED MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x2002)
32 #define URL_E_INVALID_SYNTAX MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1001)
33 #define URL_E_UNREGISTERED_PROTOCOL MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1002)
35 typedef enum iurl_seturl_flags
{
36 IURL_SETURL_FL_GUESS_PROTOCOL
=1,
37 IURL_SETURL_FL_USE_DEFAULT_PROTOCOL
,
38 ALL_IURL_SETURL_FLAGS
=(IURL_SETURL_FL_GUESS_PROTOCOL
|IURL_SETURL_FL_USE_DEFAULT_PROTOCOL
)
41 typedef enum iurl_invokecommand_flags
{
42 IURL_INVOKECOMMAND_FL_ALLOW_UI
=1,
43 IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB
,
44 ALL_IURL_INVOKECOMMAND_FLAGS
=(IURL_INVOKECOMMAND_FL_ALLOW_UI
|IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB
)
45 } IURL_INVOKECOMMAND_FLAGS
;
47 typedef struct urlinvokecommandinfoA
{
52 } URLINVOKECOMMANDINFOA
, *PURLINVOKECOMMANDINFOA
;
53 typedef const URLINVOKECOMMANDINFOA CURLINVOKECOMMANDINFOA
;
54 typedef const URLINVOKECOMMANDINFOA
*PCURLINVOKECOMMANDINFOA
;
56 typedef struct urlinvokecommandinfoW
{
61 } URLINVOKECOMMANDINFOW
, *PURLINVOKECOMMANDINFOW
;
62 typedef const URLINVOKECOMMANDINFOW CURLINVOKECOMMANDINFOW
;
63 typedef const URLINVOKECOMMANDINFOW
*PCURLINVOKECOMMANDINFOW
;
65 #define INTERFACE IUniformResourceLocatorA
66 DECLARE_INTERFACE_(IUniformResourceLocatorA
,IUnknown
)
68 /*** IUnknown methods ***/
69 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, VOID
**ppvObject
) PURE
;
70 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
71 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
72 /*** IUniformResourceLocatorA methods ***/
73 STDMETHOD(SetURL
)(THIS_ LPCSTR pcszURL
, DWORD dwInFlags
) PURE
;
74 STDMETHOD(GetURL
)(THIS_ LPSTR
*ppszURL
) PURE
;
75 STDMETHOD(InvokeCommand
)(THIS_ PURLINVOKECOMMANDINFOA pURLCommandInfo
) PURE
;
79 #define INTERFACE IUniformResourceLocatorW
80 DECLARE_INTERFACE_(IUniformResourceLocatorW
,IUnknown
)
82 /*** IUnknown methods ***/
83 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, VOID
**ppvObject
) PURE
;
84 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
85 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
86 /*** IUniformResourceLocatorW methods ***/
87 STDMETHOD(SetURL
)(THIS_ LPCWSTR pcszURL
, DWORD dwInFlags
) PURE
;
88 STDMETHOD(GetURL
)(THIS_ LPWSTR
*ppszURL
) PURE
;
89 STDMETHOD(InvokeCommand
)(THIS_ PURLINVOKECOMMANDINFOW pURLCommandInfo
) PURE
;
93 DECL_WINELIB_TYPE_AW(URLINVOKECOMMANDINFO
)
94 DECL_WINELIB_TYPE_AW(PURLINVOKECOMMANDINFO
)
95 DECL_WINELIB_TYPE_AW(CURLINVOKECOMMANDINFO
)
96 DECL_WINELIB_TYPE_AW(PCURLINVOKECOMMANDINFO
)
98 BOOL WINAPI
InetIsOffline(DWORD
);
104 #endif /* __WINE_INTSHCUT_H */