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