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