DFSReturnVolumeBlockInformation
Returns the volume block usage bitmap for requested volume
#include <nwdfs.h> LONG DFSReturnVolumeBlockInformation ( LONG volumeNumber, LONG startingBlockNumber, LONG numberOfBlocks, BYTE *buffer);
This function is used to determine which blocks on a volume are in use and that are available for allocation. This function returns a bitmap which has a bit for each block in the range specified in the calling parameters, beginning with the logical (zero-based) volume block indicated by startingBlockNumber. This information is required if an application NLM is attempting to do specific allocation for a file, in order to pick block ranges of contiguous free blocks to expand a file.
The data returned by this function is only valid until it is changed by some request, and can change dynamically before an application can successfully request allocation of the blocks selected. The application process must be designed to handle this exception, as well as the case where there is not a single contiguous free block area large enough to satisfy the file expansion request.