HI,
I am new to the whole Mac development environment and have been asked to write a program to read sectors of attached media.
I've worked my way through the example programs, so many documents my eyes are blurring but I seem to be stuck.
I can get the WholeKey filtered IOIterator List (3 items) and can get the device name.
When I try to loop through and read a sector a few things happen. I used debug and found that the IOIteratorNext values change but the returned BSDPathAsString is always the same /240 added to the \dev\r path it looks a little strange (to me at least) and the OpenDrive and subsequent numBytes = read(fileDescriptor, buffer, blockSize ); returns -1.
If anyone has any suggestions it would be greatky appreciated, I have tried a number of different combinations without success.
Thanks in Advance.