Don't pass unused pointers to RegCreateKeyEx() - this prevents score