共用方式為


Program compatibility flags

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Program compatibility flags

Program compatibility flags are registry entries that provide the system with information about compatibility issues for particular programs. Some of these entries are created by default. Administrators can create new entries or change existing entries to alleviate many program compatibility issues.

Following is a list of compatibility flags that can be stored under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ Windows NT\CurrentVersion\Terminal Server\ Compatibility\Applications\app_name

The keys are created using the program's executable name and the flag is stored as a DWORD value.

Value Description

0x00000001

MS-DOS-based program

0x00000002

OS/2-based program

0x00000004

Windows-based 16-bit program

0x00000008

Windows-based 32-bit program

0x0000000C

Windows-based 16-bit and 32-bit program

0x0000000F

Any version of a program

0x00000010

Return user name instead of computer name for GetComputerName.

0x00000020

Return Terminal Server build number instead of Windows 2000 build number for GetVersion.

0x00000040

Synchronize user .ini file to system version.*

0x00000080

Do not substitute user \Windows directory.**

0x00000100

Disable registry mapping for program or registry key.

0x00000200

Per-object user/system global mapping

0x00000400

Return system \Windows directory instead of user \Windows directory for GetWindowsDir.

0x00000800

Limit the reported physical memory for GlobalMemoryStatus.

0x00001000

Log object creation to file.

0x20000000

Do not put program to sleep on unsuccessful keyboard polling (Windows-based 16-bit programs only).

* This setting adds new entries from the system version of the .ini file to the user's version, but does not delete any existing entries in the user's .ini file. By default, the user's .ini file is deleted when it is out of date with the system version.

** This setting requires that the user's \Windows directory not be substituted for the system root directory for any paths inside the .ini file when the system version of the .ini file is copied to the user's \Windows directory. It is recommended that you make this substitution so that the program uses the user's \Windows directory for all of the modifications it makes to data or .ini files.

For more information about registry settings, see Registry settings.