netstat.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright 2012 André Hentschel
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  17. */
  18. #include <windows.h>
  19. typedef enum _NETSTATPROTOCOLS {
  20. PROT_UNKNOWN,
  21. PROT_IP,
  22. PROT_IPV6,
  23. PROT_ICMP,
  24. PROT_ICMPV6,
  25. PROT_TCP,
  26. PROT_TCPV6,
  27. PROT_UDP,
  28. PROT_UDPV6,
  29. } NETSTATPROTOCOLS;
  30. #define IDS_TCP_ACTIVE_CONN 1
  31. #define IDS_TCP_PROTO 2
  32. #define IDS_TCP_LOCAL_ADDR 3
  33. #define IDS_TCP_REMOTE_ADDR 4
  34. #define IDS_TCP_STATE 5
  35. #define IDS_ETH_STAT 6
  36. #define IDS_ETH_SENT 7
  37. #define IDS_ETH_RECV 8
  38. #define IDS_ETH_BYTES 9
  39. #define IDS_ETH_UNICAST 10
  40. #define IDS_ETH_NUNICAST 11
  41. #define IDS_ETH_DISCARDS 12
  42. #define IDS_ETH_ERRORS 13
  43. #define IDS_ETH_UNKNOWN 14
  44. #define IDS_TCP_STAT 15
  45. #define IDS_TCP_ACTIVE_OPEN 16
  46. #define IDS_TCP_PASSIV_OPEN 17
  47. #define IDS_TCP_FAILED_CONN 18
  48. #define IDS_TCP_RESET_CONN 19
  49. #define IDS_TCP_CURR_CONN 20
  50. #define IDS_TCP_SEGM_RECV 21
  51. #define IDS_TCP_SEGM_SENT 22
  52. #define IDS_TCP_SEGM_RETRAN 23
  53. #define IDS_UDP_STAT 24
  54. #define IDS_UDP_DGRAMS_RECV 25
  55. #define IDS_UDP_NO_PORTS 26
  56. #define IDS_UDP_RECV_ERRORS 27
  57. #define IDS_UDP_DGRAMS_SENT 28