add function to the header file

svn path=/trunk/; revision=10869
This commit is contained in:
Thomas Bluemel 2004-09-15 19:01:23 +00:00
parent 1388215acb
commit e740fd1758
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,4 @@
/* $Id: sparse.h,v 1.1 2004/09/15 18:57:01 weiden Exp $ /* $Id: sparse.h,v 1.2 2004/09/15 19:01:23 weiden Exp $
*/ */
#ifndef ROSRTL_SPARSE_H__ #ifndef ROSRTL_SPARSE_H__
@ -19,6 +19,14 @@ ZeroFileData(HANDLE hFile,
PLARGE_INTEGER pliFileOffset, PLARGE_INTEGER pliFileOffset,
PLARGE_INTEGER pliBeyondFinalZero); PLARGE_INTEGER pliBeyondFinalZero);
DWORD
STDCALL
QueryAllocatedFileRanges(HANDLE hFile,
PLARGE_INTEGER pliFileOffset,
PLARGE_INTEGER pliLength,
PFILE_ALLOCATED_RANGE_BUFFER lpAllocatedRanges,
DWORD dwBufferSize);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View file

@ -105,7 +105,7 @@ QueryAllocatedFileRanges(HANDLE hFile,
lpAllocatedRanges, lpAllocatedRanges,
dwBufferSize, dwBufferSize,
&BytesRet, &BytesRet,
NULL)) NULL) != 0)
{ {
return BytesRet; return BytesRet;
} }