all groups > dotnet compact framework > april 2004 >
You're in the

dotnet compact framework

group:

How to read/write registry values?



How to read/write registry values? Richard Lewis Haggard
4/30/2004 2:22:05 PM
dotnet compact framework: I wanted to save some information in the registry but was stymied. The
C#.NET documentation says to use a number of Win32 functions like
RegistryKey, etc., none of which seem to be supported in the CF world. Is it
possible to read and write to the registry and, if so, what are the
assemblies that must be attached to the project, what namespaces are to be
used and what are the function calls?
========
Richard Lewis Haggard

Re: How to read/write registry values? Richard Lewis Haggard
4/30/2004 4:44:33 PM
Why? Is it because there's no registry, no Microsoft blessed .NET
methodology that exists or some other reason?
=======
Richard Lewis Haggard

[quoted text, click to view]

Re: How to read/write registry values? Chris Tacke, eMVP
4/30/2004 6:15:29 PM
You'll find that the Compact Framework is often a little *too* compact and
some things were simply left out. OpenNETCF has tried to fill in those
gaps.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


[quoted text, click to view]

Re: How to read/write registry values? Jon Skeet [C# MVP]
4/30/2004 7:28:43 PM
[quoted text, click to view]

You'll need to either use P/Invoke, or use the OpenNETCF library (or
something similar).

See http://www.opennetcf.org/library

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
Re: How to read/write registry values? Jon Skeet [C# MVP]
4/30/2004 10:02:10 PM
[quoted text, click to view]

It's just one of the things that the CF framework team presumably
didn't have time to include before release. Using the OpenNETCF library
gives you perfectly good access to it though.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
Re: How to read/write registry values? Geoff Schwab [MSFT]
5/1/2004 10:35:51 PM
The P/Invoke sample has some registry stuff too:

Creating a P/Invoke Library
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/PInvokeLib.asp


Geoff
[quoted text, click to view]

AddThis Social Bookmark Button