About the author
const IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE = $8000;
Use the $SETPEOPTFLAGS directive: {$SETPEOPTFLAGS $8000}
This indicates to Windows that the Delphi application is Terminal Services aware and safe for use as a TS app.
Documentation in PE (portable executable) header flags (ms-help://borland.bds5/devcommon/peheaderflags_xml.html)
See also: Terminal Services Programming Guidelines.
A method to design records so that they're allocated on a specific byte boundary, such as 16 bytes, 512 bytes, 4096 bytes, etc.