| 1 | /* $Id: shlwapi.cpp,v 1.2 1999-12-28 23:17:04 sandervl Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | * Win32 URL-handling APIs for OS/2
|
|---|
| 5 | *
|
|---|
| 6 | * Copyright 1999 Patrick Haller <phaller@gmx.net>
|
|---|
| 7 | *
|
|---|
| 8 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 9 | *
|
|---|
| 10 | * Copyright 1996,1998 Marcus Meissner
|
|---|
| 11 | * Copyright 1996 Jukka Iivonen
|
|---|
| 12 | * Copyright 1997 Uwe Bonnes
|
|---|
| 13 | * Copyright 1999 Jens Wiessner
|
|---|
| 14 | */
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | #include <odin.h>
|
|---|
| 18 | #include <odinwrap.h>
|
|---|
| 19 | #include <os2sel.h>
|
|---|
| 20 |
|
|---|
| 21 | #include <string.h>
|
|---|
| 22 | #include <ctype.h>
|
|---|
| 23 | #include <wctype.h>
|
|---|
| 24 | #define HAVE_WCTYPE_H
|
|---|
| 25 | #include <odin.h>
|
|---|
| 26 |
|
|---|
| 27 | #define ICOM_CINTERFACE 1
|
|---|
| 28 | #define CINTERFACE 1
|
|---|
| 29 |
|
|---|
| 30 | #include "debugtools.h"
|
|---|
| 31 | #include "winnls.h"
|
|---|
| 32 | #include "winversion.h"
|
|---|
| 33 | #include "winreg.h"
|
|---|
| 34 | #include "crtdll.h"
|
|---|
| 35 |
|
|---|
| 36 | #include <heapstring.h>
|
|---|
| 37 | #include <misc.h>
|
|---|
| 38 | #include <win\shell.h>
|
|---|
| 39 | #include <win\winerror.h>
|
|---|
| 40 |
|
|---|
| 41 | ODINDEBUGCHANNEL(SHLWAPI)
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | /*
|
|---|
| 46 | shlwapi functions that have found their way in because most of
|
|---|
| 47 | shlwapi is unimplemented and doesn't have a home.
|
|---|
| 48 |
|
|---|
| 49 | FIXME: move to a more appropriate file( when one exists )
|
|---|
| 50 | */
|
|---|
| 51 |
|
|---|
| 52 | /* SHGetValue: Gets a value from the registry */
|
|---|
| 53 |
|
|---|
| 54 | ODINFUNCTION6(DWORD,SHGetValueA,HKEY, hkey,
|
|---|
| 55 | LPCSTR, pSubKey,
|
|---|
| 56 | LPCSTR, pValue,
|
|---|
| 57 | LPDWORD, pwType,
|
|---|
| 58 | LPVOID, pvData,
|
|---|
| 59 | LPDWORD, pbData)
|
|---|
| 60 | {
|
|---|
| 61 | dprintf(("(%p),stub!\n", pSubKey));
|
|---|
| 62 |
|
|---|
| 63 | return ERROR_SUCCESS; /* return success */
|
|---|
| 64 | }
|
|---|
| 65 |
|
|---|
| 66 | ODINFUNCTION6(DWORD,SHGetValueW,HKEY, hkey,
|
|---|
| 67 | LPCWSTR, pSubKey,
|
|---|
| 68 | LPCWSTR, pValue,
|
|---|
| 69 | LPDWORD, pwType,
|
|---|
| 70 | LPVOID, pvData,
|
|---|
| 71 | LPDWORD, pbData)
|
|---|
| 72 | {
|
|---|
| 73 | dprintf(("(%p),stub!\n", pSubKey));
|
|---|
| 74 |
|
|---|
| 75 | return ERROR_SUCCESS; /* return success */
|
|---|
| 76 | }
|
|---|
| 77 |
|
|---|
| 78 | /* gets a user-specific registry value. */
|
|---|
| 79 |
|
|---|
| 80 | ODINFUNCTION8(LONG,SHRegGetUSValueA,LPCSTR, pSubKey,
|
|---|
| 81 | LPCSTR, pValue,
|
|---|
| 82 | LPDWORD, pwType,
|
|---|
| 83 | LPVOID, pvData,
|
|---|
| 84 | LPDWORD, pbData,
|
|---|
| 85 | BOOL, fIgnoreHKCU,
|
|---|
| 86 | LPVOID, pDefaultData,
|
|---|
| 87 | DWORD, wDefaultDataSize)
|
|---|
| 88 | {
|
|---|
| 89 | FIXME("(%p),stub!\n", pSubKey);
|
|---|
| 90 |
|
|---|
| 91 | return ERROR_SUCCESS; /* return success */
|
|---|
| 92 | }
|
|---|
| 93 |
|
|---|
| 94 | ODINFUNCTION8(LONG,SHRegGetUSValueW,LPCWSTR, pSubKey,
|
|---|
| 95 | LPCWSTR, pValue,
|
|---|
| 96 | LPDWORD, pwType,
|
|---|
| 97 | LPVOID, pvData,
|
|---|
| 98 | LPDWORD, pbData,
|
|---|
| 99 | BOOL, flagIgnoreHKCU,
|
|---|
| 100 | LPVOID, pDefaultData,
|
|---|
| 101 | DWORD, wDefaultDataSize)
|
|---|
| 102 | {
|
|---|
| 103 | dprintf(("(%p),stub!\n", pSubKey));
|
|---|
| 104 |
|
|---|
| 105 | return ERROR_SUCCESS; /* return success */
|
|---|
| 106 | }
|
|---|
| 107 |
|
|---|