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