mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 04:43:21 +00:00
Silence some warnings when compiling taskmgr with MSVC2005
svn path=/trunk/; revision=30306
This commit is contained in:
parent
1a98aabcd1
commit
0d730a1f45
5 changed files with 15 additions and 12 deletions
|
@ -105,7 +105,7 @@ int InsertColumn(int nCol, LPCWSTR lpszColumnHeading, int nFormat, int nWidth, i
|
||||||
void SaveColumnSettings(void)
|
void SaveColumnSettings(void)
|
||||||
{
|
{
|
||||||
HDITEM hditem;
|
HDITEM hditem;
|
||||||
unsigned int i, n;
|
int i, n;
|
||||||
WCHAR text[260];
|
WCHAR text[260];
|
||||||
LRESULT size;
|
LRESULT size;
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ void SaveColumnSettings(void)
|
||||||
SendMessageW(hProcessPageHeaderCtrl, HDM_GETORDERARRAY, (WPARAM) size, (LPARAM) &TaskManagerSettings.ColumnOrderArray);
|
SendMessageW(hProcessPageHeaderCtrl, HDM_GETORDERARRAY, (WPARAM) size, (LPARAM) &TaskManagerSettings.ColumnOrderArray);
|
||||||
|
|
||||||
/* Get visible columns */
|
/* Get visible columns */
|
||||||
for (i=0; i<SendMessageW(hProcessPageHeaderCtrl, HDM_GETITEMCOUNT, 0, 0); i++) {
|
for (i = 0; i < SendMessageW(hProcessPageHeaderCtrl, HDM_GETITEMCOUNT, 0, 0); i++) {
|
||||||
memset(&hditem, 0, sizeof(HDITEM));
|
memset(&hditem, 0, sizeof(HDITEM));
|
||||||
|
|
||||||
hditem.mask = HDI_TEXT|HDI_WIDTH;
|
hditem.mask = HDI_TEXT|HDI_WIDTH;
|
||||||
|
@ -130,7 +130,7 @@ void SaveColumnSettings(void)
|
||||||
|
|
||||||
SendMessageW(hProcessPageHeaderCtrl, HDM_GETITEM, i, (LPARAM) &hditem);
|
SendMessageW(hProcessPageHeaderCtrl, HDM_GETITEM, i, (LPARAM) &hditem);
|
||||||
|
|
||||||
for (n=0; n<COLUMN_NMAX; n++) {
|
for (n = 0; n < COLUMN_NMAX; n++) {
|
||||||
LoadStringW(hInst, ColumnPresets[n].dwIdsName, szTemp, sizeof(szTemp)/sizeof(WCHAR));
|
LoadStringW(hInst, ColumnPresets[n].dwIdsName, szTemp, sizeof(szTemp)/sizeof(WCHAR));
|
||||||
if (_wcsicmp(text, szTemp) == 0)
|
if (_wcsicmp(text, szTemp) == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -237,7 +237,7 @@ static int enum_channel(HANDLE hProcess, EnumChannelCB ce, void* user, unsigned
|
||||||
void* buf_addr;
|
void* buf_addr;
|
||||||
WCHAR buffer[32];
|
WCHAR buffer[32];
|
||||||
void* addr;
|
void* addr;
|
||||||
const WCHAR** cache = NULL;
|
WCHAR** cache = NULL;
|
||||||
unsigned i, j, num_cache, used_cache;
|
unsigned i, j, num_cache, used_cache;
|
||||||
|
|
||||||
addr = get_symbol(hProcess, "first_dll", "libwine.so");
|
addr = get_symbol(hProcess, "first_dll", "libwine.so");
|
||||||
|
|
|
@ -386,7 +386,8 @@ BOOL PerfDataGetImageName(ULONG Index, LPWSTR lpImageName, int nMaxCount)
|
||||||
|
|
||||||
int PerfGetIndexByProcessId(DWORD dwProcessId)
|
int PerfGetIndexByProcessId(DWORD dwProcessId)
|
||||||
{
|
{
|
||||||
int Index, FoundIndex = -1;
|
int FoundIndex = -1;
|
||||||
|
ULONG Index;
|
||||||
|
|
||||||
EnterCriticalSection(&PerfDataCriticalSection);
|
EnterCriticalSection(&PerfDataCriticalSection);
|
||||||
|
|
||||||
|
|
|
@ -441,8 +441,8 @@ DWORD WINAPI PerformancePageRefreshThread(void *lpParameter)
|
||||||
/*
|
/*
|
||||||
* Get the memory usage
|
* Get the memory usage
|
||||||
*/
|
*/
|
||||||
CommitChargeTotal = (ULONGLONG)PerfDataGetCommitChargeTotalK();
|
CommitChargeTotal = PerfDataGetCommitChargeTotalK();
|
||||||
CommitChargeLimit = (ULONGLONG)PerfDataGetCommitChargeLimitK();
|
CommitChargeLimit = PerfDataGetCommitChargeLimitK();
|
||||||
nBarsUsed1 = CommitChargeLimit ? ((CommitChargeTotal * 100) / CommitChargeLimit) : 0;
|
nBarsUsed1 = CommitChargeLimit ? ((CommitChargeTotal * 100) / CommitChargeLimit) : 0;
|
||||||
|
|
||||||
PhysicalMemoryTotal = PerfDataGetPhysicalMemoryTotalK();
|
PhysicalMemoryTotal = PerfDataGetPhysicalMemoryTotalK();
|
||||||
|
|
|
@ -5,17 +5,18 @@
|
||||||
#error Task-Manager uses NDK functions, so it can only be compiled with Unicode support enabled!
|
#error Task-Manager uses NDK functions, so it can only be compiled with Unicode support enabled!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <math.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#define WIN32_NO_STATUS
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
#include <ndk/ntndk.h>
|
#include <ndk/ntndk.h>
|
||||||
|
#include <aclapi.h>
|
||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
#include <shellapi.h>
|
#include <shellapi.h>
|
||||||
#include <aclapi.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <math.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
|
|
||||||
#include "column.h"
|
#include "column.h"
|
||||||
#include "taskmgr.h"
|
#include "taskmgr.h"
|
||||||
|
@ -35,4 +36,5 @@
|
||||||
#include "priority.h"
|
#include "priority.h"
|
||||||
#include "run.h"
|
#include "run.h"
|
||||||
#include "trayicon.h"
|
#include "trayicon.h"
|
||||||
|
|
||||||
#endif /* __PRECOMP_H */
|
#endif /* __PRECOMP_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue