ClusterRegSetKeySecurity

The ClusterRegSetKeySecurity function sets the security attributes for a cluster database key.

LONG WINAPI ClusterRegSetKeySecurity(
  HKEY hKey,                                
  SECURITY_INFORMATION SecurityInformation,  
  PSECURITY_DESCRIPTOR pSecurityDescriptor  
);
 

Parameters

hKey
[in] Handle to a cluster database key.
SecurityInformation
[in] A SECURITY_INFORMATION structure that indicates the contents of the security descriptor pointed to by pSecurityDescriptor.
pSecurityDescriptor
[in] Pointer to a SECURITY_DESCRIPTOR structure that describes the security attributes to set for the key corresponding to hKey.

Return Values

ERROR_SUCCESS
The operation was successful.

If the operation was unsuccessful, ClusterRegSetKeySecurity returns a Win32 error value.

Remarks

ClusterRegSetKeySecurity will generate a CLUSTER_CHANGE_REGISTRY_ATTRIBUTES event for all registered notification ports.

For more information, see the related Win32 function RegSetKeySecurity.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.