次の方法で共有


MIB_UDPTABLE_OWNER_MODULE (Compact 2013)

3/26/2014

This structure contains the User Datagram Protocol (UDP) listener table for IPv4 on the local device. The table also includes any available ownership data and the process ID (PID) that issued the call to the bind function for each UDP endpoint.

Syntax

typedef struct _MIB_UDPTABLE_OWNER_MODULE {
  DWORD dwNumEntries;
  MIB_UDPROW_OWNER_MODULE table[ANY_SIZE];
} MIB_UDPTABLE_OWNER_MODULE,
  *PMIB_UDPTABLE_OWNER_MODULE;

Members

  • table
    An array of MIB_UDPROW_OWNER_MODULE structures returned by a call to GetExtendedUdpTable.

Remarks

The MIB_UDPTABLE_OWNER_MODULE structure is returned by a call to GetExtendedUdpTable with the TableClass parameter set to UDP_TABLE_OWNER_MODULE from the UDP_TABLE_CLASS enumeration and the ulAf parameter set to AF_INET4. The MIB_UDPTABLE_OWNER_MODULE structure contains an array of MIB_UDPROW_OWNER_MODULE structures.

The MIB_UDPTABLE_OWNER_MODULE structure can contain padding for alignment between the dwNumEntries member and the first MIB_UDPROW_OWNER_MODULE array entry in the table member. Padding for alignment can also be present between the MIB_UDPROW_OWNER_MODULE array entries in the table member. Any access to a MIB_UDPROW_OWNER_MODULE array entry should assume padding can exist.

The MIB_UDPTABLE_OWNER_MODULE structure contains the UDP listener table for IPv4 on the local device. The name is based on the definition of this table in RFC 1213 published by the IETF. This table contains UDP endpoints for IPv4 that have been bound to an address. Be aware that an application can create a UDP socket and bind it to an address for the sole purpose of sending a UDP datagram, without an intention of receiving packets by using this socket (functioning as a listener).

The MIB_UDPTABLE_OWNER_MODULE structure is an improved version of the MIB_UDPTABLE_OWNER_PID structure that includes any available ownership data for each UDP endpoint in the table. The MIB_UDPTABLE_OWNER_PID is an improved version of the MIB_UDPTABLE that includes the process ID (PID) that issued the call to the bind function for each UDP endpoint in the table.

The header file organization has changed. This structure is defined in the Udpmib.h header file instead of in the Iprtrmib.h header file. Be aware that the Udpmib.h header file is automatically included in Iprtrmib.h, which is automatically included in the Iphlpapi.h header file. The Udpmib.h and Iprtrmib.h header files should never be used directly.

Requirements

Header

ws2def.h,
ws2ipdef.h

See Also

Reference

MIB Structures
GetExtendedUdpTable
GetUdp6Table
GetUdpTable
MIB_UDP6ROW
MIB_UDP6ROW_OWNER_MODULE
MIB_UDP6ROW_OWNER_PID
MIB_UDP6TABLE
MIB_UDP6TABLE_OWNER_MODULE
MIB_UDP6TABLE_OWNER_PID
MIB_UDPROW
MIB_UDPROW_OWNER_MODULE
MIB_UDPROW_OWNER_PID
MIB_UDPTABLE
MIB_UDPTABLE_OWNER_PID
UDP_TABLE_CLASS