I modified the src\general\ioctl sample to fit my need: I just need the
DeviceControl / METHOD_BUFFERED method, so I deleted all other functions
(direct in/out, neither, ..). I also changed the parameter types of the
DeviceIoControl & it’s counter part at the driver to work with USHORT
datatypes (not char[] buffers).
And now I’m getting a 998 error code (Invalid access to memory location). So
what could be wrong? what are the sources of this error?
Thank you so much,
BTW: The IOCTL’s are defined in the sample so: FILE_ANY_ACCESS and the
CreateFile opens it as GENERIC_READ | GENERIC_WRITE. I changed to
FILE_READ_ACCESS | FILE_WRITE_ACCESS to test but I’m having the same error.

