Yo

Yo,

Does anyone have idea is it possible, and/or how to, detect if app is running in Compatibility mode. As bonus which mode is set to run in.

Comments

  1. The usual outcome of any attempt to make your program object to running with a compat shim is that at some point in the future one of your users will have a valid need to use your program with a compat shim. If your program blocks it then you've made your program worse. What you are planning to do involves time and effort on your part to implement and test, obfuscation of code, and the net result will be that your program will be less capable. Don't do it!

    ReplyDelete
  2. App currently won't run nicely and some parts raise exception.

    Info to user, ask politely to adjust the compatibility mode would be easier to do. Same time it IMHO should inform that program will not run properly on os and tell minimum version.

    Then should fix that it would behave nicely on those parts which requires new API etc

    ReplyDelete
  3. If properly manifested GetVersionEx returns the compatibility version info. You can review TOSVersion.Create (Seattle+) where it first gets this info then overwrites it with the actual version (GetNetWkstaMajorMinor)

    ReplyDelete

Post a Comment