• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

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.
0
florisb
Asked:
florisb
  • 5
  • 4
1 Solution
 
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
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
 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now