Why is RegOpenKeyEx() returning error code 2(File not found) on Windows 64bit ?