Exporting the registry.

Hallo!!

I have a program who has a server and a few clients. The clients logon to the server. In the registry of the server the user setting like colors, fonts and the postion of the windows are saved for each user. I takes a lot of time to read each key at time from the client. So I wonder if I can export the the part of the registry I nead in a regfile or in a buffer and use it in the client.
mattiasoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jkrConnect With a Mentor Commented:
To repeat my (still correct) answer:

You could simply use 'RegSaveKey()' on the server side and 'RegLoadKey()'/'RegRestoreKey()'/'RegReplaceKey()' on the client side.

0
 
rbergCommented:
You could try the EnumRegKey or EnumRegValue API. These APIs give you a buffer with all the keys or values under a specified key.
0
 
jkrCommented:
You could simply use 'RegSaveKey()' on the server side and 'RegLoadKey()'/'RegRestoreKey()'/'RegReplaceKey()' on the client side...
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
jkrCommented:
Or even eaiser (concerning the export) - if the data is 'static' (i.e. doesn't change too often), manually exporting the file via regedit could be an idea ;-)
0
 
mattiasoAuthor Commented:
I don´t wont to do it manually...
0
 
jkrCommented:
That's why I pointed you to the functions above... Did you take a look at them before rejecting?
0
 
jkrCommented:
mattiaso - are you still with us?
0
All Courses

From novice to tech pro — start learning today.