1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#ifndef _INTSHCUT_H
#define _INTSHCUT_H
#include <isguids.h>
#ifdef __cplusplus
extern "C" {
#endif
#define INTSHCUTAPI DECLSPEC_IMPORT
#define E_FLAGS MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1000)
#define IS_E_EXEC_FAILED MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x2002)
#define URL_E_INVALID_SYNTAX MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1001)
#define URL_E_UNREGISTERED_PROTOCOL MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x1002)
typedef enum iurl_seturl_flags {
IURL_SETURL_FL_GUESS_PROTOCOL=1,
IURL_SETURL_FL_USE_DEFAULT_PROTOCOL,
ALL_IURL_SETURL_FLAGS=(IURL_SETURL_FL_GUESS_PROTOCOL|IURL_SETURL_FL_USE_DEFAULT_PROTOCOL)
} IURL_SETURL_FLAGS;
typedef enum iurl_invokecommand_flags {
IURL_INVOKECOMMAND_FL_ALLOW_UI=1,
IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB,
ALL_IURL_INVOKECOMMAND_FLAGS=(IURL_INVOKECOMMAND_FL_ALLOW_UI|IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB)
} IURL_INVOKECOMMAND_FLAGS;
typedef enum translateurl_in_flags {
TRANSLATEURL_FL_GUESS_PROTOCOL=1,
TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL,
ALL_TRANSLATEURL_FLAGS=(TRANSLATEURL_FL_GUESS_PROTOCOL|TRANSLATEURL_FL_USE_DEFAULT_PROTOCOL)
} TRANSLATEURL_IN_FLAGS;
typedef enum urlassociationdialog_in_flags {
URLASSOCDLG_FL_USE_DEFAULT_NAME=1,
URLASSOCDLG_FL_REGISTER_ASSOC,
ALL_URLASSOCDLG_FLAGS=(URLASSOCDLG_FL_USE_DEFAULT_NAME|URLASSOCDLG_FL_REGISTER_ASSOC)
} URLASSOCIATIONDIALOG_IN_FLAGS;
typedef enum mimeassociationdialog_in_flags {
MIMEASSOCDLG_FL_REGISTER_ASSOC=1,
ALL_MIMEASSOCDLG_FLAGS=MIMEASSOCDLG_FL_REGISTER_ASSOC
} MIMEASSOCIATIONDIALOG_IN_FLAGS;
typedef struct urlinvokecommandinfo {
DWORD dwcbSize;
DWORD dwFlags;
HWND hwndParent;
PCSTR pcszVerb;
} URLINVOKECOMMANDINFO,*PURLINVOKECOMMANDINFO;
typedef const URLINVOKECOMMANDINFO CURLINVOKECOMMANDINFO;
typedef const URLINVOKECOMMANDINFO *PCURLINVOKECOMMANDINFO;
#undef INTERFACE
#define INTERFACE IUniformResourceLocator
DECLARE_INTERFACE_(IUniformResourceLocator,IUnknown)
{
STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
STDMETHOD_(ULONG,Release)(THIS) PURE;
STDMETHOD(SetURL)(THIS_ PCSTR,DWORD) PURE;
STDMETHOD(GetURL)(THIS_ PSTR*) PURE;
STDMETHOD(InvokeCommand)(THIS_ PURLINVOKECOMMANDINFO) PURE;
};
typedef IUniformResourceLocator *PIUniformResourceLocator;
typedef const IUniformResourceLocator CIUniformResourceLocator;
typedef const IUniformResourceLocator *PCIUniformResourceLocator;
BOOL WINAPI InetIsOffline(DWORD);
HRESULT WINAPI MIMEAssociationDialogA(HWND,DWORD,PCSTR,PCSTR,PSTR,UINT);
HRESULT WINAPI MIMEAssociationDialogW(HWND,DWORD,PCWSTR,PCWSTR,PWSTR,UINT);
HRESULT WINAPI TranslateURLA(PCSTR,DWORD,PSTR*);
HRESULT WINAPI TranslateURLW(PCWSTR,DWORD,PWSTR*);
HRESULT WINAPI URLAssociationDialogA(HWND,DWORD,PCSTR,PCSTR,PSTR,UINT);
HRESULT WINAPI URLAssociationDialogW(HWND,DWORD,PCWSTR,PCWSTR,PWSTR,UINT);
#ifdef UNICODE
#define TranslateURL TranslateURLW
#define MIMEAssociationDialog MIMEAssociationDialogW
#define URLAssociationDialog URLAssociationDialogW
#else
#define TranslateURL TranslateURLA
#define MIMEAssociationDialog MIMEAssociationDialogA
#define URLAssociationDialog URLAssociationDialogA
#endif
#ifdef __cplusplus
}
#endif
#endif
|