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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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
jkrCommented:
To repeat my (still correct) answer:

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

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.