Source code of Windows XP (NT5)
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.

27 lines
589 B

  1. #ifndef __CISTREAM_H_ // {
  2. #define __CISTREAM_H_
  3. #include <windows.h>
  4. #include <objbase.h>
  5. #define MAX_MVP_LINE_BYTES 1024
  6. class CStreamParseLine
  7. {
  8. public:
  9. CStreamParseLine (void);
  10. ~CStreamParseLine() {Close();}
  11. STDMETHOD(SetStream)(IStream *pistm);
  12. STDMETHOD(GetLogicalLine)(LPWSTR *ppwstrLineBuffer, int *iLineCount);
  13. STDMETHOD(Reset)(void);
  14. STDMETHOD(Close)(void);
  15. private:
  16. IStream *m_pistmInput;
  17. WCHAR m_wstrLine[MAX_MVP_LINE_BYTES];
  18. BOOL m_fASCII;
  19. LARGE_INTEGER m_liStartOffset;
  20. LARGE_INTEGER m_liNull;
  21. };
  22. #endif // } __CISTREAM_H_