reactos/base/applications/cmdutils/tasklist/tasklist.h
He Yang 633ece9025
[TASKLIST] Implement tasklist command-line utility (#3440)
Add command-line program "tasklist" for ReactOS.
It works fine on Windows as well.
2021-02-24 19:05:15 +09:00

30 lines
667 B
C

/*
* PROJECT: ReactOS Tasklist Command
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: Displays a list of currently running processes on the computer.
* COPYRIGHT: Copyright 2020 He Yang (1160386205@qq.com)
*/
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
#include <assert.h>
#define WIN32_NO_STATUS
#include <windows.h>
#include <ntndk.h>
#include <strsafe.h>
#include <conutils.h>
#include "resource.h"
#define NT_SYSTEM_QUERY_MAX_RETRY 5
#define COLUMNWIDTH_IMAGENAME 25
#define COLUMNWIDTH_PID 8
#define COLUMNWIDTH_SESSION 11
#define COLUMNWIDTH_MEMUSAGE 12