The leak seems to be in WTSAPI32.DLL and specifically in the function WTSQuerySessionInformation with information classes WTSInitialProgram and WTSApplicationName.
You can test by looking up this part of JwsclTerminalServer:
Delphi-Quellcode:
constructor TJwWTSSession.Create(const Owner: TJwWTSSessionList;
const SessionId: TJwSessionId; const WinStationName: TJwString;
const ConnectState: TWtsConnectStateClass);
and comment out these lines:
Delphi-Quellcode:
FApplicationName := GetSessionInfoStr(WTSApplicationName);
FInitialProgram := GetSessionInfoStr(WTSInitialProgram);
Windows Vista and XP seem to suffer, 2003 server seems to be ok.