net\arp \
net\finger \
net\ipconfig \
+ net\ipecho \
net\ncftp \
net\netstat \
net\niclist \
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
-cmd.coff
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
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
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
void ShowNetworkFixedInfo()
{
- FIXED_INFO FixedInfo;
- ULONG OutBufLen = sizeof(FIXED_INFO);
+ FIXED_INFO* pFixedInfo = NULL;
+ ULONG OutBufLen = 0;
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) {
- 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("\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) {
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;
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
extern TCHAR szFrameClass[];
extern TCHAR szChildClass[];
-#ifndef _MSC_VER
+#if __MINGW32_MAJOR_VERSION == 1
typedef struct tagNMITEMACTIVATE{
NMHDR hdr;
int iItem;
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
extern TCHAR szFrameClass[];
extern TCHAR szChildClass[];
-#ifndef _MSC_VER
+#if __MINGW32_MAJOR_VERSION == 1
typedef struct tagNMITEMACTIVATE{
NMHDR hdr;
int iItem;
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
-*.mak *.coff
+*.mak
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
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)
{
LPAPPLICATION_PAGE_LIST_ITEM pAPLI = NULL;
LV_ITEM item;
int i;
- NMHDR nmhdr;
+ //NMHDR nmhdr;
for (i=0; i<ListView_GetItemCount(hApplicationPageListCtrl); i++)
{
void ApplicationPage_OnEndTask(void);
void ApplicationPage_OnGotoProcess(void);
-#endif // defined __APPLICATIONPAGE_H
+#endif // __APPLICATIONPAGE_H
#endif /* __GRAPH_CTRL_H__ */
-/////////////////////////////////////////////////////////////////////////////
void PerformancePage_OnViewCPUHistoryOneGraphAll(void);
void PerformancePage_OnViewCPUHistoryOneGraphPerCPU(void);
-#endif // defined __PERFORMANCEPAGE_H
+#endif // __PERFORMANCEPAGE_H
LRESULT CALLBACK ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
void RefreshProcessPage(void);
-#endif // defined __PROCESSPAGE_H
+#endif // __PROCESSPAGE_H
void OnAbout(void);
-#endif // defined __ABOUT_H
+#endif // __ABOUT_H
void ProcessPage_OnSetAffinity(void);
-#endif // __AFFINITY_H
\ No newline at end of file
+#endif // __AFFINITY_H
void SaveColumnSettings(void);
void UpdateColumnDataHints(void);
-#endif // __COlUMN_H
\ No newline at end of file
+#endif // __COLUMN_H
void ProcessPage_OnDebug(void);
-#endif // __DEBUG_H
\ No newline at end of file
+#endif // __DEBUG_H
void ProcessPage_OnEndProcess(void);
void ProcessPage_OnEndProcessTree(void);
-#endif // __ENDPROC_H
\ No newline at end of file
+#endif // __ENDPROC_H
void Font_DrawText(HDC hDC, LPCTSTR lpszText, int x, int y);
-#endif // __FONT_H
\ No newline at end of file
+#endif // __FONT_H
//
if (CpuUsage == 100)
{
- sprintf(Text, "%d%%", CpuUsage);
+ _stprintf(Text, _T("%d%%"), CpuUsage);
}
else if (CpuUsage < 10)
{
- sprintf(Text, " %d%%", CpuUsage);
+ _stprintf(Text, _T(" %d%%"), CpuUsage);
}
else
{
- sprintf(Text, " %d%%", CpuUsage);
+ _stprintf(Text, _T(" %d%%"), CpuUsage);
}
//
CommitChargeTotal = (ULONGLONG)PerfDataGetCommitChargeTotalK();
CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK();
- sprintf(Text, "%dK", CommitChargeTotal);
+ _stprintf(Text, _T("%dK"), CommitChargeTotal);
//
// Draw the font text onto the graph
for (i=rcClient.right; i>=0; i--)
{
}
-}
\ No newline at end of file
+}
LRESULT CALLBACK Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
-#endif // __GRAPH_H
\ No newline at end of file
+#endif // __GRAPH_H
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-//
-// options.h
//
// 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);
-#endif // __OPTIONS_H
\ No newline at end of file
+#endif // __OPTNMENU_H
#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
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);
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);
}
ULONG PerfDataGetTotalThreadCount(void);
-#endif // defined __PERFDATA_H
+#endif // __PERFDATA_H
void ProcessPage_OnSetPriorityBelowNormal(void);
void ProcessPage_OnSetPriorityLow(void);
-#endif // __PRIORITY_H
\ No newline at end of file
+#endif // __PRIORITY_H
extern LONG OldProcessListWndProc;
-#endif // __PROCLIST_H
\ No newline at end of file
+#endif // __PROCLIST_H
BOOL TrayIcon_ShellRemoveTrayIcon(void);
BOOL TrayIcon_ShellUpdateTrayIcon(void);
-#endif // __TRAYICON_H
\ No newline at end of file
+#endif // __TRAYICON_H
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
--- /dev/null
+*.sys
+*.exe
+*.dll
+*.cpl
+*.a
+*.o
+*.d
+*.coff
+*.dsp
+*.dsw
+*.aps
+*.ncb
+*.opt
+*.sym
+*.plg
+*.bak
void SetupStatusBar(BOOL bResize);
void UpdateStatusBar(void);
-#ifndef _MSC_VER
+#if __MINGW32_MAJOR_VERSION == 1
typedef struct tagNMITEMACTIVATE{
NMHDR hdr;
int iItem;
};
#endif
-#endif // __NETWORK_H__
\ No newline at end of file
+#endif // __NETWORK_H__