Platform SDK: Access Control

Creating a Security Descriptor for a New Object

The following example creates a security descriptor for a new registry key. You can use similar code to create a security descriptor for other object types.