1 | /*
|
---|
2 | * Copyright (C) the Wine project
|
---|
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_SHLOBJ_H
|
---|
29 | #define __WINE_SHLOBJ_H
|
---|
30 |
|
---|
31 | #include <ole2.h>
|
---|
32 | #include <commctrl.h>
|
---|
33 | #include <prsht.h>
|
---|
34 | #include <shlguid.h>
|
---|
35 |
|
---|
36 | #ifdef WINE_NO_UNICODE_MACROS
|
---|
37 | #undef GetObject
|
---|
38 | #endif
|
---|
39 |
|
---|
40 | #ifdef __cplusplus
|
---|
41 | extern "C" {
|
---|
42 | #endif /* defined(__cplusplus) */
|
---|
43 |
|
---|
44 | /* Except for specific structs, this header is byte packed */
|
---|
45 | #include <pshpack1.h>
|
---|
46 |
|
---|
47 | #include <shtypes.h>
|
---|
48 | #include <shobjidl.h>
|
---|
49 |
|
---|
50 | #ifndef HPSXA_DEFINED
|
---|
51 | #define HPSXA_DEFINED
|
---|
52 | DECLARE_HANDLE(HPSXA);
|
---|
53 | #endif
|
---|
54 |
|
---|
55 | UINT WINAPI SHAddFromPropSheetExtArray(HPSXA,LPFNADDPROPSHEETPAGE,LPARAM);
|
---|
56 | LPVOID WINAPI SHAlloc(ULONG) __WINE_ALLOC_SIZE(1);
|
---|
57 | HRESULT WINAPI SHCoCreateInstance(LPCWSTR,const CLSID*,IUnknown*,REFIID,LPVOID*);
|
---|
58 | HPSXA WINAPI SHCreatePropSheetExtArray(HKEY,LPCWSTR,UINT);
|
---|
59 | HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY,LPCWSTR,UINT,IDataObject*);
|
---|
60 | HRESULT WINAPI SHCreateShellItem(LPCITEMIDLIST,IShellFolder*,LPCITEMIDLIST,IShellItem**);
|
---|
61 | DWORD WINAPI SHCLSIDFromStringA(LPCSTR,CLSID*);
|
---|
62 | DWORD WINAPI SHCLSIDFromStringW(LPCWSTR,CLSID*);
|
---|
63 | #define SHCLSIDFromString WINELIB_NAME_AW(SHCLSIDFromString)
|
---|
64 | HRESULT WINAPI SHCreateStdEnumFmtEtc(DWORD,const FORMATETC *,IEnumFORMATETC**);
|
---|
65 | void WINAPI SHDestroyPropSheetExtArray(HPSXA);
|
---|
66 | BOOL WINAPI SHFindFiles(LPCITEMIDLIST,LPCITEMIDLIST);
|
---|
67 | DWORD WINAPI SHFormatDrive(HWND,UINT,UINT,UINT);
|
---|
68 | void WINAPI SHFree(LPVOID);
|
---|
69 | BOOL WINAPI GetFileNameFromBrowse(HWND,LPWSTR,DWORD,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR);
|
---|
70 | HRESULT WINAPI SHGetInstanceExplorer(IUnknown**);
|
---|
71 | HRESULT WINAPI SHGetFolderPathAndSubDirA(HWND,int,HANDLE,DWORD,LPCSTR,LPSTR);
|
---|
72 | HRESULT WINAPI SHGetFolderPathAndSubDirW(HWND,int,HANDLE,DWORD,LPCWSTR,LPWSTR);
|
---|
73 | #define SHGetFolderPathAndSubDir WINELIB_NAME_AW(SHGetFolderPathAndSubDir);
|
---|
74 | BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST,LPSTR);
|
---|
75 | BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST,LPWSTR);
|
---|
76 | #define SHGetPathFromIDList WINELIB_NAME_AW(SHGetPathFromIDList)
|
---|
77 | INT WINAPI SHHandleUpdateImage(LPCITEMIDLIST);
|
---|
78 | HRESULT WINAPI SHILCreateFromPath(LPCWSTR,LPITEMIDLIST*,DWORD*);
|
---|
79 | HRESULT WINAPI SHLoadOLE(LPARAM);
|
---|
80 | HRESULT WINAPI SHParseDisplayName(LPCWSTR,IBindCtx*,LPITEMIDLIST*,SFGAOF,SFGAOF*);
|
---|
81 | HRESULT WINAPI SHPathPrepareForWriteA(HWND,IUnknown*,LPCSTR,DWORD);
|
---|
82 | HRESULT WINAPI SHPathPrepareForWriteW(HWND,IUnknown*,LPCWSTR,DWORD);
|
---|
83 | #define SHPathPrepareForWrite WINELIB_NAME_AW(SHPathPrepareForWrite);
|
---|
84 | UINT WINAPI SHReplaceFromPropSheetExtArray(HPSXA,UINT,LPFNADDPROPSHEETPAGE,LPARAM);
|
---|
85 | LPITEMIDLIST WINAPI SHSimpleIDListFromPath(LPCWSTR);
|
---|
86 | int WINAPI SHMapPIDLToSystemImageListIndex(IShellFolder*,LPCITEMIDLIST,int*);
|
---|
87 | HRESULT WINAPI SHStartNetConnectionDialog(HWND,LPCSTR,DWORD);
|
---|
88 | VOID WINAPI SHUpdateImageA(LPCSTR,INT,UINT,INT);
|
---|
89 | VOID WINAPI SHUpdateImageW(LPCWSTR,INT,UINT,INT);
|
---|
90 | #define SHUpdateImage WINELIB_NAME_AW(SHUpdateImage)
|
---|
91 | int WINAPI RestartDialog(HWND,LPCWSTR,DWORD);
|
---|
92 | int WINAPI RestartDialogEx(HWND,LPCWSTR,DWORD,DWORD);
|
---|
93 | BOOL WINAPI IsUserAnAdmin(void);
|
---|
94 |
|
---|
95 | #define SHFMT_ERROR 0xFFFFFFFFL /* Error on last format, drive may be formattable */
|
---|
96 | #define SHFMT_CANCEL 0xFFFFFFFEL /* Last format was cancelled */
|
---|
97 | #define SHFMT_NOFORMAT 0xFFFFFFFDL /* Drive is not formattable */
|
---|
98 |
|
---|
99 | /* SHFormatDrive flags */
|
---|
100 | #define SHFMT_ID_DEFAULT 0xFFFF
|
---|
101 | #define SHFMT_OPT_FULL 1
|
---|
102 | #define SHFMT_OPT_SYSONLY 2
|
---|
103 |
|
---|
104 | /* SHPathPrepareForWrite flags */
|
---|
105 | #define SHPPFW_NONE 0x00000000
|
---|
106 | #define SHPPFW_DIRCREATE 0x00000001
|
---|
107 | #define SHPPFW_DEFAULT SHPPFW_DIRCREATE
|
---|
108 | #define SHPPFW_ASKDIRCREATE 0x00000002
|
---|
109 | #define SHPPFW_IGNOREFILENAME 0x00000004
|
---|
110 | #define SHPPFW_NOWRITECHECK 0x00000008
|
---|
111 | #define SHPPFW_MEDIACHECKONLY 0x00000010
|
---|
112 |
|
---|
113 | /* SHObjectProperties flags */
|
---|
114 | #define SHOP_PRINTERNAME 0x01
|
---|
115 | #define SHOP_FILEPATH 0x02
|
---|
116 | #define SHOP_VOLUMEGUID 0x04
|
---|
117 |
|
---|
118 | BOOL WINAPI SHObjectProperties(HWND,DWORD,LPCWSTR,LPCWSTR);
|
---|
119 |
|
---|
120 | #define PCS_FATAL 0x80000000
|
---|
121 | #define PCS_REPLACEDCHAR 0x00000001
|
---|
122 | #define PCS_REMOVEDCHAR 0x00000002
|
---|
123 | #define PCS_TRUNCATED 0x00000004
|
---|
124 | #define PCS_PATHTOOLONG 0x00000008
|
---|
125 |
|
---|
126 | int WINAPI PathCleanupSpec(LPCWSTR,LPWSTR);
|
---|
127 |
|
---|
128 | /*****************************************************************************
|
---|
129 | * IContextMenu interface
|
---|
130 | */
|
---|
131 |
|
---|
132 |
|
---|
133 | /* DATAOBJECT_InitShellIDList*/
|
---|
134 | #define CFSTR_SHELLIDLISTA "Shell IDList Array" /* CF_IDLIST */
|
---|
135 | #define CFSTR_SHELLIDLISTOFFSETA "Shell Object Offsets" /* CF_OBJECTPOSITIONS */
|
---|
136 | #define CFSTR_NETRESOURCESA "Net Resource" /* CF_NETRESOURCE */
|
---|
137 | /* DATAOBJECT_InitFileGroupDesc */
|
---|
138 | #define CFSTR_FILEDESCRIPTORA "FileGroupDescriptor" /* CF_FILEGROUPDESCRIPTORA */
|
---|
139 | /* DATAOBJECT_InitFileContents*/
|
---|
140 | #define CFSTR_FILECONTENTSA "FileContents" /* CF_FILECONTENTS */
|
---|
141 | #define CFSTR_FILENAMEA "FileName" /* CF_FILENAMEA */
|
---|
142 | #define CFSTR_FILENAMEMAPA "FileNameMap" /* CF_FILENAMEMAPA */
|
---|
143 | #define CFSTR_PRINTERGROUPA "PrinterFriendlyName" /* CF_PRINTERS */
|
---|
144 | #define CFSTR_SHELLURLA "UniformResourceLocator"
|
---|
145 | #define CFSTR_INETURLA CFSTR_SHELLURLA
|
---|
146 | #define CFSTR_PREFERREDDROPEFFECTA "Preferred DropEffect"
|
---|
147 | #define CFSTR_PERFORMEDDROPEFFECTA "Performed DropEffect"
|
---|
148 | #define CFSTR_PASTESUCCEEDEDA "Paste Succeeded"
|
---|
149 | #define CFSTR_INDRAGLOOPA "InShellDragLoop"
|
---|
150 | #define CFSTR_DRAGCONTEXTA "DragContext"
|
---|
151 | #define CFSTR_MOUNTEDVOLUMEA "MountedVolume"
|
---|
152 | #define CFSTR_PERSISTEDDATAOBJECTA "PersistedDataObject"
|
---|
153 | #define CFSTR_TARGETCLSIDA "TargetCLSID"
|
---|
154 | #define CFSTR_AUTOPLAY_SHELLIDLISTSA "Autoplay Enumerated IDList Array"
|
---|
155 | #define CFSTR_LOGICALPERFORMEDDROPEFFECTA "Logical Performed DropEffect"
|
---|
156 |
|
---|
157 | #if defined(__GNUC__)
|
---|
158 | # define CFSTR_SHELLIDLISTW \
|
---|
159 | (const WCHAR []){ 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
|
---|
160 | # define CFSTR_SHELLIDLISTOFFSETW \
|
---|
161 | (const WCHAR []){ 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 }
|
---|
162 | # define CFSTR_NETRESOURCESW \
|
---|
163 | (const WCHAR []){ 'N','e','t',' ','R','e','s','o','u','r','c','e',0 }
|
---|
164 | # define CFSTR_FILEDESCRIPTORW \
|
---|
165 | (const WCHAR []){ 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 }
|
---|
166 | # define CFSTR_FILECONTENTSW \
|
---|
167 | (const WCHAR []){ 'F','i','l','e','C','o','n','t','e','n','t','s',0 }
|
---|
168 | # define CFSTR_FILENAMEW \
|
---|
169 | (const WCHAR []){ 'F','i','l','e','N','a','m','e','W',0 }
|
---|
170 | # define CFSTR_FILENAMEMAPW \
|
---|
171 | (const WCHAR []){ 'F','i','l','e','N','a','m','e','M','a','p','W',0 }
|
---|
172 | # define CFSTR_PRINTERGROUPW \
|
---|
173 | (const WCHAR []){ 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 }
|
---|
174 | # define CFSTR_SHELLURLW \
|
---|
175 | (const WCHAR []){ 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 }
|
---|
176 | # define CFSTR_INETURLW \
|
---|
177 | (const WCHAR []){ 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 }
|
---|
178 | # define CFSTR_PREFERREDDROPEFFECTW \
|
---|
179 | (const WCHAR []){ 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
|
---|
180 | # define CFSTR_PERFORMEDDROPEFFECTW \
|
---|
181 | (const WCHAR []){ 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 }
|
---|
182 | # define CFSTR_PASTESUCCEEDEDW \
|
---|
183 | (const WCHAR []){ 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 }
|
---|
184 | # define CFSTR_INDRAGLOOPW \
|
---|
185 | (const WCHAR []){ 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 }
|
---|
186 | # define CFSTR_DRAGCONTEXTW \
|
---|
187 | (const WCHAR []){ 'D','r','a','g','C','o','n','t','e','x','t',0 }
|
---|
188 | # define CFSTR_MOUNTEDVOLUMEW \
|
---|
189 | (const WCHAR []){ 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 }
|
---|
190 | # define CFSTR_PERSISTEDDATAOBJECTW \
|
---|
191 | (const WCHAR []){ 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 }
|
---|
192 | # define CFSTR_TARGETCLSIDW \
|
---|
193 | (const WCHAR []){ 'T','a','r','g','e','t','C','L','S','I','D',0 }
|
---|
194 | # define CFSTR_AUTOPLAY_SHELLIDLISTSW \
|
---|
195 | (const WCHAR []){ 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',\
|
---|
196 | ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 }
|
---|
197 | # define CFSTR_LOGICALPERFORMEDDROPEFFECTW \
|
---|
198 | (const WCHAR []){ 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',\
|
---|
199 | ' ','D','r','o','p','E','f','f','e','c','t',0 }
|
---|
200 | #elif defined(_MSC_VER)
|
---|
201 | # define CFSTR_SHELLIDLISTW L"Shell IDList Array"
|
---|
202 | # define CFSTR_SHELLIDLISTOFFSETW L"Shell Object Offsets"
|
---|
203 | # define CFSTR_NETRESOURCESW L"Net Resource"
|
---|
204 | # define CFSTR_FILEDESCRIPTORW L"FileGroupDescriptorW"
|
---|
205 | # define CFSTR_FILECONTENTSW L"FileContents"
|
---|
206 | # define CFSTR_FILENAMEW L"FileNameW"
|
---|
207 | # define CFSTR_FILENAMEMAPW L"FileNameMapW"
|
---|
208 | # define CFSTR_PRINTERGROUPW L"PrinterFriendlyName"
|
---|
209 | # define CFSTR_SHELLURLW L"UniformResourceLocator"
|
---|
210 | # define CFSTR_INETURLW L"UniformResourceLocatorW"
|
---|
211 | # define CFSTR_PREFERREDDROPEFFECTW L"Preferred DropEffect"
|
---|
212 | # define CFSTR_PERFORMEDDROPEFFECTW L"Performed DropEffect"
|
---|
213 | # define CFSTR_PASTESUCCEEDEDW L"Paste Succeeded"
|
---|
214 | # define CFSTR_INDRAGLOOPW L"InShellDragLoop"
|
---|
215 | # define CFSTR_DRAGCONTEXTW L"DragContext"
|
---|
216 | # define CFSTR_MOUNTEDVOLUMEW L"MountedVolume"
|
---|
217 | # define CFSTR_PERSISTEDDATAOBJECTW L"PersistedDataObject"
|
---|
218 | # define CFSTR_TARGETCLSIDW L"TargetCLSID"
|
---|
219 | # define CFSTR_AUTOPLAY_SHELLIDLISTSW L"Autoplay Enumerated IDList Array"
|
---|
220 | # define CFSTR_LOGICALPERFORMEDDROPEFFECTW L"Logical Performed DropEffect"
|
---|
221 | #else
|
---|
222 | static const WCHAR CFSTR_SHELLIDLISTW[] =
|
---|
223 | { 'S','h','e','l','l',' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
|
---|
224 | static const WCHAR CFSTR_SHELLIDLISTOFFSETW[] =
|
---|
225 | { 'S','h','e','l','l',' ','O','b','j','e','c','t',' ','O','f','f','s','e','t','s',0 };
|
---|
226 | static const WCHAR CFSTR_NETRESOURCESW[] =
|
---|
227 | { 'N','e','t',' ','R','e','s','o','u','r','c','e',0 };
|
---|
228 | static const WCHAR CFSTR_FILEDESCRIPTORW[] =
|
---|
229 | { 'F','i','l','e','G','r','o','u','p','D','e','s','c','r','i','p','t','o','r','W',0 };
|
---|
230 | static const WCHAR CFSTR_FILECONTENTSW[] =
|
---|
231 | { 'F','i','l','e','C','o','n','t','e','n','t','s',0 };
|
---|
232 | static const WCHAR CFSTR_FILENAMEW[] =
|
---|
233 | { 'F','i','l','e','N','a','m','e','W',0 };
|
---|
234 | static const WCHAR CFSTR_FILENAMEMAPW[] =
|
---|
235 | { 'F','i','l','e','N','a','m','e','M','a','p','W',0 };
|
---|
236 | static const WCHAR CFSTR_PRINTERGROUPW[] =
|
---|
237 | { 'P','r','i','n','t','e','r','F','r','i','e','n','d','l','y','N','a','m','e',0 };
|
---|
238 | static const WCHAR CFSTR_SHELLURLW[] =
|
---|
239 | { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r',0 };
|
---|
240 | static const WCHAR CFSTR_INETURLW[] =
|
---|
241 | { 'U','n','i','f','o','r','m','R','e','s','o','u','r','c','e','L','o','c','a','t','o','r','W',0 };
|
---|
242 | static const WCHAR CFSTR_PREFERREDDROPEFFECTW[] =
|
---|
243 | { 'P','r','e','f','e','r','r','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
|
---|
244 | static const WCHAR CFSTR_PERFORMEDDROPEFFECTW[] =
|
---|
245 | { 'P','e','r','f','o','r','m','e','d',' ','D','r','o','p','E','f','f','e','c','t',0 };
|
---|
246 | static const WCHAR CFSTR_PASTESUCCEEDEDW[] =
|
---|
247 | { 'P','a','s','t','e',' ','S','u','c','c','e','e','d','e','d',0 };
|
---|
248 | static const WCHAR CFSTR_INDRAGLOOPW[] =
|
---|
249 | { 'I','n','S','h','e','l','l','D','r','a','g','L','o','o','p',0 };
|
---|
250 | static const WCHAR CFSTR_DRAGCONTEXTW[] =
|
---|
251 | { 'D','r','a','g','C','o','n','t','e','x','t',0 };
|
---|
252 | static const WCHAR CFSTR_MOUNTEDVOLUMEW[] =
|
---|
253 | { 'M','o','u','n','t','e','d','V','o','l','u','m','e',0 };
|
---|
254 | static const WCHAR CFSTR_PERSISTEDDATAOBJECTW[] =
|
---|
255 | { 'P','e','r','s','i','s','t','e','d','D','a','t','a','O','b','j','e','c','t',0 };
|
---|
256 | static const WCHAR CFSTR_TARGETCLSIDW[] =
|
---|
257 | { 'T','a','r','g','e','t','C','L','S','I','D',0 };
|
---|
258 | static const WCHAR CFSTR_AUTOPLAY_SHELLIDLISTSW[] =
|
---|
259 | { 'A','u','t','o','p','l','a','y',' ','E','n','u','m','e','r','a','t','e','d',
|
---|
260 | ' ','I','D','L','i','s','t',' ','A','r','r','a','y',0 };
|
---|
261 | static const WCHAR CFSTR_LOGICALPERFORMEDDROPEFFECTW[] =
|
---|
262 | { 'L','o','g','i','c','a','l',' ','P','e','r','f','o','r','m','e','d',
|
---|
263 | ' ','D','r','o','p','E','f','f','e','c','t',0 };
|
---|
264 | #endif
|
---|
265 |
|
---|
266 | #define CFSTR_SHELLIDLIST WINELIB_NAME_AW(CFSTR_SHELLIDLIST)
|
---|
267 | #define CFSTR_SHELLIDLISTOFFSET WINELIB_NAME_AW(CFSTR_SHELLIDLISTOFFSET)
|
---|
268 | #define CFSTR_NETRESOURCES WINELIB_NAME_AW(CFSTR_NETRESOURCES)
|
---|
269 | #define CFSTR_FILEDESCRIPTOR WINELIB_NAME_AW(CFSTR_FILEDESCRIPTOR)
|
---|
270 | #define CFSTR_FILECONTENTS WINELIB_NAME_AW(CFSTR_FILECONTENTS)
|
---|
271 | #define CFSTR_FILENAME WINELIB_NAME_AW(CFSTR_FILENAME)
|
---|
272 | #define CFSTR_FILENAMEMAP WINELIB_NAME_AW(CFSTR_FILENAMEMAP)
|
---|
273 | #define CFSTR_PRINTERGROUP WINELIB_NAME_AW(CFSTR_PRINTERGROUP)
|
---|
274 | #define CFSTR_SHELLURL WINELIB_NAME_AW(CFSTR_SHELLURL)
|
---|
275 | #define CFSTR_INETURL WINELIB_NAME_AW(CFSTR_INETURL)
|
---|
276 | #define CFSTR_PREFERREDDROPEFFECT WINELIB_NAME_AW(CFSTR_PREFERREDDROPEFFECT)
|
---|
277 | #define CFSTR_PERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_PERFORMEDDROPEFFECT)
|
---|
278 | #define CFSTR_PASTESUCCEEDED WINELIB_NAME_AW(CFSTR_PASTESUCCEEDED)
|
---|
279 | #define CFSTR_INDRAGLOOP WINELIB_NAME_AW(CFSTR_INDRAGLOOP)
|
---|
280 | #define CFSTR_DRAGCONTEXT WINELIB_NAME_AW(CFSTR_DRAGCONTEXT)
|
---|
281 | #define CFSTR_MOUNTEDVOLUME WINELIB_NAME_AW(CFSTR_MOUNTEDVOLUME)
|
---|
282 | #define CFSTR_PERSISTEDDATAOBJECT WINELIB_NAME_AW(CFSTR_PERSISTEDDATAOBJECT)
|
---|
283 | #define CFSTR_TARGETCLSID WINELIB_NAME_AW(CFSTR_TARGETCLSID)
|
---|
284 | #define CFSTR_AUTOPLAY_SHELLIDLISTS WINELIB_NAME_AW(CFSTR_AUTOPLAY_SHELLIDLISTS)
|
---|
285 | #define CFSTR_LOGICALPERFORMEDDROPEFFECT WINELIB_NAME_AW(CFSTR_LOGICALPERFORMEDDROPEFFECT)
|
---|
286 |
|
---|
287 | typedef struct
|
---|
288 | { UINT cidl;
|
---|
289 | UINT aoffset[1];
|
---|
290 | } CIDA, *LPIDA;
|
---|
291 |
|
---|
292 | /************************************************************************
|
---|
293 | * IShellView interface
|
---|
294 | */
|
---|
295 |
|
---|
296 | #define FCIDM_SHVIEWFIRST 0x0000
|
---|
297 | /* undocumented */
|
---|
298 | #define FCIDM_SHVIEW_ARRANGE 0x7001
|
---|
299 | #define FCIDM_SHVIEW_DELETE 0x7011
|
---|
300 | #define FCIDM_SHVIEW_PROPERTIES 0x7013
|
---|
301 | #define FCIDM_SHVIEW_CUT 0x7018
|
---|
302 | #define FCIDM_SHVIEW_COPY 0x7019
|
---|
303 | #define FCIDM_SHVIEW_INSERT 0x701A
|
---|
304 | #define FCIDM_SHVIEW_UNDO 0x701B
|
---|
305 | #define FCIDM_SHVIEW_INSERTLINK 0x701C
|
---|
306 | #define FCIDM_SHVIEW_SELECTALL 0x7021
|
---|
307 | #define FCIDM_SHVIEW_INVERTSELECTION 0x7022
|
---|
308 |
|
---|
309 | #define FCIDM_SHVIEW_BIGICON 0x7029
|
---|
310 | #define FCIDM_SHVIEW_SMALLICON 0x702A
|
---|
311 | #define FCIDM_SHVIEW_LISTVIEW 0x702B
|
---|
312 | #define FCIDM_SHVIEW_REPORTVIEW 0x702C
|
---|
313 | /* 0x7030-0x703f are used by the shellbrowser */
|
---|
314 | #define FCIDM_SHVIEW_AUTOARRANGE 0x7031
|
---|
315 | #define FCIDM_SHVIEW_SNAPTOGRID 0x7032
|
---|
316 |
|
---|
317 | #define FCIDM_SHVIEW_HELP 0x7041
|
---|
318 | #define FCIDM_SHVIEW_RENAME 0x7050
|
---|
319 | #define FCIDM_SHVIEW_CREATELINK 0x7051
|
---|
320 | #define FCIDM_SHVIEW_NEWLINK 0x7052
|
---|
321 | #define FCIDM_SHVIEW_NEWFOLDER 0x7053
|
---|
322 |
|
---|
323 | #define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
|
---|
324 | #define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
|
---|
325 | #define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
|
---|
326 |
|
---|
327 | #define FCIDM_SHVIEWLAST 0x7fff
|
---|
328 | #define FCIDM_BROWSERFIRST 0xA000
|
---|
329 | /* undocumented toolbar items from stddlg's*/
|
---|
330 | #define FCIDM_TB_UPFOLDER 0xA001
|
---|
331 | #define FCIDM_TB_NEWFOLDER 0xA002
|
---|
332 | #define FCIDM_TB_SMALLICON 0xA003
|
---|
333 | #define FCIDM_TB_REPORTVIEW 0xA004
|
---|
334 | #define FCIDM_TB_DESKTOP 0xA005 /* FIXME */
|
---|
335 |
|
---|
336 | #define FCIDM_BROWSERLAST 0xbf00
|
---|
337 | #define FCIDM_GLOBALFIRST 0x8000
|
---|
338 | #define FCIDM_GLOBALLAST 0x9fff
|
---|
339 |
|
---|
340 | /*
|
---|
341 | * Global submenu IDs and separator IDs
|
---|
342 | */
|
---|
343 | #define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)
|
---|
344 | #define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)
|
---|
345 | #define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)
|
---|
346 | #define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)
|
---|
347 | #define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)
|
---|
348 | #define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)
|
---|
349 | #define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)
|
---|
350 | #define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)
|
---|
351 | #define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)
|
---|
352 | #define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)
|
---|
353 |
|
---|
354 | /* control IDs known to the view */
|
---|
355 | #define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)
|
---|
356 | #define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)
|
---|
357 |
|
---|
358 |
|
---|
359 | /****************************************************************************
|
---|
360 | * IShellIcon interface
|
---|
361 | */
|
---|
362 |
|
---|
363 | #define INTERFACE IShellIcon
|
---|
364 | DECLARE_INTERFACE_(IShellIcon,IUnknown)
|
---|
365 | {
|
---|
366 | /*** IUnknown methods ***/
|
---|
367 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
368 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
369 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
370 | /*** IShellIcon methods ***/
|
---|
371 | STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
|
---|
372 | };
|
---|
373 | #undef INTERFACE
|
---|
374 |
|
---|
375 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
376 | /*** IUnknown methods ***/
|
---|
377 | #define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
378 | #define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
379 | #define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
|
---|
380 | /*** IShellIcon methods ***/
|
---|
381 | #define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
|
---|
382 | #endif
|
---|
383 |
|
---|
384 | typedef IShellIcon *LPSHELLICON;
|
---|
385 |
|
---|
386 | /* IQueryInfo interface */
|
---|
387 | #define INTERFACE IQueryInfo
|
---|
388 | DECLARE_INTERFACE_(IQueryInfo,IUnknown)
|
---|
389 | {
|
---|
390 | /*** IUnknown methods ***/
|
---|
391 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
392 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
393 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
394 | /*** IQueryInfo methods ***/
|
---|
395 | STDMETHOD(GetInfoTip)(THIS_ DWORD dwFlags, WCHAR** lppTips) PURE;
|
---|
396 | STDMETHOD(GetInfoFlags)(THIS_ DWORD* lpFlags) PURE;
|
---|
397 | };
|
---|
398 | #undef INTERFACE
|
---|
399 |
|
---|
400 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
401 | /*** IUnknown methods ***/
|
---|
402 | #define IQueryInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
403 | #define IQueryInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
404 | #define IQueryInfo_Release(p) (p)->lpVtbl->Release(p)
|
---|
405 | /*** IQueryInfo methods ***/
|
---|
406 | #define IQueryInfo_GetInfoTip(p,a,b) (p)->lpVtbl->GetInfoTip(p,a,b)
|
---|
407 | #define IQueryInfo_GetInfoFlags(p,a) (p)->lpVtbl->GetInfoFlags(p,a)
|
---|
408 | #endif
|
---|
409 |
|
---|
410 | /* IInputObject interface */
|
---|
411 | #define INTERFACE IInputObject
|
---|
412 | DECLARE_INTERFACE_(IInputObject,IUnknown)
|
---|
413 | {
|
---|
414 | /*** IUnknown methods ***/
|
---|
415 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
416 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
417 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
418 | /*** IInputObject methods ***/
|
---|
419 | STDMETHOD(UIActivateIO)(THIS_ BOOL bActivating, LPMSG lpMsg) PURE;
|
---|
420 | STDMETHOD(HasFocusIO)(THIS) PURE;
|
---|
421 | STDMETHOD(TranslateAcceleratorIO)(THIS_ LPMSG lpMsg) PURE;
|
---|
422 | };
|
---|
423 | #undef INTERFACE
|
---|
424 |
|
---|
425 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
426 | /*** IUnknown methods ***/
|
---|
427 | #define IInputObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
428 | #define IInputObject_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
429 | #define IInputObject_Release(p) (p)->lpVtbl->Release(p)
|
---|
430 | /*** IInputObject methods ***/
|
---|
431 | #define IInputObject_UIActivateIO(p,a,b) (p)->lpVtbl->UIActivateIO(p,a,b)
|
---|
432 | #define IInputObject_HasFocusIO(p) (p)->lpVtbl->HasFocusIO(p)
|
---|
433 | #define IInputObject_TranslateAcceleratorIO(p,a) (p)->lpVtbl->TranslateAcceleratorIO(p,a)
|
---|
434 | #endif
|
---|
435 |
|
---|
436 | /* IInputObjectSite interface */
|
---|
437 | #define INTERFACE IInputObjectSite
|
---|
438 | DECLARE_INTERFACE_(IInputObjectSite,IUnknown)
|
---|
439 | {
|
---|
440 | /*** IUnknown methods ***/
|
---|
441 | STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
442 | STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
---|
443 | STDMETHOD_(ULONG,Release) (THIS) PURE;
|
---|
444 | /*** IInputObjectSite methods ***/
|
---|
445 | STDMETHOD(OnFocusChangeIS)(THIS_ LPUNKNOWN lpUnknown, BOOL bFocus) PURE;
|
---|
446 | };
|
---|
447 | #undef INTERFACE
|
---|
448 |
|
---|
449 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
450 | /*** IUnknown methods ***/
|
---|
451 | #define IInputObjectSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
452 | #define IInputObjectSite_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
453 | #define IInputObjectSite_Release(p) (p)->lpVtbl->Release(p)
|
---|
454 | /*** IInputObject methods ***/
|
---|
455 | #define IInputObjectSite_OnFocusChangeIS(p,a,b) (p)->lpVtbl->OnFocusChangeIS(p,a,b)
|
---|
456 | #endif
|
---|
457 |
|
---|
458 | /* IObjMgr interface */
|
---|
459 | #define INTERFACE IObjMgr
|
---|
460 | DECLARE_INTERFACE_(IObjMgr,IUnknown)
|
---|
461 | {
|
---|
462 | /*** IUnknown methods ***/
|
---|
463 | STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
464 | STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
---|
465 | STDMETHOD_(ULONG,Release) (THIS) PURE;
|
---|
466 | /*** IObjMgr methods ***/
|
---|
467 | STDMETHOD(Append)(THIS_ LPUNKNOWN punk) PURE;
|
---|
468 | STDMETHOD(Remove)(THIS_ LPUNKNOWN punk) PURE;
|
---|
469 | };
|
---|
470 | #undef INTERFACE
|
---|
471 |
|
---|
472 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
473 | /*** IUnknown methods ***/
|
---|
474 | #define IObjMgr_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
475 | #define IObjMgr_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
476 | #define IObjMgr_Release(p) (p)->lpVtbl->Release(p)
|
---|
477 | /*** IObjMgr methods ***/
|
---|
478 | #define IObjMgr_Append(p,a) (p)->lpVtbl->Append(p,a)
|
---|
479 | #define IObjMgr_Remove(p,a) (p)->lpVtbl->Remove(p,a)
|
---|
480 | #endif
|
---|
481 |
|
---|
482 | /* IACList interface */
|
---|
483 | #define INTERFACE IACList
|
---|
484 | DECLARE_INTERFACE_(IACList,IUnknown)
|
---|
485 | {
|
---|
486 | /*** IUnknown methods ***/
|
---|
487 | STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
488 | STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
---|
489 | STDMETHOD_(ULONG,Release) (THIS) PURE;
|
---|
490 | /*** IACList methods ***/
|
---|
491 | STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
|
---|
492 | };
|
---|
493 | #undef INTERFACE
|
---|
494 |
|
---|
495 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
496 | /*** IUnknown methods ***/
|
---|
497 | #define IACList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
498 | #define IACList_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
499 | #define IACList_Release(p) (p)->lpVtbl->Release(p)
|
---|
500 | /*** IACList methods ***/
|
---|
501 | #define IACList_Expand(p,a) (p)->lpVtbl->Expand(p,a)
|
---|
502 | #endif
|
---|
503 |
|
---|
504 | /* IACList2 interface */
|
---|
505 | #define INTERFACE IACList2
|
---|
506 | DECLARE_INTERFACE_(IACList2,IACList)
|
---|
507 | {
|
---|
508 | /*** IUnknown methods ***/
|
---|
509 | STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
510 | STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
---|
511 | STDMETHOD_(ULONG,Release) (THIS) PURE;
|
---|
512 | /*** IACList methods ***/
|
---|
513 | STDMETHOD(Expand)(THIS_ LPCOLESTR str) PURE;
|
---|
514 | /*** IACList2 methods ***/
|
---|
515 | STDMETHOD(SetOptions)(THIS_ DWORD dwFlag) PURE;
|
---|
516 | STDMETHOD(GetOptions)(THIS_ DWORD* pdwFlag) PURE;
|
---|
517 | };
|
---|
518 | #undef INTERFACE
|
---|
519 |
|
---|
520 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
521 | /*** IUnknown methods ***/
|
---|
522 | #define IACList2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
523 | #define IACList2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
524 | #define IACList2_Release(p) (p)->lpVtbl->Release(p)
|
---|
525 | /*** IACList2 methods ***/
|
---|
526 | #define IACList2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a)
|
---|
527 | #define IACList2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a)
|
---|
528 | #endif
|
---|
529 |
|
---|
530 | /****************************************************************************
|
---|
531 | * IShellFolderViewCB interface
|
---|
532 | */
|
---|
533 |
|
---|
534 | #define INTERFACE IShellFolderViewCB
|
---|
535 | DECLARE_INTERFACE_(IShellFolderViewCB,IUnknown)
|
---|
536 | {
|
---|
537 | /*** IUnknown methods ***/
|
---|
538 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
539 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
540 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
541 | /*** IShellFolderViewCB methods ***/
|
---|
542 | STDMETHOD(MessageSFVCB)(THIS_ UINT uMsg, WPARAM wParam, LPARAM lParam) PURE;
|
---|
543 | };
|
---|
544 | #undef INTERFACE
|
---|
545 |
|
---|
546 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
547 | /*** IUnknown methods ***/
|
---|
548 | #define IShellFolderViewCB_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
549 | #define IShellFolderViewCB_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
550 | #define IShellFolderViewCB_Release(p) (p)->lpVtbl->Release(p)
|
---|
551 | /*** IShellFolderViewCB methods ***/
|
---|
552 | #define IShellFolderViewCB_MessageSFVCB(p,a,b,c) (p)->lpVtbl->MessageSFVCB(p,a,b,c)
|
---|
553 | #endif
|
---|
554 |
|
---|
555 | /****************************************************************************
|
---|
556 | * IShellFolderView interface
|
---|
557 | */
|
---|
558 |
|
---|
559 | typedef struct _ITEMSPACING
|
---|
560 | {
|
---|
561 | int cxSmall;
|
---|
562 | int cySmall;
|
---|
563 | int cxLarge;
|
---|
564 | int cyLarge;
|
---|
565 | } ITEMSPACING;
|
---|
566 |
|
---|
567 | #define INTERFACE IShellFolderView
|
---|
568 | DEFINE_GUID(IID_IShellFolderView,0x37a378c0,0xf82d,0x11ce,0xae,0x65,0x08,0x00,0x2b,0x2e,0x12,0x62);
|
---|
569 | DECLARE_INTERFACE_(IShellFolderView, IUnknown)
|
---|
570 | {
|
---|
571 | /*** IUnknown methods ***/
|
---|
572 | STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
|
---|
573 | STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
---|
574 | STDMETHOD_(ULONG,Release) (THIS) PURE;
|
---|
575 |
|
---|
576 | /*** IShellFolderView methods ***/
|
---|
577 | STDMETHOD(Rearrange) (THIS_ LPARAM lParamSort) PURE;
|
---|
578 | STDMETHOD(GetArrangeParam) (THIS_ LPARAM *plParamSort) PURE;
|
---|
579 | STDMETHOD(ArrangeGrid) (THIS) PURE;
|
---|
580 | STDMETHOD(AutoArrange) (THIS) PURE;
|
---|
581 | STDMETHOD(GetAutoArrange) (THIS) PURE;
|
---|
582 | STDMETHOD(AddObject) (THIS_ PITEMID_CHILD pidl, UINT *puItem) PURE;
|
---|
583 | STDMETHOD(GetObject) (THIS_ PITEMID_CHILD *ppidl, UINT uItem) PURE;
|
---|
584 | STDMETHOD(RemoveObject) (THIS_ PITEMID_CHILD pidl, UINT *puItem) PURE;
|
---|
585 | STDMETHOD(GetObjectCount) (THIS_ UINT *puCount) PURE;
|
---|
586 | STDMETHOD(SetObjectCount) (THIS_ UINT uCount, UINT dwFlags) PURE;
|
---|
587 | STDMETHOD(UpdateObject) (THIS_ PITEMID_CHILD pidlOld, PITEMID_CHILD pidlNew, UINT *puItem) PURE;
|
---|
588 | STDMETHOD(RefreshObject) (THIS_ PITEMID_CHILD pidl, UINT *puItem) PURE;
|
---|
589 | STDMETHOD(SetRedraw) (THIS_ BOOL bRedraw) PURE;
|
---|
590 | STDMETHOD(GetSelectedCount) (THIS_ UINT *puSelected) PURE;
|
---|
591 | STDMETHOD(GetSelectedObjects) (THIS_ PCITEMID_CHILD **pppidl, UINT *puItems) PURE;
|
---|
592 | STDMETHOD(IsDropOnSource) (THIS_ IDropTarget *pDropTarget) PURE;
|
---|
593 | STDMETHOD(GetDragPoint) (THIS_ POINT *ppt) PURE;
|
---|
594 | STDMETHOD(GetDropPoint) (THIS_ POINT *ppt) PURE;
|
---|
595 | STDMETHOD(MoveIcons) (THIS_ IDataObject *pDataObject) PURE;
|
---|
596 | STDMETHOD(SetItemPos) (THIS_ PCUITEMID_CHILD pidl, POINT *ppt) PURE;
|
---|
597 | STDMETHOD(IsBkDropTarget) (THIS_ IDropTarget *pDropTarget) PURE;
|
---|
598 | STDMETHOD(SetClipboard) (THIS_ BOOL bMove) PURE;
|
---|
599 | STDMETHOD(SetPoints) (THIS_ IDataObject *pDataObject) PURE;
|
---|
600 | STDMETHOD(GetItemSpacing) (THIS_ ITEMSPACING *pSpacing) PURE;
|
---|
601 | STDMETHOD(SetCallback) (THIS_ IShellFolderViewCB* pNewCB, IShellFolderViewCB** ppOldCB) PURE;
|
---|
602 | STDMETHOD(Select) ( THIS_ UINT dwFlags ) PURE;
|
---|
603 | STDMETHOD(QuerySupport) (THIS_ UINT * pdwSupport ) PURE;
|
---|
604 | STDMETHOD(SetAutomationObject)(THIS_ IDispatch* pdisp) PURE;
|
---|
605 | };
|
---|
606 | #undef INTERFACE
|
---|
607 |
|
---|
608 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
609 | /*** IUnknown methods ***/
|
---|
610 | #define IShellFolderView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
611 | #define IShellFolderView_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
612 | #define IShellFolderView_Release(p) (p)->lpVtbl->Release(p)
|
---|
613 | /*** IShellFolderView methods ***/
|
---|
614 | #define IShellFolderView_Rearrange(p,a) (p)->lpVtbl->Rearrange(p,a)
|
---|
615 | #define IShellFolderView_GetArrangeParam(p,a) (p)->lpVtbl->GetArrangeParam(p,a)
|
---|
616 | #define IShellFolderView_ArrangeGrid(p) (p)->lpVtbl->ArrangeGrid(p)
|
---|
617 | #define IShellFolderView_AutoArrange(p) (p)->lpVtbl->AutoArrange(p)
|
---|
618 | #define IShellFolderView_GetAutoArrange(p) (p)->lpVtbl->GetAutoArrange(p)
|
---|
619 | #define IShellFolderView_AddObject(p,a,b) (p)->lpVtbl->AddObject(p,a,b)
|
---|
620 | #define IShellFolderView_GetObject(p,a,b) (p)->lpVtbl->GetObject(p,a,b)
|
---|
621 | #define IShellFolderView_RemoveObject(p,a,b) (p)->lpVtbl->RemoveObject(p,a,b)
|
---|
622 | #define IShellFolderView_GetObjectCount(p,a) (p)->lpVtbl->GetObjectCount(p,a)
|
---|
623 | #define IShellFolderView_SetObjectCount(p,a,b) (p)->lpVtbl->SetObjectCount(p,a,b)
|
---|
624 | #define IShellFolderView_UpdateObject(p,a,b,c) (p)->lpVtbl->UpdateObject(p,a,b,c)
|
---|
625 | #define IShellFolderView_RefreshObject(p,a,b) (p)->lpVtbl->RefreshObject(p,a,b)
|
---|
626 | #define IShellFolderView_SetRedraw(p,a) (p)->lpVtbl->SetRedraw(p,a)
|
---|
627 | #define IShellFolderView_GetSelectedCount(p,a) (p)->lpVtbl->GetSelectedCount(p,a)
|
---|
628 | #define IShellFolderView_GetSelectedObjects(p,a,b) (p)->lpVtbl->GetSelectedObjects(p,a,b)
|
---|
629 | #define IShellFolderView_IsDropOnSource(p,a) (p)->lpVtbl->IsDropOnSource(p,a)
|
---|
630 | #define IShellFolderView_GetDragPoint(p,a) (p)->lpVtbl->GetDragPoint(p,a)
|
---|
631 | #define IShellFolderView_GetDropPoint(p,a) (p)->lpVtbl->GetDropPoint(p,a)
|
---|
632 | #define IShellFolderView_MoveIcons(p,a) (p)->lpVtbl->MoveIcons(p,a)
|
---|
633 | #define IShellFolderView_SetItemPos(p,a,b) (p)->lpVtbl->SetItemPos(p,a,b)
|
---|
634 | #define IShellFolderView_DropTarget(p,a) (p)->lpVtbl->DropTarget(p,a)
|
---|
635 | #define IShellFolderView_SetClipboard(p,a) (p)->lpVtbl->SetClipboard(p,a)
|
---|
636 | #define IShellFolderView_SetPoints(p,a) (p)->lpVtbl->SetPoints(p,a)
|
---|
637 | #define IShellFolderView_GetItemSpacing(p,a) (p)->lpVtbl->GetItemSpacing(p,a)
|
---|
638 | #define IShellFolderView_SetCallback(p,a) (p)->lpVtbl->SetCallback(p,a)
|
---|
639 | #define IShellFolderView_Select(p,a) (p)->lpVtbl->Select(p,a)
|
---|
640 | #define IShellFolderView_QuerySupport(p,a) (p)->lpVtbl->QuerySupport(p,a)
|
---|
641 | #define IShellFolderView_SetAutomationObject(p,a) (p)->lpVtbl->SetAutomationObject(p,a)
|
---|
642 | #endif
|
---|
643 |
|
---|
644 | /* IProgressDialog interface */
|
---|
645 | #define PROGDLG_NORMAL 0x00000000
|
---|
646 | #define PROGDLG_MODAL 0x00000001
|
---|
647 | #define PROGDLG_AUTOTIME 0x00000002
|
---|
648 | #define PROGDLG_NOTIME 0x00000004
|
---|
649 | #define PROGDLG_NOMINIMIZE 0x00000008
|
---|
650 | #define PROGDLG_NOPROGRESSBAR 0x00000010
|
---|
651 | #define PROGDLG_MARQUEEPROGRESS 0x00000020
|
---|
652 | #define PROGDLG_NOCANCEL 0x00000040
|
---|
653 |
|
---|
654 | #define PDTIMER_RESET 0x00000001
|
---|
655 | #define PDTIMER_PAUSE 0x00000002
|
---|
656 | #define PDTIMER_RESUME 0x00000003
|
---|
657 |
|
---|
658 | #define INTERFACE IProgressDialog
|
---|
659 | DECLARE_INTERFACE_(IProgressDialog,IUnknown)
|
---|
660 | {
|
---|
661 | /*** IUnknown methods ***/
|
---|
662 | STDMETHOD_(HRESULT,QueryInterface) (THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
663 | STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
---|
664 | STDMETHOD_(ULONG,Release) (THIS) PURE;
|
---|
665 | /*** IProgressDialog methods ***/
|
---|
666 | STDMETHOD(StartProgressDialog)(THIS_ HWND hwndParent, IUnknown *punkEnableModeless, DWORD dwFlags, LPCVOID reserved) PURE;
|
---|
667 | STDMETHOD(StopProgressDialog)(THIS) PURE;
|
---|
668 | STDMETHOD(SetTitle)(THIS_ LPCWSTR pwzTitle) PURE;
|
---|
669 | STDMETHOD(SetAnimation)(THIS_ HINSTANCE hInstance, UINT uiResourceId) PURE;
|
---|
670 | STDMETHOD_(BOOL,HasUserCancelled)(THIS) PURE;
|
---|
671 | STDMETHOD(SetProgress)(THIS_ DWORD dwCompleted, DWORD dwTotal) PURE;
|
---|
672 | STDMETHOD(SetProgress64)(THIS_ ULONGLONG ullCompleted, ULONGLONG ullTotal) PURE;
|
---|
673 | STDMETHOD(SetLine)(THIS_ DWORD dwLineNum, LPCWSTR pwzString, BOOL bPath, LPCVOID reserved) PURE;
|
---|
674 | STDMETHOD(SetCancelMsg)(THIS_ LPCWSTR pwzCancelMsg, LPCVOID reserved) PURE;
|
---|
675 | STDMETHOD(Timer)(THIS_ DWORD dwTimerAction, LPCVOID reserved) PURE;
|
---|
676 | };
|
---|
677 | #undef INTERFACE
|
---|
678 |
|
---|
679 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
680 | /*** IUnknown methods ***/
|
---|
681 | #define IProgressDialog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
682 | #define IProgressDialog_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
683 | #define IProgressDialog_Release(p) (p)->lpVtbl->Release(p)
|
---|
684 | /*** IProgressDialog methods ***/
|
---|
685 | #define IProgressDialog_StartProgressDialog(p,a,b,c,d) (p)->lpVtbl->StartProgressDialog(p,a,b,c,d)
|
---|
686 | #define IProgressDialog_StopProgressDialog(p) (p)->lpVtbl->StopProgressDialog(p)
|
---|
687 | #define IProgressDialog_SetTitle(p,a) (p)->lpVtbl->SetTitle(p,a)
|
---|
688 | #define IProgressDialog_SetAnimation(p,a,b) (p)->lpVtbl->SetAnimation(p,a,b)
|
---|
689 | #define IProgressDialog_HasUserCancelled(p) (p)->lpVtbl->HasUserCancelled(p)
|
---|
690 | #define IProgressDialog_SetProgress(p,a,b) (p)->lpVtbl->SetProgress(p,a,b)
|
---|
691 | #define IProgressDialog_SetProgress64(p,a,b) (p)->lpVtbl->SetProgress64(p,a,b)
|
---|
692 | #define IProgressDialog_SetLine(p,a,b,c,d) (p)->lpVtbl->SetLine(p,a,b,c,d)
|
---|
693 | #define IProgressDialog_SetCancelMsg(p,a,b) (p)->lpVtbl->SetCancelMsg(p,a,b)
|
---|
694 | #define IProgressDialog_Timer(p,a,b) (p)->lpVtbl->Timer(p,a,b)
|
---|
695 | #endif
|
---|
696 |
|
---|
697 |
|
---|
698 | /****************************************************************************
|
---|
699 | * SHAddToRecentDocs API
|
---|
700 | */
|
---|
701 | #define SHARD_PIDL 0x00000001L
|
---|
702 | #define SHARD_PATHA 0x00000002L
|
---|
703 | #define SHARD_PATHW 0x00000003L
|
---|
704 | #define SHARD_PATH WINELIB_NAME_AW(SHARD_PATH)
|
---|
705 |
|
---|
706 | void WINAPI SHAddToRecentDocs(UINT,LPCVOID);
|
---|
707 |
|
---|
708 | /****************************************************************************
|
---|
709 | * SHBrowseForFolder API
|
---|
710 | */
|
---|
711 | typedef INT (CALLBACK *BFFCALLBACK)(HWND,UINT,LPARAM,LPARAM);
|
---|
712 |
|
---|
713 | #include <pshpack8.h>
|
---|
714 |
|
---|
715 | typedef struct tagBROWSEINFOA {
|
---|
716 | HWND hwndOwner;
|
---|
717 | LPCITEMIDLIST pidlRoot;
|
---|
718 | LPSTR pszDisplayName;
|
---|
719 | LPCSTR lpszTitle;
|
---|
720 | UINT ulFlags;
|
---|
721 | BFFCALLBACK lpfn;
|
---|
722 | LPARAM lParam;
|
---|
723 | INT iImage;
|
---|
724 | } BROWSEINFOA, *PBROWSEINFOA, *LPBROWSEINFOA;
|
---|
725 |
|
---|
726 | typedef struct tagBROWSEINFOW {
|
---|
727 | HWND hwndOwner;
|
---|
728 | LPCITEMIDLIST pidlRoot;
|
---|
729 | LPWSTR pszDisplayName;
|
---|
730 | LPCWSTR lpszTitle;
|
---|
731 | UINT ulFlags;
|
---|
732 | BFFCALLBACK lpfn;
|
---|
733 | LPARAM lParam;
|
---|
734 | INT iImage;
|
---|
735 | } BROWSEINFOW, *PBROWSEINFOW, *LPBROWSEINFOW;
|
---|
736 |
|
---|
737 | #define BROWSEINFO WINELIB_NAME_AW(BROWSEINFO)
|
---|
738 | #define PBROWSEINFO WINELIB_NAME_AW(PBROWSEINFO)
|
---|
739 | #define LPBROWSEINFO WINELIB_NAME_AW(LPBROWSEINFO)
|
---|
740 |
|
---|
741 | #include <poppack.h>
|
---|
742 |
|
---|
743 | /* Browsing for directory. */
|
---|
744 | #define BIF_RETURNONLYFSDIRS 0x0001
|
---|
745 | #define BIF_DONTGOBELOWDOMAIN 0x0002
|
---|
746 | #define BIF_STATUSTEXT 0x0004
|
---|
747 | #define BIF_RETURNFSANCESTORS 0x0008
|
---|
748 | #define BIF_EDITBOX 0x0010
|
---|
749 | #define BIF_VALIDATE 0x0020
|
---|
750 | #define BIF_NEWDIALOGSTYLE 0x0040
|
---|
751 | #define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
|
---|
752 | #define BIF_BROWSEINCLUDEURLS 0x0080
|
---|
753 | #define BIF_UAHINT 0x0100
|
---|
754 | #define BIF_NONEWFOLDERBUTTON 0x0200
|
---|
755 | #define BIF_NOTRANSLATETARGETS 0x0400
|
---|
756 |
|
---|
757 | #define BIF_BROWSEFORCOMPUTER 0x1000
|
---|
758 | #define BIF_BROWSEFORPRINTER 0x2000
|
---|
759 | #define BIF_BROWSEINCLUDEFILES 0x4000
|
---|
760 |
|
---|
761 | /* message from browser */
|
---|
762 | #define BFFM_INITIALIZED 1
|
---|
763 | #define BFFM_SELCHANGED 2
|
---|
764 | #define BFFM_VALIDATEFAILEDA 3
|
---|
765 | #define BFFM_VALIDATEFAILEDW 4
|
---|
766 | #define BFFM_IUNKNOWN 5
|
---|
767 |
|
---|
768 | /* messages to browser */
|
---|
769 | #define BFFM_SETSTATUSTEXTA (WM_USER+100)
|
---|
770 | #define BFFM_ENABLEOK (WM_USER+101)
|
---|
771 | #define BFFM_SETSELECTIONA (WM_USER+102)
|
---|
772 | #define BFFM_SETSELECTIONW (WM_USER+103)
|
---|
773 | #define BFFM_SETSTATUSTEXTW (WM_USER+104)
|
---|
774 | #define BFFM_SETOKTEXT (WM_USER+105)
|
---|
775 | #define BFFM_SETEXPANDED (WM_USER+106)
|
---|
776 |
|
---|
777 | LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi);
|
---|
778 | LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi);
|
---|
779 | #define SHBrowseForFolder WINELIB_NAME_AW(SHBrowseForFolder)
|
---|
780 | #define BFFM_SETSTATUSTEXT WINELIB_NAME_AW(BFFM_SETSTATUSTEXT)
|
---|
781 | #define BFFM_SETSELECTION WINELIB_NAME_AW(BFFM_SETSELECTION)
|
---|
782 | #define BFFM_VALIDATEFAILED WINELIB_NAME_AW(BFFM_VALIDATEFAILED)
|
---|
783 |
|
---|
784 | /**********************************************************************
|
---|
785 | * SHCreateShellFolderViewEx API
|
---|
786 | */
|
---|
787 |
|
---|
788 | typedef HRESULT (CALLBACK *LPFNVIEWCALLBACK)(
|
---|
789 | IShellView* dwUser,
|
---|
790 | IShellFolder* pshf,
|
---|
791 | HWND hWnd,
|
---|
792 | UINT uMsg,
|
---|
793 | WPARAM wParam,
|
---|
794 | LPARAM lParam);
|
---|
795 |
|
---|
796 | typedef struct _CSFV
|
---|
797 | {
|
---|
798 | UINT cbSize;
|
---|
799 | IShellFolder* pshf;
|
---|
800 | IShellView* psvOuter;
|
---|
801 | LPCITEMIDLIST pidl;
|
---|
802 | LONG lEvents;
|
---|
803 | LPFNVIEWCALLBACK pfnCallback;
|
---|
804 | FOLDERVIEWMODE fvm;
|
---|
805 | } CSFV, *LPCSFV;
|
---|
806 |
|
---|
807 | HRESULT WINAPI SHCreateShellFolderViewEx(LPCSFV pshfvi, IShellView **ppshv);
|
---|
808 |
|
---|
809 | /* SHCreateShellFolderViewEx callback messages */
|
---|
810 | #define SFVM_MERGEMENU 1
|
---|
811 | #define SFVM_INVOKECOMMAND 2
|
---|
812 | #define SFVM_GETHELPTEXT 3
|
---|
813 | #define SFVM_GETTOOLTIPTEXT 4
|
---|
814 | #define SFVM_GETBUTTONINFO 5
|
---|
815 | #define SFVM_GETBUTTONS 6
|
---|
816 | #define SFVM_INITMENUPOPUP 7
|
---|
817 | #define SFVM_SELECTIONCHANGED 8 /* undocumented */
|
---|
818 | #define SFVM_DRAWMENUITEM 9 /* undocumented */
|
---|
819 | #define SFVM_MEASUREMENUITEM 10 /* undocumented */
|
---|
820 | #define SFVM_EXITMENULOOP 11 /* undocumented */
|
---|
821 | #define SFVM_VIEWRELEASE 12 /* undocumented */
|
---|
822 | #define SFVM_GETNAMELENGTH 13 /* undocumented */
|
---|
823 | #define SFVM_FSNOTIFY 14
|
---|
824 | #define SFVM_WINDOWCREATED 15
|
---|
825 | #define SFVM_WINDOWCLOSING 16 /* undocumented */
|
---|
826 | #define SFVM_LISTREFRESHED 17 /* undocumented */
|
---|
827 | #define SFVM_WINDOWFOCUSED 18 /* undocumented */
|
---|
828 | #define SFVM_REGISTERCOPYHOOK 20 /* undocumented */
|
---|
829 | #define SFVM_COPYHOOKCALLBACK 21 /* undocumented */
|
---|
830 | #define SFVM_GETDETAILSOF 23
|
---|
831 | #define SFVM_COLUMNCLICK 24
|
---|
832 | #define SFVM_QUERYFSNOTIFY 25
|
---|
833 | #define SFVM_DEFITEMCOUNT 26
|
---|
834 | #define SFVM_DEFVIEWMODE 27
|
---|
835 | #define SFVM_UNMERGEFROMMENU 28
|
---|
836 | #define SFVM_ADDINGOBJECT 29 /* undocumented */
|
---|
837 | #define SFVM_REMOVINGOBJECT 30 /* undocumented */
|
---|
838 | #define SFVM_UPDATESTATUSBAR 31
|
---|
839 | #define SFVM_BACKGROUNDENUM 32
|
---|
840 | #define SFVM_GETCOMMANDDIR 33 /* undocumented */
|
---|
841 | #define SFVM_GETCOLUMNSTREAM 34 /* undocumented */
|
---|
842 | #define SFVM_CANSELECTALL 35 /* undocumented */
|
---|
843 | #define SFVM_DIDDRAGDROP 36
|
---|
844 | #define SFVM_ISSTRICTREFRESH 37 /* undocumented */
|
---|
845 | #define SFVM_ISCHILDOBJECT 38 /* undocumented */
|
---|
846 | #define SFVM_SETISFV 39
|
---|
847 | #define SFVM_GETEXTVIEWS 40 /* undocumented */
|
---|
848 | #define SFVM_THISIDLIST 41
|
---|
849 | #define SFVM_ADDPROPERTYPAGES 47
|
---|
850 | #define SFVM_BACKGROUNDENUMDONE 48
|
---|
851 | #define SFVM_GETNOTIFY 49
|
---|
852 | #define SFVM_GETSORTDEFAULTS 53
|
---|
853 | #define SFVM_SIZE 57
|
---|
854 | #define SFVM_GETZONE 58
|
---|
855 | #define SFVM_GETPANE 59
|
---|
856 | #define SFVM_GETHELPTOPIC 63
|
---|
857 | #define SFVM_GETANIMATION 68
|
---|
858 | #define SFVM_GET_CUSTOMVIEWINFO 77 /* undocumented */
|
---|
859 | #define SFVM_ENUMERATEDITEMS 79 /* undocumented */
|
---|
860 | #define SFVM_GET_VIEW_DATA 80 /* undocumented */
|
---|
861 | #define SFVM_GET_WEBVIEW_LAYOUT 82 /* undocumented */
|
---|
862 | #define SFVM_GET_WEBVIEW_CONTENT 83 /* undocumented */
|
---|
863 | #define SFVM_GET_WEBVIEW_TASKS 84 /* undocumented */
|
---|
864 | #define SFVM_GET_WEBVIEW_THEME 86 /* undocumented */
|
---|
865 | #define SFVM_GETDEFERREDVIEWSETTINGS 92 /* undocumented */
|
---|
866 |
|
---|
867 | typedef struct _SFV_CREATE
|
---|
868 | {
|
---|
869 | UINT cbSize;
|
---|
870 | IShellFolder *pshf;
|
---|
871 | IShellView *psvOuter;
|
---|
872 | IShellFolderViewCB *psfvcb;
|
---|
873 | } SFV_CREATE;
|
---|
874 |
|
---|
875 | HRESULT WINAPI SHCreateShellFolderView(const SFV_CREATE *pscfv, IShellView **ppsv);
|
---|
876 |
|
---|
877 | /* Types and definitions for the SFM_* parameters */
|
---|
878 | #include <pshpack8.h>
|
---|
879 |
|
---|
880 | #define QCMINFO_PLACE_BEFORE 0
|
---|
881 | #define QCMINFO_PLACE_AFTER 1
|
---|
882 | typedef struct _QCMINFO_IDMAP_PLACEMENT
|
---|
883 | {
|
---|
884 | UINT id;
|
---|
885 | UINT fFlags;
|
---|
886 | } QCMINFO_IDMAP_PLACEMENT;
|
---|
887 |
|
---|
888 | typedef struct _QCMINFO_IDMAP
|
---|
889 | {
|
---|
890 | UINT nMaxIds;
|
---|
891 | QCMINFO_IDMAP_PLACEMENT pIdList[1];
|
---|
892 | } QCMINFO_IDMAP;
|
---|
893 |
|
---|
894 | typedef struct _QCMINFO
|
---|
895 | {
|
---|
896 | HMENU hmenu;
|
---|
897 | UINT indexMenu;
|
---|
898 | UINT idCmdFirst;
|
---|
899 | UINT idCmdLast;
|
---|
900 | QCMINFO_IDMAP const* pIdMap;
|
---|
901 | } QCMINFO, *LPQCMINFO;
|
---|
902 |
|
---|
903 | #define TBIF_DEFAULT 0x00000000
|
---|
904 | #define TBIF_APPEND 0x00000000
|
---|
905 | #define TBIF_PREPEND 0x00000001
|
---|
906 | #define TBIF_REPLACE 0x00000002
|
---|
907 | #define TBIF_INTERNETBAR 0x00010000
|
---|
908 | #define TBIF_STANDARDTOOLBAR 0x00020000
|
---|
909 | #define TBIF_NOTOOLBAR 0x00030000
|
---|
910 |
|
---|
911 | typedef struct _TBINFO
|
---|
912 | {
|
---|
913 | UINT cbuttons;
|
---|
914 | UINT uFlags;
|
---|
915 | } TBINFO, *LPTBINFO;
|
---|
916 |
|
---|
917 | #include <poppack.h>
|
---|
918 |
|
---|
919 | /****************************************************************************
|
---|
920 | * SHShellFolderView_Message API
|
---|
921 | */
|
---|
922 |
|
---|
923 | LRESULT WINAPI SHShellFolderView_Message(
|
---|
924 | HWND hwndCabinet,
|
---|
925 | UINT uMessage,
|
---|
926 | LPARAM lParam);
|
---|
927 |
|
---|
928 | /* SHShellFolderView_Message messages */
|
---|
929 | #define SFVM_REARRANGE 0x0001
|
---|
930 | #define SFVM_GETARRANGECOLUMN 0x0002 /* undocumented */
|
---|
931 | #define SFVM_ADDOBJECT 0x0003
|
---|
932 | #define SFVM_GETITEMCOUNT 0x0004 /* undocumented */
|
---|
933 | #define SFVM_GETITEMPIDL 0x0005 /* undocumented */
|
---|
934 | #define SFVM_REMOVEOBJECT 0x0006
|
---|
935 | #define SFVM_UPDATEOBJECT 0x0007
|
---|
936 | #define SFVM_SETREDRAW 0x0008 /* undocumented */
|
---|
937 | #define SFVM_GETSELECTEDOBJECTS 0x0009
|
---|
938 | #define SFVM_ISDROPONSOURCE 0x000A /* undocumented */
|
---|
939 | #define SFVM_MOVEICONS 0x000B /* undocumented */
|
---|
940 | #define SFVM_GETDRAGPOINT 0x000C /* undocumented */
|
---|
941 | #define SFVM_GETDROPPOINT 0x000D /* undocumented */
|
---|
942 | #define SFVM_SETITEMPOS 0x000E
|
---|
943 | #define SFVM_ISDROPONBACKGROUND 0x000F /* undocumented */
|
---|
944 | #define SFVM_SETCLIPBOARD 0x0010
|
---|
945 | #define SFVM_TOGGLEAUTOARRANGE 0x0011 /* undocumented */
|
---|
946 | #define SFVM_LINEUPICONS 0x0012 /* undocumented */
|
---|
947 | #define SFVM_GETAUTOARRANGE 0x0013 /* undocumented */
|
---|
948 | #define SFVM_GETSELECTEDCOUNT 0x0014 /* undocumented */
|
---|
949 | #define SFVM_GETITEMSPACING 0x0015 /* undocumented */
|
---|
950 | #define SFVM_REFRESHOBJECT 0x0016 /* undocumented */
|
---|
951 | #define SFVM_SETPOINTS 0x0017
|
---|
952 |
|
---|
953 | /****************************************************************************
|
---|
954 | * SHGetDataFromIDList API
|
---|
955 | */
|
---|
956 | #define SHGDFIL_FINDDATA 1
|
---|
957 | #define SHGDFIL_NETRESOURCE 2
|
---|
958 | #define SHGDFIL_DESCRIPTIONID 3
|
---|
959 |
|
---|
960 | #define SHDID_ROOT_REGITEM 1
|
---|
961 | #define SHDID_FS_FILE 2
|
---|
962 | #define SHDID_FS_DIRECTORY 3
|
---|
963 | #define SHDID_FS_OTHER 4
|
---|
964 | #define SHDID_COMPUTER_DRIVE35 5
|
---|
965 | #define SHDID_COMPUTER_DRIVE525 6
|
---|
966 | #define SHDID_COMPUTER_REMOVABLE 7
|
---|
967 | #define SHDID_COMPUTER_FIXED 8
|
---|
968 | #define SHDID_COMPUTER_NETDRIVE 9
|
---|
969 | #define SHDID_COMPUTER_CDROM 10
|
---|
970 | #define SHDID_COMPUTER_RAMDISK 11
|
---|
971 | #define SHDID_COMPUTER_OTHER 12
|
---|
972 | #define SHDID_NET_DOMAIN 13
|
---|
973 | #define SHDID_NET_SERVER 14
|
---|
974 | #define SHDID_NET_SHARE 15
|
---|
975 | #define SHDID_NET_RESTOFNET 16
|
---|
976 | #define SHDID_NET_OTHER 17
|
---|
977 | #define SHDID_COMPUTER_IMAGING 18
|
---|
978 | #define SHDID_COMPUTER_AUDIO 19
|
---|
979 | #define SHDID_COMPUTER_SHAREDDOCS 20
|
---|
980 |
|
---|
981 | #include <pshpack8.h>
|
---|
982 |
|
---|
983 | typedef struct _SHDESCRIPTIONID
|
---|
984 | { DWORD dwDescriptionId;
|
---|
985 | CLSID clsid;
|
---|
986 | } SHDESCRIPTIONID, *LPSHDESCRIPTIONID;
|
---|
987 |
|
---|
988 | #include <poppack.h>
|
---|
989 |
|
---|
990 | HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
|
---|
991 | HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int nFormat, LPVOID pv, int cb);
|
---|
992 | #define SHGetDataFromIDList WINELIB_NAME_AW(SHGetDataFromIDList)
|
---|
993 |
|
---|
994 | BOOL WINAPI SHGetSpecialFolderPathA (HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate);
|
---|
995 | BOOL WINAPI SHGetSpecialFolderPathW (HWND hwndOwner, LPWSTR szPath, int nFolder, BOOL bCreate);
|
---|
996 | #define SHGetSpecialFolderPath WINELIB_NAME_AW(SHGetSpecialFolderPath)
|
---|
997 |
|
---|
998 | HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal) ;
|
---|
999 |
|
---|
1000 | /**********************************************************************
|
---|
1001 | * SHGetSetSettings ()
|
---|
1002 | */
|
---|
1003 |
|
---|
1004 | typedef struct
|
---|
1005 | {
|
---|
1006 | BOOL fShowAllObjects : 1;
|
---|
1007 | BOOL fShowExtensions : 1;
|
---|
1008 | BOOL fNoConfirmRecycle : 1;
|
---|
1009 |
|
---|
1010 | BOOL fShowSysFiles : 1;
|
---|
1011 | BOOL fShowCompColor : 1;
|
---|
1012 | BOOL fDoubleClickInWebView : 1;
|
---|
1013 | BOOL fDesktopHTML : 1;
|
---|
1014 | BOOL fWin95Classic : 1;
|
---|
1015 | BOOL fDontPrettyPath : 1;
|
---|
1016 | BOOL fShowAttribCol : 1;
|
---|
1017 | BOOL fMapNetDrvBtn : 1;
|
---|
1018 | BOOL fShowInfoTip : 1;
|
---|
1019 | BOOL fHideIcons : 1;
|
---|
1020 | BOOL fWebView : 1;
|
---|
1021 | BOOL fFilter : 1;
|
---|
1022 | BOOL fShowSuperHidden : 1;
|
---|
1023 | BOOL fNoNetCrawling : 1;
|
---|
1024 |
|
---|
1025 | UINT :15; /* Required for proper binary layout with gcc */
|
---|
1026 | DWORD dwWin95Unused;
|
---|
1027 | UINT uWin95Unused;
|
---|
1028 | LONG lParamSort;
|
---|
1029 | int iSortDirection;
|
---|
1030 | UINT version;
|
---|
1031 | UINT uNotUsed;
|
---|
1032 | BOOL fSepProcess: 1;
|
---|
1033 | BOOL fStartPanelOn: 1;
|
---|
1034 | BOOL fShowStartPage: 1;
|
---|
1035 | UINT fSpareFlags : 13;
|
---|
1036 | UINT :15; /* Required for proper binary layout with gcc */
|
---|
1037 | } SHELLSTATE, *LPSHELLSTATE;
|
---|
1038 |
|
---|
1039 | /**********************************************************************
|
---|
1040 | * SHGetSettings ()
|
---|
1041 | */
|
---|
1042 | typedef struct
|
---|
1043 | { BOOL fShowAllObjects : 1;
|
---|
1044 | BOOL fShowExtensions : 1;
|
---|
1045 | BOOL fNoConfirmRecycle : 1;
|
---|
1046 | BOOL fShowSysFiles : 1;
|
---|
1047 |
|
---|
1048 | BOOL fShowCompColor : 1;
|
---|
1049 | BOOL fDoubleClickInWebView : 1;
|
---|
1050 | BOOL fDesktopHTML : 1;
|
---|
1051 | BOOL fWin95Classic : 1;
|
---|
1052 |
|
---|
1053 | BOOL fDontPrettyPath : 1;
|
---|
1054 | BOOL fShowAttribCol : 1;
|
---|
1055 | BOOL fMapNetDrvBtn : 1;
|
---|
1056 | BOOL fShowInfoTip : 1;
|
---|
1057 |
|
---|
1058 | BOOL fHideIcons : 1;
|
---|
1059 | UINT fRestFlags : 3;
|
---|
1060 | UINT :15; /* Required for proper binary layout with gcc */
|
---|
1061 | } SHELLFLAGSTATE, * LPSHELLFLAGSTATE;
|
---|
1062 |
|
---|
1063 | VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask);
|
---|
1064 |
|
---|
1065 | #define SSF_SHOWALLOBJECTS 0x0001
|
---|
1066 | #define SSF_SHOWEXTENSIONS 0x0002
|
---|
1067 | #define SSF_SHOWCOMPCOLOR 0x0008
|
---|
1068 | #define SSF_SHOWSYSFILES 0x0020
|
---|
1069 | #define SSF_DOUBLECLICKINWEBVIEW 0x0080
|
---|
1070 | #define SSF_SHOWATTRIBCOL 0x0100
|
---|
1071 | #define SSF_DESKTOPHTML 0x0200
|
---|
1072 | #define SSF_WIN95CLASSIC 0x0400
|
---|
1073 | #define SSF_DONTPRETTYPATH 0x0800
|
---|
1074 | #define SSF_SHOWINFOTIP 0x2000
|
---|
1075 | #define SSF_MAPNETDRVBUTTON 0x1000
|
---|
1076 | #define SSF_NOCONFIRMRECYCLE 0x8000
|
---|
1077 | #define SSF_HIDEICONS 0x4000
|
---|
1078 |
|
---|
1079 | /****************************************************************************
|
---|
1080 | * SHRestricted API
|
---|
1081 | */
|
---|
1082 | typedef enum RESTRICTIONS
|
---|
1083 | {
|
---|
1084 | REST_NONE = 0x00000000,
|
---|
1085 | REST_NORUN = 0x00000001,
|
---|
1086 | REST_NOCLOSE = 0x00000002,
|
---|
1087 | REST_NOSAVESET = 0x00000004,
|
---|
1088 | REST_NOFILEMENU = 0x00000008,
|
---|
1089 | REST_NOSETFOLDERS = 0x00000010,
|
---|
1090 | REST_NOSETTASKBAR = 0x00000020,
|
---|
1091 | REST_NODESKTOP = 0x00000040,
|
---|
1092 | REST_NOFIND = 0x00000080,
|
---|
1093 | REST_NODRIVES = 0x00000100,
|
---|
1094 | REST_NODRIVEAUTORUN = 0x00000200,
|
---|
1095 | REST_NODRIVETYPEAUTORUN = 0x00000400,
|
---|
1096 | REST_NONETHOOD = 0x00000800,
|
---|
1097 | REST_STARTBANNER = 0x00001000,
|
---|
1098 | REST_RESTRICTRUN = 0x00002000,
|
---|
1099 | REST_NOPRINTERTABS = 0x00004000,
|
---|
1100 | REST_NOPRINTERDELETE = 0x00008000,
|
---|
1101 | REST_NOPRINTERADD = 0x00010000,
|
---|
1102 | REST_NOSTARTMENUSUBFOLDERS = 0x00020000,
|
---|
1103 | REST_MYDOCSONNET = 0x00040000,
|
---|
1104 | REST_NOEXITTODOS = 0x00080000,
|
---|
1105 | REST_ENFORCESHELLEXTSECURITY = 0x00100000,
|
---|
1106 | REST_LINKRESOLVEIGNORELINKINFO = 0x00200000,
|
---|
1107 | REST_NOCOMMONGROUPS = 0x00400000,
|
---|
1108 | REST_SEPARATEDESKTOPPROCESS = 0x00800000,
|
---|
1109 | REST_NOWEB = 0x01000000,
|
---|
1110 | REST_NOTRAYCONTEXTMENU = 0x02000000,
|
---|
1111 | REST_NOVIEWCONTEXTMENU = 0x04000000,
|
---|
1112 | REST_NONETCONNECTDISCONNECT = 0x08000000,
|
---|
1113 | REST_STARTMENULOGOFF = 0x10000000,
|
---|
1114 | REST_NOSETTINGSASSIST = 0x20000000,
|
---|
1115 | REST_NOINTERNETICON = 0x40000001,
|
---|
1116 | REST_NORECENTDOCSHISTORY,
|
---|
1117 | REST_NORECENTDOCSMENU,
|
---|
1118 | REST_NOACTIVEDESKTOP,
|
---|
1119 | REST_NOACTIVEDESKTOPCHANGES,
|
---|
1120 | REST_NOFAVORITESMENU,
|
---|
1121 | REST_CLEARRECENTDOCSONEXIT,
|
---|
1122 | REST_CLASSICSHELL,
|
---|
1123 | REST_NOCUSTOMIZEWEBVIEW,
|
---|
1124 |
|
---|
1125 | REST_NOHTMLWALLPAPER = 0x40000010,
|
---|
1126 | REST_NOCHANGINGWALLPAPER,
|
---|
1127 | REST_NODESKCOMP,
|
---|
1128 | REST_NOADDDESKCOMP,
|
---|
1129 | REST_NODELDESKCOMP,
|
---|
1130 | REST_NOCLOSEDESKCOMP,
|
---|
1131 | REST_NOCLOSE_DRAGDROPBAND,
|
---|
1132 | REST_NOMOVINGBAND,
|
---|
1133 | REST_NOEDITDESKCOMP,
|
---|
1134 | REST_NORESOLVESEARCH,
|
---|
1135 | REST_NORESOLVETRACK,
|
---|
1136 | REST_FORCECOPYACLWITHFILE,
|
---|
1137 | REST_NOLOGO3CHANNELNOTIFY,
|
---|
1138 | REST_NOFORGETSOFTWAREUPDATE,
|
---|
1139 | REST_NOSETACTIVEDESKTOP,
|
---|
1140 | REST_NOUPDATEWINDOWS,
|
---|
1141 | REST_NOCHANGESTARMENU, /* 0x40000020 */
|
---|
1142 | REST_NOFOLDEROPTIONS,
|
---|
1143 | REST_HASFINDCOMPUTERS,
|
---|
1144 | REST_INTELLIMENUS,
|
---|
1145 | REST_RUNDLGMEMCHECKBOX,
|
---|
1146 | REST_ARP_ShowPostSetup,
|
---|
1147 | REST_NOCSC,
|
---|
1148 | REST_NOCONTROLPANEL,
|
---|
1149 | REST_ENUMWORKGROUP,
|
---|
1150 | REST_ARP_NOARP,
|
---|
1151 | REST_ARP_NOREMOVEPAGE,
|
---|
1152 | REST_ARP_NOADDPAGE,
|
---|
1153 | REST_ARP_NOWINSETUPPAGE,
|
---|
1154 | REST_GREYMSIADS,
|
---|
1155 | REST_NOCHANGEMAPPEDDRIVELABEL,
|
---|
1156 | REST_NOCHANGEMAPPEDDRIVECOMMENT,
|
---|
1157 | REST_MaxRecentDocs, /* 0x40000030 */
|
---|
1158 | REST_NONETWORKCONNECTIONS,
|
---|
1159 | REST_FORCESTARTMENULOGOFF,
|
---|
1160 | REST_NOWEBVIEW,
|
---|
1161 | REST_NOCUSTOMIZETHISFOLDER,
|
---|
1162 | REST_NOENCRYPTION,
|
---|
1163 |
|
---|
1164 | REST_ALLOWFRENCHENCRYPTION, /* not documented */
|
---|
1165 |
|
---|
1166 | REST_DONTSHOWSUPERHIDDEN,
|
---|
1167 | REST_NOSHELLSEARCHBUTTON,
|
---|
1168 | REST_NOHARDWARETAB,
|
---|
1169 | REST_NORUNASINSTALLPROMPT,
|
---|
1170 | REST_PROMPTRUNASINSTALLNETPATH,
|
---|
1171 | REST_NOMANAGEMYCOMPUTERVERB,
|
---|
1172 | REST_NORECENTDOCSNETHOOD,
|
---|
1173 | REST_DISALLOWRUN,
|
---|
1174 | REST_NOWELCOMESCREEN,
|
---|
1175 | REST_RESTRICTCPL, /* 0x40000040 */
|
---|
1176 | REST_DISALLOWCPL,
|
---|
1177 | REST_NOSMBALLOONTIP,
|
---|
1178 | REST_NOSMHELP,
|
---|
1179 | REST_NOWINKEYS,
|
---|
1180 | REST_NOENCRYPTONMOVE,
|
---|
1181 | REST_NOLOCALMACHINERUN,
|
---|
1182 | REST_NOCURRENTUSERRUN,
|
---|
1183 | REST_NOLOCALMACHINERUNONCE,
|
---|
1184 | REST_NOCURRENTUSERRUNONCE,
|
---|
1185 | REST_FORCEACTIVEDESKTOPON,
|
---|
1186 | REST_NOCOMPUTERSNEARME,
|
---|
1187 | REST_NOVIEWONDRIVE,
|
---|
1188 | REST_NONETCRAWL,
|
---|
1189 | REST_NOSHAREDDOCUMENTS,
|
---|
1190 | REST_NOSMMYDOCS,
|
---|
1191 | REST_NOSMMYPICS, /* 0x40000050 */
|
---|
1192 | REST_ALLOWBITBUCKDRIVES,
|
---|
1193 | REST_NONLEGACYSHELLMODE,
|
---|
1194 | REST_NOCONTROLPANELBARRICADE,
|
---|
1195 | REST_NOSTARTPAGE,
|
---|
1196 | REST_NOAUTOTRAYNOTIFY,
|
---|
1197 | REST_NOTASKGROUPING,
|
---|
1198 | REST_NOCDBURNING,
|
---|
1199 | REST_MYCOMPNOPROP,
|
---|
1200 | REST_MYDOCSNOPROP,
|
---|
1201 | REST_NOSTARTPANEL,
|
---|
1202 | REST_NODISPLAYAPPEARANCEPAGE,
|
---|
1203 | REST_NOTHEMESTAB,
|
---|
1204 | REST_NOVISUALSTYLECHOICE,
|
---|
1205 | REST_NOSIZECHOICE,
|
---|
1206 | REST_NOCOLORCHOICE,
|
---|
1207 | REST_SETVISUALSTYLE, /* 0x40000060 */
|
---|
1208 | REST_STARTRUNNOHOMEPATH,
|
---|
1209 | REST_NOUSERNAMEINSTARTPANEL,
|
---|
1210 | REST_NOMYCOMPUTERICON,
|
---|
1211 | REST_NOSMNETWORKPLACES,
|
---|
1212 | REST_NOSMPINNEDLIST,
|
---|
1213 | REST_NOSMMYMUSIC,
|
---|
1214 | REST_NOSMEJECTPC,
|
---|
1215 | REST_NOSMMOREPROGRAMS,
|
---|
1216 | REST_NOSMMFUPROGRAMS,
|
---|
1217 | REST_NOTRAYITEMSDISPLAY,
|
---|
1218 | REST_NOTOOLBARSONTASKBAR,
|
---|
1219 | /* 0x4000006C
|
---|
1220 | 0x4000006D
|
---|
1221 | 0x4000006E */
|
---|
1222 | REST_NOSMCONFIGUREPROGRAMS = 0x4000006F,
|
---|
1223 | REST_HIDECLOCK, /* 0x40000070 */
|
---|
1224 | REST_NOLOWDISKSPACECHECKS,
|
---|
1225 | REST_NOENTIRENETWORK,
|
---|
1226 | REST_NODESKTOPCLEANUP,
|
---|
1227 | REST_BITBUCKNUKEONDELETE,
|
---|
1228 | REST_BITBUCKCONFIRMDELETE,
|
---|
1229 | REST_BITBUCKNOPROP,
|
---|
1230 | REST_NODISPBACKGROUND,
|
---|
1231 | REST_NODISPSCREENSAVEPG,
|
---|
1232 | REST_NODISPSETTINGSPG,
|
---|
1233 | REST_NODISPSCREENSAVEPREVIEW,
|
---|
1234 | REST_NODISPLAYCPL,
|
---|
1235 | REST_HIDERUNASVERB,
|
---|
1236 | REST_NOTHUMBNAILCACHE,
|
---|
1237 | REST_NOSTRCMPLOGICAL,
|
---|
1238 | REST_NOPUBLISHWIZARD,
|
---|
1239 | REST_NOONLINEPRINTSWIZARD, /* 0x40000080 */
|
---|
1240 | REST_NOWEBSERVICES,
|
---|
1241 | REST_ALLOWUNHASHEDWEBVIEW,
|
---|
1242 | REST_ALLOWLEGACYWEBVIEW,
|
---|
1243 | REST_REVERTWEBVIEWSECURITY,
|
---|
1244 |
|
---|
1245 | REST_INHERITCONSOLEHANDLES = 0x40000086,
|
---|
1246 |
|
---|
1247 | REST_NODISCONNECT = 0x41000001,
|
---|
1248 | REST_NOSECURITY,
|
---|
1249 | REST_NOFILEASSOCIATE, /* 0x41000003 */
|
---|
1250 | } RESTRICTIONS;
|
---|
1251 |
|
---|
1252 | DWORD WINAPI SHRestricted(RESTRICTIONS rest);
|
---|
1253 |
|
---|
1254 | /****************************************************************************
|
---|
1255 | * SHChangeNotify API
|
---|
1256 | */
|
---|
1257 | typedef struct _SHChangeNotifyEntry
|
---|
1258 | {
|
---|
1259 | LPCITEMIDLIST pidl;
|
---|
1260 | BOOL fRecursive;
|
---|
1261 | } SHChangeNotifyEntry;
|
---|
1262 |
|
---|
1263 | #define SHCNE_RENAMEITEM 0x00000001
|
---|
1264 | #define SHCNE_CREATE 0x00000002
|
---|
1265 | #define SHCNE_DELETE 0x00000004
|
---|
1266 | #define SHCNE_MKDIR 0x00000008
|
---|
1267 | #define SHCNE_RMDIR 0x00000010
|
---|
1268 | #define SHCNE_MEDIAINSERTED 0x00000020
|
---|
1269 | #define SHCNE_MEDIAREMOVED 0x00000040
|
---|
1270 | #define SHCNE_DRIVEREMOVED 0x00000080
|
---|
1271 | #define SHCNE_DRIVEADD 0x00000100
|
---|
1272 | #define SHCNE_NETSHARE 0x00000200
|
---|
1273 | #define SHCNE_NETUNSHARE 0x00000400
|
---|
1274 | #define SHCNE_ATTRIBUTES 0x00000800
|
---|
1275 | #define SHCNE_UPDATEDIR 0x00001000
|
---|
1276 | #define SHCNE_UPDATEITEM 0x00002000
|
---|
1277 | #define SHCNE_SERVERDISCONNECT 0x00004000
|
---|
1278 | #define SHCNE_UPDATEIMAGE 0x00008000
|
---|
1279 | #define SHCNE_DRIVEADDGUI 0x00010000
|
---|
1280 | #define SHCNE_RENAMEFOLDER 0x00020000
|
---|
1281 | #define SHCNE_FREESPACE 0x00040000
|
---|
1282 |
|
---|
1283 | #define SHCNE_EXTENDED_EVENT 0x04000000
|
---|
1284 | #define SHCNE_ASSOCCHANGED 0x08000000
|
---|
1285 | #define SHCNE_DISKEVENTS 0x0002381F
|
---|
1286 | #define SHCNE_GLOBALEVENTS 0x0C0581E0
|
---|
1287 | #define SHCNE_ALLEVENTS 0x7FFFFFFF
|
---|
1288 | #define SHCNE_INTERRUPT 0x80000000
|
---|
1289 |
|
---|
1290 | #define SHCNEE_ORDERCHANGED 0x0002L
|
---|
1291 | #define SHCNEE_MSI_CHANGE 0x0004L
|
---|
1292 | #define SHCNEE_MSI_UNINSTALL 0x0005L
|
---|
1293 |
|
---|
1294 | #define SHCNF_IDLIST 0x0000
|
---|
1295 | #define SHCNF_PATHA 0x0001
|
---|
1296 | #define SHCNF_PRINTERA 0x0002
|
---|
1297 | #define SHCNF_DWORD 0x0003
|
---|
1298 | #define SHCNF_PATHW 0x0005
|
---|
1299 | #define SHCNF_PRINTERW 0x0006
|
---|
1300 | #define SHCNF_TYPE 0x00FF
|
---|
1301 | #define SHCNF_FLUSH 0x1000
|
---|
1302 | #define SHCNF_FLUSHNOWAIT 0x2000
|
---|
1303 |
|
---|
1304 | #define SHCNF_PATH WINELIB_NAME_AW(SHCNF_PATH)
|
---|
1305 | #define SHCNF_PRINTER WINELIB_NAME_AW(SHCNF_PRINTER)
|
---|
1306 |
|
---|
1307 | void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2);
|
---|
1308 |
|
---|
1309 | typedef enum {
|
---|
1310 | SLDF_HAS_ID_LIST = 0x00000001,
|
---|
1311 | SLDF_HAS_LINK_INFO = 0x00000002,
|
---|
1312 | SLDF_HAS_NAME = 0x00000004,
|
---|
1313 | SLDF_HAS_RELPATH = 0x00000008,
|
---|
1314 | SLDF_HAS_WORKINGDIR = 0x00000010,
|
---|
1315 | SLDF_HAS_ARGS = 0x00000020,
|
---|
1316 | SLDF_HAS_ICONLOCATION = 0x00000040,
|
---|
1317 | SLDF_UNICODE = 0x00000080,
|
---|
1318 | SLDF_FORCE_NO_LINKINFO = 0x00000100,
|
---|
1319 | SLDF_HAS_EXP_SZ = 0x00000200,
|
---|
1320 | SLDF_RUN_IN_SEPARATE = 0x00000400,
|
---|
1321 | SLDF_HAS_LOGO3ID = 0x00000800,
|
---|
1322 | SLDF_HAS_DARWINID = 0x00001000,
|
---|
1323 | SLDF_RUNAS_USER = 0x00002000,
|
---|
1324 | SLDF_HAS_EXP_ICON_SZ = 0x00004000,
|
---|
1325 | SLDF_NO_PIDL_ALIAS = 0x00008000,
|
---|
1326 | SLDF_FORCE_UNCNAME = 0x00010000,
|
---|
1327 | SLDF_RUN_WITH_SHIMLAYER = 0x00020000,
|
---|
1328 | SLDF_FORCE_NO_LINKTRACK = 0x00040000,
|
---|
1329 | SLDF_ENABLE_TARGET_METADATA = 0x00080000,
|
---|
1330 | SLDF_DISABLE_KNOWNFOLDER_RELATIVE_TRACKING = 0x00200000,
|
---|
1331 | SLDF_VALID = 0x003ff7ff,
|
---|
1332 | SLDF_RESERVED = 0x80000000,
|
---|
1333 | } SHELL_LINK_DATA_FLAGS;
|
---|
1334 |
|
---|
1335 | typedef struct tagDATABLOCKHEADER
|
---|
1336 | {
|
---|
1337 | DWORD cbSize;
|
---|
1338 | DWORD dwSignature;
|
---|
1339 | } DATABLOCK_HEADER, *LPDATABLOCK_HEADER, *LPDBLIST;
|
---|
1340 |
|
---|
1341 | typedef struct {
|
---|
1342 | DATABLOCK_HEADER dbh;
|
---|
1343 | CHAR szDarwinID[MAX_PATH];
|
---|
1344 | WCHAR szwDarwinID[MAX_PATH];
|
---|
1345 | } EXP_DARWIN_LINK, *LPEXP_DARWIN_LINK;
|
---|
1346 |
|
---|
1347 | typedef struct {
|
---|
1348 | DWORD cbSize;
|
---|
1349 | DWORD cbSignature;
|
---|
1350 | CHAR szTarget[MAX_PATH];
|
---|
1351 | WCHAR szwTarget[MAX_PATH];
|
---|
1352 | } EXP_SZ_LINK, *LPEXP_SZ_LINK;
|
---|
1353 |
|
---|
1354 | typedef struct {
|
---|
1355 | DWORD cbSize;
|
---|
1356 | DWORD dwSignature;
|
---|
1357 | DWORD idSpecialFolder;
|
---|
1358 | DWORD cbOffset;
|
---|
1359 | } EXP_SPECIAL_FOLDER, *LPEXP_SPECIAL_FOLDER;
|
---|
1360 |
|
---|
1361 | typedef struct {
|
---|
1362 | DWORD cbSize;
|
---|
1363 | DWORD dwSignature;
|
---|
1364 | BYTE abPropertyStorage[1];
|
---|
1365 | } EXP_PROPERTYSTORAGE;
|
---|
1366 |
|
---|
1367 | #define EXP_SZ_LINK_SIG 0xa0000001
|
---|
1368 | #define NT_CONSOLE_PROPS_SIG 0xa0000002
|
---|
1369 | #define NT_FE_CONSOLE_PROPS_SIG 0xa0000004
|
---|
1370 | #define EXP_SPECIAL_FOLDER_SIG 0xa0000005
|
---|
1371 | #define EXP_DARWIN_ID_SIG 0xa0000006
|
---|
1372 | #define EXP_SZ_ICON_SIG 0xa0000007
|
---|
1373 | #define EXP_LOGO3_ID_SIG EXP_SZ_ICON_SIG /* Old SDKs only */
|
---|
1374 | #define EXP_PROPERTYSTORAGE_SIG 0xa0000009
|
---|
1375 |
|
---|
1376 | typedef struct _SHChangeDWORDAsIDList {
|
---|
1377 | USHORT cb;
|
---|
1378 | DWORD dwItem1;
|
---|
1379 | DWORD dwItem2;
|
---|
1380 | USHORT cbZero;
|
---|
1381 | } SHChangeDWORDAsIDList, *LPSHChangeDWORDAsIDList;
|
---|
1382 |
|
---|
1383 | typedef struct _SHChangeProductKeyAsIDList {
|
---|
1384 | USHORT cb;
|
---|
1385 | WCHAR wszProductKey[39];
|
---|
1386 | USHORT cbZero;
|
---|
1387 | } SHChangeProductKeyAsIDList, *LPSHChangeProductKeyAsIDList;
|
---|
1388 |
|
---|
1389 | ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, int fSources, LONG fEvents, UINT wMsg,
|
---|
1390 | int cEntries, SHChangeNotifyEntry *pshcne);
|
---|
1391 | BOOL WINAPI SHChangeNotifyDeregister(ULONG ulID);
|
---|
1392 | HANDLE WINAPI SHChangeNotification_Lock(HANDLE hChangeNotification, DWORD dwProcessId,
|
---|
1393 | LPITEMIDLIST **pppidl, LONG *plEvent);
|
---|
1394 | BOOL WINAPI SHChangeNotification_Unlock(HANDLE hLock);
|
---|
1395 |
|
---|
1396 | HRESULT WINAPI SHGetRealIDL(IShellFolder *psf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST * ppidlReal);
|
---|
1397 |
|
---|
1398 | /****************************************************************************
|
---|
1399 | * SHCreateDirectory API
|
---|
1400 | */
|
---|
1401 | DWORD WINAPI SHCreateDirectory(HWND, LPCVOID);
|
---|
1402 | int WINAPI SHCreateDirectoryExA(HWND, LPCSTR, LPSECURITY_ATTRIBUTES);
|
---|
1403 | int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
|
---|
1404 | #define SHCreateDirectoryEx WINELIB_NAME_AW(SHCreateDirectoryEx)
|
---|
1405 |
|
---|
1406 | /****************************************************************************
|
---|
1407 | * SHGetSpecialFolderLocation API
|
---|
1408 | */
|
---|
1409 | HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
|
---|
1410 | HRESULT WINAPI SHGetFolderLocation(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwReserved, LPITEMIDLIST *ppidl);
|
---|
1411 |
|
---|
1412 | /****************************************************************************
|
---|
1413 | * SHGetFolderPath API
|
---|
1414 | */
|
---|
1415 | typedef enum {
|
---|
1416 | SHGFP_TYPE_CURRENT = 0,
|
---|
1417 | SHGFP_TYPE_DEFAULT = 1
|
---|
1418 | } SHGFP_TYPE;
|
---|
1419 |
|
---|
1420 | HRESULT WINAPI SHGetFolderPathA(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);
|
---|
1421 | HRESULT WINAPI SHGetFolderPathW(HWND hwnd, int nFolder, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
|
---|
1422 | #define SHGetFolderPath WINELIB_NAME_AW(SHGetFolderPath)
|
---|
1423 |
|
---|
1424 | #define CSIDL_DESKTOP 0x0000
|
---|
1425 | #define CSIDL_INTERNET 0x0001
|
---|
1426 | #define CSIDL_PROGRAMS 0x0002
|
---|
1427 | #define CSIDL_CONTROLS 0x0003
|
---|
1428 | #define CSIDL_PRINTERS 0x0004
|
---|
1429 | #define CSIDL_PERSONAL 0x0005
|
---|
1430 | #define CSIDL_FAVORITES 0x0006
|
---|
1431 | #define CSIDL_STARTUP 0x0007
|
---|
1432 | #define CSIDL_RECENT 0x0008
|
---|
1433 | #define CSIDL_SENDTO 0x0009
|
---|
1434 | #define CSIDL_BITBUCKET 0x000a
|
---|
1435 | #define CSIDL_STARTMENU 0x000b
|
---|
1436 | #define CSIDL_MYDOCUMENTS CSIDL_PERSONAL
|
---|
1437 | #define CSIDL_MYMUSIC 0x000d
|
---|
1438 | #define CSIDL_MYVIDEO 0x000e
|
---|
1439 | #define CSIDL_DESKTOPDIRECTORY 0x0010
|
---|
1440 | #define CSIDL_DRIVES 0x0011
|
---|
1441 | #define CSIDL_NETWORK 0x0012
|
---|
1442 | #define CSIDL_NETHOOD 0x0013
|
---|
1443 | #define CSIDL_FONTS 0x0014
|
---|
1444 | #define CSIDL_TEMPLATES 0x0015
|
---|
1445 | #define CSIDL_COMMON_STARTMENU 0x0016
|
---|
1446 | #define CSIDL_COMMON_PROGRAMS 0X0017
|
---|
1447 | #define CSIDL_COMMON_STARTUP 0x0018
|
---|
1448 | #define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
|
---|
1449 | #define CSIDL_APPDATA 0x001a
|
---|
1450 | #define CSIDL_PRINTHOOD 0x001b
|
---|
1451 | #define CSIDL_LOCAL_APPDATA 0x001c
|
---|
1452 | #define CSIDL_ALTSTARTUP 0x001d
|
---|
1453 | #define CSIDL_COMMON_ALTSTARTUP 0x001e
|
---|
1454 | #define CSIDL_COMMON_FAVORITES 0x001f
|
---|
1455 | #define CSIDL_INTERNET_CACHE 0x0020
|
---|
1456 | #define CSIDL_COOKIES 0x0021
|
---|
1457 | #define CSIDL_HISTORY 0x0022
|
---|
1458 | #define CSIDL_COMMON_APPDATA 0x0023
|
---|
1459 | #define CSIDL_WINDOWS 0x0024
|
---|
1460 | #define CSIDL_SYSTEM 0x0025
|
---|
1461 | #define CSIDL_PROGRAM_FILES 0x0026
|
---|
1462 | #define CSIDL_MYPICTURES 0x0027
|
---|
1463 | #define CSIDL_PROFILE 0x0028
|
---|
1464 | #define CSIDL_SYSTEMX86 0x0029
|
---|
1465 | #define CSIDL_PROGRAM_FILESX86 0x002a
|
---|
1466 | #define CSIDL_PROGRAM_FILES_COMMON 0x002b
|
---|
1467 | #define CSIDL_PROGRAM_FILES_COMMONX86 0x002c
|
---|
1468 | #define CSIDL_COMMON_TEMPLATES 0x002d
|
---|
1469 | #define CSIDL_COMMON_DOCUMENTS 0x002e
|
---|
1470 | #define CSIDL_COMMON_ADMINTOOLS 0x002f
|
---|
1471 | #define CSIDL_ADMINTOOLS 0x0030
|
---|
1472 | #define CSIDL_CONNECTIONS 0x0031
|
---|
1473 | #define CSIDL_COMMON_MUSIC 0x0035
|
---|
1474 | #define CSIDL_COMMON_PICTURES 0x0036
|
---|
1475 | #define CSIDL_COMMON_VIDEO 0x0037
|
---|
1476 | #define CSIDL_RESOURCES 0x0038
|
---|
1477 | #define CSIDL_RESOURCES_LOCALIZED 0x0039
|
---|
1478 | #define CSIDL_COMMON_OEM_LINKS 0x003a
|
---|
1479 | #define CSIDL_CDBURN_AREA 0x003b
|
---|
1480 | #define CSIDL_COMPUTERSNEARME 0x003d
|
---|
1481 | #define CSIDL_PROFILES 0x003e
|
---|
1482 | #define CSIDL_FOLDER_MASK 0x00ff
|
---|
1483 | #define CSIDL_FLAG_PER_USER_INIT 0x0800
|
---|
1484 | #define CSIDL_FLAG_NO_ALIAS 0x1000
|
---|
1485 | #define CSIDL_FLAG_DONT_VERIFY 0x4000
|
---|
1486 | #define CSIDL_FLAG_CREATE 0x8000
|
---|
1487 |
|
---|
1488 | #define CSIDL_FLAG_MASK 0xff00
|
---|
1489 |
|
---|
1490 | /****************************************************************************
|
---|
1491 | * SHGetDesktopFolder API
|
---|
1492 | */
|
---|
1493 | HRESULT WINAPI SHGetDesktopFolder(IShellFolder * *);
|
---|
1494 |
|
---|
1495 | /****************************************************************************
|
---|
1496 | * SHBindToParent API
|
---|
1497 | */
|
---|
1498 | HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast);
|
---|
1499 |
|
---|
1500 | /****************************************************************************
|
---|
1501 | * SHDefExtractIcon API
|
---|
1502 | */
|
---|
1503 | HRESULT WINAPI SHDefExtractIconA(LPCSTR pszIconFile, int iIndex, UINT uFlags,
|
---|
1504 | HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
|
---|
1505 | HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
|
---|
1506 | HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize);
|
---|
1507 | #define SHDefExtractIcon WINELIB_NAME_AW(SHDefExtractIcon)
|
---|
1508 |
|
---|
1509 | /*
|
---|
1510 | * DROPFILES for CF_HDROP and CF_PRINTERS
|
---|
1511 | */
|
---|
1512 | typedef struct _DROPFILES
|
---|
1513 | {
|
---|
1514 | DWORD pFiles;
|
---|
1515 | POINT pt;
|
---|
1516 | BOOL fNC;
|
---|
1517 | BOOL fWide;
|
---|
1518 | } DROPFILES, *LPDROPFILES;
|
---|
1519 |
|
---|
1520 | /*
|
---|
1521 | * Properties of a file in the clipboard
|
---|
1522 | */
|
---|
1523 | typedef struct _FILEDESCRIPTORA {
|
---|
1524 | DWORD dwFlags;
|
---|
1525 | CLSID clsid;
|
---|
1526 | SIZEL sizel;
|
---|
1527 | POINTL pointl;
|
---|
1528 | DWORD dwFileAttributes;
|
---|
1529 | FILETIME ftCreationTime;
|
---|
1530 | FILETIME ftLastAccessTime;
|
---|
1531 | FILETIME ftLastWriteTime;
|
---|
1532 | DWORD nFileSizeHigh;
|
---|
1533 | DWORD nFileSizeLow;
|
---|
1534 | CHAR cFileName[MAX_PATH];
|
---|
1535 | } FILEDESCRIPTORA, *LPFILEDESCRIPTORA;
|
---|
1536 |
|
---|
1537 | typedef struct _FILEDESCRIPTORW {
|
---|
1538 | DWORD dwFlags;
|
---|
1539 | CLSID clsid;
|
---|
1540 | SIZEL sizel;
|
---|
1541 | POINTL pointl;
|
---|
1542 | DWORD dwFileAttributes;
|
---|
1543 | FILETIME ftCreationTime;
|
---|
1544 | FILETIME ftLastAccessTime;
|
---|
1545 | FILETIME ftLastWriteTime;
|
---|
1546 | DWORD nFileSizeHigh;
|
---|
1547 | DWORD nFileSizeLow;
|
---|
1548 | WCHAR cFileName[MAX_PATH];
|
---|
1549 | } FILEDESCRIPTORW, *LPFILEDESCRIPTORW;
|
---|
1550 |
|
---|
1551 | DECL_WINELIB_TYPE_AW(FILEDESCRIPTOR)
|
---|
1552 | DECL_WINELIB_TYPE_AW(LPFILEDESCRIPTOR)
|
---|
1553 |
|
---|
1554 | /*
|
---|
1555 | * CF_FILEGROUPDESCRIPTOR clipboard format
|
---|
1556 | */
|
---|
1557 | typedef struct _FILEGROUPDESCRIPTORA {
|
---|
1558 | UINT cItems;
|
---|
1559 | FILEDESCRIPTORA fgd[1];
|
---|
1560 | } FILEGROUPDESCRIPTORA, *LPFILEGROUPDESCRIPTORA;
|
---|
1561 |
|
---|
1562 | typedef struct _FILEGROUPDESCRIPTORW {
|
---|
1563 | UINT cItems;
|
---|
1564 | FILEDESCRIPTORW fgd[1];
|
---|
1565 | } FILEGROUPDESCRIPTORW, *LPFILEGROUPDESCRIPTORW;
|
---|
1566 |
|
---|
1567 | DECL_WINELIB_TYPE_AW(FILEGROUPDESCRIPTOR)
|
---|
1568 | DECL_WINELIB_TYPE_AW(LPFILEGROUPDESCRIPTOR)
|
---|
1569 |
|
---|
1570 | /****************************************************************************
|
---|
1571 | * Cabinet functions
|
---|
1572 | */
|
---|
1573 |
|
---|
1574 | typedef struct {
|
---|
1575 | WORD cLength;
|
---|
1576 | WORD nVersion;
|
---|
1577 | BOOL fFullPathTitle:1;
|
---|
1578 | BOOL fSaveLocalView:1;
|
---|
1579 | BOOL fNotShell:1;
|
---|
1580 | BOOL fSimpleDefault:1;
|
---|
1581 | BOOL fDontShowDescBar:1;
|
---|
1582 | BOOL fNewWindowMode:1;
|
---|
1583 | BOOL fShowCompColor:1;
|
---|
1584 | BOOL fDontPrettyNames:1;
|
---|
1585 | BOOL fAdminsCreateCommonGroups:1;
|
---|
1586 | UINT fUnusedFlags:7;
|
---|
1587 | UINT :15; /* Required for proper binary layout with gcc */
|
---|
1588 | UINT fMenuEnumFilter;
|
---|
1589 | } CABINETSTATE, *LPCABINETSTATE;
|
---|
1590 |
|
---|
1591 | #define CABINETSTATE_VERSION 2
|
---|
1592 |
|
---|
1593 | BOOL WINAPI ReadCabinetState(CABINETSTATE *, int);
|
---|
1594 | BOOL WINAPI WriteCabinetState(CABINETSTATE *);
|
---|
1595 |
|
---|
1596 | /****************************************************************************
|
---|
1597 | * Path Manipulation Routines
|
---|
1598 | */
|
---|
1599 |
|
---|
1600 | /* PathProcessCommand flags */
|
---|
1601 | #define PPCF_ADDQUOTES 0x01
|
---|
1602 | #define PPCF_INCLUDEARGS 0x02
|
---|
1603 | #define PPCF_ADDARGUMENTS 0x03
|
---|
1604 | #define PPCF_NODIRECTORIES 0x10
|
---|
1605 | #define PPCF_DONTRESOLVE 0x20
|
---|
1606 | #define PPCF_FORCEQUALIFY 0x40
|
---|
1607 | #define PPCF_LONGESTPOSSIBLE 0x80
|
---|
1608 |
|
---|
1609 | /* PathResolve flags */
|
---|
1610 | #define PRF_VERIFYEXISTS 0x01
|
---|
1611 | #define PRF_EXECUTABLE 0x02
|
---|
1612 | #define PRF_TRYPROGRAMEXTENSIONS 0x03
|
---|
1613 | #define PRF_FIRSTDIRDEF 0x04
|
---|
1614 | #define PRF_DONTFINDLINK 0x08
|
---|
1615 |
|
---|
1616 | VOID WINAPI PathGetShortPath(LPWSTR pszPath);
|
---|
1617 | LONG WINAPI PathProcessCommand(LPCWSTR, LPWSTR, int, DWORD);
|
---|
1618 | BOOL WINAPI PathYetAnotherMakeUniqueName(LPWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
|
---|
1619 |
|
---|
1620 | /****************************************************************************
|
---|
1621 | * Drag And Drop Routines
|
---|
1622 | */
|
---|
1623 |
|
---|
1624 | /* DAD_AutoScroll sample structure */
|
---|
1625 | #define NUM_POINTS 3
|
---|
1626 | typedef struct
|
---|
1627 | {
|
---|
1628 | int iNextSample;
|
---|
1629 | DWORD dwLastScroll;
|
---|
1630 | BOOL bFull;
|
---|
1631 | POINT pts[NUM_POINTS];
|
---|
1632 | DWORD dwTimes[NUM_POINTS];
|
---|
1633 | } AUTO_SCROLL_DATA;
|
---|
1634 |
|
---|
1635 | BOOL WINAPI DAD_SetDragImage(HIMAGELIST,LPPOINT);
|
---|
1636 | BOOL WINAPI DAD_DragEnterEx(HWND,POINT);
|
---|
1637 | BOOL WINAPI DAD_DragEnterEx2(HWND,POINT,IDataObject*);
|
---|
1638 | BOOL WINAPI DAD_DragMove(POINT);
|
---|
1639 | BOOL WINAPI DAD_DragLeave(void);
|
---|
1640 | BOOL WINAPI DAD_AutoScroll(HWND,AUTO_SCROLL_DATA*,LPPOINT);
|
---|
1641 | HRESULT WINAPI SHDoDragDrop(HWND,IDataObject*,IDropSource*,DWORD,LPDWORD);
|
---|
1642 |
|
---|
1643 | LPITEMIDLIST WINAPI ILAppendID(LPITEMIDLIST,LPCSHITEMID,BOOL);
|
---|
1644 | LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST);
|
---|
1645 | LPITEMIDLIST WINAPI ILCloneFirst(LPCITEMIDLIST);
|
---|
1646 | LPITEMIDLIST WINAPI ILCreateFromPathA(LPCSTR);
|
---|
1647 | LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR);
|
---|
1648 | #define ILCreateFromPath WINELIB_NAME_AW(ILCreateFromPath)
|
---|
1649 | LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST,LPCITEMIDLIST);
|
---|
1650 | LPITEMIDLIST WINAPI ILFindChild(LPCITEMIDLIST,LPCITEMIDLIST);
|
---|
1651 | LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST);
|
---|
1652 | void WINAPI ILFree(LPITEMIDLIST);
|
---|
1653 | LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST);
|
---|
1654 | UINT WINAPI ILGetSize(LPCITEMIDLIST);
|
---|
1655 | BOOL WINAPI ILIsEqual(LPCITEMIDLIST,LPCITEMIDLIST);
|
---|
1656 | BOOL WINAPI ILIsParent(LPCITEMIDLIST,LPCITEMIDLIST,BOOL);
|
---|
1657 | HRESULT WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
|
---|
1658 | BOOL WINAPI ILRemoveLastID(LPITEMIDLIST);
|
---|
1659 | HRESULT WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
|
---|
1660 |
|
---|
1661 |
|
---|
1662 | #include <poppack.h>
|
---|
1663 |
|
---|
1664 | #ifdef __cplusplus
|
---|
1665 | } /* extern "C" */
|
---|
1666 | #endif /* defined(__cplusplus) */
|
---|
1667 |
|
---|
1668 | #endif /* __WINE_SHLOBJ_H */
|
---|