source: trunk/src/shell32/unknown.c@ 8586

Last change on this file since 8586 was 8586, checked in by sandervl, 23 years ago

some updates + resync for shellord

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