s d
s d

Reputation: 2706

How do I change the ACLs on a registry key? (C++)

I need to delete a regsitry key. It has a deny ACL on Set Value (I need this permission to delete it).

How do I change the ACLs in C++?

Upvotes: 1

Views: 3017

Answers (2)

Gerard
Gerard

Reputation:

It's a Win32 FAQ.

See Win32 api ng news://194.177.96.26/comp.os.ms-windows.programmer.win32

Upvotes: 0

HS.
HS.

Reputation: 2615

You could use RegSetKeySecurity to adjust the security settings and then delete the key as usual.

Upvotes: 3

Related Questions