Re: Any advice please... Console input issue

2012-11-13 Thread Eric Pouech
> I tested the following > HANDLE hConRW = CreateFileA("CONIN$" > , GENERIC_READ | GENERIC_WRITE, > FILE_SHARE_READ, NULL, OPEN_EXISTING, > FILE_ATTRIBUTE_NORMAL, 0); > if (hConRW == INVALID_H

Re: Any advice please... Console input issue

2012-11-12 Thread Ann and Jason Edmeades
Hi Eric, Thanks for taking the time to reply The issue is that WriteConsoleInputW requires GENERIC_WRITE access, but the >> CON device (\\.\CON) was opened as GENERIC_READ (and in fact fails if I try >> to open it with GENERIC_WRITE). > > You said... > - you're using a bare console, ie didn't run

Re: Any advice please... Console input issue

2012-11-11 Thread Eric Pouech
Le 09/11/2012 22:49, Ann and Jason Edmeades a écrit : Hello, I've been looking at a patch which sorts out NUL and CON handling in a part of the command shell, and have stumbled upon a problem I am not sure how to fix because I really dont understand the underlying console handling, and would

Any advice please... Console input issue

2012-11-09 Thread Ann and Jason Edmeades
Hello, I've been looking at a patch which sorts out NUL and CON handling in a part of the command shell, and have stumbled upon a problem I am not sure how to fix because I really dont understand the underlying console handling, and would appreciate someone pointing me in a direction. For simplic