|
Boost Users : |
Subject: Re: [Boost-users] asio to read device files
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2009-11-30 10:11:40
On Mon, Nov 30, 2009 at 4:38 AM, Lloyd <lloyd_at_[hidden]> wrote:
>
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net