mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:26:02 +00:00
Fixes for building with __MINGW32_VERSION 2.1
svn path=/trunk/; revision=3388
This commit is contained in:
parent
1231d02b03
commit
381af4ae02
60 changed files with 612 additions and 56 deletions
|
@ -27,6 +27,7 @@ APPS = calc \
|
||||||
net\arp \
|
net\arp \
|
||||||
net\finger \
|
net\finger \
|
||||||
net\ipconfig \
|
net\ipconfig \
|
||||||
|
net\ipecho \
|
||||||
net\ncftp \
|
net\ncftp \
|
||||||
net\netstat \
|
net\netstat \
|
||||||
net\niclist \
|
net\niclist \
|
||||||
|
|
16
rosapps/calc/.cvsignore
Normal file
16
rosapps/calc/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
|
@ -1 +1,16 @@
|
||||||
cmd.coff
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
||||||
|
|
16
rosapps/cmdutils/.cvsignore
Normal file
16
rosapps/cmdutils/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/cmdutils/touch/.cvsignore
Normal file
16
rosapps/cmdutils/touch/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/control/.cvsignore
Normal file
16
rosapps/control/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/dflat32/.cvsignore
Normal file
16
rosapps/dflat32/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/hcalc/.cvsignore
Normal file
16
rosapps/hcalc/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
|
@ -24,6 +24,7 @@ copy net\arp\arp.exe %ROS_INSTALL%\bin
|
||||||
copy net\echo\echo.exe %ROS_INSTALL%\bin
|
copy net\echo\echo.exe %ROS_INSTALL%\bin
|
||||||
copy net\finger\finger.exe %ROS_INSTALL%\bin
|
copy net\finger\finger.exe %ROS_INSTALL%\bin
|
||||||
copy net\ipconfig\ipconfig.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\ncftp\ncftp.exe %ROS_INSTALL%\bin
|
||||||
copy net\netstat\netstat.exe %ROS_INSTALL%\bin
|
copy net\netstat\netstat.exe %ROS_INSTALL%\bin
|
||||||
copy net\niclist\niclist.exe %ROS_INSTALL%\bin
|
copy net\niclist\niclist.exe %ROS_INSTALL%\bin
|
||||||
|
|
16
rosapps/lib/dflat32/.cvsignore
Normal file
16
rosapps/lib/dflat32/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/mc/.cvsignore
Normal file
16
rosapps/mc/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/mc/release/.cvsignore
Normal file
16
rosapps/mc/release/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/arp/.cvsignore
Normal file
16
rosapps/net/arp/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/finger/.cvsignore
Normal file
16
rosapps/net/finger/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/ipconfig/.cvsignore
Normal file
16
rosapps/net/ipconfig/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
|
@ -55,25 +55,36 @@ TCHAR* GetNodeTypeName(int nNodeType)
|
||||||
|
|
||||||
void ShowNetworkFixedInfo()
|
void ShowNetworkFixedInfo()
|
||||||
{
|
{
|
||||||
FIXED_INFO FixedInfo;
|
FIXED_INFO* pFixedInfo = NULL;
|
||||||
ULONG OutBufLen = sizeof(FIXED_INFO);
|
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("\tHostName. . . . . . . . . . . : %s\n", pFixedInfo->HostName);
|
||||||
printf("\tDomainName. . . . . . . . . . : %s\n", FixedInfo.DomainName);
|
printf("\tDomainName. . . . . . . . . . : %s\n", pFixedInfo->DomainName);
|
||||||
_tprintf(_T("\tNodeType. . . . . . . . . . . : %d (%s)\n"), FixedInfo.NodeType, GetNodeTypeName(FixedInfo.NodeType));
|
_tprintf(_T("\tNodeType. . . . . . . . . . . : %d (%s)\n"), pFixedInfo->NodeType, GetNodeTypeName(pFixedInfo->NodeType));
|
||||||
printf("\tScopeId . . . . . . . . . . . : %s\n", FixedInfo.ScopeId);
|
printf("\tScopeId . . . . . . . . . . . : %s\n", pFixedInfo->ScopeId);
|
||||||
_tprintf(_T("\tEnableRouting . . . . . . . . : %s\n"), FixedInfo.EnableRouting ? _T("yes") : _T("no"));
|
_tprintf(_T("\tEnableRouting . . . . . . . . : %s\n"), pFixedInfo->EnableRouting ? _T("yes") : _T("no"));
|
||||||
_tprintf(_T("\tEnableProxy . . . . . . . . . : %s\n"), FixedInfo.EnableProxy ? _T("yes") : _T("no"));
|
_tprintf(_T("\tEnableProxy . . . . . . . . . : %s\n"), pFixedInfo->EnableProxy ? _T("yes") : _T("no"));
|
||||||
_tprintf(_T("\tEnableDns . . . . . . . . . . : %s\n"), FixedInfo.EnableDns ? _T("yes") : _T("no"));
|
_tprintf(_T("\tEnableDns . . . . . . . . . . : %s\n"), pFixedInfo->EnableDns ? _T("yes") : _T("no"));
|
||||||
_tprintf(_T("\n"));
|
_tprintf(_T("\n"));
|
||||||
//_tprintf(_T("\n"), );
|
//_tprintf(_T("\n"), );
|
||||||
//_tprintf(_T("GetNetworkParams() returned with %d\n"), pIfTable->NumAdapters);
|
//_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 {
|
} else {
|
||||||
switch (result) {
|
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) {
|
if (argc > 1) {
|
||||||
usage();
|
usage();
|
||||||
return 1;
|
return 1;
|
||||||
|
|
16
rosapps/net/ncftp/.cvsignore
Normal file
16
rosapps/net/ncftp/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/ncftp/Strn/.cvsignore
Normal file
16
rosapps/net/ncftp/Strn/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/ncftp/libncftp/.cvsignore
Normal file
16
rosapps/net/ncftp/libncftp/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/ncftp/ncftp/.cvsignore
Normal file
16
rosapps/net/ncftp/ncftp/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/ncftp/sio/.cvsignore
Normal file
16
rosapps/net/ncftp/sio/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/netstat/.cvsignore
Normal file
16
rosapps/net/netstat/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/niclist/.cvsignore
Normal file
16
rosapps/net/niclist/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/ping/.cvsignore
Normal file
16
rosapps/net/ping/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/telnet/.cvsignore
Normal file
16
rosapps/net/telnet/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/telnet/src/.cvsignore
Normal file
16
rosapps/net/telnet/src/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/net/whois/.cvsignore
Normal file
16
rosapps/net/whois/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/notevil/.cvsignore
Normal file
16
rosapps/notevil/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/regedit/.cvsignore
Normal file
16
rosapps/regedit/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
|
@ -79,7 +79,7 @@ extern TCHAR szTitle[];
|
||||||
extern TCHAR szFrameClass[];
|
extern TCHAR szFrameClass[];
|
||||||
extern TCHAR szChildClass[];
|
extern TCHAR szChildClass[];
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#if __MINGW32_MAJOR_VERSION == 1
|
||||||
typedef struct tagNMITEMACTIVATE{
|
typedef struct tagNMITEMACTIVATE{
|
||||||
NMHDR hdr;
|
NMHDR hdr;
|
||||||
int iItem;
|
int iItem;
|
||||||
|
|
16
rosapps/regedt32/.cvsignore
Normal file
16
rosapps/regedt32/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
|
@ -88,7 +88,7 @@ extern TCHAR szTitle[];
|
||||||
extern TCHAR szFrameClass[];
|
extern TCHAR szFrameClass[];
|
||||||
extern TCHAR szChildClass[];
|
extern TCHAR szChildClass[];
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#if __MINGW32_MAJOR_VERSION == 1
|
||||||
typedef struct tagNMITEMACTIVATE{
|
typedef struct tagNMITEMACTIVATE{
|
||||||
NMHDR hdr;
|
NMHDR hdr;
|
||||||
int iItem;
|
int iItem;
|
||||||
|
|
16
rosapps/regsvr32/.cvsignore
Normal file
16
rosapps/regsvr32/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/sysutils/.cvsignore
Normal file
16
rosapps/sysutils/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
|
@ -1 +1,17 @@
|
||||||
*.mak *.coff
|
*.mak
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
||||||
|
|
16
rosapps/sysutils/tlist/.cvsignore
Normal file
16
rosapps/sysutils/tlist/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/taskmgr/.cvsignore
Normal file
16
rosapps/taskmgr/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
|
@ -69,10 +69,10 @@ void ApplicationPageShowContextMenu1(void);
|
||||||
void ApplicationPageShowContextMenu2(void);
|
void ApplicationPageShowContextMenu2(void);
|
||||||
int CALLBACK ApplicationPageCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
|
int CALLBACK ApplicationPageCompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
|
||||||
|
|
||||||
void SwitchToThisWindow (
|
//void SwitchToThisWindow (
|
||||||
HWND hWnd, // Handle to the window that should be activated
|
//HWND hWnd, // Handle to the window that should be activated
|
||||||
BOOL bRestore // Restore the window if it is minimized
|
//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;
|
LPAPPLICATION_PAGE_LIST_ITEM pAPLI = NULL;
|
||||||
LV_ITEM item;
|
LV_ITEM item;
|
||||||
int i;
|
int i;
|
||||||
NMHDR nmhdr;
|
//NMHDR nmhdr;
|
||||||
|
|
||||||
for (i=0; i<ListView_GetItemCount(hApplicationPageListCtrl); i++)
|
for (i=0; i<ListView_GetItemCount(hApplicationPageListCtrl); i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,4 +47,4 @@ void ApplicationPage_OnSwitchTo(void);
|
||||||
void ApplicationPage_OnEndTask(void);
|
void ApplicationPage_OnEndTask(void);
|
||||||
void ApplicationPage_OnGotoProcess(void);
|
void ApplicationPage_OnGotoProcess(void);
|
||||||
|
|
||||||
#endif // defined __APPLICATIONPAGE_H
|
#endif // __APPLICATIONPAGE_H
|
||||||
|
|
|
@ -109,4 +109,3 @@ LRESULT CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
|
||||||
|
|
||||||
|
|
||||||
#endif /* __GRAPH_CTRL_H__ */
|
#endif /* __GRAPH_CTRL_H__ */
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
|
@ -32,4 +32,4 @@ void PerformancePage_OnViewShowKernelTimes(void);
|
||||||
void PerformancePage_OnViewCPUHistoryOneGraphAll(void);
|
void PerformancePage_OnViewCPUHistoryOneGraphAll(void);
|
||||||
void PerformancePage_OnViewCPUHistoryOneGraphPerCPU(void);
|
void PerformancePage_OnViewCPUHistoryOneGraphPerCPU(void);
|
||||||
|
|
||||||
#endif // defined __PERFORMANCEPAGE_H
|
#endif // __PERFORMANCEPAGE_H
|
||||||
|
|
|
@ -32,4 +32,4 @@ extern HWND hProcessPageShowAllProcessesButton; // Process Show All Processes c
|
||||||
LRESULT CALLBACK ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
LRESULT CALLBACK ProcessPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
void RefreshProcessPage(void);
|
void RefreshProcessPage(void);
|
||||||
|
|
||||||
#endif // defined __PROCESSPAGE_H
|
#endif // __PROCESSPAGE_H
|
||||||
|
|
|
@ -25,4 +25,4 @@
|
||||||
|
|
||||||
void OnAbout(void);
|
void OnAbout(void);
|
||||||
|
|
||||||
#endif // defined __ABOUT_H
|
#endif // __ABOUT_H
|
||||||
|
|
|
@ -56,4 +56,4 @@ void AddColumns(void);
|
||||||
void SaveColumnSettings(void);
|
void SaveColumnSettings(void);
|
||||||
void UpdateColumnDataHints(void);
|
void UpdateColumnDataHints(void);
|
||||||
|
|
||||||
#endif // __COlUMN_H
|
#endif // __COLUMN_H
|
||||||
|
|
|
@ -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();
|
CommitChargeTotal = (ULONGLONG)PerfDataGetCommitChargeTotalK();
|
||||||
CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK();
|
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
|
||||||
|
|
|
@ -20,18 +20,16 @@
|
||||||
* 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
|
#ifndef __OPTNMENU_H
|
||||||
#define __OPTIONS_H
|
#define __OPTNMENU_H
|
||||||
|
|
||||||
void TaskManager_OnOptionsAlwaysOnTop(void);
|
void TaskManager_OnOptionsAlwaysOnTop(void);
|
||||||
void TaskManager_OnOptionsMinimizeOnUse(void);
|
void TaskManager_OnOptionsMinimizeOnUse(void);
|
||||||
void TaskManager_OnOptionsHideWhenMinimized(void);
|
void TaskManager_OnOptionsHideWhenMinimized(void);
|
||||||
void TaskManager_OnOptionsShow16BitTasks(void);
|
void TaskManager_OnOptionsShow16BitTasks(void);
|
||||||
|
|
||||||
#endif // __OPTIONS_H
|
#endif // __OPTNMENU_H
|
||||||
|
|
|
@ -38,8 +38,8 @@
|
||||||
#include "perfdata.h"
|
#include "perfdata.h"
|
||||||
|
|
||||||
PROCNTQSI NtQuerySystemInformation = NULL;
|
PROCNTQSI NtQuerySystemInformation = NULL;
|
||||||
PROCGGR GetGuiResources = NULL;
|
PROCGGR pGetGuiResources = NULL;
|
||||||
PROCGPIC GetProcessIoCounters = NULL;
|
PROCGPIC pGetProcessIoCounters = NULL;
|
||||||
CRITICAL_SECTION PerfDataCriticalSection;
|
CRITICAL_SECTION PerfDataCriticalSection;
|
||||||
PPERFDATA pPerfDataOld = NULL; // Older perf data (saved to establish delta values)
|
PPERFDATA pPerfDataOld = NULL; // Older perf data (saved to establish delta values)
|
||||||
PPERFDATA pPerfData = NULL; // Most recent copy of perf data
|
PPERFDATA pPerfData = NULL; // Most recent copy of perf data
|
||||||
|
@ -62,8 +62,8 @@ BOOL PerfDataInitialize(void)
|
||||||
LONG status;
|
LONG status;
|
||||||
|
|
||||||
NtQuerySystemInformation = (PROCNTQSI)GetProcAddress(GetModuleHandle("ntdll.dll"), "NtQuerySystemInformation");
|
NtQuerySystemInformation = (PROCNTQSI)GetProcAddress(GetModuleHandle("ntdll.dll"), "NtQuerySystemInformation");
|
||||||
GetGuiResources = (PROCGGR)GetProcAddress(GetModuleHandle("user32.dll"), "GetGuiResources");
|
pGetGuiResources = (PROCGGR)GetProcAddress(GetModuleHandle("user32.dll"), "GetGuiResources");
|
||||||
GetProcessIoCounters = (PROCGPIC)GetProcAddress(GetModuleHandle("kernel32.dll"), "GetProcessIoCounters");
|
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].USERObjectCount = pGetGuiResources(hProcess, GR_USEROBJECTS);
|
||||||
pPerfData[Idx].GDIObjectCount = GetGuiResources(hProcess, GR_GDIOBJECTS);
|
pPerfData[Idx].GDIObjectCount = pGetGuiResources(hProcess, GR_GDIOBJECTS);
|
||||||
}
|
}
|
||||||
if (GetProcessIoCounters)
|
if (pGetProcessIoCounters)
|
||||||
GetProcessIoCounters(hProcess, &pPerfData[Idx].IOCounters);
|
pGetProcessIoCounters(hProcess, &pPerfData[Idx].IOCounters);
|
||||||
|
|
||||||
CloseHandle(hProcess);
|
CloseHandle(hProcess);
|
||||||
}
|
}
|
||||||
|
|
|
@ -409,4 +409,4 @@ ULONG PerfDataGetSystemHandleCount(void);
|
||||||
|
|
||||||
ULONG PerfDataGetTotalThreadCount(void);
|
ULONG PerfDataGetTotalThreadCount(void);
|
||||||
|
|
||||||
#endif // defined __PERFDATA_H
|
#endif // __PERFDATA_H
|
||||||
|
|
16
rosapps/templates/mdi/.cvsignore
Normal file
16
rosapps/templates/mdi/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
16
rosapps/winfile/.cvsignore
Normal file
16
rosapps/winfile/.cvsignore
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
*.sys
|
||||||
|
*.exe
|
||||||
|
*.dll
|
||||||
|
*.cpl
|
||||||
|
*.a
|
||||||
|
*.o
|
||||||
|
*.d
|
||||||
|
*.coff
|
||||||
|
*.dsp
|
||||||
|
*.dsw
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opt
|
||||||
|
*.sym
|
||||||
|
*.plg
|
||||||
|
*.bak
|
|
@ -190,7 +190,7 @@ extern TCHAR szChildClass[];
|
||||||
void SetupStatusBar(BOOL bResize);
|
void SetupStatusBar(BOOL bResize);
|
||||||
void UpdateStatusBar(void);
|
void UpdateStatusBar(void);
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#if __MINGW32_MAJOR_VERSION == 1
|
||||||
typedef struct tagNMITEMACTIVATE{
|
typedef struct tagNMITEMACTIVATE{
|
||||||
NMHDR hdr;
|
NMHDR hdr;
|
||||||
int iItem;
|
int iItem;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue