1 /* 2 * PROJECT: ReactOS Tasklist Command 3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) 4 * PURPOSE: Displays a list of currently running processes on the computer. 5 * COPYRIGHT: Copyright 2020 He Yang <1160386205@qq.com> 6 */ 7 8 #pragma once 9 10 #include <stdio.h> 11 #include <stdlib.h> 12 #include <wchar.h> 13 #include <assert.h> 14 15 #define WIN32_NO_STATUS 16 #include <windows.h> 17 #include <ntndk.h> 18 #include <strsafe.h> 19 20 #include <conutils.h> 21 22 #include "resource.h" 23 24 #define NT_SYSTEM_QUERY_MAX_RETRY 5 25 26 #define COLUMNWIDTH_IMAGENAME 25 27 #define COLUMNWIDTH_PID 8 28 #define COLUMNWIDTH_SESSION 11 29 #define COLUMNWIDTH_MEMUSAGE 12 30