1 | /* $Id: reg.cpp,v 1.1 2000-05-15 02:43:16 phaller 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 | #include "debugtools.h"
|
---|
28 | #include "winnls.h"
|
---|
29 | #include "winversion.h"
|
---|
30 | #include "winreg.h"
|
---|
31 |
|
---|
32 | #include <heapstring.h>
|
---|
33 | #include <misc.h>
|
---|
34 | #include <win\winerror.h>
|
---|
35 | #include "shlwapi.h"
|
---|
36 |
|
---|
37 |
|
---|
38 | ODINDEBUGCHANNEL(SHLWAPI-REG)
|
---|
39 |
|
---|
40 |
|
---|
41 |
|
---|
42 | /*
|
---|
43 | shlwapi functions that have found their way in because most of
|
---|
44 | shlwapi is unimplemented and doesn't have a home.
|
---|
45 |
|
---|
46 | FIXME: move to a more appropriate file( when one exists )
|
---|
47 | */
|
---|
48 |
|
---|
49 | /* SHGetValue: Gets a value from the registry */
|
---|
50 |
|
---|
51 | ODINFUNCTION6(DWORD,SHGetValueA,HKEY, hkey,
|
---|
52 | LPCSTR, pSubKey,
|
---|
53 | LPCSTR, pValue,
|
---|
54 | LPDWORD, pwType,
|
---|
55 | LPVOID, pvData,
|
---|
56 | LPDWORD, pbData)
|
---|
57 | {
|
---|
58 | dprintf(("(%p),stub!\n", pSubKey));
|
---|
59 |
|
---|
60 | return ERROR_SUCCESS; /* return success */
|
---|
61 | }
|
---|
62 |
|
---|
63 | ODINFUNCTION6(DWORD,SHGetValueW,HKEY, hkey,
|
---|
64 | LPCWSTR, pSubKey,
|
---|
65 | LPCWSTR, pValue,
|
---|
66 | LPDWORD, pwType,
|
---|
67 | LPVOID, pvData,
|
---|
68 | LPDWORD, pbData)
|
---|
69 | {
|
---|
70 | dprintf(("(%p),stub!\n", pSubKey));
|
---|
71 |
|
---|
72 | return ERROR_SUCCESS; /* return success */
|
---|
73 | }
|
---|
74 |
|
---|
75 | /* gets a user-specific registry value. */
|
---|
76 |
|
---|
77 | ODINFUNCTION8(LONG,SHRegGetUSValueA,LPCSTR, pSubKey,
|
---|
78 | LPCSTR, pValue,
|
---|
79 | LPDWORD, pwType,
|
---|
80 | LPVOID, pvData,
|
---|
81 | LPDWORD, pbData,
|
---|
82 | BOOL, fIgnoreHKCU,
|
---|
83 | LPVOID, pDefaultData,
|
---|
84 | DWORD, wDefaultDataSize)
|
---|
85 | {
|
---|
86 | FIXME("(%p),stub!\n", pSubKey);
|
---|
87 |
|
---|
88 | return ERROR_SUCCESS; /* return success */
|
---|
89 | }
|
---|
90 |
|
---|
91 | ODINFUNCTION8(LONG,SHRegGetUSValueW,LPCWSTR, pSubKey,
|
---|
92 | LPCWSTR, pValue,
|
---|
93 | LPDWORD, pwType,
|
---|
94 | LPVOID, pvData,
|
---|
95 | LPDWORD, pbData,
|
---|
96 | BOOL, flagIgnoreHKCU,
|
---|
97 | LPVOID, pDefaultData,
|
---|
98 | DWORD, wDefaultDataSize)
|
---|
99 | {
|
---|
100 | dprintf(("(%p),stub!\n", pSubKey));
|
---|
101 |
|
---|
102 | return ERROR_SUCCESS; /* return success */
|
---|
103 | }
|
---|
104 |
|
---|
105 |
|
---|
106 | /*****************************************************************************
|
---|
107 | * Name : DWORD SHRegGetBoolUSValueA
|
---|
108 | * Purpose : unknown
|
---|
109 | * Parameters: unknown
|
---|
110 | * Variables :
|
---|
111 | * Result : unknown
|
---|
112 | * Remark : SHLWAPI.SHRegGetBoolUSValueA
|
---|
113 | * Status : UNTESTED
|
---|
114 | *
|
---|
115 | * Author : Patrick Haller [Wed, 1999/12/29 23:02]
|
---|
116 | *****************************************************************************/
|
---|
117 |
|
---|
118 | ODINFUNCTION5(LONG, SHRegGetBoolUSValueA,
|
---|
119 | LPCSTR, pSubKey,
|
---|
120 | DWORD, arg2,
|
---|
121 | DWORD, arg3,
|
---|
122 | DWORD, arg4,
|
---|
123 | DWORD, arg5)
|
---|
124 | {
|
---|
125 | char szBuffer[264];
|
---|
126 | int iLength;
|
---|
127 |
|
---|
128 | dprintf(("(%p),stub!\n", pSubKey));
|
---|
129 |
|
---|
130 | return ERROR_SUCCESS; /* return success */
|
---|
131 | }
|
---|
132 |
|
---|
133 |
|
---|
134 | /*****************************************************************************
|
---|
135 | * Name : DWORD SHRegGetBoolUSValueW
|
---|
136 | * Purpose : unknown
|
---|
137 | * Parameters: unknown
|
---|
138 | * Variables :
|
---|
139 | * Result : unknown
|
---|
140 | * Remark : SHLWAPI.SHRegGetBoolUSValueW
|
---|
141 | * Status : UNTESTED
|
---|
142 | *
|
---|
143 | * Author : Patrick Haller [Wed, 1999/12/29 23:02]
|
---|
144 | *****************************************************************************/
|
---|
145 |
|
---|
146 | ODINFUNCTION5(LONG, SHRegGetBoolUSValueW,
|
---|
147 | LPCWSTR, pSubKey,
|
---|
148 | DWORD, arg2,
|
---|
149 | DWORD, arg3,
|
---|
150 | DWORD, arg4,
|
---|
151 | DWORD, arg5)
|
---|
152 | {
|
---|
153 | char szBuffer[264];
|
---|
154 | int iLength;
|
---|
155 |
|
---|
156 | dprintf(("(%p),stub!\n", pSubKey));
|
---|
157 |
|
---|
158 | return ERROR_SUCCESS; /* return success */
|
---|
159 | }
|
---|
160 |
|
---|
161 |
|
---|