#ifndef _NTUSER_H
/**
* The CONSOLE_WINDOW_OWNER structure assigns the owning process and thread of a console window.
*/
typedef struct _CONSOLE_WINDOW_OWNER
{
HWND WindowHandle; // A handle to the console window being reparented.
ULONG OwnerProcessId; // The process identifier (PID) of the new owner.
ULONG OwnerThreadId; // The thread identifier (TID) of the new owner.
} CONSOLE_WINDOW_OWNER, *PCONSOLE_WINDOW_OWNER;
View code on GitHubNo description available.