View Full Version : disallow screen rotation
hoblano
10th November 2006, 08:16 PM
Hello!
I need to write software that disallows any screen rotation on my Wizard.
How can I do it? I didn’t found any registry settings for this. The best way
that I see is hooking ChangeDisplaySettingsEx. But unfortunately, SetWindowsHookEx
doesn’t works on WM 5.0, at least it said on some topics. Please, give me any solution for this problem or example code to hook some API function.
6f6c6567
14th November 2006, 02:20 PM
wm5: [HKLM\System\GDI\Rotation]
Angle=dword:0
00000000 portrait
0000005a righthanded landscape
0000010e lefthanded landscape
then RegistryNotifyCallback will do
hoblano
15th November 2006, 12:12 PM
tanks a lot
I will try this way.
But I afraid it will be notified after screen rotation starting.
Adjusting this registry value in regedit tool did't help.
So I suppose this value is changing after rotation is done.
yinfo
15th November 2006, 02:48 PM
You can delete the start up service of ScreanRotate.
Go to HKLM/Services/ScreanRotate and delete it.
I think before you doing this,you can export it to a reg file
hoblano
16th November 2006, 09:58 AM
It's not bad idea.
but delete this key leading to system restart for apply
I just try to stop this service.
hoblano
16th November 2006, 11:22 AM
Not luck : (
This key not present in the registry storage.
I am under WM 5.0
Maybe you talk about some early system.
scalposcarno
20th July 2007, 06:09 PM
Hi hoblano, I'm experiencing the same problem, did you find a solution ?
thanks,
Scalposcarno
nothin
21st July 2007, 09:11 AM
use task manager 2.7 and stop service...if you know it is service...
same way to stop kbd lights...btw,
scalposcarno
23rd July 2007, 05:17 PM
I tried, but the result is the same as the one obtained by manually deleting the Screen Rotate voice within the services voices in the registry: avoiding the load of the service providing the icon on the task bar enabling the user to rotate the sceen one or more times by tapping on it.
I still don't understand ... at this point the most probable thing is that the service that rotate the OS screen when rotating by hand the HW screen, is invisible with respect to registry voices and to applications like Task Manager 2.7 or MemMaid. Apart from criticizing the constructor choice (why didn't they thought that someone should have been more comfortable using only one view mode ? e.g. landscape one), is there a way to obtain a list of core services and to avoid one of those to be loaded ? or, otherway, is there a way to intercept the event thrown when manually rotating the screen of the terminal ?
By the way, I'll have to do it with Java ... :o
thanks all
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.