SECRegistry::SetSecurity

BOOLSECRegistry::SetSecurity(const SECURITY_INFORMATION&SecurityInformation, const PSECURITY_DESCRIPTORpSecurityDescriptor)

Encapsulates the RegSetKeySecurity API.

Defined in: SECREG.CPP

Return Value

Nonzero if security was successfully set, otherwise 0.

Parameters

SecurityInformation

Descriptor structure of what security information is being set

pSecurityDescriptor

Points to the security attributes being set for the currently open key.

Comments

Sets the security for the currently open registry key. Encapsulates the RegSetKeySecurity API.

Developer Notes

For 32-bit only.

See Also

SECRegistry  SetValue