BOOLEAN
GetDeviceValues(
  IN  PDEVICE_OBJECT DeviceObject,
  OUT PULONG BytesPerSector,
  OUT PLARGE_INTEGER NumberOfSectors
  );

Routine Description:

    This routine returns information about the partition represented by the
    device object.

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.

    NumberOfSectors - Variable to receive the number of sectors for this
        partition.

Return Value:

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