Autor Beitrag
sky21
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 141

W7
D2010, XE2
BeitragVerfasst: Mo 06.04.09 16:18 
Hi all

Ich möchte gerne die aktuellen (sprich: aktiv-geladenen) TCP Settings auslesen. Kennt jemand eine Hilfsklasse oder Windows API diesbezüglich? Die bekannte IP Helper API scheint nur IP informationen zu liefern und die einzigen TCP Strukturien, die unterstützt werden, sind irgendwelche TCP Statistiken.

Das Auslesen der Parameter aus der Windows Registry hilft dabei nicht. Der TCP Stack von Windows lädt die Einstellungen aus der Registry einmalig beim Hochfahren. Ich muss davon ausgehen, dass seit dem Hochfahren die Einstellungen geändert wurden. Daher muss ich wissen, welche Einstellungen tatsächlich vorhanden, respektive geladen, sind.


p'uhh, das ist ganz schön ne Knacknuss für mich. Wer weiss hier Rat?

Nachtrag 1: Mit TCP Settings meine ich u.a. TCPWindowSize, TCP123Opts und Andere. Nur ungern möchte ich (sofern überhaupt möglich), diese aus einem TCP/IP Live Stream herausfischen.

Nachtrag 2: Eine Alternative wäre natürlich, wenn ich programmatisch den Stack neu laden könnte (also ohne System-Reboot). Aber auch bei diesem Ansatz bin ich auf eure Hilfe angewiesen.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 07.04.09 08:38 
Ich hab mal geschaut und bei Microsoft folgenden Thread im MSDN-Forum gefunden:
social.msdn.microsof...e-ab0b-4273636d56de/

Ist zwar C#, sollte sich aber portieren lassen.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
sky21 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 141

W7
D2010, XE2
BeitragVerfasst: Di 07.04.09 13:19 
user profile iconBenBE hat folgendes geschrieben Zum zitierten Posting springen:
Ich hab mal geschaut und bei Microsoft folgenden Thread im MSDN-Forum gefunden:
social.msdn.microsof...e-ab0b-4273636d56de/

Ist zwar C#, sollte sich aber portieren lassen.


Danke für den Tipp, aber auch WMI greift nur auf die Windows Registry zu.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 07.04.09 13:23 
Dann bliebe wirklich nur der Hack über das Auslesen der Info aus dem Kernel-Space ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
sky21 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 141

W7
D2010, XE2
BeitragVerfasst: Di 07.04.09 14:28 
user profile iconBenBE hat folgendes geschrieben Zum zitierten Posting springen:
Kernel-Space ...


Oje, für mich heisst demnach hier "Game Over": Kernel-Space? Davon habe ich keine Ahnung...
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 07.04.09 14:32 
Kann sein, dass Du Glück hast, und das noch im Userspace irgendwo liegt, in jedem Fall wird da IMHO etwas Reverse-Engineering nötig sein.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 07.04.09 14:58 
Moin!

Ich werfe mal einen Quergedanken in die Diskussion: wozu brauchst du das? Vielleicht gibt´s da ja einen anderen Ansatz? :nixweiss:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
sky21 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 141

W7
D2010, XE2
BeitragVerfasst: Di 07.04.09 15:30 
<deleted>


Zuletzt bearbeitet von sky21 am Di 14.04.09 10:18, insgesamt 1-mal bearbeitet
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 07.04.09 15:32 
Als DAU sollte man an diesen Einstellungen eh nicht rumspielen ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.