PDA

View Full Version : Plugin configuration information



ermon
November 24th, 2002, 11:11 PM
Hi all.

I am currently at the final stages of developing a girder plugin.
One of the things that remain to be implemented is the storage of configuration information between activation.
I wanted to ask if there is any conventional method for plugins to do this through girder itself - I can't seem to find anything resembling that in the documentation.

Thanks,
-Eyal

Ron
November 25th, 2002, 12:09 AM
Plugins should handle saving settings themself. The standard place in the registry to do this is here :

HKEY_LOCAL_MACHINE\\Software\\Girder3\\Plugins\\

Note that to write there you'll need to have Administrator privileges. Make sure that when the plugin is reading from the registry you only specify READ access, that allows everyone to read.



RegOpenKeyEx(HKEY_LOCAL_MACHINE,HardWarePluginKey, 0,KEY_READ,&key