Set the display orientation to a fixed value.
You can unlock it again passing “Default” as orientation. See Also: GetOrientation