Click here to Skip to main content
15,075,492 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please I need a routine for accessing a windows registry key on a remote computer.
What condition must be satisfied to access a key on a remote computer?
Posted
Comments
Gbenbam 14-Sep-11 11:32am
   
The RegConnectRegistry() approach seem rather complex. How can I use WNetAddConnection2 instead?

In the event you're not using the .Net framework, you can use the Windows RegConnectRegistry() API...

http://msdn.microsoft.com/en-us/library/ms724840[^]
   
Comments
Gbenbam 14-Sep-11 11:33am
   
The ReconnectRegistry() approach seem rather complex. How can I use WNetAddConnection2 instead?
You can use RegistryKey class for this. See: RegistryKey.OpenRemoteBaseKey Method (RegistryHive, String)[^]
   
Comments
Emilio Garavaglia 6-Sep-11 2:23am
   
The tag is C++, not C++/CLI
IF It is a remote computer you also need a application that will let you change registry
   
Comments
Gbenbam 14-Sep-11 11:06am
   
Please throw more light on the Expression "IF it is a remote computer you also need a application that will let you change registry"
Mohibur Rashid 14-Sep-11 21:09pm
   
In general if you want to do any process in a remote application you will need some kind of service to process on the remote machine.

Best example of such kind of process is Client/Server Application. You can also do it using RPC

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900