51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
|
/**************************************************************************************************
|
|||
|
|
|||
|
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
|
|||
|
);
|
|||
|
|