You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
#ifdef __cplusplus
|
|
extern "C" { /* Assume C declarations for C++ */
|
|
#endif /* __cplusplus */
|
|
|
|
#include "fileshar.h"
|
|
|
|
#pragma warning(disable:4200)
|
|
|
|
typedef struct {
|
|
LONG lOffset;
|
|
LONG lLength;
|
|
LPVOID lpBuffer;
|
|
} BUFFER;
|
|
|
|
typedef struct {
|
|
int nBuffers;
|
|
LONG lBufSize;
|
|
LPVOID lpBufMem;
|
|
HSHFILE hshfile;
|
|
BOOL fStreaming;
|
|
BOOL fUseDOSBuf;
|
|
PAVIINDEX px;
|
|
LONG lx;
|
|
LONG lFileLength;
|
|
int iNextBuf;
|
|
BUFFER aBuf[];
|
|
} BUFSYSTEM, *PBUFSYSTEM;
|
|
|
|
PBUFSYSTEM FAR PASCAL InitBuffered(int nBuffers, LONG lBufSize,
|
|
HSHFILE hshfile,
|
|
PAVIINDEX px);
|
|
|
|
LONG FAR PASCAL BufferedRead(PBUFSYSTEM pb, LONG l, LONG cb, LPVOID lp);
|
|
|
|
LONG FAR PASCAL BeginBufferedStreaming(PBUFSYSTEM pb, BOOL fForward);
|
|
LONG FAR PASCAL EndBufferedStreaming(PBUFSYSTEM pb);
|
|
|
|
void FAR PASCAL EndBuffered(PBUFSYSTEM pb);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
} /* End of extern "C" { */
|
|
#endif /* __cplusplus */
|