1 | /*
|
---|
2 | * Win32 SHELL32 for OS/2
|
---|
3 | * Copyright 1999 Patrick Haller
|
---|
4 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
5 | */
|
---|
6 |
|
---|
7 |
|
---|
8 | /*****************************************************************************
|
---|
9 | * Includes *
|
---|
10 | *****************************************************************************/
|
---|
11 |
|
---|
12 | #include <os2win.h>
|
---|
13 | #include <shellapi.h>
|
---|
14 | #include <winreg.h>
|
---|
15 | #include "shell32.h"
|
---|
16 |
|
---|
17 | #include <stdarg.h>
|
---|
18 | //#include <builtin.h>
|
---|
19 | #include <stdio.h>
|
---|
20 | #include <stdlib.h>
|
---|
21 | #include <string.h>
|
---|
22 |
|
---|
23 | #include <misc.h>
|
---|
24 | #include <nameid.h>
|
---|
25 | #include <unicode.h>
|
---|
26 |
|
---|
27 |
|
---|
28 | /*****************************************************************************
|
---|
29 | * Types & Defines *
|
---|
30 | *****************************************************************************/
|
---|
31 |
|
---|
32 |
|
---|
33 | /*****************************************************************************
|
---|
34 | * Name : HRESULT SHGetMalloc
|
---|
35 | * Purpose :
|
---|
36 | * Parameters: LPMALLOC *ppMalloc
|
---|
37 | * Variables :
|
---|
38 | * Result :
|
---|
39 | * Remark :
|
---|
40 | * Status : UNTESTED STUB
|
---|
41 | *
|
---|
42 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
43 | *****************************************************************************/
|
---|
44 |
|
---|
45 | HRESULT WIN32API SHGetMalloc(LPMALLOC *ppMalloc)
|
---|
46 | {
|
---|
47 | dprintf(("SHELL32: SHGetMalloc(%08xh) not implemented.\n",
|
---|
48 | ppMalloc));
|
---|
49 |
|
---|
50 | return(0);
|
---|
51 | }
|
---|
52 |
|
---|
53 |
|
---|
54 | /*****************************************************************************
|
---|
55 | * Name : DWORD SHGetFileInfoA
|
---|
56 | * Purpose :
|
---|
57 | * Parameters: LPCSTR pszPath
|
---|
58 | * DWORD dwFileAttributes
|
---|
59 | * SHFILEINFOA *psfi
|
---|
60 | * UINT cbFileInfo
|
---|
61 | * UINT uFlags
|
---|
62 | * Variables :
|
---|
63 | * Result :
|
---|
64 | * Remark :
|
---|
65 | * Status : UNTESTED STUB
|
---|
66 | *
|
---|
67 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
68 | *****************************************************************************/
|
---|
69 |
|
---|
70 | DWORD WIN32API SHGetFileInfoA(LPCSTR pszPath,
|
---|
71 | DWORD dwFileAttributes,
|
---|
72 | SHFILEINFOA *psfi,
|
---|
73 | UINT cbFileInfo,
|
---|
74 | UINT uFlags)
|
---|
75 | {
|
---|
76 | dprintf(("SHELL32: SHGetFileInfoA (%s,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
77 | pszPath,
|
---|
78 | dwFileAttributes,
|
---|
79 | psfi,
|
---|
80 | cbFileInfo,
|
---|
81 | uFlags));
|
---|
82 |
|
---|
83 | return(0);
|
---|
84 | }
|
---|
85 |
|
---|
86 |
|
---|
87 | /*****************************************************************************
|
---|
88 | * Name : DWORD SHGetFileInfoW
|
---|
89 | * Purpose :
|
---|
90 | * Parameters: LPWSTR pszPath
|
---|
91 | * DWORD dwFileAttributes
|
---|
92 | * SHFILEINFOA *psfi
|
---|
93 | * UINT cbFileInfo
|
---|
94 | * UINT uFlags
|
---|
95 | * Variables :
|
---|
96 | * Result :
|
---|
97 | * Remark :
|
---|
98 | * Status : UNTESTED STUB
|
---|
99 | *
|
---|
100 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
101 | *****************************************************************************/
|
---|
102 |
|
---|
103 | DWORD WIN32API SHGetFileInfoW(LPCWSTR pszPath,
|
---|
104 | DWORD dwFileAttributes,
|
---|
105 | SHFILEINFOW *psfi,
|
---|
106 | UINT cbFileInfo,
|
---|
107 | UINT uFlags)
|
---|
108 | {
|
---|
109 | char *astring = UnicodeToAsciiString((LPWSTR)pszPath);
|
---|
110 |
|
---|
111 | dprintf(("SHELL32: SHGetFileInfoW (%s,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
112 | astring,
|
---|
113 | dwFileAttributes,
|
---|
114 | psfi,
|
---|
115 | cbFileInfo,
|
---|
116 | uFlags));
|
---|
117 |
|
---|
118 | FreeAsciiString(astring);
|
---|
119 | return(0);
|
---|
120 | }
|
---|
121 |
|
---|
122 |
|
---|
123 | /*****************************************************************************
|
---|
124 | * Name : HRESULT SHGetDesktopFolder
|
---|
125 | * Purpose :
|
---|
126 | * Parameters: LPSHELLFOLDER *ppshf
|
---|
127 | * Variables :
|
---|
128 | * Result :
|
---|
129 | * Remark :
|
---|
130 | * Status : UNTESTED STUB
|
---|
131 | *
|
---|
132 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
133 | *****************************************************************************/
|
---|
134 |
|
---|
135 | HRESULT WIN32API SHGetDesktopFolder(LPSHELLFOLDER *ppshf)
|
---|
136 | {
|
---|
137 | dprintf(("SHELL32: SHGetDesktopFolder(%08xh) not implemented.\n",
|
---|
138 | ppshf));
|
---|
139 |
|
---|
140 | return(1);
|
---|
141 | }
|
---|
142 |
|
---|
143 |
|
---|
144 | /*****************************************************************************
|
---|
145 | * Name : VOID SHAddToRecentDocs
|
---|
146 | * Purpose :
|
---|
147 | * Parameters: UINT uFlags
|
---|
148 | * LPCVOID pv
|
---|
149 | * Variables :
|
---|
150 | * Result :
|
---|
151 | * Remark :
|
---|
152 | * Status : UNTESTED STUB
|
---|
153 | *
|
---|
154 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
155 | *****************************************************************************/
|
---|
156 |
|
---|
157 | VOID WIN32API SHAddToRecentDocs(UINT uFlags,
|
---|
158 | LPCVOID pv)
|
---|
159 | {
|
---|
160 | dprintf(("SHELL32: SHAddToRecentDocs(%08xh,%08xh) not implemented.\n",
|
---|
161 | uFlags,
|
---|
162 | pv));
|
---|
163 | }
|
---|
164 |
|
---|
165 |
|
---|
166 | /*****************************************************************************
|
---|
167 | * Name : VOID SHChangeNotify
|
---|
168 | * Purpose :
|
---|
169 | * Parameters: LONG wEventId
|
---|
170 | * UINT uFlags
|
---|
171 | * LPCVOID dwItem1
|
---|
172 | * LPCVOID dwItem2
|
---|
173 | * Variables :
|
---|
174 | * Result :
|
---|
175 | * Remark :
|
---|
176 | * Status : UNTESTED STUB
|
---|
177 | *
|
---|
178 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
179 | *****************************************************************************/
|
---|
180 |
|
---|
181 | VOID WIN32API SHChangeNotify(LONG wEventId,
|
---|
182 | UINT uFlags,
|
---|
183 | LPCVOID dwItem1,
|
---|
184 | LPCVOID dwItem2)
|
---|
185 | {
|
---|
186 | dprintf(("SHELL32: SHChangeNotify(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
|
---|
187 | wEventId,
|
---|
188 | uFlags,
|
---|
189 | dwItem1,
|
---|
190 | dwItem2));
|
---|
191 | }
|
---|
192 |
|
---|
193 |
|
---|
194 | /*****************************************************************************
|
---|
195 | * Name : DWORD SHFileOperationA
|
---|
196 | * Purpose :
|
---|
197 | * Parameters: LPSHFILEOPSTRUCTA lpFileOp
|
---|
198 | * Variables :
|
---|
199 | * Result :
|
---|
200 | * Remark :
|
---|
201 | * Status : UNTESTED STUB
|
---|
202 | *
|
---|
203 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
204 | *****************************************************************************/
|
---|
205 |
|
---|
206 | DWORD WIN32API SHFileOperationA(LPSHFILEOPSTRUCTA lpFileOp)
|
---|
207 | {
|
---|
208 | dprintf(("SHELL32: SHFileOperationA(%08xh) not implemented.\n",
|
---|
209 | lpFileOp));
|
---|
210 |
|
---|
211 | return(0);
|
---|
212 | }
|
---|
213 |
|
---|
214 |
|
---|
215 | /*****************************************************************************
|
---|
216 | * Name : DWORD SHFileOperationW
|
---|
217 | * Purpose :
|
---|
218 | * Parameters: LPSHFILEOPSTRUCTW lpFileOp
|
---|
219 | * Variables :
|
---|
220 | * Result :
|
---|
221 | * Remark :
|
---|
222 | * Status : UNTESTED STUB
|
---|
223 | *
|
---|
224 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
225 | *****************************************************************************/
|
---|
226 |
|
---|
227 | DWORD WIN32API SHFileOperationW(LPSHFILEOPSTRUCTW lpFileOp)
|
---|
228 | {
|
---|
229 | dprintf(("SHELL32: SHFileOperationW(%08xh) not implemented.\n",
|
---|
230 | lpFileOp));
|
---|
231 |
|
---|
232 | return(0);
|
---|
233 | }
|
---|
234 |
|
---|
235 |
|
---|
236 | /*****************************************************************************
|
---|
237 | * Name : BOOL SHGetPathFromIDListA
|
---|
238 | * Purpose :
|
---|
239 | * Parameters: LPCITEMIDLIST pidl
|
---|
240 | * LPSTR pszPath
|
---|
241 | * Variables :
|
---|
242 | * Result :
|
---|
243 | * Remark :
|
---|
244 | * Status : UNTESTED STUB
|
---|
245 | *
|
---|
246 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
247 | *****************************************************************************/
|
---|
248 |
|
---|
249 | BOOL WIN32API SHGetPathFromIDListA(LPCITEMIDLIST pidl,
|
---|
250 | LPSTR pszPath)
|
---|
251 | {
|
---|
252 | dprintf(("SHELL32: SHGetPathFromIDListA(%08xh,%s) not implemented.\n",
|
---|
253 | pidl,
|
---|
254 | pszPath));
|
---|
255 |
|
---|
256 | return(FALSE);
|
---|
257 | }
|
---|
258 |
|
---|
259 |
|
---|
260 | /*****************************************************************************
|
---|
261 | * Name : HRESULT SHGetSpecialFolderLocation
|
---|
262 | * Purpose :
|
---|
263 | * Parameters: HWND hwndOwner
|
---|
264 | * int nFolder
|
---|
265 | * LPITEMIDLIST *ppidl
|
---|
266 | * Variables :
|
---|
267 | * Result :
|
---|
268 | * Remark :
|
---|
269 | * Status : UNTESTED STUB
|
---|
270 | *
|
---|
271 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
272 | *****************************************************************************/
|
---|
273 |
|
---|
274 | HRESULT WIN32API SHGetSpecialFolderLocation(HWND hwndOwner,
|
---|
275 | int nFolder,
|
---|
276 | LPITEMIDLIST * ppidl)
|
---|
277 | {
|
---|
278 | dprintf(("SHELL32: SHGetSpecialFolderLocation(%08xh,%08xh,%08xh) not implemented.\n",
|
---|
279 | hwndOwner,
|
---|
280 | nFolder,
|
---|
281 | ppidl));
|
---|
282 |
|
---|
283 | return(1);
|
---|
284 | }
|
---|
285 |
|
---|
286 |
|
---|
287 | /*****************************************************************************
|
---|
288 | * Name : LPITEMIDLIST SHBrowseForFolder
|
---|
289 | * Purpose :
|
---|
290 | * Parameters: LPBROWSEINFOA lpbi
|
---|
291 | * Variables :
|
---|
292 | * Result :
|
---|
293 | * Remark :
|
---|
294 | * Status : UNTESTED STUB
|
---|
295 | *
|
---|
296 | * Author : Patrick Haller [Tue, 1999/06/09 20:02]
|
---|
297 | *****************************************************************************/
|
---|
298 |
|
---|
299 | LPITEMIDLIST WIN32API SHBrowseForFolder(LPBROWSEINFOA lpbi)
|
---|
300 | {
|
---|
301 | dprintf(("SHELL32: SHBrowseForFolder(%08xh) not implemented.\n",
|
---|
302 | lpbi));
|
---|
303 |
|
---|
304 | return(NULL);
|
---|
305 | }
|
---|
306 |
|
---|