
30 Nov
2009
30 Nov
'09
3:11 p.m.
On Mon, Nov 30, 2009 at 4:38 AM, Lloyd
Hi, In Windows we can open and read storage meidias by using the call CreateFile() and ReadFile() respecively. The device name is passed as a string to the CreateFile() call, as an example "PhysicalDrive1". Create file returns a handle of type "HANDLE". can I use this handle in asio in order to read a device file?
Yes, take a look at boost::asio::windows::random_access_handle and random_access_handle_service. You can use this in normal calls to async_read, async_write, etc