Gets the screen orientation of a device or emulator capable of screen rotation.
Integer GetScreenOrientation ( )
The return values can be one of the following or a negative number for failure:
This function is supported on devices using the Windows Mobile 2003 SE or later platform.
The following lines place the value for the current screen orientation in the lb_result list box:
integer iRet
iRet = GetScreenOrientation()
lb_result.AddItem( "Current Orientation: " &
+ string(iRet) )