Terminal Server Programming Guidelines

[This is preliminary documentation and subject to change.]

Most existing 16-bit or 32-bit Windows-based applications run "as is" on a Microsoft® Windows®-based Terminal Server. However, some applications perform well in a Terminal Server environment; others do not perform as well. This section provides guidelines for developing applications that perform well in a Terminal Server environment.

Many of the guidelines in the following sections are good programming practices that will benefit applications running in either a Terminal Server or a traditional Windows NT environment. However, some of the sections recommend optimizations, such as limiting graphic effects, that you would want only when your application is running under Terminal Server. For sample code that illustrates how to detect the Terminal Server environment, see Detecting the Terminal Server Environment.

Note  Following these guidelines does not limit or compromise an application's ability to function in the traditional Windows NT environment—applications optimized for Terminal Server work well in both environments.