2006-02-25 20:50:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define IMAGETYPES 7
|
|
|
|
#define NIBBLES 6656
|
2009-02-17 22:53:52 +00:00
|
|
|
#define TRACK_DENIBBLIZED_SIZE 4096
|
2006-02-25 20:50:29 +00:00
|
|
|
|
|
|
|
BOOL ImageBoot (HIMAGE);
|
|
|
|
void ImageClose (HIMAGE);
|
|
|
|
void ImageDestroy ();
|
|
|
|
void ImageInitialize ();
|
2006-03-09 21:40:16 +00:00
|
|
|
|
|
|
|
enum ImageError_e
|
|
|
|
{
|
|
|
|
IMAGE_ERROR_BAD_POINTER =-1,
|
|
|
|
IMAGE_ERROR_NONE = 0,
|
|
|
|
IMAGE_ERROR_UNABLE_TO_OPEN = 1,
|
|
|
|
IMAGE_ERROR_BAD_SIZE = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
int ImageOpen (LPCTSTR imagefilename, HIMAGE *hDiskImage_, BOOL *pWriteProtected_, BOOL bCreateIfNecessary );
|
|
|
|
|
2006-02-25 20:50:29 +00:00
|
|
|
void ImageReadTrack (HIMAGE,int,int,LPBYTE,int *);
|
|
|
|
void ImageWriteTrack (HIMAGE,int,int,LPBYTE,int);
|
2009-05-29 21:39:13 +00:00
|
|
|
|
|
|
|
int ImageGetNumTracks(HIMAGE imagehandle);
|