home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / Chip_2002-06_cd1.bin / zkuste / wincom / download / mltwcx.1.0.0.8-src.cab / mltwcx-src / ConsoleOutput.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-16  |  713 b   |  27 lines

  1. #ifndef _CONSOLEOUTPUT_H_
  2.     #define _CONSOLEOUTPUT_H_
  3.  
  4. #include "ArchiveDescription.h"
  5.  
  6. class CConsoleOutput
  7. {
  8.     HANDLE m_hFile;
  9.     HANDLE m_hFileMap;
  10.     LPSTR  m_lpData;
  11.     bool m_bSaveList;
  12.     bool m_bDoOemConversion;
  13.     void ReleaseContents();
  14. public:
  15.     void SetOemConversion(bool bDoConvertion=true){m_bDoOemConversion=bDoConvertion;}
  16.  
  17. //    int ParseNExecuteCommand(int idx,CArchiveDescription *pad,LPCSTR lpArcFile=NULL,LPCSTR lpFile=NULL);
  18.     CConsoleOutput(bool bSaveList=true);
  19.     ~CConsoleOutput(){ ReleaseContents(); }
  20.  
  21.     LPCSTR GetOutputData(){return m_lpData;}
  22.     int ExecuteCommand(LPCSTR lpCommand,LPCSTR lpInput=NULL);
  23. };
  24.  
  25. #define MAEL_CANT_CREATE_PROCESS 0x27272727
  26.  
  27. #endif //_CONSOLEOUTPUT_H_