modify windows regedit func added.