44 ULONG LastClockSecond;
45 ULONG CurrentClockSecond;
65 if (KeyPressFilter(KeyPress, DefaultMenuItem,
Context))
76 if (SelectedMenuItem) *SelectedMenuItem = DefaultMenuItem;
111 if (CurrentClockSecond != LastClockSecond)
114 LastClockSecond = CurrentClockSecond;
236 CHAR MenuLineText[80];
239 if (
MenuInfo->MenuTimeRemaining >= 0)
382 CHAR MenuLineText[80];
436 SpaceLeft = (SpaceTotal / 2) + 1;
437 SpaceRight = (SpaceTotal - SpaceLeft) + 1;
450 MenuInfo->MenuItemList[MenuItemNumber],
453 if (MenuItemNumber ==
MenuInfo->SelectedMenuItem)
484 if (
MenuInfo->MenuTimeRemaining != -1)
500 if (KeyPressFilter &&
513 Selected =
MenuInfo->SelectedMenuItem;
517 if ((KeyEvent ==
KEY_UP) && (Selected > 0))
525 if ((Selected > 0) &&
531 else if ( ((KeyEvent ==
KEY_UP) && (Selected == 0)) ||
546 if ((Selected <
Count) &&
ACPI_SIZE strlen(const char *String)
char * strchr(const char *String, int ch)
TIMEINFO * ArcGetTime(VOID)
VOID DisplayBootTimeOptions(VOID)
VOID VideoCopyOffScreenBufferToVRAM(VOID)
VOID UiDrawText(_In_ ULONG X, _In_ ULONG Y, _In_ PCSTR Text, _In_ UCHAR Attr)
#define ATTR(cFore, cBack)
BOOLEAN(* UiMenuKeyPressFilterCallback)(IN ULONG KeyPress, IN ULONG SelectedMenuItem, IN PVOID Context OPTIONAL)
UCHAR UiBackdropFillStyle
VOID UiDrawBackdrop(VOID)
VOID UiDrawBox(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOLEAN Fill, BOOLEAN Shadow, UCHAR Attr)
UCHAR UiSelectedTextColor
UCHAR UiSelectedTextBgColor
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
#define RtlFillMemory(Dest, Length, Fill)
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSTRSAFEVAPI RtlStringCbPrintfA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ _Printf_format_string_ NTSTRSAFE_PCSTR pszFormat,...)
PULONG MinorVersion OPTIONAL
VOID(* DrawMenu)(PUI_MENU_INFO MenuInfo)
VOID(* DrawStatusText)(PCSTR StatusText)
#define TUI_TITLE_BOX_CHAR_HEIGHT
VOID TuiFillArea(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, CHAR FillChar, UCHAR Attr)
VOID TuiDrawBoxBottomLine(_In_ ULONG Left, _In_ ULONG Bottom, _In_ ULONG Right, _In_ UCHAR VertStyle, _In_ UCHAR HorzStyle, _In_ UCHAR Attr)
VOID TuiUpdateDateTime(VOID)
#define RtlZeroMemory(Destination, Length)
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
_In_ HFONT _Out_ PUINT Height