Pradeepa Senanayake wrote: > > The way the kernel is handling both IOCTLs and the ReadFile/WriteFile > requests are almost the same. But then why different functions?
Partly, tradition and history. The five original Unix primitives were open, read, write, ioctl, and close, and most operating systems since then have kept those primitives. On Windows, ReadFile and WriteFile get additional handling when the device is actually a file system. For example, both of them maintain a "current position", which DeviceIoControl does not do. That difference doesn't matter when there isn't a real file behind the handle. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ------------------------------------------------------------------------------ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel