Click here to Skip to main content
Licence 
First Posted 31 Oct 2001
Views 249,944
Bookmarked 27 times

Using IP Helper API’s

By | 31 Oct 2001 | Article
This article demonstrates the usage of the Internet Protocol Helper API's

Sample Image - TCPInfo.jpg

Introduction

Internet Protocol Helper (IP Helper) is an API that assists in the network administration of the local computer. You can use IP Helper to programmatically retrieve information about the network configuration of the local computer, and to modify that configuration. This article and the associated code demonstrate usage of some of the API’s. The sample application is developed using these API's and can be used for following purposes.

  1. Getting the TCP statistics such as active connections, segments sent and received etc.

  2. Getting the UDP statistics such as datagrams sent and received etc.

  3. Getting the IP statistics such as Reassembly time outs, invalid datagrams sent or received etc.

  4. Getting the ICMP statistics such as total ICMP messages sent or received, echo requests sent and echo replies received etc.

  5. Getting the active TCP connections with local and remote addresses and ports.

  6. Getting the active UDP connections with local address and ports.

These are some of the functions IP Helper API’s can do. In the sample application following API's were used.

  1. GetTcpStatistics()

    This API fills a MIB_TCPSTATS structure with TCP statistics. See sample application for usage.

  2. GetUdpStatistics()

    This API fills a MIB_UDPSTATS structure with UDP statistics. See sample application for usage.

  3. GetIpStatistics()

    This API fills a MIB_IPSTATS structure with IP statistics. See sample application for usage.

  4. GetIcmpStatistics()

    This API fills a MIB_ICMP structure with ICMP statistics about outgoing and incoming ICMP messages. See the sample application for usage.

  5. GetTcpTable()

    This API fills a buffer with the information about active TCP connections. Apart from the status of the connections (Established, closing etc.) the local and remote addresses and ports involved are also returned. See the sample application for the usage of this API.

  6. GetUdpTable()

    This API fills a buffer with UDP connections information. Only the local address and ports of the connection are returned. See the sample application for the usage of this API

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Farooque Khan



United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalhelp with the header files Pinmemberbluebarnacle17:51 1 Feb '06  
GeneralRe: help with the header files PinmemberNurrizki Brahmantyo19:01 23 Jun '07  
GeneralSetTcpEntry PinmemberVitoto10:05 19 May '05  
Questionwhere can you download IP Helper ? Pinmemberorenboskila6:24 7 Jul '04  
AnswerRe: where can you download IP Helper ? PinmemberThatsAlok2:25 12 Feb '05  
GeneralPoor Code! I cannot compile the project! I cannot find the lib file and its head file! Pinmemberbaogangfeng16:56 13 Jun '04  
GeneralRe: Poor Code! I cannot compile the project! I cannot find the lib file and its head file! PinmemberThatsAlok2:27 12 Feb '05  
GeneralRe: Poor Code! I cannot compile the project! I cannot find the lib file and its head file! PinmemberAndre Oliveira1:52 8 May '06  
error on iphlpapi.h could not find
 
Andre Oliveira
GeneralRe: Poor Code! I cannot compile the project! I cannot find the lib file and its head file! PinmemberThatsAlok0:41 10 May '06  
GeneralClosing a port PinmemberwildUK8:57 29 Sep '03  
GeneralRe: Closing a port PinmemberFarooque18:36 29 Sep '03  
GeneralRe: Closing a port PinmemberVitoto10:03 19 May '05  
QuestionWhere's the article? PinmemberPaul A. Howes9:38 18 Nov '02  
Generalgetting infos about the listening process PinmemberChristophe Renard2:55 20 Nov '01  
GeneralRe: getting infos about the listening process PinsussAnonymous5:51 11 Nov '02  
GeneralA second to the "missing info" PinmemberPeter Weyzen12:06 2 Nov '01  
GeneralRe: A second to the "missing info" Pinmemberniverson11:53 15 Aug '02  
GeneralMissing Information... PinmemberDaniel Madden4:11 1 Nov '01  
GeneralRe: Missing Information... PinmemberFarooque Khan17:54 5 Nov '01  
GeneralRe: Missing Information... PinmemberDaniel Madden0:29 16 Feb '02  
GeneralRe: Missing Information... PinmemberAnonymous17:55 15 Feb '02  
GeneralRe: Missing Information... PinmemberAnonymous17:55 15 Feb '02  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120529.1 | Last Updated 1 Nov 2001
Article Copyright 2001 by Farooque Khan
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid