Guten Abend,
Code:
typedef struct {
DWORD dwLocalAddr;
DWORD dwLocalPort;
DWORD dwOwningPid;
} MIB_UDPROW_OWNER_PID,
*PMIB_UDPROW_OWNER_PID;
Quelle: ->
http://msdn2.microsoft.com/en-us/library/aa366928.aspx
Deine Auslegung:
Delphi-Quellcode:
MIB_UDPROW_OWNER_PID = packed record
dwState: DWORD;
dwLocalAddr: DWORD;
dwLocalPort: DWORD;
dwRemoteAddr: DWORD;
dwRemotePort: DWORD;
dwOwningPid: DWORD;
end;
Aber sollte es nicht eher so ausschauen?
Delphi-Quellcode:
MIB_UDPROW_OWNER_PID = packed record
// dwState: DWORD;
dwLocalAddr: DWORD;
dwLocalPort: DWORD;
// dwRemoteAddr: DWORD;
// dwRemotePort: DWORD;
dwOwningPid: DWORD;
end;
This table entry is specifically returned by a call to GetExtendedUdpTable
with the TableClass parameter set to
UDP_TABLE_OWNER_PID and the ulAf parameter set to
AF_INET.
Und so rufst Du GetExtendedUdpTable auf:
Res := pGetExtendedUdpTable(pUdpTable, @dwSize, True, AF_INET, UDP_TABLE_OWNER_PID_ALL, 0)
Ich hoffe nun, daß ich nicht allzuviel Mumpitz geschrieben habe.
Grüße
Klaus