Kernel32GetConsoleWindow Method

Retrieves the window handle used by the console associated with the calling process.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll")]
public static IntPtr GetConsoleWindow()

Return Value

IntPtr
The return value is a handle to the window used by the console associated with the calling process or Zero if there is no such associated console.

Remarks

See Also