| 1 | /* $Id: url_odin.cpp,v 1.4 2002-02-06 20:18:30 sandervl Exp $ */ | 
|---|
| 2 |  | 
|---|
| 3 | /* | 
|---|
| 4 | * Win32 Lightweight SHELL32 API for OS/2 | 
|---|
| 5 | * | 
|---|
| 6 | * 2000/04/20 Patrick Haller (haller@zebra.fh-weingarten.de) | 
|---|
| 7 | * | 
|---|
| 8 | * @(#) url.cpp                 1.0.0   2000/04/20 PH Start from scratch | 
|---|
| 9 | */ | 
|---|
| 10 |  | 
|---|
| 11 |  | 
|---|
| 12 | /***************************************************************************** | 
|---|
| 13 | * Remark                                                                    * | 
|---|
| 14 | ***************************************************************************** | 
|---|
| 15 |  | 
|---|
| 16 | */ | 
|---|
| 17 |  | 
|---|
| 18 |  | 
|---|
| 19 | /***************************************************************************** | 
|---|
| 20 | * Includes                                                                  * | 
|---|
| 21 | *****************************************************************************/ | 
|---|
| 22 |  | 
|---|
| 23 | #include <odin.h> | 
|---|
| 24 | #include <odinwrap.h> | 
|---|
| 25 | #include <os2sel.h> | 
|---|
| 26 |  | 
|---|
| 27 | #include <string.h> | 
|---|
| 28 | #include <ctype.h> | 
|---|
| 29 | #include <wctype.h> | 
|---|
| 30 | #include <wcstr.h> | 
|---|
| 31 | #define HAVE_WCTYPE_H | 
|---|
| 32 |  | 
|---|
| 33 | #include <winreg.h> | 
|---|
| 34 |  | 
|---|
| 35 | #include <heapstring.h> | 
|---|
| 36 | #include <misc.h> | 
|---|
| 37 | #include <win\shell.h> | 
|---|
| 38 | #include <win\winerror.h> | 
|---|
| 39 |  | 
|---|
| 40 | #include "shlwapi_odin.h" | 
|---|
| 41 |  | 
|---|
| 42 | ODINDEBUGCHANNEL(SHLWAPI-URL) | 
|---|
| 43 |  | 
|---|
| 44 |  | 
|---|
| 45 | /***************************************************************************** | 
|---|
| 46 | * Name      : UrlCreateFromPath | 
|---|
| 47 | * Purpose   : Takes a DOS path and converts it to a canonicalized URL. | 
|---|
| 48 | * Parameters: pszPath    Pointer to the string with the DOS path. | 
|---|
| 49 | *             pszUrl     Value used to return the URL. | 
|---|
| 50 | *             pcchPath   Length of pszUrl. | 
|---|
| 51 | *             dwReserved Reserved. Set this parameter to NULL. | 
|---|
| 52 | * Variables : | 
|---|
| 53 | * Result    : Returns S_FALSE if pszPath is already in URL format. In this | 
|---|
| 54 | *             case, pszPath will simply be copied to pszUrl. Otherwise, it | 
|---|
| 55 | *             returns S_OK if successful or a standard OLE error value if not. | 
|---|
| 56 | * Remark    : SHLWAPI. | 
|---|
| 57 | * Status    : STUB UNTESTED | 
|---|
| 58 | * | 
|---|
| 59 | * Author    : Patrick Haller [Tue, 2000/04/25 02:02] | 
|---|
| 60 | *****************************************************************************/ | 
|---|
| 61 |  | 
|---|
| 62 | ODINFUNCTION4(HRESULT,UrlCreateFromPathA, | 
|---|
| 63 | LPCSTR, pszPath, | 
|---|
| 64 | LPSTR,  pszUrl, | 
|---|
| 65 | LPDWORD,pcchUrl, | 
|---|
| 66 | DWORD,  dwReserved) | 
|---|
| 67 | { | 
|---|
| 68 | dprintf(("not implemented.")); | 
|---|
| 69 |  | 
|---|
| 70 | return S_FALSE; | 
|---|
| 71 | } | 
|---|
| 72 |  | 
|---|
| 73 |  | 
|---|
| 74 | /** | 
|---|
| 75 | * @status      stub | 
|---|
| 76 | */ | 
|---|
| 77 | ODINFUNCTION4(HRESULT,UrlCreateFromPathW, | 
|---|
| 78 | LPCWSTR,pszPath, | 
|---|
| 79 | LPWSTR, pszUrl, | 
|---|
| 80 | LPDWORD,pcchUrl, | 
|---|
| 81 | DWORD,  dwReserved) | 
|---|
| 82 | { | 
|---|
| 83 | dprintf(("not implemented.")); | 
|---|
| 84 |  | 
|---|
| 85 | return S_FALSE; | 
|---|
| 86 | } | 
|---|
| 87 |  | 
|---|
| 88 |  | 
|---|
| 89 |  | 
|---|
| 90 |  | 
|---|
| 91 |  | 
|---|
| 92 |  | 
|---|
| 93 |  | 
|---|
| 94 |  | 
|---|
| 95 | /** | 
|---|
| 96 | * @status      stub | 
|---|
| 97 | */ | 
|---|
| 98 | ODINFUNCTION3(HRESULT,UrlHashW, | 
|---|
| 99 | LPCWSTR,pszURL, | 
|---|
| 100 | LPBYTE, pbHash, | 
|---|
| 101 | DWORD,  cbHash) | 
|---|
| 102 | { | 
|---|
| 103 | dprintf(("not implemented.")); | 
|---|
| 104 |  | 
|---|
| 105 | return S_OK; | 
|---|
| 106 | } | 
|---|
| 107 |  | 
|---|
| 108 |  | 
|---|