Personally I would stick with ioctls. Read and write usually only show up in file systems and storage drivers.
d
debt from my phone
-----Original Message-----
From: Mark Cariddi
Sent: Wednesday, August 24, 2011 6:12 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] EvtIoRead/Write and offsets?
It should be in the byteoffset field of the parameters…
–Mark Cariddi
OSR Open Systems Resources, Inc.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@conplement.de
Sent: Wednesday, August 24, 2011 9:02 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] EvtIoRead/Write and offsets?
Hello,
I have issues concerning the EvtIoRead and EvtIoWrite functions. I am currently programming a driver for a simple PCI device. It is necessary that a user application is able to read and write certain memory addresses of the PCI card (its a very low level project, so no fancy stuff here).
Currently I am using the “normal” EvtIoDeviceControl function and BufferedIO with a kind of “protocol” to pass the offset and the command (READ or WRITE) to the driver.
But i would like to use EvtIoRead and EvtIoWrite instead. Therefor it would be necessary to pass an offset down to the driver. But as ReadFile and WriteFile don’t provide file positions or offsets I guess I have to use SetFilePointer instead.
But how do I access the position set by SetFilePointer during handling EvtIoRead for example?
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer