Fixes for building with __MINGW32_VERSION 2.1
authorRobert Dickenson <robd@reactos.org>
Sun, 25 Aug 2002 06:47:16 +0000 (06:47 +0000)
committerRobert Dickenson <robd@reactos.org>
Sun, 25 Aug 2002 06:47:16 +0000 (06:47 +0000)
svn path=/trunk/; revision=3388

60 files changed:
rosapps/Makefile
rosapps/calc/.cvsignore [new file with mode: 0644]
rosapps/cmd/.cvsignore
rosapps/cmdutils/.cvsignore [new file with mode: 0644]
rosapps/cmdutils/touch/.cvsignore [new file with mode: 0644]
rosapps/control/.cvsignore [new file with mode: 0644]
rosapps/dflat32/.cvsignore [new file with mode: 0644]
rosapps/hcalc/.cvsignore [new file with mode: 0644]
rosapps/installapps.bat
rosapps/lib/dflat32/.cvsignore [new file with mode: 0644]
rosapps/mc/.cvsignore [new file with mode: 0644]
rosapps/mc/release/.cvsignore [new file with mode: 0644]
rosapps/net/arp/.cvsignore [new file with mode: 0644]
rosapps/net/finger/.cvsignore [new file with mode: 0644]
rosapps/net/ipconfig/.cvsignore [new file with mode: 0644]
rosapps/net/ipconfig/ipconfig.c
rosapps/net/ncftp/.cvsignore [new file with mode: 0644]
rosapps/net/ncftp/Strn/.cvsignore [new file with mode: 0644]
rosapps/net/ncftp/libncftp/.cvsignore [new file with mode: 0644]
rosapps/net/ncftp/ncftp/.cvsignore [new file with mode: 0644]
rosapps/net/ncftp/sio/.cvsignore [new file with mode: 0644]
rosapps/net/netstat/.cvsignore [new file with mode: 0644]
rosapps/net/niclist/.cvsignore [new file with mode: 0644]
rosapps/net/ping/.cvsignore [new file with mode: 0644]
rosapps/net/telnet/.cvsignore [new file with mode: 0644]
rosapps/net/telnet/src/.cvsignore [new file with mode: 0644]
rosapps/net/whois/.cvsignore [new file with mode: 0644]
rosapps/notevil/.cvsignore [new file with mode: 0644]
rosapps/regedit/.cvsignore [new file with mode: 0644]
rosapps/regedit/main.h
rosapps/regedt32/.cvsignore [new file with mode: 0644]
rosapps/regedt32/main.h
rosapps/regsvr32/.cvsignore [new file with mode: 0644]
rosapps/sysutils/.cvsignore [new file with mode: 0644]
rosapps/sysutils/regexpl/.cvsignore
rosapps/sysutils/tlist/.cvsignore [new file with mode: 0644]
rosapps/taskmgr/.cvsignore [new file with mode: 0644]
rosapps/taskmgr/ApplicationPage.cpp
rosapps/taskmgr/ApplicationPage.h
rosapps/taskmgr/GraphCtrl.h
rosapps/taskmgr/PerformancePage.h
rosapps/taskmgr/ProcessPage.h
rosapps/taskmgr/about.h
rosapps/taskmgr/affinity.h
rosapps/taskmgr/column.h
rosapps/taskmgr/debug.h
rosapps/taskmgr/endproc.h
rosapps/taskmgr/font.h
rosapps/taskmgr/graph.cpp
rosapps/taskmgr/graph.h
rosapps/taskmgr/optnmenu.h
rosapps/taskmgr/perfdata.cpp
rosapps/taskmgr/perfdata.h
rosapps/taskmgr/priority.h
rosapps/taskmgr/proclist.h
rosapps/taskmgr/trayicon.h
rosapps/templates/mdi/.cvsignore [new file with mode: 0644]
rosapps/winfile/.cvsignore [new file with mode: 0644]
rosapps/winfile/main.h
rosapps/winfile/network.h

index a9d7f99..21b3a85 100644 (file)
@@ -27,6 +27,7 @@ APPS =        calc \
        net\arp \
        net\finger \
        net\ipconfig \
        net\arp \
        net\finger \
        net\ipconfig \
+       net\ipecho \
        net\ncftp \
        net\netstat \
        net\niclist \
        net\ncftp \
        net\netstat \
        net\niclist \
diff --git a/rosapps/calc/.cvsignore b/rosapps/calc/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
index dcdb369..b8b4afb 100644 (file)
@@ -1 +1,16 @@
-cmd.coff
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/cmdutils/.cvsignore b/rosapps/cmdutils/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/cmdutils/touch/.cvsignore b/rosapps/cmdutils/touch/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/control/.cvsignore b/rosapps/control/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/dflat32/.cvsignore b/rosapps/dflat32/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/hcalc/.cvsignore b/rosapps/hcalc/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
index 8d86036..6761d2a 100644 (file)
@@ -24,6 +24,7 @@ copy net\arp\arp.exe                  %ROS_INSTALL%\bin
 copy net\echo\echo.exe                 %ROS_INSTALL%\bin
 copy net\finger\finger.exe             %ROS_INSTALL%\bin
 copy net\ipconfig\ipconfig.exe                 %ROS_INSTALL%\bin
 copy net\echo\echo.exe                 %ROS_INSTALL%\bin
 copy net\finger\finger.exe             %ROS_INSTALL%\bin
 copy net\ipconfig\ipconfig.exe                 %ROS_INSTALL%\bin
+copy net\ipecho\ipecho.exe             %ROS_INSTALL%\bin
 copy net\ncftp\ncftp.exe               %ROS_INSTALL%\bin
 copy net\netstat\netstat.exe           %ROS_INSTALL%\bin
 copy net\niclist\niclist.exe           %ROS_INSTALL%\bin
 copy net\ncftp\ncftp.exe               %ROS_INSTALL%\bin
 copy net\netstat\netstat.exe           %ROS_INSTALL%\bin
 copy net\niclist\niclist.exe           %ROS_INSTALL%\bin
