ReactOS 0.4.15-dev-8102-g108db8f
noui.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: FreeLoader
4 * FILE: boot/freeldr/freeldr/ui/noui.c
5 * PURPOSE: No Text UI interface
6 * PROGRAMMERS: Hervé Poussineau
7 */
8
9#include <freeldr.h>
10
12{
13 return TRUE;
14}
15
17{
18}
19
21{
22}
23
24VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
25{
26}
27
29{
30}
31
32VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
33{
34}
35
36VOID
38 _In_ ULONG X,
39 _In_ ULONG Y,
41 _In_ UCHAR Attr)
42{
43 printf("%s\n", Text);
44}
45
46VOID
48 _In_ ULONG X,
49 _In_ ULONG Y,
50 _In_opt_ ULONG MaxNumChars,
51 _In_reads_or_z_(MaxNumChars) PCSTR Text,
52 _In_ UCHAR Attr)
53{
54 if (MaxNumChars == 0)
55 MaxNumChars = (ULONG)strlen(Text);
56 printf("%*s\n", MaxNumChars, Text);
57}
58
59VOID
61 _In_ ULONG Left,
63 _In_ ULONG Right,
65 _In_ PCSTR TextString,
66 _In_ UCHAR Attr)
67{
68 printf("%s\n", TextString);
69}
70
72{
73 printf("%s\n", StatusText);
74}
75
77{
78}
79
80VOID
82 _In_ PCSTR MessageText)
83{
84 NoUiMessageBoxCritical(MessageText);
85}
86
87VOID
89 _In_ PCSTR MessageText)
90{
91 /*
92 * We have not yet displayed the user interface
93 * We are probably still reading the .ini file
94 * and have encountered an error. Just use printf()
95 * and return.
96 */
97 printf("%s\n", MessageText);
98 printf("Press any key\n");
100}
101
102/* Loading Progress-Bar Functions ********************************************/
103
104VOID
106 _In_ PCSTR ProgressText)
107{
108}
109
110VOID
112 _In_ ULONG SubPercentTimes100)
113{
114}
115
116VOID
118 _In_ PCSTR ProgressText)
119{
120}
121
122VOID
124 _In_ ULONG Left,
125 _In_ ULONG Top,
126 _In_ ULONG Right,
128 _In_ PCSTR ProgressText)
129{
130}
131
132
133BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
134{
135 return FALSE;
136}
137
139{
140 return 0;
141}
142
144{
145 return 0;
146}
147
149{
150}
151
153{
154}
155
157//
158// Menu Functions
159//
161
164 IN PCSTR MenuHeader,
165 IN PCSTR MenuFooter OPTIONAL,
166 IN BOOLEAN ShowBootOptions,
167 IN PCSTR MenuItemList[],
168 IN ULONG MenuItemCount,
169 IN ULONG DefaultMenuItem,
170 IN LONG MenuTimeOut,
171 OUT PULONG SelectedMenuItem,
172 IN BOOLEAN CanEscape,
175{
176 *SelectedMenuItem = DefaultMenuItem;
177 return TRUE;
178}
179
180VOID
183{
184}
unsigned char BOOLEAN
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
static LPHIST_ENTRY Bottom
Definition: history.c:54
static LPHIST_ENTRY Top
Definition: history.c:53
#define MachConsGetCh()
Definition: machine.h:90
BOOLEAN(* UiMenuKeyPressFilterCallback)(IN ULONG KeyPress, IN ULONG SelectedMenuItem, IN PVOID Context OPTIONAL)
Definition: ui.h:224
char * Text
Definition: combotst.c:136
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define Y(I)
void Fill(HDC hdc, LONG x, LONG y, COLORREF color)
Definition: drawing.cpp:107
#define printf
Definition: freeldr.h:97
#define _In_reads_or_z_(size)
Definition: ms_sal.h:325
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
VOID NoUiMessageBox(_In_ PCSTR MessageText)
Definition: noui.c:81
VOID NoUiUnInitialize(VOID)
Definition: noui.c:16
VOID NoUiDrawStatusText(PCSTR StatusText)
Definition: noui.c:71
VOID NoUiDrawProgressBar(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR ProgressText)
Definition: noui.c:123
VOID NoUiTickProgressBar(_In_ ULONG SubPercentTimes100)
Definition: noui.c:111
VOID NoUiFadeInBackdrop(VOID)
Definition: noui.c:148
UCHAR NoUiTextToFillStyle(PCSTR FillStyleText)
Definition: noui.c:143
BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
Definition: noui.c:133
VOID NoUiDrawText2(_In_ ULONG X, _In_ ULONG Y, _In_opt_ ULONG MaxNumChars, _In_reads_or_z_(MaxNumChars) PCSTR Text, _In_ UCHAR Attr)
Definition: noui.c:47
VOID NoUiUpdateDateTime(VOID)
Definition: noui.c:76
VOID NoUiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
Definition: noui.c:28
VOID NoUiDrawCenteredText(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR TextString, _In_ UCHAR Attr)
Definition: noui.c:60
BOOLEAN NoUiInitialize(VOID)
Definition: noui.c:11
VOID NoUiMessageBoxCritical(_In_ PCSTR MessageText)
Definition: noui.c:88
VOID NoUiDrawMenu(_In_ PUI_MENU_INFO MenuInfo)
Definition: noui.c:181
VOID NoUiDrawBackdrop(VOID)
Definition: noui.c:20
VOID NoUiSetProgressBarText(_In_ PCSTR ProgressText)
Definition: noui.c:105
VOID NoUiFadeOut(VOID)
Definition: noui.c:152
VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
Definition: noui.c:24
VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
Definition: noui.c:32
BOOLEAN NoUiDisplayMenu(IN PCSTR MenuHeader, IN PCSTR MenuFooter OPTIONAL, IN BOOLEAN ShowBootOptions, IN PCSTR MenuItemList[], IN ULONG MenuItemCount, IN ULONG DefaultMenuItem, IN LONG MenuTimeOut, OUT PULONG SelectedMenuItem, IN BOOLEAN CanEscape, IN UiMenuKeyPressFilterCallback KeyPressFilter OPTIONAL, IN PVOID Context OPTIONAL)
Definition: noui.c:163
VOID NoUiDrawProgressBarCenter(_In_ PCSTR ProgressText)
Definition: noui.c:117
VOID NoUiDrawText(_In_ ULONG X, _In_ ULONG Y, _In_ PCSTR Text, _In_ UCHAR Attr)
Definition: noui.c:37
UCHAR NoUiTextToColor(PCSTR ColorText)
Definition: noui.c:138
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
long LONG
Definition: pedump.c:60
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
menu info structure
Definition: window.h:276
uint32_t * PULONG
Definition: typedefs.h:59
const char * PCSTR
Definition: typedefs.h:52
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
char * PCHAR
Definition: typedefs.h:51
unsigned char UCHAR
Definition: xmlstorage.h:181
char CHAR
Definition: xmlstorage.h:175