Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
1.1 KiB

/**************************************************************************************************
FILENAME: Defragcommon.h
COPYRIGHT© 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
);