How do I read the registry?

R

Rick

Hi,



I need to read some registry values for HKEY_LOCAL_MACHINE. I figured it

would be easy, just use the Registry Class in Microsoft.Win32 but whoops,

this is not available on CE .NET. Second time this has bitten me today.

Looking further in the MSDN documentation I found some functions like

RegOpenKeyEx() and RegQueryValueEx() but no class information and no code

samples.



Is all the CE .NET documentation this incomplete? What's the easiest way

to read the registry? Thanks.



Rick
 
C

Chris Tacke, eMVP

The CE.NET documentation is fine for those methods. You see no class
information becasue they're OS APIs, not members of any class. You call
them through P/Invoke. Your best bet is to take Sergey's advise and look at
the classes in the SDF. Not surprisingly, a Google search would have gotten
you to this conclusion rather quickly:

http://tinyurl.com/6mvuz


--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
R

Rick

Chris and Sergey,

I started working with the OpenNETCF Registry stuff today. It's exactly what
I needed. Thank you very much.

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top