Loop around calling RegQueryValue until we have a big enough string