long DPBitmapTest(
DP_BITMAP * bitmap,
LARGE_INTEGER offset,
unsigned long length
)
{
char flag = 0;
unsigned long i = 0;
unsigned long myRegion = 0;
unsigned long myRegionOffset = 0;
unsigned long myByteOffset = 0;
unsigned long myBitPos = 0;
long ret = BITMAP_BIT_UNKNOW;
for (i = 0; i < length; i += bitmap->sectorSize)
{
//针对需要测试的bitmap范围进行测试,如果全部为0则返回BITMAP_RANGE_CLEAR,如果全部为1,则返回BITMAP_RANGE_SET,如果为0,1混合则返回BITMAP_RANGE_BLEND
myRegion = (unsigned long)((offset.QuadPart + (__int64)i) / (__int64)bitmap->regionReferSize);