URGENT: Accessing registry key???

  • Thread starter Thread starter serge calderara
  • Start date Start date
S

serge calderara

Dear all,

How can I access in VB.NET to a registry key on a local
and remote computer.

Does the previous Profile string function can be safelly
used on is there anything else ?

thnaks for your answer
regards
serge
 
serge calderara said:
How can I access in VB.NET to a registry key on a local
and remote computer.

See the Microsoft.Win32.RegistryKey class.
Does the previous Profile string function can be safelly
used on is there anything else ?

I'm afraid I don't know about that.
 
Yes the Registry class access to th registry.

But I fogot to mentionned that I need to read section of an ini file
local or remote, does the GetProfileString previous function is still
safe in VB.NET or is there an other way?

ragards
serge
 
calderara serge said:
Yes the Registry class access to th registry.

But I fogot to mentionned that I need to read section of an ini file
local or remote, does the GetProfileString previous function is still
safe in VB.NET or is there an other way?

As I said, I don't know about GetProfileString - I don't know what it
does in VB.
 
Serge,
In addition to Jon's comments:

GetProfileString as in the Win32 API?

Yes you can continue to use Win32 APIs in VB.NET, the trick is getting the
correct declare statement. You may want to search these newsgroups

I don't have a sample of GetProfileString as I use the
System.Configuration.ConfigurationSettings class and "app.config" files.

If you need to read & write your settings file, you may want to check out
the Configuration Management Application Block.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp

Hope this helps
Jay
 
Back
Top