| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I am trying to rewrite the BiosIO-module of TopSpeed M2 for Windows XDS 251 using the WinCon functions. However I keep getting an INVALID HANDLE or ACCESS error when trying to read from the ConsoleInputBuffer. I can't found the value for CONIN$ to open the handle with the windows CreateFille-function. Can anybody help me please? -- AChristoff Joubert at Paul Jungnickel Home, Plot 45, Lynnwood Road, Zwavelpoort, Gautteng, South Africa; PO Box 2066, Zwavelpoort. 0036, South Africa; +27-12-8090245 (Fax/Tele-Soft BBS); 5:7106/46.1 (Fido-net); acj@lantic.net (E-mail) |
|
#2
| |||
| |||
| On 2005-08-13, AC Joubert <acj@lantic.net> wrote: > I am trying to rewrite the BiosIO-module of TopSpeed M2 for Windows XDS 251 > using the WinCon functions. > However I keep getting an INVALID HANDLE or ACCESS error when trying to read > from the ConsoleInputBuffer. I can't found the value for CONIN$ to open the > handle with the windows CreateFille-function. Can anybody help me please? GETSTDHANDLE(STD_INPUT_HANDLE) for a simple example (in pascal, LGPL) see: http://www.freepascal.org/cgi-bin/vi...l/win32/crt.pp and the generic parts: http://www.freepascal.org/cgi-bin/vi...l/inc/crth.inc http://www.freepascal.org/cgi-bin/vi...tl/inc/crt.inc |
|
#3
| |||
| |||
| No, that doesn't work! Same problem. It gives the INVALID_HANDLE_VALUE error when using that handle in a subsequent Windows console function. "Marco van de Voort" <marcov@stack.nl> wrote in message news:slrndfrpch.2o3v.marcov@snail.stack.nl... > On 2005-08-13, AC Joubert <acj@lantic.net> wrote: > > I am trying to rewrite the BiosIO-module of TopSpeed M2 for Windows XDS 251 > > using the WinCon functions. > > However I keep getting an INVALID HANDLE or ACCESS error when trying to read > > from the ConsoleInputBuffer. I can't found the value for CONIN$ to open the > > handle with the windows CreateFille-function. Can anybody help me please? > > GETSTDHANDLE(STD_INPUT_HANDLE) > > for a simple example (in pascal, LGPL) see: > > http://www.freepascal.org/cgi-bin/vi...l/win32/crt.pp > > and the generic parts: > > http://www.freepascal.org/cgi-bin/vi...l/inc/crth.inc > http://www.freepascal.org/cgi-bin/vi...tl/inc/crt.inc |
|
#4
| |||
| |||
| AC Joubert wrote: > However I keep getting an INVALID HANDLE or ACCESS error when trying to read > from the ConsoleInputBuffer. I can't found the value for CONIN$ to open the > handle with the windows CreateFille-function. Can anybody help me please? Could the problem be that the OS treats the console as a pre existing file so that only OpenFile operations are permitted? Regards, Martin Brown |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.