windows-nt/Source/XPSP1/NT/base/fs/utils/dfrg/inc/defragcommon.h

51 lines
1.1 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/**************************************************************************************************
FILENAME: Defragcommon.h
COPYRIGHT<EFBFBD> 2001 Microsoft Corporation and Executive Software International, Inc.
DESCRIPTION:
Common routines used in MFTDefrag and bootoptimize.
**************************************************************************************************/
ULONGLONG FindFreeSpaceChunk(
IN LONGLONG BitmapSize,
IN LONGLONG BytesPerSector,
IN LONGLONG TotalClusters,
IN ULONGLONG ulFileSize,
IN BOOL IsNtfs,
IN ULONGLONG MftZoneStart,
IN ULONGLONG MftZoneEnd,
IN HANDLE hVolumeHandle
);
VOID MarkBitMapforNTFS(
IN OUT PULONG pBitmap,
IN ULONGLONG MftZoneStart,
IN ULONGLONG MftZoneEnd
);
BOOL MoveFileLocation(
IN HANDLE hMFTHandle,
IN ULONGLONG ulFirstAvailableFreeSpace,
IN ULONGLONG ulMFTsize,
IN ULONGLONG ulStartingVcn,
IN HANDLE hVolumeHandle
);
BOOL StartsWithVolumeGuid(
IN PCWSTR szName
);
BOOL PauseOnVolumeSnapshot(
IN PWSTR szVolumeName
);
BOOL
AcquirePrivilege(
IN CONST PCWSTR szPrivilegeName
);