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

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

extended logging added

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