BACKTEST.H

// --backtest.c----------------------------------------------------------------- 
//
// Backup sample header file.
//
// Copyright (C) Microsoft Corp. 1986-1996. All Rights Reserved.
// -----------------------------------------------------------------------------

#ifndef_BACKTEST_
#define_BACKTEST_

#defineDEF_BACKUP_FILE"EXCHANGE.BAK"

#defineBACKUP_SIGNATURE(0xFF + ('B' << 8) + ('A' << 16) + ('K' << 24))
#defineLOG_SIGNATURE(0xFF + ('L' << 8) + ('O' << 16) + ('G' << 24))
#defineFILE_SIGNATURE(0xFF + ('F' << 8) + ('I' << 16) + ('L' << 24))

#defineBACKUP_VERSION0x00000001

#define fFalse FALSE
#define fTrue TRUE

/* Count, index types */
typedef LONGC;
typedef LONGI;

/* Other Hungarian */
typedef char *SZ;
typedef WCHAR *WSZ;
typedef longEC;
typedef void *PV;
typedef CCB;
typedef IIB;
typedef BYTE *PB;
typedef CCCH;
typedefchar *PCH;

typedef struct tagBackupHeader {
ULONGulSignature;
ULONGulVersion;
CcBackupFiles;
CBcbDatabaseNameLength;
//charrgDatabaseName[cbDatabaseNameLength]
} BackupHeader, *PBackupHeader;

typedef struct tagLogHeader {
ULONGulLogSignature;
CcLogFiles;
} LogHeader, *PLogHeader;

typedef struct tagBackupFile {
ULONGulFileSignature;
LARGE_INTEGERliFileSize;
BFTbft;
CBcbFileNameLength;// Includes null.
//charrgFileName[cbFileNameLength];
//charrgFileData[liFileSize];
} BackupFile, *PBackupFile;


#endif// _BACKTEST_