* Slap *some* sense into our header inclusions.
[reactos.git] / reactos / base / applications / network / netstat / netstat.c
index d491d08..999b301 100644 (file)
  * command line parser needs more work
  */
 
-#include <windows.h>
+#define WIN32_NO_STATUS
+#include <stdarg.h>
+#include <windef.h>
+#include <winbase.h>
+#define _INC_WINDOWS
 #include <winsock2.h>
 #include <tchar.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <iphlpapi.h>
-#include "netstat.h"
 
+#include "netstat.h"
 
 enum ProtoType {IP, TCP, UDP, ICMP} Protocol;
 DWORD Interval; /* time to pause between printing output */
@@ -42,7 +46,6 @@ TCHAR TcpState[][32] = {
     _T("DELETE_TCB")
 };
 
-
 /*
  * format message string and display output
  */
@@ -73,7 +76,6 @@ DWORD DoFormatMessage(DWORD ErrorCode)
         return 0;
 }
 
-
 /*
  *
  * Parse command line parameters and set any options
@@ -163,7 +165,6 @@ BOOL ParseCmdline(int argc, char* argv[])
     return EXIT_SUCCESS;
 }
 
-
 /*
  * Simulate Microsofts netstat utility output
  */
@@ -248,9 +249,6 @@ BOOL DisplayOutput()
     return EXIT_SUCCESS;
 }
 
-
-
-
 VOID ShowIpStatistics()
 {
     PMIB_IPSTATS pIpStats;
@@ -467,7 +465,6 @@ VOID ShowTcpTable()
     HeapFree(GetProcessHeap(), 0, tcpTable);
 }
 
-
 VOID ShowUdpTable()
 {
     PMIB_UDPTABLE udpTable;
@@ -511,7 +508,6 @@ VOID ShowUdpTable()
     HeapFree(GetProcessHeap(), 0, udpTable);
 }
 
-
 /*
  * Translate port numbers into their text equivalent if there is one
  */
@@ -533,7 +529,6 @@ GetPortName(UINT Port, PCSTR Proto, CHAR Name[], INT NameLen)
     return Name;
 }
 
-
 /*
  * convert addresses into dotted decimal or hostname
  */
@@ -607,8 +602,6 @@ VOID Usage()
     "                print the current information only once.\n"));
 }
 
-
-
 /*
  *
  * Parse command line parameters and set any options