Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows - ways to communicate with device driver

As far as I can see - the only entrypoint to communicate with DeviceDriver - is using CreateFile.

Q1 - Is there any other way to communicate with device driver other than using CreateFile

Q2 - When using pseudo file access approach - what are common ways people use ReadFile and WriteFile? Only for passing data in-out or is there any other special purpose to use these?

Any link to appropriate article would be VERY appreciated.

like image 863
zvoice Avatar asked Sep 17 '25 10:09

zvoice


1 Answers

These articles may be very useful for you

http://www.osronline.com/article.cfm?id=24

http://www.osronline.com/article.cfm?article=39

https://learn.microsoft.com/en-us/windows-hardware/drivers/wdf/working-with-usb-pipes

A1: Yes, there is few like Pipes but afair it uses CreateFileA

A2: This is not a pseudofile (kernel objects are not quite files, you can mainly read/write data from them), but read/writefile function are designed to pass data

like image 102
Daniel Mazur Avatar answered Sep 23 '25 11:09

Daniel Mazur