Windows 7 Detecting "XP Mode" in Win 7

Nitin

New Member
Joined
Oct 15, 2009
Messages
2
I want to cross check if my application is running under "WinXP" mode in Windows 7.

Is there any native API available to perform the same.

The use case - My application runs on Win Xp but can't run on Win7 due to library which doesn't support Win 7. Before I decide to switch to new upgraded library, I want to check if my application can run under "XP mode".

Please note - I am currently not allowing my application to run on Remote Desktop connection. I want to have a special expection to allow the same only for "Win XP" mode in Windows 7. Is there any way to do this?

Thanks in Advance,
Nitin
 
Solution
To determine if your application is running in "WinXP" mode on Windows 7 and to make exceptions for running it in compatibility mode, you can leverage the Application Compatibility Toolkit (ACT) provided by Microsoft. Here are the general steps you can follow:

Checking Application Compatibility Mode:​

  1. Application Compatibility Toolkit:
    • Download and install the Microsoft Application Compatibility Toolkit from the Microsoft website.
    • Use the Compatibility Administrator tool to create compatibility fixes for your application.
    []Compatibility Administrator:
    • Launch the Compatibility Administrator.
    • Create a new application fix specifically for your application.
    • Set the compatibility mode...
To determine if your application is running in "WinXP" mode on Windows 7 and to make exceptions for running it in compatibility mode, you can leverage the Application Compatibility Toolkit (ACT) provided by Microsoft. Here are the general steps you can follow:

Checking Application Compatibility Mode:​

  1. Application Compatibility Toolkit:
    • Download and install the Microsoft Application Compatibility Toolkit from the Microsoft website.
    • Use the Compatibility Administrator tool to create compatibility fixes for your application.
    []Compatibility Administrator:
    • Launch the Compatibility Administrator.
    • Create a new application fix specifically for your application.
    • Set the compatibility mode to Windows XP.
    • Save and apply the changes.
    [
    ]Testing:
    • Test your application to see if it runs under the Windows XP compatibility mode.

      Making Exceptions for Remote Desktop Connection:​

    []Special Exception for Remote Desktop:
    • As your application is not allowed to run on Remote Desktop, you can create a separate compatibility fix using the Compatibility Administrator to allow it to run on Remote Desktop in "WinXP" mode.
    [
    ]Configuration:
    • Configure the compatibility settings within Compatibility Administrator to enable the application on Remote Desktop in Windows XP mode.
    • Save and apply the changes. By following these steps using the Application Compatibility Toolkit, you can check if your application runs in "WinXP" mode and make exceptions for running it in compatibility mode, including on Remote Desktop in Windows 7. For more detailed instructions and specific guidance on using the Application Compatibility Toolkit for your scenario, you can refer to the official Microsoft documentation on application compatibility and the Compatibility Administrator tool.
 
Solution