I need to set the permissions for a folder or for a specific registry key (for example to grant full access to a key or folder to a specific user).
I want to do this programatically but I've found no solution till now.
Okay, I know about the NetUserxxxx functions but actually they are useless for me cause I do not want to change the group for a user that want to gain access to a certain folder or registry key.

Does anyone have a clue about this ???
Which API I should use, or give me a link to documentation.

Any useful answer will be rated.
10x in advance