ciderpress/diskimg/SPTI.h
Andy McFadden 63b9996009 Normalize indentation and EOL
This updates all source files to use spaces instead of tabs for
indentation.  It also normalizes the end-of-line markers to be
Windows-style CRLF, and ensures that all files end with EOL.

No substantive changes were made; "diff -w" is empty.
2014-11-03 16:26:53 -08:00

41 lines
935 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 __SPTI__
#define __SPTI__
#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 /*__SPTI__*/