mirror of
https://github.com/reactos/reactos.git
synced 2024-08-16 16:39:08 +00:00
30 lines
667 B
C
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
|