procting a registry key

hello,

I would like to protect a registry key from editting. Is this possible from Delphi? I would like example code...

thanx,
Floris.
LVL 2
florisbAsked:
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.

LischkeCommented:
No, this is not possible programmatically. The only way to protect the registry is (under WinNT only) to set permissions using system policies.

Ciao, Mike
0
florisbAuthor Commented:
If its impossible to change system policies programmatically... ...thanks.... ...but IS THIS REALLY IMPOSSIBLE....?

(should be possible, I expect)....

to be continued....?

Floris.
0
LischkeCommented:
Let this question open for a few days and ask it also in the Windows forum. I hope my answer will then be proved by other people...

Ciao, Mike
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

florisbAuthor Commented:
SetSecurityInfo... ...see MSDN.... ....I only don't get how to use it... ...yet.....
0
LischkeCommented:
Yes Floris, you are right and I'm totally wrong. I don't understand how I could miss this part (although I know ACLs). But the idea is from Madshi and he's a real devil with Win APIs :-)

From what I have seen in MSDN it needs significant work to get this up and running. I'd suggest that you close this question and we continue on the other one.

Ciao, Mike
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
florisbAuthor Commented:
I don't no why I had the same question running for two times... ...it's the cold probably.

I really hope we'll continue with the other one!

:-)
Floris.
0
LischkeCommented:
Thanks for the points. I don't deserve them really...

Ciao, Mike
0
florisbAuthor Commented:
Hmmm, Your right Lischke... ...little mistake... ...but consider it a gift!

What now? Do you know something about file / directory protection under windows 9.x?

thanks,
Floris.
0
LischkeCommented:
Yes (and this time I'm quite sure :-), you cannot protect files or directories under Win9x as it uses FAT/FAT32. The protection works only with NTFS. And since I was so wrong with my answer here you can imagine that I don't know much about SetSecurityInfo etc. But I'll listen to the other question and help out if I can (Madshi and I, we are usually a good team...).

Ciao, Mike
0
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
Delphi

From novice to tech pro — start learning today.