Victor Torres Rubio said:
Hi... This is my first post and I want to know if there is somewhere a code
to write to the registry. I have one from someone in the past but I try to
use it on Windows Vista and instead of putting the key in the local
machine/software it is adding to some virtual folder. Does anyone knows
why??? Thanks...
You emailed me and attempted to email David. I do not respond to
emails from newsgroup posters. Unless, of course, they are going to
offer me significant sums of money. <smile>
To repeat myself and add a bit more information. Administrator
accounts can update anywhere in the registry. As David has stated
users can only update certain portions of the registry but can read
much more.
I had a similar problem with the Auto FE Updater a few years ago. I
was reading the registry but doing so with old code that defaulted to
opening up the registry entry with update privileges. Which I didn't
need to do. A minor change to a parameter calling the API call and
all was well. I had not noticed this problem because I was running as
administrator. And I shouldn't be.
Yes, you could write to some registry in Windows XP and not in Windows
Vista because you and your users were running as administrators in Win
XP. Vista tightens things up much more especially with UAC.
In my strong opinion we developers should not be running as
administrator. And I'm going to change this in my system. Real Soon
Now. TM Jerry Pournelle.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog -
http://msmvps.com/blogs/access/