34#define WIN32_LEAN_AND_MEAN
35#define WIN32_NO_STATUS
198 TCHAR lpPageFaults[15];
201 for (
i = 0;
i < 80;
i++)
252 for (
i = 0;
i < 6;
i++)
590 free(SysProcessorTimeInfo);
610 return record.Event.KeyEvent.wVirtualKeyCode;
622 for (
i = 0;
i < 80;
i++)
670 for (
i = 0;
i < 6;
i++)
ACPI_SIZE strlen(const char *String)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
BOOL WINAPI FillConsoleOutputAttribute(IN HANDLE hConsoleOutput, IN WORD wAttribute, IN DWORD nLength, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfAttrsWritten)
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
SYSTEM_BASIC_INFORMATION SystemBasicInfo
LARGE_INTEGER liOldKernelTime
DWORD columnRightPositions[6]
void * PsaiMalloc(SIZE_T size)
CONSOLE_SCREEN_BUFFER_INFO screenBufferInfo
TCHAR lpSeparatorDown[80]
void * PsaiRealloc(void *ptr, SIZE_T size)
int ProcessKeys(int numEvents)
void GetInputOutputHandles()
unsigned int GetKeyPressed()
LARGE_INTEGER liOldIdleTime
LARGE_INTEGER liOldSystemTime
#define SystemTimeInformation
BOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken)
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
#define INVALID_HANDLE_VALUE
#define WideCharToMultiByte
#define MultiByteToWideChar
HANDLE WINAPI CreateConsoleScreenBuffer(DWORD dwDesiredAccess, DWORD dwShareMode, CONST SECURITY_ATTRIBUTES *lpSecurityAttributes, DWORD dwFlags, LPVOID lpScreenBufferData)
BOOL WINAPI GetConsoleMode(HANDLE hConsoleHandle, LPDWORD lpMode)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleActiveScreenBuffer(HANDLE hConsoleOutput)
BOOL WINAPI GetNumberOfConsoleInputEvents(HANDLE hConsoleInput, LPDWORD lpNumberOfEvents)
BOOL WINAPI TerminateProcess(IN HANDLE hProcess, IN UINT uExitCode)
HANDLE WINAPI OpenProcess(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwProcessId)
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ProcessId
@ SystemProcessorPerformanceInformation
PWDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER pId
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ long __cdecl labs(_In_ long x)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define PROCESS_TERMINATE
#define PROCESS_QUERY_INFORMATION
_In_ BOOL _In_ HANDLE hProcess
#define IDS_CTM_GENERAL_ERR2
#define IDS_CTM_GENERAL_ERR3
#define IDS_MENU_KILL_PROCESS
#define IDS_CTM_GENERAL_ERR1
#define IDS_KILL_PROCESS_ERR1
#define IDS_COLUMN_IMAGENAME
#define IDS_COLUMN_MEM_UNIT
#define IDS_KILL_PROCESS_ERR2
#define IDS_COLUMN_NUMBER
VOID NTAPI PsaFreeCapture(IN PVOID Capture)
PSYSTEM_PROCESSES FASTCALL PsaWalkNextProcess(IN PSYSTEM_PROCESSES CurrentProcess)
NTSTATUS NTAPI PsaCaptureProcessesAndThreads(OUT PSYSTEM_PROCESSES *ProcessesAndThreads)
PSYSTEM_PROCESSES FASTCALL PsaWalkFirstProcess(IN PSYSTEM_PROCESSES ProcessesAndThreads)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static const char * ImageName
static const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static double
struct _SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION * PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION
struct _PERFDATA * PPERFDATA
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
NTSYSAPI NTSTATUS NTAPI NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)
ULONG PageFaultCountDelta
ULONG WorkingSetSizeDelta
ULONG NonPagedPoolUsagePages
WCHAR ImageName[MAX_PATH]
ULONG VirtualMemorySizeBytes
ULONG PagedPoolUsagePages
ULONG WorkingSetSizeBytes
ULONG PeakWorkingSetSizeBytes
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
#define STD_OUTPUT_HANDLE
BOOL WINAPI RevertToSelf(void)
#define WriteConsoleOutputCharacter
#define CONSOLE_TEXTMODE_BUFFER
#define TOKEN_IMPERSONATE