Thanks for the reply. I haven't tried the registry hack, but I was lucky enough to hear back from NEC directly on how to do this. It turns out that there's an .exe in the windows directory on NEC 790 machines (and probably other devices) called "rttimg.exe" that you can run from code to flip the screen.
This is what was done:
Public Declare Function CreateProcess Lib "Coredll" Alias "CreateProcessW"
(ByVal lpApplicationName As String, ByVal lpCommandLine As String, ByVal
lpProcessAttributes As Long, ByVal lpThreadAttribute As Long, ByVal
bInheritHandles As Long, ByVal dwCreationFlags As Long, ByVal lpEnvironment
As Long, ByVal lpCurrentDirectory As Long, ByVal lpStatupInfo As Long, ByVal
lpProcessInformation As Long) As Boolean
And the event code:
Private Sub CmdFlip_Click()
Dim retval As Boolean
retval = CreateProcess("\Windows\rttimg.exe", "", 0, 0, 0, 0, 0, 0, 0, 0)
If Not retval Then
MsgBox "This function will only work on a NEC MobilePro CE Unit.",
vbCritical, "Error flipping screen!"
End If
End Sub
Hope this helps somebody.
: I have heard that, on some devices you can do it with a small registry hack. Look for a registry key: "HKLM\Drivers\Display\MQ200" and change the value of "Rotate" from 0 to 1.
: Haven't seen it work yet!!
:
: HTH
:
: M

: