source: trunk/src/shell32/unknown.cpp@ 6496

Last change on this file since 6496 was 5472, checked in by sandervl, 24 years ago

compile fix

File size: 8.5 KB
Line 
1/* $Id: unknown.cpp,v 1.10 2001-04-04 09:02:15 sandervl Exp $ */
2
3/*
4 * Project Odin Software License can be found in LICENSE.TXT
5 * Win32 SHELL32 Subsystem for OS/2
6 * 1998/05/19 PH Patrick Haller (haller@zebra.fh-weingarten.de)
7 */
8
9/*****************************************************************************
10 * Includes *
11 *****************************************************************************/
12
13#include <odin.h>
14#include <odinwrap.h>
15#include <os2win.h>
16#include <shellapi.h>
17#include <winreg.h>
18#include <unicode.h>
19
20//#include "shell32.h"
21
22
23ODINDEBUGCHANNEL(SHELL32-UNKNOWN)
24
25/*****************************************************************************
26 * Defines *
27 *****************************************************************************/
28
29/*****************************************************************************
30 * Structures *
31 *****************************************************************************/
32
33/*****************************************************************************
34 * Prototypes *
35 *****************************************************************************/
36
37
38/*****************************************************************************
39 * Name : HINSTANCE RealShellExecuteA
40 * Purpose : Start a program
41 * Parameters: HWND hwnd
42 * LPCTSTR lpOperation
43 * LPCTSTR lpFile
44 * LPCTSTR lpParameters
45 * LPCTSTR lpDirectory
46 * INT nShowCmd
47 * Variables :
48 * Result :
49 * Remark : SHELL32.229
50 * Status : STUB UNTESTED UNKNOWN
51 *
52 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
53 *****************************************************************************/
54
55ODINFUNCTION6(HINSTANCE, RealShellExecuteA,
56 HWND, hwnd,
57 LPCTSTR, lpOperation,
58 LPCTSTR, lpFile,
59 LPCTSTR, lpParameters,
60 LPCTSTR, lpDirectory,
61 INT, nShowCmd)
62{
63 dprintf (("SHELL32: RealShellExecuteA not implemented.\n"));
64
65 return(0); //out of memory
66}
67
68
69/*****************************************************************************
70 * Name : HINSTANCE RealShellExecuteW
71 * Purpose : Start a program
72 * Parameters: HWND hwnd
73 * LPCWSTR lpOperation
74 * LPCWSTR lpFile
75 * LPCWSTR lpParameters
76 * LPCWSTR lpDirectory
77 * INT nShowCmd
78 * Variables :
79 * Result :
80 * Remark : SHELL32.232
81 * Status : COMPLETELY UNTESTED UNKNOWN
82 *
83 * Author : Patrick Haller [Tue, 1999/06/01 09:00]
84 *****************************************************************************/
85
86ODINFUNCTION6(HINSTANCE, RealShellExecuteW,
87 HWND, hwnd,
88 LPCWSTR, lpOperation,
89 LPCWSTR, lpFile,
90 LPCWSTR, lpParameters,
91 LPCWSTR, lpDirectory,
92 INT, nShowCmd)
93{
94 HINSTANCE hInstance;
95 LPSTR lpOperationA = UnicodeToAsciiString((LPWSTR)lpOperation);
96 LPSTR lpFileA = UnicodeToAsciiString((LPWSTR)lpFile);
97 LPSTR lpParametersA = UnicodeToAsciiString((LPWSTR)lpParameters);
98 LPSTR lpDirectoryA = UnicodeToAsciiString((LPWSTR)lpDirectory);
99
100 dprintf (("SHELL32: RealShellExecuteW(%08xh,%s,%s,%s,%s,%08xh).\n",
101 hwnd,
102 lpOperationA,
103 lpFileA,
104 lpParametersA,
105 lpDirectoryA,
106 nShowCmd));
107
108 hInstance = RealShellExecuteA(hwnd,
109 lpOperationA,
110 lpFileA,
111 lpParametersA,
112 lpDirectoryA,
113 nShowCmd);
114
115 FreeAsciiString(lpOperationA);
116 FreeAsciiString(lpFileA);
117 FreeAsciiString(lpParametersA);
118 FreeAsciiString(lpDirectoryA);
119
120 return hInstance;
121}
122
123
124/*****************************************************************************
125 * Name : BOOL RealShellExecuteExA
126 * Purpose :
127 * Parameters:
128 * Variables :
129 * Result :
130 * Remark : SHELL32.230
131 * Status : UNTESTED STUB UNKNOWN
132 *
133 * Author : Patrick Haller [Tue, 1998/06/15 03:00]
134 *****************************************************************************/
135
136ODINFUNCTION1(BOOL, RealShellExecuteExA,
137 LPSHELLEXECUTEINFOA, lpExecInfo)
138{
139 dprintf(("SHELL32: RealShellExecuteExA not implemented.\n"));
140
141 return (0);
142}
143
144
145/*****************************************************************************
146 * Name : BOOL RealShellExecuteExW
147 * Purpose :
148 * Parameters:
149 * Variables :
150 * Result :
151 * Remark : SHELL32.231
152 * Status : UNTESTED STUB UNKNOWN
153 *
154 * Author : Patrick Haller [Tue, 1998/06/15 03:00]
155 *****************************************************************************/
156
157ODINFUNCTION1(BOOL, RealShellExecuteExW,
158 LPSHELLEXECUTEINFOW, lpExecInfo)
159{
160 dprintf(("SHELL32: RealShellExecuteExW not implemented.\n"));
161
162 return (0);
163}
164
165
166/*****************************************************************************
167 * Name : DWORD RegenerateUserEnvironment
168 * Purpose :
169 * Parameters: unknown, probably wrong
170 * Variables :
171 * Result :
172 * Remark : SHELL32.233
173 * Status : UNTESTED STUB UNKNOWN
174 *
175 * Author : Patrick Haller [Tue, 1998/06/15 03:00]
176 *****************************************************************************/
177
178ODINFUNCTION2(DWORD, RegenerateUserEnvironment,
179 DWORD, x1,
180 DWORD, x2)
181{
182 dprintf(("SHELL32: RegenerateUserEnvironment not implemented.\n"));
183
184 return (0);
185}
186
187
188/*****************************************************************************
189 * Name : DWORD RestartDialog
190 * Purpose :
191 * Parameters: unknown, probably wrong
192 * Variables :
193 * Result :
194 * Remark : SHELL32.59
195 * Status : UNTESTED STUB UNKNOWN
196 *
197 * Author : Patrick Haller [Tue, 1998/06/15 03:00]
198 *****************************************************************************/
199
200ODINFUNCTION3(DWORD, RestartDialog,
201 DWORD, x1,
202 DWORD, x2,
203 DWORD, x3)
204{
205 dprintf(("SHELL32: RestartDialog not implemented.\n"));
206
207 return (0);
208}
209
210
211/*****************************************************************************
212 * Name : DWORD SheConvertPathW
213 * Purpose :
214 * Parameters: unknown, probably wrong
215 * Variables :
216 * Result :
217 * Remark : SHELL32.275
218 * Status : UNTESTED STUB UNKNOWN
219 *
220 * Author : Patrick Haller [Tue, 1998/06/15 03:00]
221 *****************************************************************************/
222
223ODINFUNCTION2(DWORD, SheConvertPathW,
224 DWORD, x1,
225 DWORD, x2)
226{
227 dprintf(("SHELL32: SheConvertPathW not implemented.\n"));
228
229 return (0);
230}
231
232
233/*****************************************************************************
234 * Name : DWORD SheShortenPathW
235 * Purpose :
236 * Parameters: unknown, probably wrong
237 * Variables :
238 * Result :
239 * Remark : SHELL32.287
240 * Status : UNTESTED STUB UNKNOWN
241 *
242 * Author : Patrick Haller [Tue, 1998/06/15 03:00]
243 *****************************************************************************/
244
245ODINFUNCTION2(DWORD, SheShortenPathW,
246 DWORD, x1,
247 DWORD, x2)
248{
249 dprintf(("SHELL32: SheShortenPathW not implemented.\n"));
250
251 return (0);
252}
253
254
255/*****************************************************************************
256 * Name : DWORD SheShortenPathA
257 * Purpose :
258 * Parameters: unknown, probably wrong
259 * Variables :
260 * Result :
261 * Remark : SHELL32.286
262 * Status : UNTESTED STUB UNKNOWN
263 *
264 * Author : Patrick Haller [Tue, 1998/06/15 03:00]
265 *****************************************************************************/
266
267ODINFUNCTION2(DWORD, SheShortenPathA,
268 DWORD, x1,
269 DWORD, x2)
270{
271 dprintf(("SHELL32: SheShortenPathA not implemented.\n"));
272
273 return (0);
274}
275
276
277/*************************************************************************
278 * SHRegQueryValueA [NT4.0:SHELL32.?]
279 *
280 */
281ODINFUNCTION4(HRESULT,SHRegQueryValueA,HKEY, hkey,
282 LPSTR, lpszSubKey,
283 LPSTR, lpszData,
284 LPDWORD,lpcbData )
285{ dprintf(("SHELL32:UNKNOWN:SHRegQueryValueA(0x%04x %s %p %p semi-stub\n",
286 hkey, lpszSubKey, lpszData, lpcbData));
287 return RegQueryValueA( hkey, lpszSubKey, lpszData, (LPLONG)lpcbData );
288}
Note: See TracBrowser for help on using the repository browser.