RE: Rotating the display using ChangeDisplaySettingsEx



Hi Mikael,

The code below looks like incomplete - there's no resolution set. If that's
really the complete code, then that's probably the cause of the failure. A
rotation is also a resolution change (e.g. 1024x768 -> 768x1024) and you
have to specify the new resolution for it to be accepted since a mode of
1024x768x90 degrees is not a valid mode.

Have you tried your code on other machines? I find some other cases
regarding ChangeDisplaySettingsEx+DM_DISPLAYORIENTATION which are display
driver dependent. So, if your code runs well on other machines while fails
on this specific machine, it is very likely a driver problem.

If adding the valid resolution setting still did not resolve this problem,
can you provide a simple sample project for me to reproduce this problem?

Finally, based on my research on my colleague's Vista Intel display card
Dell machine, the display configuration application igfxcfg.exe internally
communicates with igfxdev.exe which also calls ChangeDisplaySettingsExA API
with DM_DISPLAYORIENTATION and other flags to rotate the screen.

I will wait for your further feedback, thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Troubleshoot OS Lock-up
    ... hardware/driver configuration but not reproducable on other machines. ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.dotnet.general)
  • RE: Troubleshoot OS Lock-up
    ... And the Splitter control uses a similar approach to draw the splitter (GDI ... hardware/driver configuration but not reproducable on other machines. ... Microsoft Online Community Support ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.dotnet.general)
  • Re: Remote debugging from Vista to XP64
    ... these two machines for the local VS debugger and "Visual Studio Remote ... have you tried to use a domain account which are in the ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.debugging)
  • Re: Remote debugging from Vista to XP64
    ... these two machines for the local VS debugger and "Visual Studio Remote ... Remote Debugger Service On the Target Computer Cannot Connect ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.debugging)
  • Re: Remote debugging from Vista to XP64
    ... these two machines for the local VS debugger and "Visual Studio Remote ... Remote Debugger Service On the Target Computer Cannot Connect ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.debugging)