mirror of https://github.com/lianthony/NT4.0
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.
36 lines
677 B
36 lines
677 B
#ifndef _CINPUT_INCLUDED
|
|
#define _CINPUT_INCLUDED
|
|
|
|
#ifndef STDCALL
|
|
#define STDCALL __stdcall
|
|
#endif
|
|
|
|
#ifndef _CSTR_INCLUDED
|
|
#include "cstr.h"
|
|
#endif
|
|
|
|
class CInput
|
|
{
|
|
public:
|
|
CInput(PCSTR pszFileName);
|
|
~CInput(void);
|
|
|
|
BOOL fInitialized; // TRUE if class creation succeeds
|
|
|
|
BOOL STDCALL getline(PSTR pszDst);
|
|
BOOL STDCALL getline(CStr* pcsz);
|
|
void STDCALL SetMaxLine(UINT cbLine) { cbMax = cbLine; };
|
|
BOOL STDCALL IsWinWordFile(void);
|
|
|
|
|
|
protected:
|
|
BOOL ReadNextBuffer(void);
|
|
|
|
HFILE hfile;
|
|
PBYTE pbuf; // allocated buffer for reading
|
|
PBYTE pCurBuf; // current buffer location
|
|
PBYTE pEndBuf; // buffer end position
|
|
int cbMax;
|
|
};
|
|
|
|
#endif // _CINPUT_INCLUDED
|