Partager via


Writing a Terminal Services-Aware Application

Most legacy applications will run in the Terminal Services environment, but the Terminal server must load a DLL with compatibility code. If your application is Terminal Services–aware, this DLL and its overhead can be avoided.

To indicate that your application is Terminal Services–aware, set the IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE flag in the optional header.

If your application meets the following criteria, it can set the IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE flag when it runs.

  • The application does not use .ini files.
  • The application does not write to HKEY_CURRENT_USER during setup.

See Also

Terminal Services Programming Guidelines

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.