helper class for responses to command line usage
| 36 | |
| 37 | // helper class for responses to command line usage |
| 38 | class OutputHandler { |
| 39 | private: |
| 40 | bool m_have_console; |
| 41 | wstring m_output_str; |
| 42 | vector<wchar_t> m_buf; |
| 43 | HANDLE m_hPipe = INVALID_HANDLE_VALUE; |
| 44 | public: |
| 45 | OutputHandler(HANDLE hPipe); |
| 46 | virtual ~OutputHandler(); |
| 47 | bool have_pipe() { return m_hPipe != INVALID_HANDLE_VALUE && m_hPipe != NULL; } |
| 48 | int print(int type, const wchar_t* fmt, ...); |
| 49 | }; |
| 50 | |
| 51 | // CMountPropertyPage dialog |
| 52 |
nothing calls this directly
no outgoing calls
no test coverage detected