Hello to everyone.
I have a problem in deploying a keyboard-like driver using DIOs.
I would like use Port 0 to write coloumns and Port2 to read rows.
This because in document "Device-Driver" it's written that Port0 can R/W while Port 2 can only Read.
Now the writings of Rows is ok, ...but how about reading?
before calling the ReadFile function I would like to do a "SetFilePointer" of 2, since my handle points to Port0.
But the Function SetFilePointer returns -1 with an error code wich is
0x80000005 or 0x57.
Notice the the handle is created with the rights and pemissions to the DIO1: as shown in document "device-driver".
I use c# with compactframework and a bit of Dllimports...
PS: I already used the driver "matrix-keyboard" before and worked ok, but this time I don't need to retreive the scan codes and mostly I don't want the keyboard to interact with WinCE...so badly I have to wirte my own...
thanks a lot for nay ideas!!