2016-02-04 12:42:05 +08:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
2019-01-05 15:58:41 +08:00
|
|
|
* (C) COPYRIGHT AUTHORS, 2016 - 2018
|
2016-02-04 12:42:05 +08:00
|
|
|
*
|
|
|
|
* TITLE: CUI.H
|
|
|
|
*
|
2019-01-05 15:58:41 +08:00
|
|
|
* VERSION: 1.30
|
2016-02-04 12:42:05 +08:00
|
|
|
*
|
2019-01-05 15:58:41 +08:00
|
|
|
* DATE: 01 Aug 2018
|
2016-02-04 12:42:05 +08:00
|
|
|
*
|
|
|
|
* Common header file for console ui.
|
|
|
|
*
|
|
|
|
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
|
|
|
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
|
|
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
|
|
|
* PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
*******************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
|
2019-01-05 15:58:41 +08:00
|
|
|
VOID cuiInitialize(
|
|
|
|
_In_ BOOL InitInput,
|
|
|
|
_Out_opt_ PBOOL IsConsoleOutput
|
|
|
|
);
|
|
|
|
|
|
|
|
#ifdef _UNICODE
|
|
|
|
#define cuiPrintText cuiPrintTextW
|
|
|
|
#define cuiPrintTextLastError cuiPrintTextLastErrorW
|
|
|
|
#else
|
|
|
|
#define cuiPrintText cuiPrintTextA
|
|
|
|
#define cuiPrintTextLastError cuiPrintTextLastErrorA
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2017-04-17 19:45:41 +08:00
|
|
|
VOID cuiPrintTextA(
|
|
|
|
_In_ LPSTR lpText,
|
|
|
|
_In_ BOOL UseReturn
|
2019-01-05 15:58:41 +08:00
|
|
|
);
|
2016-02-04 12:42:05 +08:00
|
|
|
|
2017-04-17 19:45:41 +08:00
|
|
|
VOID cuiPrintTextW(
|
2019-01-05 15:58:41 +08:00
|
|
|
_In_ LPWSTR lpText,
|
|
|
|
_In_ BOOL UseReturn
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID cuiPrintTextLastErrorA(
|
2017-04-17 19:45:41 +08:00
|
|
|
_In_ BOOL UseReturn
|
2019-01-05 15:58:41 +08:00
|
|
|
);
|
2017-04-17 19:45:41 +08:00
|
|
|
|
2019-01-05 15:58:41 +08:00
|
|
|
VOID cuiPrintTextLastErrorW(
|
|
|
|
_In_ BOOL UseReturn
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID cuiClrScr(
|
|
|
|
VOID
|
|
|
|
);
|