PySECURITY_DESCRIPTOR = RegGetKeySecurity(key, security_info )

Retrieves the security on the specified registry key.


key : PyHKEY/int

Handle to an open key for which the security descriptor is set.

security_info : int

Specifies the components of the security descriptor to retrieve. The value can be a combination of the *_SECURITY_INFORMATION constants.

Win32 API References

Search for RegGetKeySecurity at msdn, google or google groups.