source: trunk/include/win/wine/obj_shelllink.h

Last change on this file was 5148, checked in by sandervl, 25 years ago

YD: header changes for compiling opera

File size: 7.1 KB
Line 
1/*
2 * Defines the COM interfaces and APIs related to IShellLink.
3 *
4 * Depends on 'obj_base.h'.
5 */
6
7#ifndef __WINE_WINE_OBJ_SHELLLINK_H
8#define __WINE_WINE_OBJ_SHELLLINK_H
9
10#include "wine/obj_base.h"
11#include "winbase.h"
12#include "shell.h"
13
14#ifdef __cplusplus
15extern "C" {
16#endif /* defined(__cplusplus) */
17
18/*****************************************************************************
19 * Predeclare the interfaces
20 */
21typedef struct IShellLinkA IShellLinkA,*LPSHELLLINK;
22typedef struct IShellLinkW IShellLinkW,*LPSHELLLINKW;
23#define IShellLink WINELIB_NAME_AW(IShellLink)
24
25/*****************************************************************************
26 *
27 */
28typedef enum
29{ SLR_NO_UI = 0x0001,
30 SLR_ANY_MATCH = 0x0002,
31 SLR_UPDATE = 0x0004
32} SLR_FLAGS;
33
34/*****************************************************************************
35 * GetPath fFlags
36 */
37typedef enum
38{ SLGP_SHORTPATH = 0x0001,
39 SLGP_UNCPRIORITY = 0x0002
40} SLGP_FLAGS;
41/*****************************************************************************
42 * IShellLink interface
43 */
44#define ICOM_INTERFACE IShellLinkA
45#define IShellLinkA_METHODS \
46 ICOM_METHOD4( HRESULT, GetPath, LPSTR, pszFile, INT, cchMaxPath, WIN32_FIND_DATAA *, pfd, DWORD, fFlags) \
47 ICOM_METHOD1( HRESULT, GetIDList, LPITEMIDLIST *, ppidl) \
48 ICOM_METHOD1( HRESULT, SetIDList, LPCITEMIDLIST, pidl) \
49 ICOM_METHOD2( HRESULT, GetDescription, LPSTR, pszName, INT, cchMaxName) \
50 ICOM_METHOD1( HRESULT, SetDescription, LPCSTR, pszName) \
51 ICOM_METHOD2( HRESULT, GetWorkingDirectory, LPSTR, pszDir,INT, cchMaxPath) \
52 ICOM_METHOD1( HRESULT, SetWorkingDirectory, LPCSTR, pszDir) \
53 ICOM_METHOD2( HRESULT, GetArguments, LPSTR, pszArgs, INT, cchMaxPath) \
54 ICOM_METHOD1( HRESULT, SetArguments, LPCSTR, pszArgs) \
55 ICOM_METHOD1( HRESULT, GetHotkey, WORD*, pwHotkey) \
56 ICOM_METHOD1( HRESULT, SetHotkey, WORD, wHotkey) \
57 ICOM_METHOD1( HRESULT, GetShowCmd, INT*, piShowCmd) \
58 ICOM_METHOD1( HRESULT, SetShowCmd, INT, iShowCmd) \
59 ICOM_METHOD3( HRESULT, GetIconLocation, LPSTR, pszIconPath, INT, cchIconPath,INT *, piIcon) \
60 ICOM_METHOD2( HRESULT, SetIconLocation, LPCSTR, pszIconPath,INT, iIcon) \
61 ICOM_METHOD2( HRESULT, SetRelativePath, LPCSTR, pszPathRel, DWORD, dwReserved) \
62 ICOM_METHOD2( HRESULT, Resolve, HWND, hwnd, DWORD, fFlags) \
63 ICOM_METHOD1( HRESULT, SetPath, LPCSTR, pszFile)
64#define IShellLinkA_IMETHODS \
65 IUnknown_IMETHODS \
66 IShellLinkA_METHODS
67ICOM_DEFINE(IShellLinkA,IUnknown)
68#undef ICOM_INTERFACE
69
70#ifdef ICOM_CINTERFACE
71/*** IUnknown methods ***/
72#define IShellLinkA_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
73#define IShellLinkA_AddRef(p) ICOM_CALL (AddRef,p)
74#define IShellLinkA_Release(p) ICOM_CALL (Release,p)
75/*** IShellLink methods ***/
76#define IShellLinkA_GetPath(p,a,b,c,d) ICOM_CALL4(GetPath,p,a,b,c,d)
77#define IShellLinkA_GetIDList(p,a) ICOM_CALL1(GetIDList,p,a)
78#define IShellLinkA_SetIDList(p,a) ICOM_CALL1(SetIDList,p,a)
79#define IShellLinkA_GetDescription(p,a,b) ICOM_CALL2(GetDescription,p,a,b)
80#define IShellLinkA_SetDescription(p,a) ICOM_CALL1(SetDescription,p,a)
81#define IShellLinkA_GetWorkingDirectory(p,a,b) ICOM_CALL2(GetWorkingDirectory,p,a,b)
82#define IShellLinkA_SetWorkingDirectory(p,a) ICOM_CALL1(SetWorkingDirectory,p,a)
83#define IShellLinkA_GetArguments(p,a,b) ICOM_CALL2(GetArguments,p,a,b)
84#define IShellLinkA_SetArguments(p,a) ICOM_CALL1(SetArguments,p,a)
85#define IShellLinkA_GetHotkey(p,a) ICOM_CALL1(GetHotkey,p,a)
86#define IShellLinkA_SetHotkey(p,a) ICOM_CALL1(SetHotkey,p,a)
87#define IShellLinkA_GetShowCmd(p,a) ICOM_CALL1(GetShowCmd,p,a)
88#define IShellLinkA_SetShowCmd(p,a) ICOM_CALL1(SetShowCmd,p,a)
89#define IShellLinkA_GetIconLocation(p,a,b,c) ICOM_CALL3(GetIconLocation,p,a,b,c)
90#define IShellLinkA_SetIconLocation(p,a,b) ICOM_CALL2(SetIconLocation,p,a,b)
91#define IShellLinkA_SetRelativePath(p,a,b) ICOM_CALL2(SetRelativePath,p,a,b)
92#define IShellLinkA_Resolve(p,a,b) ICOM_CALL2(Resolve,p,a,b)
93#define IShellLinkA_SetPath(p,a) ICOM_CALL1(SetPath,p,a)
94#endif
95
96/*****************************************************************************
97 * IShellLinkW interface
98 */
99#define ICOM_INTERFACE IShellLinkW
100#define IShellLinkW_METHODS \
101 ICOM_METHOD4( HRESULT, GetPath, LPWSTR, pszFile, INT, cchMaxPath, WIN32_FIND_DATAA *, pfd, DWORD, fFlags) \
102 ICOM_METHOD1( HRESULT, GetIDList, LPITEMIDLIST *, ppidl) \
103 ICOM_METHOD1( HRESULT, SetIDList, LPCITEMIDLIST, pidl) \
104 ICOM_METHOD2( HRESULT, GetDescription, LPWSTR, pszName, INT, cchMaxName) \
105 ICOM_METHOD1( HRESULT, SetDescription, LPCWSTR, pszName) \
106 ICOM_METHOD2( HRESULT, GetWorkingDirectory, LPWSTR, pszDir,INT, cchMaxPath) \
107 ICOM_METHOD1( HRESULT, SetWorkingDirectory, LPCWSTR, pszDir) \
108 ICOM_METHOD2( HRESULT, GetArguments, LPWSTR, pszArgs, INT, cchMaxPath) \
109 ICOM_METHOD1( HRESULT, SetArguments, LPCWSTR, pszArgs) \
110 ICOM_METHOD1( HRESULT, GetHotkey, WORD*, pwHotkey) \
111 ICOM_METHOD1( HRESULT, SetHotkey, WORD, wHotkey) \
112 ICOM_METHOD1( HRESULT, GetShowCmd, INT*, piShowCmd) \
113 ICOM_METHOD1( HRESULT, SetShowCmd, INT, iShowCmd) \
114 ICOM_METHOD3( HRESULT, GetIconLocation, LPWSTR, pszIconPath, INT, cchIconPath,INT *, piIcon) \
115 ICOM_METHOD2( HRESULT, SetIconLocation, LPCWSTR, pszIconPath,INT, iIcon) \
116 ICOM_METHOD2( HRESULT, SetRelativePath, LPCWSTR, pszPathRel, DWORD, dwReserved) \
117 ICOM_METHOD2( HRESULT, Resolve, HWND, hwnd, DWORD, fFlags) \
118 ICOM_METHOD1( HRESULT, SetPath, LPCWSTR, pszFile)
119#define IShellLinkW_IMETHODS \
120 IUnknown_IMETHODS \
121 IShellLinkW_METHODS
122ICOM_DEFINE(IShellLinkW,IUnknown)
123#undef ICOM_INTERFACE
124
125#ifdef ICOM_CINTERFACE
126/*** IUnknown methods ***/
127#define IShellLinkW_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
128#define IShellLinkW_AddRef(p) ICOM_CALL (AddRef,p)
129#define IShellLinkW_Release(p) ICOM_CALL (Release,p)
130/*** IShellLinkW methods ***/
131#define IShellLinkW_GetPath(p,a,b,c,d) ICOM_CALL4(GetPath,p,a,b,c,d)
132#define IShellLinkW_GetIDList(p,a) ICOM_CALL1(GetIDList,p,a)
133#define IShellLinkW_SetIDList(p,a) ICOM_CALL1(SetIDList,p,a)
134#define IShellLinkW_GetDescription(p,a,b) ICOM_CALL2(GetDescription,p,a,b)
135#define IShellLinkW_SetDescription(p,a) ICOM_CALL1(SetDescription,p,a)
136#define IShellLinkW_GetWorkingDirectory(p,a,b) ICOM_CALL2(GetWorkingDirectory,p,a,b)
137#define IShellLinkW_SetWorkingDirectory(p,a) ICOM_CALL1(SetWorkingDirectory,p,a)
138#define IShellLinkW_GetArguments(p,a,b) ICOM_CALL2(GetArguments,p,a,b)
139#define IShellLinkW_SetArguments(p,a) ICOM_CALL1(SetArguments,p,a)
140#define IShellLinkW_GetHotkey(p,a) ICOM_CALL1(GetHotkey,p,a)
141#define IShellLinkW_SetHotkey(p,a) ICOM_CALL1(SetHotkey,p,a)
142#define IShellLinkW_GetShowCmd(p,a) ICOM_CALL1(GetShowCmd,p,a)
143#define IShellLinkW_SetShowCmd(p,a) ICOM_CALL1(SetShowCmd,p,a)
144#define IShellLinkW_GetIconLocation(p,a,b,c) ICOM_CALL3(GetIconLocation,p,a,b,c)
145#define IShellLinkW_SetIconLocation(p,a,b) ICOM_CALL2(SetIconLocation,p,a,b)
146#define IShellLinkW_SetRelativePath(p,a,b) ICOM_CALL2(SetRelativePath,p,a,b)
147#define IShellLinkW_Resolve(p,a,b) ICOM_CALL2(Resolve,p,a,b)
148#define IShellLinkW_SetPath(p,a) ICOM_CALL1(SetPath,p,a)
149#endif
150
151#ifdef __cplusplus
152} /* extern "C" */
153#endif /* defined(__cplusplus) */
154
155#endif /* __WINE_WINE_OBJ_SHELLLINK_H */
Note: See TracBrowser for help on using the repository browser.