ciderpress/diskimg/SPTI.h
Andy McFadden d21ba553ab Added new logging macros
Visual Studio figured out variadic macros around 2005, so we can
finally replace the explicit-arg-count debug log macros.

Also, fixed some include guards.

Also, bumped version to 4.0.0d1.
2014-11-17 18:07:07 -08:00

41 lines
952 B
C++

/*
* CiderPress
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
* See the file LICENSE for distribution terms.
*/
/*
* Declarations for the Win32 SCSI Pass-Through Interface.
*/
#ifndef DISKIMG_SPTI_H
#define DISKIMG_SPTI_H
#ifdef _WIN32
namespace DiskImgLib {
/*
* This is currently implemented as a set of static functions. Do not
* instantiate the class.
*/
class DISKIMG_API SPTI {
public:
// Read blocks from the device.
static DIError ReadBlocks(HANDLE handle, long startBlock, short numBlocks,
long blockSize, void* buf);
// Get the capacity, expressed as the highest-available LBA and the device
// block size.
static DIError GetDeviceCapacity(HANDLE handle, unsigned long* pLastBlock,
unsigned long* pBlockSize);
private:
SPTI(void) {}
~SPTI(void) {}
};
} // namespace DiskImgLib
#endif /*_WIN32*/
#endif /*DISKIMG_SPTI_H*/