1 2010-07-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
3 * UnixRegistryApi.cs: Remove the in-memmory approach to volatile keys,
4 as it becomes trickier to handle deep hiearchies, subkeys and values
5 in some scenarios. So for now we keep them in disk, we in an
6 alternative directory, so we can cleam them properly later.
8 2010-07-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
10 * RegistryKey.cs: Call the proper UnixRegistryApi.CreateSubKey overload.
11 * UnixRegistryApi.cs: Implement basic support for volatile keys, by
12 storing them in memory instead of disk. We lack the support to have
13 them available to other processes - and given the fact that a
14 workaround would be gross, just don't implement that now.
16 2010-07-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
18 * RegistryKey.cs: Add 4.0 CreateSubKey overloads taking a RegistryOptions
20 * IRegistryApi.cs: Add a new overload for CreateSubKey for the 4.0
21 profile. Not nice, but better than to change the signature for each
23 * Win32RegistryApi.cs: Properly recognize a handle where a volatile
25 * UnixRegistryApi.cs: Stubbed.
27 2010-07-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
29 * Win32RegistryApi.cs: Use RegCreateKeyEx instead of RegCreateKey, as
30 we need it to further support both the missing bits and the 4.0
33 2010-02-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
35 * UnixRegistryApi.cs: When retrieving the registry keys from file in a
36 unix system, if the value returned by a SecurityElement is null,
37 use String.Empty, since at this point we know that this registry key
38 *exists* and *cannot* have a null value, as specified in the public
42 2009-11-21 Miguel de Icaza <miguel@novell.com>
44 * RegistryKey.cs: Implement a GetValueKind and a handful of
47 2009-04-25 Sebastien Pouliot <sebastien@ximian.com>
49 * *.cs: Exclude the files for the NET_2_1 profile, since they are
50 unneeded and adds a bunch (23) [SecuritySafeCritical] to audit for
53 2008-02-25 Robert Jordan <robertj@gmx.net>
55 * Win32RegistryApi.cs (ToString): Don't emit the handle value
57 See http://msdn2.microsoft.com/en-us/netframework/aa497241.aspx.
59 2008-02-01 Gert Driesen <drieseng@users.sourceforge.net>
61 * RegistryKey.cs: Added missing checks on length of subkey and value
62 names. On 2.0 profile, allow subkey <= 255 characters. Modified
63 ArgumentNullException argument names to match MS.
64 * UnixRegistryApi.cs: In SetValue (string, object, RegistryValueKind),
65 use a zero-length string for name if it is null. In OpenSubKey,
66 respect value of writable argument when creating well-known subkey.
67 Fixes bug #357883. Removed argument names for ArgumentException's to
70 2008-01-15 Zoltan Varga <vargaz@gmail.com>
72 * RegistryKey.cs: Fix some argument names to be consistent with MS.
74 2007-10-13 kevin.fitzgerald@soarce.us
76 * UnixRegistryApi.cs: Escape the strings before passing them to
77 SecurityElement. This fixes bug #322839
79 2007-08-30 Marek Habersack <mhabersack@novell.com>
81 * UnixRegistryApi.cs: properly retrieve values of type
84 2007-08-13 Gert Driesen <drieseng@users.sourceforge.net>
86 * RegistryKeyPermissionCheck.cs: Do not include in 1.0 profile.
87 Removed extra using directive and empty lines.
89 2007-05-01 Dick Porter <dick@ximian.com>
91 * RegistryKeyPermissionCheck.cs: Not serializable
93 2007-04-30 Dick Porter <dick@ximian.com>
98 * RegistryValueKind.cs:
99 * RegistryKeyPermissionCheck.cs: Updated for 2.0 profile
101 2006-10-29 Miguel de Icaza <miguel@novell.com>
103 * UnixRegistryApi.cs (KeyHandler.MachineStore): Add support for
104 loading/storing values from the system registry, instead of having
105 the system ones be user-based.
107 (KeyHandler, Load): turn IO exceptions into Security exceptions.
109 2006-09-03 Gert Driesen <drieseng@users.sourceforge.net>
111 * IRegistryApi.cs: Added OpenRemoteBaseKey method.
112 * Win32ResultCode.cs: Added code for win32 error 53.
113 * RegistryKey.cs: Implemented support for OpenRemoteBaseKEy on
114 Windows. To achieve this, the handle of the remote hive must be
115 stored separately from the RegistryHive value. Removed isRoot field, as
116 we now determine whether we're a root key (hive) by checking if hive
117 is not null. Added internal ctor for registry hives that takes a
118 RegistryHive, a key handle and a bool to indicate whether its a remote
119 hive. Renamed Data field to handle and added internal property to
120 access it. Throw ObjectDisposedException in ToString if key is
121 closed/disposed. Added Hive property, which is used in UnixRegistryApi.
122 Added GetHiveName method which translates a RegistryHive value to its
124 * Win32RegistryApi.cs: Added pinvoke for RegConnectRegistry. GetHandle
125 no longer needs to know whether the key refers to a hive (base key)
126 or not. Implemented OpenRemoteBaseKey.
127 * UnixRegistryApi.cs: Added OpenRemoteBaseKey implementation which
128 always throws NotImplementedException.
129 * Registry.cs: The key name of the base key no longer needs to be
130 passed to the ctor, as it's looked up in the ctor itself. This avoids
131 having a different logical for local or remote base keys.
133 2006-08-23 Gert Driesen <drieseng@users.sourceforge.net>
135 * Win32RegistryApi.cs: Use a StringBuilder instead of byte [] for
136 RegEnumKey. Fixed issue in GetSubKeyNames where buffer was not cleared
137 while iterating over subkeys.
139 2006-08-20 Gert Driesen <drieseng@users.sourceforge.net>
141 * RegistryValueOptions.cs: Add the real one.
143 2006-08-20 Atsushi Enomoto <atsushi@ximian.com>
145 * RegistryValueOptions.cs : build fix, easier than reverting all.
147 2006-08-20 Gert Driesen <drieseng@users.sourceforge.net>
149 * IRegistryApi.cs: Modified GetValue to take RegistryValueOptions enum
150 and removed obsolete return_default_value argument.
151 * RegistryKey.cs: Added missing ComVisible attribute on SetValue.
152 Use new GetValue method on IRegistryApi that takes RegistryValueOptions
153 enum. Added GetValue overload that takes RegistryValueOptions (2.0).
154 * Win32RegistryApi.cs: Modified GetValue to take RegistryValueOptions
155 enum, and removed obsolete returnDefaultValue argument. Added support
156 for ExpandString value type. Do no expand if DoNotExpand... is set.
157 * UnixRegistryApi.cs: Modified KeyHandler.GetValue to take
158 RegistryValueOptions enum, and do no expand environment variables in
159 an ExpandString if DoNotExpandEnvironmentNames is set. Modified
160 UnixRegistryApi.GetValue to take RegistryValueOptions enum, and
161 removed obsolete return_default_value argument.
163 2006-08-14 Gert Driesen <drieseng@users.sourceforge.net>
165 * UnixRegistryApi.cs: Undo change for new eventlog implementation that
166 was not rolled back earlier this week, and which does not make sense
167 without that implementation anyway.
169 2006-08-14 Gert Driesen <drieseng@users.sourceforge.net>
171 * Win32ResultCode.cs: Added error code for attempting to perform an
172 operation on registry key that is marked for deletion.
173 * RegistryKey.cs: Keep writable state. Automatically flush changes to
174 disk when closing key (to match MS). Allow values to be set on root
175 keys. Throw UnauthorizedAccessException when attempting to set/delete
176 value or create/delete sub key on registry key that is openen
177 read-only. Fixed DecodeString to only strip trailing nullchars (as
179 * Win32RegistryApi.cs: For a key that is marked for deletion, return
180 null when attempting to get a value of that key (and no default value
181 was specified) or open a subkey. Throw an IOException when attempting
182 to perform the following operation on a key that is marked for
185 2) obtain SubKeyCount
188 5) obtain value names
189 and ignore deleting a value. Ignore flushing changes of a key and
190 closing a when the key is closed.
191 * UnixRegistryApi.cs: Maintain handler cache per directory instead of
192 caching registry keys. This allows both a single key to be in memory
193 in both read-only and read-write key configuration, while sharing the
194 KeyHandler. Use case-insensitive hashtable for mapping directory to
195 KeyHandler. Added support for keys that have been marked for deletion
196 by another operation (eg. DeleteSubKeyTree). Allow different file store
197 for machine-level and user-level hives (but have them use the same
198 file store, needs further discussion). Allow KeyHandler failure when
199 create directory, or saving values file to bubble up. Do not save
200 values file when key is marked for deletion. Encapsulate access to
201 values collection. When setting value with null name, use zero-length
202 name instead. Treat key name case-insensitive in DeleteKey to match
205 2006-08-14 Miguel de Icaza <miguel@novell.com>
207 * RegistryValueKind.cs: Make this public in 2.0, and rename from
210 * Win32RegistryApi.cs: Include version to check for version;
211 Eliminate old internal enum, and instead use the new 2.0 enum.
213 * UnixRegistryApi.cs: Add support for typed versions of values.
215 Add support for ExpandString.
217 * Registry.cs (SetValue): implement version with type arguments.
219 2006-08-13 Miguel de Icaza <miguel@novell.com>
221 * Registry.cs (SetValue, GetValue): implement.
223 * UnixRegistryApi.cs (KeyHandler.LoadKey, KeyHandler.Save): Add
226 (KeyHandler.Save): Do not save the entries if they have been
227 deleted/dropped. Fixes a crash.
229 (UnixRegistryApi.DeleteKey): bug fix, call ToUnix on the keyname.
231 2006-08-12 Gert Driesen <drieseng@users.sourceforge.net>
233 * Registry.cs: Fixed copy/paste bug.
235 2006-08-11 Gert Driesen <drieseng@users.sourceforge.net>
237 * UnixRegistryApi.cs: Consider HKLM\SYSTEM\CurrentControlSet\Services\
238 EventLog a wellknown key. Required for new EventLog implementation.
239 Added RegistryStore property.
241 2006-06-06 Miguel de Icaza <miguel@novell.com>
243 * UnixRegistryApi.cs: Do not crash if there are no values stored.
245 2006-05-28 Gert Driesen <drieseng@users.sourceforge.net>
247 * UnixRegistryApi.cs: GetSubKeyNames returns only names of subkeys,
248 not the qualified name. Fixes bug #78519.
250 2006-04-20 Gert Driesen <drieseng@users.sourceforge.net>
252 * UnixRegistryApi.cs: In KeyHandler.SetValue, immediately convert
253 instances of non-native registry types (meaning int, string, string[]
254 or byte[]) to string. This avoids returning an instance of a non-native
255 registry type in calls to UnixRegistryApi.GetValue. Allow instances of
256 non-native registry types in UnixRegistryApi.SetValue. Fixes bug #78132.
258 2006-04-18 Gert Driesen <drieseng@users.sourceforge.net>
260 * UnixRegistryApi.cs: Only consider the "software" subkey a well-known
261 key if the parent is either HKEY_USERS or HKEY_LOCAL_MACHINE.
263 2006-04-15 Robert Jordan <robertj@gmx.net>
265 * UnixRegistryApi.cs (DeleteValue): Avoid crash, fixes bug
266 #77772. Patch reapplied, since r57881 was not applied correctly.
268 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
270 * UnixRegistryApi.cs: create well-known keys when trying to open them.
272 2006-03-12 Robert Jordan <robertj@gmx.net>
274 * UnixRegistryApi.cs (DeleteValue): Avoid crash, fixes bug
277 2006-01-14 Robert Jordan <robertj@gmx.net>
279 * RegistryKey.cs: Added internal IsRoot accessor.
280 * Win32RegistryApi.cs: Fixed access to RegistryKey.Data.
281 Fixes bug #77212. Thanks to Don Edvalson (don@edvalson.net)
282 for spotting this out.
284 2005-12-02 Atsushi Enomoto <atsushi@ximian.com>
286 * Win32RegistryApi.cs : fixed invalid cast. Now mono is not to blame
287 for not being able to run NAnt on Windows.
289 2005-11-12 Miguel de Icaza <miguel@novell.com>
291 * RegistryKey.cs: Add support for a Registry on Unix based on
292 files under ~/.mono/registry.
294 Vastly refactored the code, reworked the interface between the
295 frontend and the backends.
297 If "RegistryKey" was not sealed, things could have been a lot
300 2005-01-31 mei (mei@work.email.ne.jp)
302 * RegistryKey.cs: Fixes bug 70451: When the key doesn't exist, and
303 the default value is not specified, it is necessary to return
304 null. and DecodeString function's bug is fixed.
306 2004-04-10 Gert Driesen (driesen@users.sourceforge.net)
308 * RegistryKey.cs: explicit implementation of IDisposable to match
311 2004-03-17 Jackson Harper <jackson@ximian.com>
313 * Win32RegistryApi.cs: Fix typo. Patch by Gert Driesen.
315 2004-03-03 Jackson Harper <jackson@ximian.com>
317 * Win32RegistryApi.cs: Specify entry points.
319 2004-03-03 Jackson Harper <jackson@ximian.com>
321 * Win32RegistryApi.cs: New file - pinvokes to the win32
322 registry. Patch by Erik LeBel.
323 * IRegistryApi.cs: New file - Interface to a registry backend
324 (win32 on windows, no implementation on unix). This interface will
325 probably change when we write a Linux backend.
326 * Win32ResultCode.cs: New file - Win32 result codes needed to
327 check pinvoke. Patch by Erik LeBel.
328 * Registry.cs: Create the keys. Patch by Erik LeBel.
329 * RegistryKey.cs: Implement. Patch by Erik LeBel.
331 2003-12-27 Nick Drochak <ndrochak@gol.com>
333 * RegistryKey.cs: Add some missing overloads.
335 2003-02-10 Nick Drochak <ndrochak@gol.com>
337 * Registry.cs: Class should be sealed and have a private default ctor.
339 2002-11-28 Alejandro Sánchez Acosta <raciel@es.gnu.org>
341 * Registry.cs: Added missed field.
343 2002-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
345 * RegistryHive.cs: patch from Jackson Harper that fixes compilation.
347 2002-11-27 DennisHayes <dennish@raytek.com>
349 * checkin for Alexandre Pigolkine (pigolkine@gmx.de) with minor changes
350 * needed for System.Windows.Forms
354 * added files, fully implmented?
357 * added more iplmentation
359 2002-11-20 Nick Drochak <ndrochak@gol.com>
361 * RegistryKey.cs: Fix typo.