1 | /*
|
---|
2 | * Copyright (C) 2007 Francois Gouget
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
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
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_INTSHCUT_H
|
---|
29 | #define __WINE_INTSHCUT_H
|
---|
30 |
|
---|
31 | #include <isguids.h>
|
---|
32 |
|
---|
33 | #define INTSHCUTAPI
|
---|
34 |
|
---|
35 | #ifdef __cplusplus
|
---|
36 | extern "C" {
|
---|
37 | #endif
|
---|
38 |
|
---|
39 | #define E_FLAGS MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1000)
|
---|
40 | #define IS_E_EXEC_FAILED MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x2002)
|
---|
41 | #define URL_E_INVALID_SYNTAX MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1001)
|
---|
42 | #define URL_E_UNREGISTERED_PROTOCOL MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1002)
|
---|
43 |
|
---|
44 | typedef enum iurl_seturl_flags {
|
---|
45 | IURL_SETURL_FL_GUESS_PROTOCOL=1,
|
---|
46 | IURL_SETURL_FL_USE_DEFAULT_PROTOCOL,
|
---|
47 | ALL_IURL_SETURL_FLAGS=(IURL_SETURL_FL_GUESS_PROTOCOL|IURL_SETURL_FL_USE_DEFAULT_PROTOCOL)
|
---|
48 | } IURL_SETURL_FLAGS;
|
---|
49 |
|
---|
50 | typedef enum iurl_invokecommand_flags {
|
---|
51 | IURL_INVOKECOMMAND_FL_ALLOW_UI=1,
|
---|
52 | IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB,
|
---|
53 | ALL_IURL_INVOKECOMMAND_FLAGS=(IURL_INVOKECOMMAND_FL_ALLOW_UI|IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB)
|
---|
54 | } IURL_INVOKECOMMAND_FLAGS;
|
---|
55 |
|
---|
56 | typedef struct urlinvokecommandinfoA {
|
---|
57 | DWORD dwcbSize;
|
---|
58 | DWORD dwFlags;
|
---|
59 | HWND hwndParent;
|
---|
60 | LPCSTR pcszVerb;
|
---|
61 | } URLINVOKECOMMANDINFOA, *PURLINVOKECOMMANDINFOA;
|
---|
62 | typedef const URLINVOKECOMMANDINFOA CURLINVOKECOMMANDINFOA;
|
---|
63 | typedef const URLINVOKECOMMANDINFOA *PCURLINVOKECOMMANDINFOA;
|
---|
64 |
|
---|
65 | typedef struct urlinvokecommandinfoW {
|
---|
66 | DWORD dwcbSize;
|
---|
67 | DWORD dwFlags;
|
---|
68 | HWND hwndParent;
|
---|
69 | LPCWSTR pcszVerb;
|
---|
70 | } URLINVOKECOMMANDINFOW, *PURLINVOKECOMMANDINFOW;
|
---|
71 | typedef const URLINVOKECOMMANDINFOW CURLINVOKECOMMANDINFOW;
|
---|
72 | typedef const URLINVOKECOMMANDINFOW *PCURLINVOKECOMMANDINFOW;
|
---|
73 |
|
---|
74 | #define INTERFACE IUniformResourceLocatorA
|
---|
75 | DECLARE_INTERFACE_(IUniformResourceLocatorA,IUnknown)
|
---|
76 | {
|
---|
77 | /*** IUnknown methods ***/
|
---|
78 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, VOID **ppvObject) PURE;
|
---|
79 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
80 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
81 | /*** IUniformResourceLocatorA methods ***/
|
---|
82 | STDMETHOD(SetURL)(THIS_ LPCSTR pcszURL, DWORD dwInFlags) PURE;
|
---|
83 | STDMETHOD(GetURL)(THIS_ LPSTR *ppszURL) PURE;
|
---|
84 | STDMETHOD(InvokeCommand)(THIS_ PURLINVOKECOMMANDINFOA pURLCommandInfo) PURE;
|
---|
85 | };
|
---|
86 | #undef INTERFACE
|
---|
87 |
|
---|
88 | #define INTERFACE IUniformResourceLocatorW
|
---|
89 | DECLARE_INTERFACE_(IUniformResourceLocatorW,IUnknown)
|
---|
90 | {
|
---|
91 | /*** IUnknown methods ***/
|
---|
92 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, VOID **ppvObject) PURE;
|
---|
93 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
94 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
95 | /*** IUniformResourceLocatorW methods ***/
|
---|
96 | STDMETHOD(SetURL)(THIS_ LPCWSTR pcszURL, DWORD dwInFlags) PURE;
|
---|
97 | STDMETHOD(GetURL)(THIS_ LPWSTR *ppszURL) PURE;
|
---|
98 | STDMETHOD(InvokeCommand)(THIS_ PURLINVOKECOMMANDINFOW pURLCommandInfo) PURE;
|
---|
99 | };
|
---|
100 | #undef INTERFACE
|
---|
101 |
|
---|
102 | DECL_WINELIB_TYPE_AW(URLINVOKECOMMANDINFO)
|
---|
103 | DECL_WINELIB_TYPE_AW(PURLINVOKECOMMANDINFO)
|
---|
104 | DECL_WINELIB_TYPE_AW(CURLINVOKECOMMANDINFO)
|
---|
105 | DECL_WINELIB_TYPE_AW(PCURLINVOKECOMMANDINFO)
|
---|
106 |
|
---|
107 |
|
---|
108 | typedef enum translateurl_in_flags {
|
---|
109 | TRANSLATEURL_FL_GUESS_PROTOCOL=1,
|
---|
110 | TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL
|
---|
111 | } TRANSLATEURL_IN_FLAGS;
|
---|
112 |
|
---|
113 | HRESULT WINAPI TranslateURLA(LPCSTR, DWORD, LPSTR *);
|
---|
114 | HRESULT WINAPI TranslateURLW(LPCWSTR, DWORD, LPWSTR *);
|
---|
115 | #define TranslateURL WINELIB_NAME_AW(TranslateURL)
|
---|
116 |
|
---|
117 | BOOL WINAPI InetIsOffline(DWORD);
|
---|
118 |
|
---|
119 | #ifdef __cplusplus
|
---|
120 | }
|
---|
121 | #endif
|
---|
122 |
|
---|
123 | #endif /* __WINE_INTSHCUT_H */
|
---|