RT例如DWORD dwSize = 0 ;
GetIpAddrTable( NULL , &dwSize, FALSE ) ;
PMIB_IPADDRTABLE pIpAddrTable = (PMIB_IPADDRTABLE )new BYTE [ dwSize ]这个是什么结构都?什么意思呢?谢谢 ,最后有中文的说明文章什么的

解决方案 »

  1.   

    http://www.zdnet.com.cn/developer/code/story/0,2000081534,39046680,00.htm
      

  2.   

    MSDN不是有么?
    请升级到最新版的MSDN
    GetIpAddrTableThe GetIpAddrTable function retrieves the interface–to–IP address mapping table.
    DWORD GetIpAddrTable(
      PMIB_IPADDRTABLE pIpAddrTable,
      PULONG pdwSize,
      BOOL bOrder
    );Parameters
    pIpAddrTable 
    [out] Pointer to a buffer that receives the interface–to–IP address mapping table as a MIB_IPADDRTABLE structure. 
    pdwSize 
    [in, out] On input, specifies the size of the buffer pointed to by the pIpAddrTable parameter. 
    On output, if the buffer is not large enough to hold the returned mapping table, the function sets this parameter equal to the required buffer size.bOrder 
    [in] Specifies whether the returned mapping table should be sorted in ascending order by IP address. If this parameter is TRUE, the table is sorted. 
    Return Values
    If the function succeeds, the return value is NO_ERROR.If the function fails, the return value is one of the following error codes.Return Code Description 
    ERROR_INSUFFICIENT_BUFFER The buffer pointed to by the pIpAddrTable parameter is not large enough. The required size is returned in the DWORD variable pointed to by the pdwSize parameter. 
    ERROR_INVALID_PARAMETER The pdwSize parameter is NULL, or GetIpAddrTable is unable to write to the memory pointed to by the pdwSize parameter. 
    ERROR_NOT_SUPPORTED This function is not supported on the operating system in use on the local system. 
    Other Use FormatMessage to obtain the message string for the returned error. 
    Requirements
    Client: Included in Windows XP, Windows 2000 Professional, Windows NT Workstation 4.0 SP4 and later, Windows Me, and Windows 98.
    Server: Included in Windows Server 2003, Windows 2000 Server, and Windows NT Server 4.0 SP4 and later.
    Header: Declared in Iphlpapi.h.
    Library: Use Iphlpapi.lib.
    See Also
    IP Helper Start Page, IP Helper Function Reference, MIB_IPADDRTABLEPlatform SDK Release: February 2003  What did you think of this topic?
      Order a Platform SDK CD  Requirements
    Client: Included in Windows XP, Windows 2000 Professional, Windows NT Workstation 4.0 SP4 and later, Windows Me, and Windows 98.
    Server: Included in Windows Server 2003, Windows 2000 Server, and Windows NT Server 4.0 SP4 and later.
    Header: Declared in Iphlpapi.h.
    Library: Use Iphlpapi.lib.See Also
    IP Helper Start Page, IP Helper Function Reference, MIB_IPADDRTABLE
      

  3.   

    存放的是一些信息链表
    IP Helper的系列API,在Windows网络编程第二版上有介绍