[win] Windows registry hacks