|
ReactOS 0.4.16-dev-1948-gd260c1d
|
#include <windows.h>#include <stdlib.h>#include <malloc.h>#include <memory.h>#include <tchar.h>#include <process.h>#include <stdio.h>#include <ndk/ntndk.h>#include <epsapi/epsapi.h>#include "ctm.h"#include "resource.h"
Go to the source code of this file.
Macros | |
| #define | WIN32_LEAN_AND_MEAN |
| #define | WIN32_NO_STATUS |
| #define | NTOS_MODE_USER |
| #define | TIMES |
| #define | NEW_CONSOLE |
Functions | |
| void * | PsaiMalloc (SIZE_T size) |
| void * | PsaiRealloc (void *ptr, SIZE_T size) |
| void | PsaiFree (void *ptr) |
| unsigned int | GetKeyPressed () |
| void | GetInputOutputHandles () |
| void | RestoreConsole () |
| void | DisplayScreen () |
| int | ProcessKeys (int numEvents) |
| void | PerfInit () |
| void | PerfDataRefresh () |
| unsigned int | GetKeyPressed (int events) |
| int | _tmain (int argc, char **argv) |
Variables | |
| HANDLE | hStdin |
| HANDLE | hStdout |
| HINSTANCE | hInst |
| DWORD | inConMode |
| DWORD | outConMode |
| DWORD | columnRightPositions [6] |
| TCHAR | lpSeparator [80] |
| TCHAR | lpSeparatorUp [80] |
| TCHAR | lpSeparatorDown [80] |
| TCHAR | lpHeader [80] |
| TCHAR | lpMemUnit [3] |
| TCHAR | lpIdleProcess [80] |
| TCHAR | lpTitle [80] |
| TCHAR | lpMenu [80] |
| TCHAR | lpEmpty [80] |
| TCHAR | KEY_QUIT |
| TCHAR | KEY_KILL |
| TCHAR | KEY_YES |
| TCHAR | KEY_NO |
| int | ProcPerScreen = 17 |
| int | ScreenLines =25 |
| ULONG | ProcessCountOld = 0 |
| ULONG | ProcessCount = 0 |
| double | dbIdleTime |
| double | dbKernelTime |
| double | dbSystemTime |
| LARGE_INTEGER | liOldIdleTime = {{0,0}} |
| LARGE_INTEGER | liOldKernelTime = {{0,0}} |
| LARGE_INTEGER | liOldSystemTime = {{0,0}} |
| PPERFDATA | pPerfDataOld = NULL |
| PPERFDATA | pPerfData = NULL |
| int | selection =0 |
| int | scrolled =0 |
| int | first = 0 |
| SYSTEM_BASIC_INFORMATION | SystemBasicInfo |
| CONSOLE_SCREEN_BUFFER_INFO | screenBufferInfo |
Definition at line 617 of file ctm.c.
| void DisplayScreen | ( | ) |
Definition at line 141 of file ctm.c.
Referenced by _tmain().
| void GetInputOutputHandles | ( | ) |
Definition at line 108 of file ctm.c.
Referenced by _tmain().
Referenced by ProcessKeys().
Definition at line 596 of file ctm.c.
Definition at line 410 of file ctm.c.
Referenced by _tmain().
Definition at line 286 of file ctm.c.
Referenced by _tmain().
Definition at line 103 of file ctm.c.
Referenced by PsaCaptureProcessesAndThreads(), PsaCaptureSystemModules(), and PsaFreeCapture().
Definition at line 101 of file ctm.c.
Referenced by PsaCaptureProcessesAndThreads(), and PsaCaptureSystemModules().
| void RestoreConsole | ( | ) |
| DWORD columnRightPositions[6] |
Definition at line 62 of file ctm.c.
Referenced by _tmain(), and DisplayScreen().
| double dbIdleTime |
Definition at line 82 of file ctm.c.
Referenced by PerfDataRefresh().
| double dbKernelTime |
Definition at line 83 of file ctm.c.
Referenced by PerfDataRefresh().
| double dbSystemTime |
Definition at line 84 of file ctm.c.
Referenced by PerfDataRefresh().
| HINSTANCE hInst |
Definition at line 57 of file ctm.c.
Referenced by _tmain(), and ProcessKeys().
| HANDLE hStdin |
Definition at line 55 of file ctm.c.
Referenced by _tmain(), GetInputOutputHandles(), GetKeyPressed(), ProcessKeys(), ReadCommand(), and RestoreConsole().
| HANDLE hStdout |
Definition at line 56 of file ctm.c.
Referenced by _tmain(), DisplayScreen(), GetInputOutputHandles(), newBuffer(), ProcessKeys(), RestoreConsole(), restoreScreen(), saveScreen(), and TScroller::ScrollBack().
| DWORD inConMode |
Definition at line 59 of file ctm.c.
Referenced by _tmain(), and RestoreConsole().
| TCHAR KEY_KILL |
Definition at line 74 of file ctm.c.
Referenced by _tmain(), and ProcessKeys().
| TCHAR KEY_NO |
Definition at line 75 of file ctm.c.
Referenced by _tmain(), and ProcessKeys().
| TCHAR KEY_QUIT |
Definition at line 74 of file ctm.c.
Referenced by _tmain(), and ProcessKeys().
| TCHAR KEY_YES |
Definition at line 75 of file ctm.c.
Referenced by _tmain(), and ProcessKeys().
| LARGE_INTEGER liOldIdleTime = {{0,0}} |
Definition at line 85 of file ctm.c.
Referenced by PerfDataRefresh().
| LARGE_INTEGER liOldKernelTime = {{0,0}} |
Definition at line 86 of file ctm.c.
Referenced by PerfDataRefresh().
| LARGE_INTEGER liOldSystemTime = {{0,0}} |
Definition at line 87 of file ctm.c.
Referenced by PerfDataRefresh().
| TCHAR lpEmpty[80] |
Definition at line 72 of file ctm.c.
Referenced by _tmain(), DisplayScreen(), and ProcessKeys().
| TCHAR lpHeader |
Definition at line 66 of file ctm.c.
Referenced by _tmain(), CommitWaveBufferApc(), DisplayScreen(), and WdmAudCommitWaveBufferByMMixer().
| TCHAR lpIdleProcess[80] |
Definition at line 68 of file ctm.c.
Referenced by _tmain(), and PerfDataRefresh().
| TCHAR lpMemUnit[3] |
Definition at line 67 of file ctm.c.
Referenced by _tmain(), and DisplayScreen().
| TCHAR lpMenu[80] |
Definition at line 71 of file ctm.c.
Referenced by _tmain(), and DisplayScreen().
| TCHAR lpSeparator[80] |
Definition at line 63 of file ctm.c.
Referenced by _tmain(), and DisplayScreen().
| TCHAR lpSeparatorDown[80] |
Definition at line 65 of file ctm.c.
Referenced by _tmain(), and DisplayScreen().
| TCHAR lpSeparatorUp[80] |
Definition at line 64 of file ctm.c.
Referenced by _tmain(), and DisplayScreen().
| TCHAR lpTitle[80] |
Definition at line 69 of file ctm.c.
Referenced by _tmain(), _tWinMain(), cmd_start(), CreateNewConsoleTitle(), DisplayMessage(), DisplayScreen(), ErrorMessageBox(), FrameOnCommand(), GetFileTitleA(), GetFileTitleW(), InfoMessageBox(), MDI_UpdateFrameText(), OnPaint(), RealShellExecuteA(), RealShellExecuteExA(), RealShellExecuteExW(), RealShellExecuteW(), SetUpConsoleInfo(), test_pack_STARTUPINFOA(), and test_pack_STARTUPINFOW().
| DWORD outConMode |
Definition at line 60 of file ctm.c.
Referenced by _tmain(), and RestoreConsole().
Definition at line 90 of file ctm.c.
Referenced by DisplayScreen(), PerfDataRefresh(), and ProcessKeys().
Definition at line 89 of file ctm.c.
Referenced by PerfDataRefresh().
| ULONG ProcessCount = 0 |
Definition at line 80 of file ctm.c.
Referenced by DisplayScreen(), PerfDataRefresh(), and ProcessKeys().
| ULONG ProcessCountOld = 0 |
Definition at line 79 of file ctm.c.
Referenced by PerfDataRefresh().
| int ProcPerScreen = 17 |
Definition at line 77 of file ctm.c.
Referenced by DisplayScreen(), and ProcessKeys().
| CONSOLE_SCREEN_BUFFER_INFO screenBufferInfo |
Definition at line 97 of file ctm.c.
Referenced by DisplayScreen().
| int ScreenLines =25 |
Definition at line 78 of file ctm.c.
Referenced by DisplayScreen(), and ProcessKeys().
| int scrolled =0 |
Definition at line 93 of file ctm.c.
Referenced by DisplayScreen(), and ProcessKeys().
| int selection =0 |
Definition at line 92 of file ctm.c.
Referenced by _check_selection(), _reset_selection(), ActivateThemeFile(), CShellDispatch::BrowseForFolder(), cert_mgr_dlg_proc(), cert_mgr_do_export(), cert_mgr_do_remove(), DATETIME_Refresh(), DisplayScreen(), DesktopShellView::DoContextMenu(), EditSession_DoEditSession(), FTC_MruList_RemoveSelection(), PIDList::GetData(), hierarchy_dlg_proc(), HTMLSelectionObject_Create(), ITextDocument2Old_fnGetSelection(), ITextDocument2Old_fnGetSelectionEx(), ITextSelection_fnInRange(), ITextSelection_fnIsEqual(), LISTVIEW_SetGroupSelection(), ME_StreamInRTFString(), MONTHCAL_SetCurSel(), nsContextMenuListener_OnShowContextMenu(), IShellBrowserImpl::OnDefaultCommand(), ProcessKeys(), select_cert_get_selected(), select_purposes(), select_store_dlg_proc(), show_dialog_for_selected_cert(), subtest_InsertObject(), subtest_undo(), test_character_movement(), test_clipboard(), test_default_selection(), test_Expand(), test_freeze(), test_GetFont(), test_GetPara(), test_GetStoryLength(), test_GetStoryType(), test_InRange(), test_ITextRange_IsEqual(), test_ITextSelection_GetDuplicate(), test_MoveEnd_story(), test_Select(), test_selection(), test_SetFont(), test_txtrange(), test_undo_control(), TRACKBAR_CalcSelection(), TREEVIEW_LButtonDown(), TREEVIEW_SelectItem(), TREEVIEW_SingleExpand(), WMReaderAdvanced_GetManualStreamSelection(), WMReaderAdvanced_GetStreamSelected(), WMReaderAdvanced_SetManualStreamSelection(), and WMSyncReader_GetStreamSelected().
| SYSTEM_BASIC_INFORMATION SystemBasicInfo |
Definition at line 95 of file ctm.c.
Referenced by PerfDataRefresh(), and PerfInit().