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

  1. /**************************************************************************************************
  2. FILENAME: Defragcommon.h
  3. COPYRIGHT 2001 Microsoft Corporation and Executive Software International, Inc.
  4. DESCRIPTION:
  5. Common routines used in MFTDefrag and bootoptimize.
  6. **************************************************************************************************/
  7. ULONGLONG FindFreeSpaceChunk(
  8. IN LONGLONG BitmapSize,
  9. IN LONGLONG BytesPerSector,
  10. IN LONGLONG TotalClusters,
  11. IN ULONGLONG ulFileSize,
  12. IN BOOL IsNtfs,
  13. IN ULONGLONG MftZoneStart,
  14. IN ULONGLONG MftZoneEnd,
  15. IN HANDLE hVolumeHandle
  16. );
  17. VOID MarkBitMapforNTFS(
  18. IN OUT PULONG pBitmap,
  19. IN ULONGLONG MftZoneStart,
  20. IN ULONGLONG MftZoneEnd
  21. );
  22. BOOL MoveFileLocation(
  23. IN HANDLE hMFTHandle,
  24. IN ULONGLONG ulFirstAvailableFreeSpace,
  25. IN ULONGLONG ulMFTsize,
  26. IN ULONGLONG ulStartingVcn,
  27. IN HANDLE hVolumeHandle
  28. );
  29. BOOL StartsWithVolumeGuid(
  30. IN PCWSTR szName
  31. );
  32. BOOL PauseOnVolumeSnapshot(
  33. IN PWSTR szVolumeName
  34. );
  35. BOOL
  36. AcquirePrivilege(
  37. IN CONST PCWSTR szPrivilegeName
  38. );