[TCPIP] Return the SubProcessTag when enumerating connections with owner class

This commit is contained in:
Pierre Schweitzer 2018-12-31 10:35:40 +01:00
parent d98001de17
commit 96985e0746
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -251,8 +251,8 @@ TDI_STATUS InfoTdiQueryGetConnectionTcpTable(PADDRESS_FILE AddrFile,
{ {
if (Class == TcpUdpClassOwner) if (Class == TcpUdpClassOwner)
{ {
/* FIXME */
RtlZeroMemory(&TcpRow.OwningModuleInfo[0], sizeof(TcpRow.OwningModuleInfo)); RtlZeroMemory(&TcpRow.OwningModuleInfo[0], sizeof(TcpRow.OwningModuleInfo));
TcpRow.OwningModuleInfo[0] = (ULONG_PTR)AddrFile->SubProcessTag;
} }
Status = InfoCopyOut( (PCHAR)&TcpRow, Size, Status = InfoCopyOut( (PCHAR)&TcpRow, Size,
@ -295,8 +295,8 @@ TDI_STATUS InfoTdiQueryGetConnectionUdpTable(PADDRESS_FILE AddrFile,
UdpRow.dwFlags = 0; /* FIXME */ UdpRow.dwFlags = 0; /* FIXME */
if (Class == TcpUdpClassOwner) if (Class == TcpUdpClassOwner)
{ {
/* FIXME */
RtlZeroMemory(&UdpRow.OwningModuleInfo[0], sizeof(UdpRow.OwningModuleInfo)); RtlZeroMemory(&UdpRow.OwningModuleInfo[0], sizeof(UdpRow.OwningModuleInfo));
UdpRow.OwningModuleInfo[0] = (ULONG_PTR)AddrFile->SubProcessTag;
} }
Status = InfoCopyOut( (PCHAR)&UdpRow, Status = InfoCopyOut( (PCHAR)&UdpRow,