is it possible to reload the registry from within an access procedure ?

I noticed that a can change registry keys via a shell command but they are not used until the database has been restarted.

What i want to do is :

- open database
- for a patricular function i want to change some keys
- do something
- change the keys to their original settings
- close database

Thanks in advance.