P
Patrick Burke
Hi I'm tring to WriteConsoleInput to a Console app after I use
AttachConsole. I don't know where to get the HANDLE definition -- I
tried "using System;,System.Runtime.InteropServices,
System.Diagnostics,,using System.IO, Microsoft.Win32,
Microsoft.Internal" but I cannot find the definition of HANDLE, "The
type or namespace name 'HANDLE' could not be found (are you missing a
using directive or an assembly reference?)" I also can't find the
definitions of GENERIC_READ and OPEN_EXISTING, for example.
I need the definition of HANDLE to do something like this:
HANDLE rHnd;
rHnd = GetStdHandle(STD_INPUT_HANDLE);
and then WriteConsoleInput(rHnd, ...);
I would just like to write some characters to the console input
buffer, but this is proving difficult, if you have any direction,
definitions, examples, et cetera, I would appreciate it very much.
Thanks, Patrick
AttachConsole. I don't know where to get the HANDLE definition -- I
tried "using System;,System.Runtime.InteropServices,
System.Diagnostics,,using System.IO, Microsoft.Win32,
Microsoft.Internal" but I cannot find the definition of HANDLE, "The
type or namespace name 'HANDLE' could not be found (are you missing a
using directive or an assembly reference?)" I also can't find the
definitions of GENERIC_READ and OPEN_EXISTING, for example.
I need the definition of HANDLE to do something like this:
HANDLE rHnd;
rHnd = GetStdHandle(STD_INPUT_HANDLE);
and then WriteConsoleInput(rHnd, ...);
I would just like to write some characters to the console input
buffer, but this is proving difficult, if you have any direction,
definitions, examples, et cetera, I would appreciate it very much.
Thanks, Patrick