#ifndef _NTUSER_H
/**
* The CONSOLE_END_TASK structure requests termination of the console application attached to a window.
* Passed with the ConsoleEndTask command of NtUserConsoleControl.
* \deprecated No longer dispatched by NtUserConsoleControl; the ConsoleEndTask class is rejected by
* the class<=6 syscall guard.
*/
typedef struct _CONSOLE_END_TASK
{
HANDLE ProcessId; // A handle/identifier of the process to signal.
HWND WindowHandle; // A handle to the console window associated with the task.
ULONG ConsoleEventCode; // The control event to deliver (e.g. CTRL_C_EVENT / CTRL_BREAK_EVENT).
ULONG ConsoleFlags; // Flags controlling the end-task behavior.
} CONSOLE_END_TASK, *PCONSOLE_END_TASK;
View code on GitHubNo description available.