consio.hpp 793 B

12345678910111213141516171819202122232425262728
  1. #ifndef _RAR_CONSIO_
  2. #define _RAR_CONSIO_
  3. void InitConsole();
  4. void SetConsoleMsgStream(MESSAGE_TYPE MsgStream);
  5. void SetConsoleRedirectCharset(RAR_CHARSET RedirectCharset);
  6. void ProhibitConsoleInput();
  7. void OutComment(const wchar *Comment,size_t Size);
  8. #ifndef SILENT
  9. bool GetConsolePassword(UIPASSWORD_TYPE Type,const wchar *FileName,SecPassword *Password);
  10. #endif
  11. #ifdef SILENT
  12. inline void mprintf(const wchar *fmt,...) {}
  13. inline void eprintf(const wchar *fmt,...) {}
  14. inline void Alarm() {}
  15. inline int Ask(const wchar *AskStr) {return 0;}
  16. inline bool getwstr(wchar *str,size_t n) {return false;}
  17. #else
  18. void mprintf(const wchar *fmt,...);
  19. void eprintf(const wchar *fmt,...);
  20. void Alarm();
  21. int Ask(const wchar *AskStr);
  22. bool getwstr(wchar *str,size_t n);
  23. #endif
  24. #endif