mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 08:41:41 +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\finger \
|
||||
net\ipconfig \
|
||||
net\ipecho \
|
||||
net\ncftp \
|
||||
net\netstat \
|
||||
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\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
|
||||
|
|
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()
|
||||
{
|
||||
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) {
|
||||
|
@ -199,6 +210,9 @@ void usage(void)
|
|||
|
||||
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;
|
||||
|
|
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 szChildClass[];
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#if __MINGW32_MAJOR_VERSION == 1
|
||||
typedef struct tagNMITEMACTIVATE{
|
||||
NMHDR hdr;
|
||||
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 szChildClass[];
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#if __MINGW32_MAJOR_VERSION == 1
|
||||
typedef struct tagNMITEMACTIVATE{
|
||||
NMHDR hdr;
|
||||
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);
|
||||
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)
|
||||
{
|
||||
|
@ -972,7 +972,7 @@ void ApplicationPage_OnGotoProcess(void)
|
|||
LPAPPLICATION_PAGE_LIST_ITEM pAPLI = NULL;
|
||||
LV_ITEM item;
|
||||
int i;
|
||||
NMHDR nmhdr;
|
||||
//NMHDR nmhdr;
|
||||
|
||||
for (i=0; i<ListView_GetItemCount(hApplicationPageListCtrl); i++)
|
||||
{
|
||||
|
|
|
@ -47,4 +47,4 @@ void ApplicationPage_OnSwitchTo(void);
|
|||
void ApplicationPage_OnEndTask(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__ */
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -32,4 +32,4 @@ void PerformancePage_OnViewShowKernelTimes(void);
|
|||
void PerformancePage_OnViewCPUHistoryOneGraphAll(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);
|
||||
void RefreshProcessPage(void);
|
||||
|
||||
#endif // defined __PROCESSPAGE_H
|
||||
#endif // __PROCESSPAGE_H
|
||||
|
|
|
@ -25,4 +25,4 @@
|
|||
|
||||
void OnAbout(void);
|
||||
|
||||
#endif // defined __ABOUT_H
|
||||
#endif // __ABOUT_H
|
||||
|
|
|
@ -25,4 +25,4 @@
|
|||
|
||||
void ProcessPage_OnSetAffinity(void);
|
||||
|
||||
#endif // __AFFINITY_H
|
||||
#endif // __AFFINITY_H
|
||||
|
|
|
@ -56,4 +56,4 @@ void AddColumns(void);
|
|||
void SaveColumnSettings(void);
|
||||
void UpdateColumnDataHints(void);
|
||||
|
||||
#endif // __COlUMN_H
|
||||
#endif // __COLUMN_H
|
||||
|
|
|
@ -25,4 +25,4 @@
|
|||
|
||||
void ProcessPage_OnDebug(void);
|
||||
|
||||
#endif // __DEBUG_H
|
||||
#endif // __DEBUG_H
|
||||
|
|
|
@ -26,4 +26,4 @@
|
|||
void ProcessPage_OnEndProcess(void);
|
||||
void ProcessPage_OnEndProcessTree(void);
|
||||
|
||||
#endif // __ENDPROC_H
|
||||
#endif // __ENDPROC_H
|
||||
|
|
|
@ -25,4 +25,4 @@
|
|||
|
||||
void Font_DrawText(HDC hDC, LPCTSTR lpszText, int x, int y);
|
||||
|
||||
#endif // __FONT_H
|
||||
#endif // __FONT_H
|
||||
|
|
|
@ -185,15 +185,15 @@ void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
|
|||
//
|
||||
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);
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -351,7 +351,7 @@ void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
|
|||
CommitChargeTotal = (ULONGLONG)PerfDataGetCommitChargeTotalK();
|
||||
CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK();
|
||||
|
||||
sprintf(Text, "%dK", CommitChargeTotal);
|
||||
_stprintf(Text, _T("%dK"), CommitChargeTotal);
|
||||
|
||||
//
|
||||
// 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--)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,4 +32,4 @@ extern LONG OldGraphWndProc;
|
|||
|
||||
LRESULT CALLBACK Graph_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
#endif // __GRAPH_H
|
||||
#endif // __GRAPH_H
|
||||
|
|
|
@ -20,18 +20,16 @@
|
|||
* 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
|
||||
#endif // __OPTNMENU_H
|
||||
|
|
|
@ -38,8 +38,8 @@
|
|||
#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
|
||||
|
@ -62,8 +62,8 @@ BOOL PerfDataInitialize(void)
|
|||
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);
|
||||
|
||||
|
@ -313,13 +313,13 @@ void PerfDataRefresh(void)
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -409,4 +409,4 @@ ULONG PerfDataGetSystemHandleCount(void);
|
|||
|
||||
ULONG PerfDataGetTotalThreadCount(void);
|
||||
|
||||
#endif // defined __PERFDATA_H
|
||||
#endif // __PERFDATA_H
|
||||
|
|
|
@ -30,4 +30,4 @@ void ProcessPage_OnSetPriorityNormal(void);
|
|||
void ProcessPage_OnSetPriorityBelowNormal(void);
|
||||
void ProcessPage_OnSetPriorityLow(void);
|
||||
|
||||
#endif // __PRIORITY_H
|
||||
#endif // __PRIORITY_H
|
||||
|
|
|
@ -27,4 +27,4 @@ LRESULT CALLBACK ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
|
|||
|
||||
extern LONG OldProcessListWndProc;
|
||||
|
||||
#endif // __PROCLIST_H
|
||||
#endif // __PROCLIST_H
|
||||
|
|
|
@ -28,4 +28,4 @@ BOOL TrayIcon_ShellAddTrayIcon(void);
|
|||
BOOL TrayIcon_ShellRemoveTrayIcon(void);
|
||||
BOOL TrayIcon_ShellUpdateTrayIcon(void);
|
||||
|
||||
#endif // __TRAYICON_H
|
||||
#endif // __TRAYICON_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 UpdateStatusBar(void);
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#if __MINGW32_MAJOR_VERSION == 1
|
||||
typedef struct tagNMITEMACTIVATE{
|
||||
NMHDR hdr;
|
||||
int iItem;
|
||||
|
|
|
@ -39,4 +39,4 @@ DWORD MapNetworkDrives(HWND hWnd, BOOL connect);
|
|||
};
|
||||
#endif
|
||||
|
||||
#endif // __NETWORK_H__
|
||||
#endif // __NETWORK_H__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue