Is there API function that exports registry key?