The status of locks device orientation


  • 1. Does anyone know how to know the status of the locks device orientation checkbox via C++?

    2. Can I set the status via the program (ex: send a Win Log Key+O)?


    Thanks all.

    Friday, December 16, 2011 8:06 AM

All replies

  • locks device orientation checkbox = Allow the screen to auto-rotae

    how can i get the status vis c++?



    • Edited by AriesStone Friday, December 16, 2011 9:18 AM
    Friday, December 16, 2011 9:17 AM
  • This option is not available in Windows 7, I guess you could do a diff on Winuser.h and look for changes between Windows 7 and windows 8.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Friday, December 16, 2011 4:43 PM