Can anyone help me find a book related to how data transfer works with external peripherals (via USB port, serial port, parallel port, etc).
I would be really grateful if its a practically oriented book!
Can anyone help me find a book related to how data transfer works with external peripherals (via USB port, serial port, parallel port, etc).
I would be really grateful if its a practically oriented book!
In Windows you will probably call CreateFile to get a handle to the device in question. What protocol the device uses depends on, well, the device in question. Also, the way you access each device may be language independent. For example, I would use CreateFile( ) in C++, but not C#. perhaps you can refine your question a bit so that we may provide more meaningful answers.
As far as books go, Programming Window by Charles Petzold is an old standby.
At the lowest level, device drivers do the data transfer with peripherals. Windows Internals is supposed to be a good book dealing with this subject, among other things. I have not read it, but Mark Russinovich is one of the co-authors, so I tend to believe the reviews.
There are not many books on actually writing Windows device drivers. You could also check OSR Online for recommendations; they would likely know.