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