Make function GetRegKey