Pour lancer telnet via le c++ je te conseil d utiliser la API win32 et la fonction create process:
tu la trouvera dans windows.h
BOOL CreateProcess(
LPCTSTR lpApplicationName, // pointer to name of executable module
LPTSTR lpCommandLine, // pointer to command line string
LPSECURITY_ATTRIBUTES lpProcessAttributes, // pointer to process security attributes
LPSECURITY_ATTRIBUTES lpThreadAttributes, // pointer to thread security attributes
BOOL bInheritHandles, // handle inheritance flag
DWORD dwCreationFlags, // creation flags
LPVOID lpEnvironment, // pointer to new environment block
LPCTSTR lpCurrentDirectory, // pointer to current directory name
LPSTARTUPINFO lpStartupInfo, // pointer to STARTUPINFO
LPPROCESS_INFORMATION lpProcessInformation // pointer to PROCESS_INFORMATION
);
IpCommandLine ---> telnet +les parametres
Sinon pour recuperer les info j en ai aucune idée...peurt etre en utilisant un fichier vbs qui redirigerai la sortie telnet dans un fichier que tu lirai apres....