[7820] | 1 | /* $Id: url_odin.cpp,v 1.4 2002-02-06 20:18:30 sandervl Exp $ */
|
---|
[5618] | 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>
|
---|
[21916] | 30 | #ifndef __GNUC__
|
---|
[5618] | 31 | #include <wcstr.h>
|
---|
[21916] | 32 | #endif
|
---|
[5618] | 33 | #define HAVE_WCTYPE_H
|
---|
| 34 |
|
---|
| 35 | #include <winreg.h>
|
---|
| 36 |
|
---|
| 37 | #include <heapstring.h>
|
---|
| 38 | #include <misc.h>
|
---|
[21916] | 39 | #include <win/shell.h>
|
---|
| 40 | #include <win/winerror.h>
|
---|
[5618] | 41 |
|
---|
| 42 | #include "shlwapi_odin.h"
|
---|
| 43 |
|
---|
| 44 | ODINDEBUGCHANNEL(SHLWAPI-URL)
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | /*****************************************************************************
|
---|
| 48 | * Name : UrlCreateFromPath
|
---|
| 49 | * Purpose : Takes a DOS path and converts it to a canonicalized URL.
|
---|
| 50 | * Parameters: pszPath Pointer to the string with the DOS path.
|
---|
| 51 | * pszUrl Value used to return the URL.
|
---|
| 52 | * pcchPath Length of pszUrl.
|
---|
| 53 | * dwReserved Reserved. Set this parameter to NULL.
|
---|
| 54 | * Variables :
|
---|
| 55 | * Result : Returns S_FALSE if pszPath is already in URL format. In this
|
---|
| 56 | * case, pszPath will simply be copied to pszUrl. Otherwise, it
|
---|
| 57 | * returns S_OK if successful or a standard OLE error value if not.
|
---|
| 58 | * Remark : SHLWAPI.
|
---|
| 59 | * Status : STUB UNTESTED
|
---|
| 60 | *
|
---|
| 61 | * Author : Patrick Haller [Tue, 2000/04/25 02:02]
|
---|
| 62 | *****************************************************************************/
|
---|
| 63 |
|
---|
| 64 | ODINFUNCTION4(HRESULT,UrlCreateFromPathA,
|
---|
| 65 | LPCSTR, pszPath,
|
---|
| 66 | LPSTR, pszUrl,
|
---|
| 67 | LPDWORD,pcchUrl,
|
---|
| 68 | DWORD, dwReserved)
|
---|
| 69 | {
|
---|
| 70 | dprintf(("not implemented."));
|
---|
| 71 |
|
---|
| 72 | return S_FALSE;
|
---|
| 73 | }
|
---|
| 74 |
|
---|
| 75 |
|
---|
| 76 | /**
|
---|
| 77 | * @status stub
|
---|
| 78 | */
|
---|
| 79 | ODINFUNCTION4(HRESULT,UrlCreateFromPathW,
|
---|
| 80 | LPCWSTR,pszPath,
|
---|
| 81 | LPWSTR, pszUrl,
|
---|
| 82 | LPDWORD,pcchUrl,
|
---|
| 83 | DWORD, dwReserved)
|
---|
| 84 | {
|
---|
| 85 | dprintf(("not implemented."));
|
---|
| 86 |
|
---|
| 87 | return S_FALSE;
|
---|
| 88 | }
|
---|
| 89 |
|
---|
| 90 |
|
---|
| 91 |
|
---|
| 92 |
|
---|
| 93 |
|
---|
| 94 |
|
---|
| 95 |
|
---|
| 96 |
|
---|
| 97 | /**
|
---|
| 98 | * @status stub
|
---|
| 99 | */
|
---|
| 100 | ODINFUNCTION3(HRESULT,UrlHashW,
|
---|
| 101 | LPCWSTR,pszURL,
|
---|
| 102 | LPBYTE, pbHash,
|
---|
| 103 | DWORD, cbHash)
|
---|
| 104 | {
|
---|
| 105 | dprintf(("not implemented."));
|
---|
| 106 |
|
---|
| 107 | return S_OK;
|
---|
| 108 | }
|
---|
| 109 |
|
---|
| 110 |
|
---|