For Programmers: Free Programming Magazines  


Home > Archive > VC Language > June 2005 > Accessing Tape Devices using large block sizes









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Accessing Tape Devices using large block sizes
John Hennig

2005-06-11, 3:59 pm

I am trying to read data from a tape using the ReadFile utility with a
HANDLE that was acquired using the CreateFile function. If I attempt to
read a tape with small tape blocks (64K or less) everything works correctly.
As I read tapes with larger tape blocks (64K to 1M) while increasing the
registry setting for 'MaximumSGList' to accommodate the larger block size,
everything works correctly. If I have a tape with 1M+ of data in a single
tape block, the ReadFile routine returns an error that states that "More
data is available', but since the 'MaximumSGList' is at its maximum limit
(0xFF), I can not retrieve the data. How can this be done using the
ReadFile function?

Thanks


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com