The best way is simply not to specify any orientation and/or use what is returned by GetShellOrientation().
There is no relation between what ChangeDisplaySettingsEx() returns and what GetShellOrientation() returns.
The problem with the emulator was reported and I still have to look into it.