diff --git a/rosapps/lib/dflat32/.cvsignore b/rosapps/lib/dflat32/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/mc/.cvsignore b/rosapps/mc/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/mc/release/.cvsignore b/rosapps/mc/release/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/arp/.cvsignore b/rosapps/net/arp/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/finger/.cvsignore b/rosapps/net/finger/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/ipconfig/.cvsignore b/rosapps/net/ipconfig/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
index 1aa8b3c..1e19a8c 100644 (file)
@@ -55,25 +55,36 @@ TCHAR* GetNodeTypeName(int nNodeType)
 
 void ShowNetworkFixedInfo()
 {
 
 void ShowNetworkFixedInfo()
 {
-    FIXED_INFO FixedInfo;
-    ULONG OutBufLen = sizeof(FIXED_INFO);
+    FIXED_INFO* pFixedInfo = NULL;
+    ULONG OutBufLen = 0;
     DWORD result;
 
     DWORD result;
 
+    result = GetNetworkParams(NULL, &OutBufLen);
+    if (result == ERROR_BUFFER_OVERFLOW) {
+        pFixedInfo = (FIXED_INFO*)malloc(OutBufLen);
+        if (!pFixedInfo) {
+            _tprintf(_T("ERROR: failed to allocate 0x%08X bytes of memory\n"), OutBufLen);
+            return;
+        }
+    } else {
+        _tprintf(_T("ERROR: GetNetworkParams() failed to report required buffer size.\n"));
+        return;
+    }
 
 
-    result = GetNetworkParams(&FixedInfo, &OutBufLen);
+    result = GetNetworkParams(pFixedInfo, &OutBufLen);
     if (result == ERROR_SUCCESS) {
     if (result == ERROR_SUCCESS) {
-             printf("\tHostName. . . . . . . . . . . : %s\n",  FixedInfo.HostName);
-             printf("\tDomainName. . . . . . . . . . : %s\n",  FixedInfo.DomainName);
-        _tprintf(_T("\tNodeType. . . . . . . . . . . : %d (%s)\n"), FixedInfo.NodeType, GetNodeTypeName(FixedInfo.NodeType));
-             printf("\tScopeId . . . . . . . . . . . : %s\n",  FixedInfo.ScopeId);
-        _tprintf(_T("\tEnableRouting . . . . . . . . : %s\n"), FixedInfo.EnableRouting ? _T("yes") : _T("no"));
-        _tprintf(_T("\tEnableProxy . . . . . . . . . : %s\n"), FixedInfo.EnableProxy ? _T("yes") : _T("no"));
-        _tprintf(_T("\tEnableDns . . . . . . . . . . : %s\n"), FixedInfo.EnableDns ? _T("yes") : _T("no"));
+             printf("\tHostName. . . . . . . . . . . : %s\n",  pFixedInfo->HostName);
+             printf("\tDomainName. . . . . . . . . . : %s\n",  pFixedInfo->DomainName);
+        _tprintf(_T("\tNodeType. . . . . . . . . . . : %d (%s)\n"), pFixedInfo->NodeType, GetNodeTypeName(pFixedInfo->NodeType));
+             printf("\tScopeId . . . . . . . . . . . : %s\n",  pFixedInfo->ScopeId);
+        _tprintf(_T("\tEnableRouting . . . . . . . . : %s\n"), pFixedInfo->EnableRouting ? _T("yes") : _T("no"));
+        _tprintf(_T("\tEnableProxy . . . . . . . . . : %s\n"), pFixedInfo->EnableProxy ? _T("yes") : _T("no"));
+        _tprintf(_T("\tEnableDns . . . . . . . . . . : %s\n"), pFixedInfo->EnableDns ? _T("yes") : _T("no"));
         _tprintf(_T("\n"));
         //_tprintf(_T("\n"), );
         //_tprintf(_T("GetNetworkParams() returned with %d\n"), pIfTable->NumAdapters);
 
         _tprintf(_T("\n"));
         //_tprintf(_T("\n"), );
         //_tprintf(_T("GetNetworkParams() returned with %d\n"), pIfTable->NumAdapters);
 
-//      _tprintf(_T("\tConnection specific DNS suffix: %s\n"), FixedInfo.EnableDns ? _T("yes") : _T("no"));
+//      _tprintf(_T("\tConnection specific DNS suffix: %s\n"), pFixedInfo->EnableDns ? _T("yes") : _T("no"));
 
     } else {
         switch (result) {
 
     } else {
         switch (result) {
@@ -199,6 +210,9 @@ void usage(void)
 
 int main(int argc, char *argv[])
 {
 
 int main(int argc, char *argv[])
 {
+
+    // 10.0.0.100    // As of build 0.0.20 this is hardcoded in the ip stack
+
     if (argc > 1) {
         usage();
         return 1;
     if (argc > 1) {
         usage();
         return 1;
diff --git a/rosapps/net/ncftp/.cvsignore b/rosapps/net/ncftp/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/ncftp/Strn/.cvsignore b/rosapps/net/ncftp/Strn/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/ncftp/libncftp/.cvsignore b/rosapps/net/ncftp/libncftp/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/ncftp/ncftp/.cvsignore b/rosapps/net/ncftp/ncftp/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/ncftp/sio/.cvsignore b/rosapps/net/ncftp/sio/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/netstat/.cvsignore b/rosapps/net/netstat/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/niclist/.cvsignore b/rosapps/net/niclist/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/ping/.cvsignore b/rosapps/net/ping/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/telnet/.cvsignore b/rosapps/net/telnet/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/telnet/src/.cvsignore b/rosapps/net/telnet/src/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/net/whois/.cvsignore b/rosapps/net/whois/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/notevil/.cvsignore b/rosapps/notevil/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/regedit/.cvsignore b/rosapps/regedit/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
index d956b9c..a0e9b28 100644 (file)
@@ -79,7 +79,7 @@ extern TCHAR szTitle[];
 extern TCHAR szFrameClass[];
 extern TCHAR szChildClass[];
 
 extern TCHAR szFrameClass[];
 extern TCHAR szChildClass[];
 
-#ifndef _MSC_VER
+#if __MINGW32_MAJOR_VERSION == 1
 typedef struct tagNMITEMACTIVATE{
     NMHDR   hdr;
     int     iItem;
 typedef struct tagNMITEMACTIVATE{
     NMHDR   hdr;
     int     iItem;
diff --git a/rosapps/regedt32/.cvsignore b/rosapps/regedt32/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
index ed8dff5..4f5c956 100644 (file)
@@ -88,7 +88,7 @@ extern TCHAR szTitle[];
 extern TCHAR szFrameClass[];
 extern TCHAR szChildClass[];
 
 extern TCHAR szFrameClass[];
 extern TCHAR szChildClass[];
 
-#ifndef _MSC_VER
+#if __MINGW32_MAJOR_VERSION == 1
 typedef struct tagNMITEMACTIVATE{
     NMHDR   hdr;
     int     iItem;
 typedef struct tagNMITEMACTIVATE{
     NMHDR   hdr;
     int     iItem;
diff --git a/rosapps/regsvr32/.cvsignore b/rosapps/regsvr32/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/sysutils/.cvsignore b/rosapps/sysutils/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
index 0f80c9e..13381c8 100644 (file)
@@ -1 +1,17 @@
-*.mak *.coff
+*.mak
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/sysutils/tlist/.cvsignore b/rosapps/sysutils/tlist/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/taskmgr/.cvsignore b/rosapps/taskmgr/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
index f6d714e..715f575 100644 (file)
@@ -69,10 +69,10 @@ void            ApplicationPageShowContextMenu1(void);
 void            ApplicationPageShowContextMenu2(void);
 int CALLBACK    ApplicationPageCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
 
 void            ApplicationPageShowContextMenu2(void);
 int CALLBACK    ApplicationPageCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
 
-void SwitchToThisWindow (
-HWND hWnd,   // Handle to the window that should be activated
-BOOL bRestore // Restore the window if it is minimized
-);
+//void SwitchToThisWindow (
+//HWND hWnd,   // Handle to the window that should be activated
+//BOOL bRestore // Restore the window if it is minimized
+//);
 
 LRESULT CALLBACK ApplicationPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 {
 
 LRESULT CALLBACK ApplicationPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 {
@@ -972,7 +972,7 @@ void ApplicationPage_OnGotoProcess(void)
     LPAPPLICATION_PAGE_LIST_ITEM pAPLI = NULL;
     LV_ITEM item;
     int i;
     LPAPPLICATION_PAGE_LIST_ITEM pAPLI = NULL;
     LV_ITEM item;
     int i;
-    NMHDR nmhdr;
+    //NMHDR nmhdr;
 
     for (i=0; i<ListView_GetItemCount(hApplicationPageListCtrl); i++)
     {
 
     for (i=0; i<ListView_GetItemCount(hApplicationPageListCtrl); i++)
     {
index 554e516..ef06ff6 100644 (file)
@@ -47,4 +47,4 @@ void                          ApplicationPage_OnSwitchTo(void);
 void                           ApplicationPage_OnEndTask(void);
 void                           ApplicationPage_OnGotoProcess(void);
 
 void                           ApplicationPage_OnEndTask(void);
 void                           ApplicationPage_OnGotoProcess(void);
 
-#endif // defined __APPLICATIONPAGE_H
+#endif // __APPLICATIONPAGE_H
index b903705..8a193b7 100644 (file)
@@ -109,4 +109,3 @@ LRESULT CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
 
 
 #endif /* __GRAPH_CTRL_H__ */
 
 
 #endif /* __GRAPH_CTRL_H__ */
-/////////////////////////////////////////////////////////////////////////////
index 3e5789f..13fd6df 100644 (file)
@@ -32,4 +32,4 @@ void                          PerformancePage_OnViewShowKernelTimes(void);
 void                           PerformancePage_OnViewCPUHistoryOneGraphAll(void);
 void                           PerformancePage_OnViewCPUHistoryOneGraphPerCPU(void);
 
 void                           PerformancePage_OnViewCPUHistoryOneGraphAll(void);
 void                           PerformancePage_OnViewCPUHistoryOneGraphPerCPU(void);
 
-#endif // defined __PERFORMANCEPAGE_H
+#endif // __PERFORMANCEPAGE_H
index 092da9a..393d4da 100644 (file)
@@ -32,4 +32,4 @@ extern        HWND            hProcessPageShowAllProcessesButton;     // Process Show All Processes c
 LRESULT CALLBACK       ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
 void                           RefreshProcessPage(void);
 
 LRESULT CALLBACK       ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
 void                           RefreshProcessPage(void);
 
-#endif // defined __PROCESSPAGE_H
+#endif // __PROCESSPAGE_H
index b721253..3bb7ef5 100644 (file)
@@ -25,4 +25,4 @@
 
 void   OnAbout(void);
 
 
 void   OnAbout(void);
 
-#endif // defined __ABOUT_H
+#endif // __ABOUT_H
index e0b7645..a77eb56 100644 (file)
@@ -25,4 +25,4 @@
 
 void ProcessPage_OnSetAffinity(void);
 
 
 void ProcessPage_OnSetAffinity(void);
 
-#endif // __AFFINITY_H
\ No newline at end of file
+#endif // __AFFINITY_H
index 4c414cd..139fe44 100644 (file)
@@ -56,4 +56,4 @@ void AddColumns(void);
 void SaveColumnSettings(void);
 void UpdateColumnDataHints(void);
 
 void SaveColumnSettings(void);
 void UpdateColumnDataHints(void);
 
-#endif // __COlUMN_H
\ No newline at end of file
+#endif // __COLUMN_H
index 35669d1..086410d 100644 (file)
@@ -25,4 +25,4 @@
 
 void ProcessPage_OnDebug(void);
 
 
 void ProcessPage_OnDebug(void);
 
-#endif // __DEBUG_H
\ No newline at end of file
+#endif // __DEBUG_H
index 931c087..a1f0df6 100644 (file)
@@ -26,4 +26,4 @@
 void ProcessPage_OnEndProcess(void);
 void ProcessPage_OnEndProcessTree(void);
 
 void ProcessPage_OnEndProcess(void);
 void ProcessPage_OnEndProcessTree(void);
 
-#endif // __ENDPROC_H
\ No newline at end of file
+#endif // __ENDPROC_H
index c41dd49..6a4dca0 100644 (file)
@@ -25,4 +25,4 @@
 
 void   Font_DrawText(HDC hDC, LPCTSTR lpszText, int x, int y);
 
 
 void   Font_DrawText(HDC hDC, LPCTSTR lpszText, int x, int y);
 
-#endif // __FONT_H
\ No newline at end of file
+#endif // __FONT_H
index 109f7e1..55f8899 100644 (file)
@@ -185,15 +185,15 @@ void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
        //
        if (CpuUsage == 100)
        {
        //
        if (CpuUsage == 100)
        {
-               sprintf(Text, "%d%%", CpuUsage);
+               _stprintf(Text, _T("%d%%"), CpuUsage);
        }
        else if (CpuUsage < 10)
        {
        }
        else if (CpuUsage < 10)
        {
-               sprintf(Text, "  %d%%", CpuUsage);
+               _stprintf(Text, _T("  %d%%"), CpuUsage);
        }
        else
        {
        }
        else
        {
-               sprintf(Text, " %d%%", CpuUsage);
+               _stprintf(Text, _T(" %d%%"), CpuUsage);
        }
        
        //
        }
        
        //
@@ -351,7 +351,7 @@ void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
        CommitChargeTotal = (ULONGLONG)PerfDataGetCommitChargeTotalK();
        CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK();
 
        CommitChargeTotal = (ULONGLONG)PerfDataGetCommitChargeTotalK();
        CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK();
 
-       sprintf(Text, "%dK", CommitChargeTotal);
+       _stprintf(Text, _T("%dK"), CommitChargeTotal);
        
        //
        // Draw the font text onto the graph
        
        //
        // Draw the font text onto the graph
@@ -468,4 +468,4 @@ void Graph_DrawMemUsageHistoryGraph(HDC hDC, HWND hWnd)
        for (i=rcClient.right; i>=0; i--)
        {
        }
        for (i=rcClient.right; i>=0; i--)
        {
        }
-}
\ No newline at end of file
+}
index 0dfdf0a..a6a9ae6 100644 (file)
@@ -32,4 +32,4 @@ extern        LONG                            OldGraphWndProc;
 
 LRESULT CALLBACK       Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
 
 
 LRESULT CALLBACK       Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
 
-#endif // __GRAPH_H
\ No newline at end of file
+#endif // __GRAPH_H
index a50bdc2..4e13764 100644 (file)
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
        
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
        
-//
-// options.h
 //
 // Menu item handlers for the options menu.
 //
 
 //
 // Menu item handlers for the options menu.
 //
 
-#ifndef __OPTIONS_H
-#define __OPTIONS_H
+#ifndef __OPTNMENU_H
+#define __OPTNMENU_H
 
 void TaskManager_OnOptionsAlwaysOnTop(void);
 void TaskManager_OnOptionsMinimizeOnUse(void);
 void TaskManager_OnOptionsHideWhenMinimized(void);
 void TaskManager_OnOptionsShow16BitTasks(void);
 
 
 void TaskManager_OnOptionsAlwaysOnTop(void);
 void TaskManager_OnOptionsMinimizeOnUse(void);
 void TaskManager_OnOptionsHideWhenMinimized(void);
 void TaskManager_OnOptionsShow16BitTasks(void);
 
-#endif // __OPTIONS_H
\ No newline at end of file
+#endif // __OPTNMENU_H
index 929fcf6..e1c9214 100644 (file)
@@ -38,8 +38,8 @@
 #include "perfdata.h"
 
 PROCNTQSI                                              NtQuerySystemInformation = NULL;
 #include "perfdata.h"
 
 PROCNTQSI                                              NtQuerySystemInformation = NULL;
-PROCGGR                                                        GetGuiResources = NULL;
-PROCGPIC                                               GetProcessIoCounters = NULL;
+PROCGGR                                                        pGetGuiResources = NULL;
+PROCGPIC                                               pGetProcessIoCounters = NULL;
 CRITICAL_SECTION                               PerfDataCriticalSection;
 PPERFDATA                                              pPerfDataOld = NULL;    // Older perf data (saved to establish delta values)
 PPERFDATA                                              pPerfData = NULL;               // Most recent copy of perf data
 CRITICAL_SECTION                               PerfDataCriticalSection;
 PPERFDATA                                              pPerfDataOld = NULL;    // Older perf data (saved to establish delta values)
 PPERFDATA                                              pPerfData = NULL;               // Most recent copy of perf data
@@ -62,8 +62,8 @@ BOOL PerfDataInitialize(void)
        LONG    status;
 
        NtQuerySystemInformation = (PROCNTQSI)GetProcAddress(GetModuleHandle("ntdll.dll"), "NtQuerySystemInformation");
        LONG    status;
 
        NtQuerySystemInformation = (PROCNTQSI)GetProcAddress(GetModuleHandle("ntdll.dll"), "NtQuerySystemInformation");
-       GetGuiResources = (PROCGGR)GetProcAddress(GetModuleHandle("user32.dll"), "GetGuiResources");
-       GetProcessIoCounters = (PROCGPIC)GetProcAddress(GetModuleHandle("kernel32.dll"), "GetProcessIoCounters");
+       pGetGuiResources = (PROCGGR)GetProcAddress(GetModuleHandle("user32.dll"), "GetGuiResources");
+       pGetProcessIoCounters = (PROCGPIC)GetProcAddress(GetModuleHandle("kernel32.dll"), "GetProcessIoCounters");
        
        InitializeCriticalSection(&PerfDataCriticalSection);
        
        
        InitializeCriticalSection(&PerfDataCriticalSection);
        
@@ -313,13 +313,13 @@ void PerfDataRefresh(void)
                                CloseHandle(hProcessToken);
                        }
                        
                                CloseHandle(hProcessToken);
                        }
                        
-                       if (GetGuiResources)
+                       if (pGetGuiResources)
                        {
                        {
-                               pPerfData[Idx].USERObjectCount = GetGuiResources(hProcess, GR_USEROBJECTS);
-                               pPerfData[Idx].GDIObjectCount = GetGuiResources(hProcess, GR_GDIOBJECTS);
+                               pPerfData[Idx].USERObjectCount = pGetGuiResources(hProcess, GR_USEROBJECTS);
+                               pPerfData[Idx].GDIObjectCount = pGetGuiResources(hProcess, GR_GDIOBJECTS);
                        }
                        }
-                       if (GetProcessIoCounters)
-                               GetProcessIoCounters(hProcess, &pPerfData[Idx].IOCounters);
+                       if (pGetProcessIoCounters)
+                               pGetProcessIoCounters(hProcess, &pPerfData[Idx].IOCounters);
                        
                        CloseHandle(hProcess);
                }
                        
                        CloseHandle(hProcess);
                }
index 537b163..10cb86b 100644 (file)
@@ -409,4 +409,4 @@ ULONG       PerfDataGetSystemHandleCount(void);
 
 ULONG  PerfDataGetTotalThreadCount(void);
 
 
 ULONG  PerfDataGetTotalThreadCount(void);
 
-#endif // defined __PERFDATA_H
+#endif // __PERFDATA_H
index c0431f6..0d91c08 100644 (file)
@@ -30,4 +30,4 @@ void ProcessPage_OnSetPriorityNormal(void);
 void ProcessPage_OnSetPriorityBelowNormal(void);
 void ProcessPage_OnSetPriorityLow(void);
 
 void ProcessPage_OnSetPriorityBelowNormal(void);
 void ProcessPage_OnSetPriorityLow(void);
 
-#endif // __PRIORITY_H
\ No newline at end of file
+#endif // __PRIORITY_H
index 0abe87c..d7a8b6b 100644 (file)
@@ -27,4 +27,4 @@ LRESULT CALLBACK      ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
 
 extern LONG            OldProcessListWndProc;
 
 
 extern LONG            OldProcessListWndProc;
 
-#endif // __PROCLIST_H
\ No newline at end of file
+#endif // __PROCLIST_H
index d013858..5c56c6d 100644 (file)
@@ -28,4 +28,4 @@ BOOL  TrayIcon_ShellAddTrayIcon(void);
 BOOL   TrayIcon_ShellRemoveTrayIcon(void);
 BOOL   TrayIcon_ShellUpdateTrayIcon(void);
 
 BOOL   TrayIcon_ShellRemoveTrayIcon(void);
 BOOL   TrayIcon_ShellUpdateTrayIcon(void);
 
-#endif // __TRAYICON_H
\ No newline at end of file
+#endif // __TRAYICON_H
diff --git a/rosapps/templates/mdi/.cvsignore b/rosapps/templates/mdi/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
diff --git a/rosapps/winfile/.cvsignore b/rosapps/winfile/.cvsignore
new file mode 100644 (file)
index 0000000..b8b4afb
--- /dev/null
@@ -0,0 +1,16 @@
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
index dfa4608..a2ed6e4 100644 (file)
@@ -190,7 +190,7 @@ extern TCHAR szChildClass[];
 void SetupStatusBar(BOOL bResize);
 void UpdateStatusBar(void);
 
 void SetupStatusBar(BOOL bResize);
 void UpdateStatusBar(void);
 
-#ifndef _MSC_VER
+#if __MINGW32_MAJOR_VERSION == 1
 typedef struct tagNMITEMACTIVATE{
     NMHDR   hdr;
     int     iItem;
 typedef struct tagNMITEMACTIVATE{
     NMHDR   hdr;
     int     iItem;
index f90e02b..3d81f6e 100644 (file)
@@ -39,4 +39,4 @@ DWORD MapNetworkDrives(HWND hWnd, BOOL connect);
 };
 #endif
 
 };
 #endif
 
-#endif // __NETWORK_H__
\ No newline at end of file
+#endif // __NETWORK_H__