Building a Terminal Services Aware Application
You can run legacy applications in a Terminal Services environment. When the terminal server loads an application that is not Terminal Services aware, it also loads a DLL that contains compatibility code. If your application is Terminal Services aware, you can avoid the overhead of loading this extra DLL and running the compatibility code.
To indicate that your application is Terminal Services aware, set the IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE flag in the optional header. If you are using the linker that ships with Microsoft Visual C++, you can use the TSAWARE linker option to set this flag. If you are writing an application that does not write to HKEY_CURRENT_USER during setup, it can set the IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE flag. For more information, see Storing User-Specific Information.
Build date: 5/29/2008