BOOLEAN
FsRecGetDeviceSectorSize(
  IN  PDEVICE_OBJECT DeviceObject,
  OUT PULONG BytesPerSector
  );

Routine Description:

    This routine returns the sector size of the underlying device.

Arguments:

    DeviceObject - Pointer to the device object from which to read.

    BytesPerSector - Variable to receive the number of bytes per sector for the
        device being read.

Return Value:

    The function value is TRUE if the information was found, otherwise FALSE.