View previous topic :: View next topic |
Author |
Message |
DavidR Contributor
Joined: 05 Aug 2003 Posts: 83 Location: Bethel Pennsylvania U.S.A.
|
Posted: Wed Apr 30, 2008 1:00 pm Post subject: Use of Registry to pass parameters |
|
|
I'm curious about the ramifications of using the registry to pass parameters between dissimilar pieces of software that don't have any "common" means of handshaking.
Many times I've worked with VDS programs that deal with data that I need to send to or receive from other applications (even other VDS programs).
My common practice has been to use files.
Example:
Program A writes a data file.
Program B periodically checks for the presence of the data file, reads and deletes it.
Program A detects that the data file has been deleted and creates a new one with current data etc.. etc.. etc.....
When dealing with 2 programs that are able to read/write the registry the same data could be passed in a similar manner. It would seem to be somewhat cleaner and invisible to the end user but I'd like to know if there are any "gotchas" that I've not considered.
Like - Performance issues, risk of inadvertantly corrupting the registry, interferring with other programs using the registry, etc...
Just asking the experts... Is this a good idea or not?
Thanks.........
..................David |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Wed Apr 30, 2008 4:13 pm Post subject: |
|
|
Seems fine to use actually, just make sure to use HKEY_CURRENT_USER and not the local machine root if you want the app to run on vista without having to require admin privileges/uac prompt on the app. |
|
Back to top |
|
|
|