Export (0) Print
Expand All
Expand Minimize

AllocateAndGetUdpExTableFromStack function

[This function is no longer available for use as of Windows Vista. Instead, use the GetUdpTable or GetExtendedUdpTable function to retrieve the UDP connection table.]

The AllocateAndGetUdpExTableFromStack function retrieves the UDP connection table and allocates memory from the local heap to store the table.

Syntax


DWORD WINAPI AllocateAndGetUdpExTableFromStack(
  _Out_ PVOID  *ppUDPTable,
  _In_  BOOL   bOrder,
  _In_  HANDLE hHeap,
  _In_  DWORD  dwFlags,
  _In_  DWORD  dwFamily
);

Parameters

ppUDPTable [out]

Pointer to the address of the opaque data that contains the UDP connection table after the function returns.

bOrder [in]

If true, the UDP connection entries in the table returned in ppUDPTable are sorted; if false, they are not.

hHeap [in]

Handle to the heap from which the memory to store the table will be allocated.

dwFlags [in]

One or more flags that indicate specific heap allocation control behaviors.

dwFamily [in]

The family of the UDP addresses in the table.

ValueMeaning
AF_INET

Retrieve IPv4 UDP addresses.

AF_INET6

Retrieve IPv6 UDP addresses.

 

Return value

If the function succeeds, it returns ERROR_SUCCESS.

If the function fails, it returns a function from winerror.h.

Remarks

In the Microsoft Windows Software Development Kit (SDK) released for Windows Vista and later, the function prototype for AllocateAndGetUdpExTableFromStack is still defined in the Iphlpapi.h header file for continued support on Windows Server 2003 and Windows XP.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Iphlpapi.h

Library

Iphlpapi.lib

DLL

Iphlpapi.dll

See also

AllocateAndGetTcpExTableFromStack
GetExtendedUdpTable
GetUdpTable

 

 

Community Additions

ADD
Show:
© 2015 Microsoft