ReactOS 0.4.15-dev-5667-ged97270
intshcut.h
Go to the documentation of this file.
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#ifndef __WINE_INTSHCUT_H
20#define __WINE_INTSHCUT_H
21
22#include <isguids.h>
23
24#define INTSHCUTAPI
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
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)
34
35typedef enum iurl_seturl_flags {
40
46
47typedef struct urlinvokecommandinfoA {
55
56typedef struct urlinvokecommandinfoW {
64
65#define INTERFACE IUniformResourceLocatorA
66DECLARE_INTERFACE_(IUniformResourceLocatorA,IUnknown)
67{
68 /*** IUnknown methods ***/
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;
76};
77#undef INTERFACE
78
79#define INTERFACE IUniformResourceLocatorW
80DECLARE_INTERFACE_(IUniformResourceLocatorW,IUnknown)
81{
82 /*** IUnknown methods ***/
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;
90};
91#undef INTERFACE
92
93DECL_WINELIB_TYPE_AW(URLINVOKECOMMANDINFO)
94DECL_WINELIB_TYPE_AW(PURLINVOKECOMMANDINFO)
95DECL_WINELIB_TYPE_AW(CURLINVOKECOMMANDINFO)
96DECL_WINELIB_TYPE_AW(PCURLINVOKECOMMANDINFO)
97
98
103
106#define TranslateURL WINELIB_NAME_AW(TranslateURL)
107
109
110#ifdef __cplusplus
111}
112#endif
113
114#endif /* __WINE_INTSHCUT_H */
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define PURE
Definition: basetyps.h:64
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
_In_ BOOLEAN Release
Definition: cdrom.h:920
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
REFIID riid
Definition: atlbase.h:39
const URLINVOKECOMMANDINFOW CURLINVOKECOMMANDINFOW
Definition: intshcut.h:62
struct urlinvokecommandinfoW * PURLINVOKECOMMANDINFOW
BOOL WINAPI InetIsOffline(DWORD)
Definition: url_main.c:73
enum iurl_seturl_flags IURL_SETURL_FLAGS
const URLINVOKECOMMANDINFOA CURLINVOKECOMMANDINFOA
Definition: intshcut.h:53
enum iurl_invokecommand_flags IURL_INVOKECOMMAND_FLAGS
struct urlinvokecommandinfoA * PURLINVOKECOMMANDINFOA
const URLINVOKECOMMANDINFOW * PCURLINVOKECOMMANDINFOW
Definition: intshcut.h:63
translateurl_in_flags
Definition: intshcut.h:99
@ TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL
Definition: intshcut.h:101
@ TRANSLATEURL_FL_GUESS_PROTOCOL
Definition: intshcut.h:100
HRESULT WINAPI TranslateURLA(LPCSTR, DWORD, LPSTR *)
struct urlinvokecommandinfoA URLINVOKECOMMANDINFOA
enum translateurl_in_flags TRANSLATEURL_IN_FLAGS
iurl_invokecommand_flags
Definition: intshcut.h:41
@ ALL_IURL_INVOKECOMMAND_FLAGS
Definition: intshcut.h:44
@ IURL_INVOKECOMMAND_FL_ALLOW_UI
Definition: intshcut.h:42
@ IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB
Definition: intshcut.h:43
HRESULT WINAPI TranslateURLW(LPCWSTR, DWORD, LPWSTR *)
const URLINVOKECOMMANDINFOA * PCURLINVOKECOMMANDINFOA
Definition: intshcut.h:54
struct urlinvokecommandinfoW URLINVOKECOMMANDINFOW
iurl_seturl_flags
Definition: intshcut.h:35
@ IURL_SETURL_FL_GUESS_PROTOCOL
Definition: intshcut.h:36
@ IURL_SETURL_FL_USE_DEFAULT_PROTOCOL
Definition: intshcut.h:37
@ ALL_IURL_SETURL_FLAGS
Definition: intshcut.h:38
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
#define REFIID
Definition: guiddef.h:118
uint32_t ULONG
Definition: typedefs.h:59
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082
#define DECL_WINELIB_TYPE_AW(type)
Definition: windef.h:401
#define WINAPI
Definition: msvc.h:6
const char * LPCSTR
Definition: xmlstorage.h:183
char * LPSTR
Definition: xmlstorage.h:182
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185