50const PCSTR UiMonthNames[12] = {
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December" };
52#define TAG_UI_TEXT 'xTiU'
98 CHAR SettingText[260];
110 TRACE(
"Initializing User Interface.\n");
111 TRACE(
"Reading UI settings from [Display] section.\n");
118 SettingText[0] =
'\0';
119 if ((SectionId != 0) && !
IniReadSettingByName(SectionId,
"DisplayMode", SettingText,
sizeof(SettingText)))
121 SettingText[0] =
'\0';
127 if ((SectionId != 0) &&
IniReadSettingByName(SectionId,
"MinimalUI", SettingText,
sizeof(SettingText)))
129 UiMinimal = (
_stricmp(SettingText,
"Yes") == 0);
220 TRACE(
"UiInitialize() returning TRUE.\n");
303 ULONG LineBreakCount;
311 TextLength =
strlen(MessageText);
319 if (MessageText[
Index] ==
'\n')
326 if ((
Index - LastIndex) > BoxWidth)
335 BoxHeight = LineBreakCount + 4;
428 Percentage =
min(Percentage, 99);
528 CHAR SettingName[80];
529 CHAR SettingValue[80];
530 PCHAR MessageBoxText;
531 ULONG MessageBoxTextSize;
539 IniReadSettingByNumber(SectionId, Idx, SettingName,
sizeof(SettingName), SettingValue,
sizeof(SettingValue));
540 if (
_stricmp(SettingName,
"MessageBox") != 0)
554 IniReadSettingByNumber(SectionId, Idx, SettingName,
sizeof(SettingName), MessageBoxText, MessageBoxTextSize);
574 PCHAR MessageBoxText;
575 SIZE_T MessageBoxTextSize;
583 MessageBoxTextSize = (
strlen(ArgValue) + 1) *
sizeof(
CHAR);
591 strcpy(MessageBoxText, ArgValue);
619 MenuItemList, MenuItemCount, DefaultMenuItem,
620 MenuTimeOut, SelectedMenuItem, CanEscape,
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
PSTR GetNextArgumentValue(_In_ ULONG Argc, _In_ PCHAR Argv[], _Inout_opt_ PULONG LastIndex, _In_ PCSTR ArgumentName)
static LPHIST_ENTRY Bottom
#define DBG_DEFAULT_CHANNEL(ch)
#define MachVideoSetDisplayMode(Mode, Init)
#define MachVideoGetDisplaySize(W, H, D)
enum tagVIDEODISPLAYMODE VIDEODISPLAYMODE
FORCEINLINE PVOID FrLdrTempAlloc(_In_ SIZE_T Size, _In_ ULONG Tag)
FORCEINLINE VOID FrLdrTempFree(PVOID Allocation, ULONG Tag)
#define ATTR(cFore, cBack)
BOOLEAN(* UiMenuKeyPressFilterCallback)(IN ULONG KeyPress, IN ULONG SelectedMenuItem, IN PVOID Context OPTIONAL)
void Fill(HDC hdc, LONG x, LONG y, COLORREF color)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
ULONG IniGetSectionSettingValueSize(ULONG_PTR SectionId, ULONG SettingIndex)
ULONG IniGetNumSectionItems(ULONG_PTR SectionId)
BOOLEAN IniReadSettingByNumber(ULONG_PTR SectionId, ULONG SettingNumber, PCHAR SettingName, ULONG NameSize, PCHAR SettingValue, ULONG ValueSize)
BOOLEAN IniReadSettingByName(ULONG_PTR SectionId, PCSTR SettingName, PCHAR Buffer, ULONG BufferSize)
BOOLEAN IniOpenSection(PCSTR SectionName, ULONG_PTR *SectionId)
#define _In_reads_or_z_(size)
VOID NoUiMessageBox(_In_ PCSTR MessageText)
VOID NoUiUnInitialize(VOID)
VOID NoUiDrawStatusText(PCSTR StatusText)
VOID NoUiDrawProgressBar(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR ProgressText)
VOID NoUiTickProgressBar(_In_ ULONG SubPercentTimes100)
VOID NoUiFadeInBackdrop(VOID)
UCHAR NoUiTextToFillStyle(PCSTR FillStyleText)
BOOLEAN NoUiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
VOID NoUiDrawText2(_In_ ULONG X, _In_ ULONG Y, _In_opt_ ULONG MaxNumChars, _In_reads_or_z_(MaxNumChars) PCSTR Text, _In_ UCHAR Attr)
VOID NoUiUpdateDateTime(VOID)
VOID NoUiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
VOID NoUiDrawCenteredText(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR TextString, _In_ UCHAR Attr)
BOOLEAN NoUiInitialize(VOID)
VOID NoUiMessageBoxCritical(_In_ PCSTR MessageText)
VOID NoUiDrawMenu(_In_ PUI_MENU_INFO MenuInfo)
VOID NoUiDrawBackdrop(VOID)
VOID NoUiSetProgressBarText(_In_ PCSTR ProgressText)
VOID NoUiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
VOID NoUiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
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)
VOID NoUiDrawProgressBarCenter(_In_ PCSTR ProgressText)
VOID NoUiDrawText(_In_ ULONG X, _In_ ULONG Y, _In_ PCSTR Text, _In_ UCHAR Attr)
UCHAR NoUiTextToColor(PCSTR ColorText)
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSTRSAFEAPI RtlStringCbCopyA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ NTSTRSAFE_PCSTR pszSrc)
PULONG MinorVersion OPTIONAL
struct _UI_PROGRESS_BAR::@178 State
struct _UI_PROGRESS_BAR::@179 Indicator
VOID(* DrawBackdrop)(VOID)
VOID(* FadeInBackdrop)(VOID)
VOID(* DrawText)(ULONG X, ULONG Y, PCSTR Text, UCHAR Attr)
VOID(* FillArea)(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
VOID(* DrawBox)(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
VOID(* DrawStatusText)(PCSTR StatusText)
UCHAR(* TextToFillStyle)(PCSTR FillStyleText)
VOID(* TickProgressBar)(_In_ ULONG SubPercentTimes100)
BOOLEAN(* EditBox)(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
VOID(* DrawCenteredText)(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, PCSTR TextString, UCHAR Attr)
VOID(* MessageBox)(PCSTR MessageText)
BOOLEAN(* Initialize)(VOID)
VOID(* DrawProgressBarCenter)(_In_ PCSTR ProgressText)
VOID(* UnInitialize)(VOID)
VOID(* DrawShadow)(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
VOID(* DrawProgressBar)(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR ProgressText)
VOID(* MessageBoxCritical)(PCSTR MessageText)
VOID(* DrawText2)(ULONG X, ULONG Y, ULONG MaxNumChars, PCSTR Text, UCHAR Attr)
VOID(* SetProgressBarText)(_In_ PCSTR ProgressText)
VOID(* UpdateDateTime)(VOID)
UCHAR(* TextToColor)(PCSTR ColorText)
BOOLEAN(* DisplayMenu)(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)
BOOLEAN UiEditBox(PCSTR MessageText, PCHAR EditTextBuffer, ULONG Length)
UCHAR UiMessageBoxFgColor
UCHAR UiTextToFillStyle(PCSTR FillStyleText)
UCHAR UiMessageBoxBgColor
UI_PROGRESS_BAR UiProgressBar
VOID UiSetProgressBarText(_In_ PCSTR ProgressText)
UCHAR UiTextToColor(PCSTR ColorText)
BOOLEAN UiDisplayMenu(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)
VOID UiDrawText(_In_ ULONG X, _In_ ULONG Y, _In_ PCSTR Text, _In_ UCHAR Attr)
BOOLEAN UiUseSpecialEffects
static VOID UiEscapeString(PCHAR String)
VOID UiDrawText2(_In_ ULONG X, _In_ ULONG Y, _In_opt_ ULONG MaxNumChars, _In_reads_or_z_(MaxNumChars) PCSTR Text, _In_ UCHAR Attr)
VOID UiShowMessageBoxesInArgv(IN ULONG Argc, IN PCHAR Argv[])
VOID UiIndicateProgress(VOID)
const PCSTR UiMonthNames[12]
VOID UiShowMessageBoxesInSection(IN ULONG_PTR SectionId)
VOID UiInfoBox(_In_ PCSTR MessageText)
VOID UiDrawShadow(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom)
VOID UiUpdateProgressBar(_In_ ULONG Percentage, _In_opt_ PCSTR ProgressText)
CHAR UiTitleBoxTitleText[260]
UCHAR UiBackdropFillStyle
VOID UiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
VOID UiMessageBoxCritical(_In_ PCSTR MessageText)
VOID UiSetProgressBarSubset(_In_ ULONG Floor, _In_ ULONG Ceiling)
VOID UiUnInitialize(PCSTR BootText)
VOID UiDrawBackdrop(VOID)
VOID UiDrawProgressBar(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR ProgressText)
VOID UiDrawProgressBarCenter(_In_ PCSTR ProgressText)
VOID UiDrawStatusText(PCSTR StatusText)
VOID UiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
UCHAR UiSelectedTextColor
UCHAR UiSelectedTextBgColor
BOOLEAN UiInitialize(BOOLEAN ShowUi)
VOID UiInitProgressBar(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR ProgressText)
VOID UiDrawCenteredText(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ PCSTR TextString, _In_ UCHAR Attr)
VOID UiUpdateDateTime(VOID)
VOID UiFadeInBackdrop(VOID)
VOID UiMessageBox(_In_ PCSTR Format,...)
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_POWER_POLICY_IDLE_SETTINGS Settings
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
void int int ULONGLONG int va_list * ap
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION _In_ ULONG _In_ SIZE_T _In_ ULONG _In_ USHORT Depth