Getting the cluster size of a hard drive

方法一

https://stackoverflow.com/questions/11373603/determining-volume-cluster-size-without-using-getdiskfreespace

BOOL WINAPI GetDiskFreeSpace(
  __in   LPCTSTR lpRootPathName,
  __out  LPDWORD lpSectorsPerCluster, // <--
  __out  LPDWORD lpBytesPerSector, // <--
  __out  LPDWORD lpNumberOfFreeClusters,
  __out  LPDWORD lpTotalNumberOfClusters
);

方法二

IOCTL

posted on 2021-05-20 17:34  liujx2019  阅读(35)  评论(0编辑  收藏  举报

导航