ReactOS 0.4.15-dev-7958-gcd0bb1a
logo.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VID_SCROLL_AREA_LEFT   32
 
#define VID_SCROLL_AREA_TOP   80
 
#define VID_SCROLL_AREA_RIGHT   631
 
#define VID_SCROLL_AREA_BOTTOM   400
 
#define VID_PROGRESS_BAR_LEFT   259
 
#define VID_PROGRESS_BAR_TOP   352
 
#define VID_PROGRESS_BAR_WIDTH   121
 
#define VID_PROGRESS_BAR_HEIGHT   12
 
#define VID_SHUTDOWN_LOGO_LEFT   225
 
#define VID_SHUTDOWN_LOGO_TOP   114
 
#define VID_SHUTDOWN_MSG_LEFT   213
 
#define VID_SHUTDOWN_MSG_TOP   354
 
#define VID_SKU_AREA_LEFT   418
 
#define VID_SKU_AREA_TOP   230
 
#define VID_SKU_AREA_RIGHT   454
 
#define VID_SKU_AREA_BOTTOM   256
 
#define VID_SKU_SAVE_AREA_LEFT   413
 
#define VID_SKU_SAVE_AREA_TOP   237
 
#define VID_SKU_TEXT_LEFT   180
 
#define VID_SKU_TEXT_TOP   121
 
#define VID_FOOTER_BG_TOP   (SCREEN_HEIGHT - 59)
 

Functions

BOOLEAN NTAPI BootAnimInitialize (_In_ PLOADER_PARAMETER_BLOCK LoaderBlock, _In_ ULONG Count)
 
VOID NTAPI BootAnimTickProgressBar (_In_ ULONG SubPercentTimes100)
 Ticks the progress bar. Used by InbvUpdateProgressBar() and related.
 
VOID NTAPI InbvRotBarInit (VOID)
 
VOID NTAPI DisplayBootBitmap (_In_ BOOLEAN TextMode)
 
VOID NTAPI FinalizeBootLogo (VOID)
 
VOID NTAPI DisplayShutdownBitmap (VOID)
 
VOID NTAPI DisplayShutdownText (VOID)
 

Macro Definition Documentation

◆ VID_FOOTER_BG_TOP

#define VID_FOOTER_BG_TOP   (SCREEN_HEIGHT - 59)

Definition at line 41 of file logo.h.

◆ VID_PROGRESS_BAR_HEIGHT

#define VID_PROGRESS_BAR_HEIGHT   12

Definition at line 22 of file logo.h.

◆ VID_PROGRESS_BAR_LEFT

#define VID_PROGRESS_BAR_LEFT   259

Definition at line 19 of file logo.h.

◆ VID_PROGRESS_BAR_TOP

#define VID_PROGRESS_BAR_TOP   352

Definition at line 20 of file logo.h.

◆ VID_PROGRESS_BAR_WIDTH

#define VID_PROGRESS_BAR_WIDTH   121

Definition at line 21 of file logo.h.

◆ VID_SCROLL_AREA_BOTTOM

#define VID_SCROLL_AREA_BOTTOM   400

Definition at line 17 of file logo.h.

◆ VID_SCROLL_AREA_LEFT

#define VID_SCROLL_AREA_LEFT   32

Definition at line 14 of file logo.h.

◆ VID_SCROLL_AREA_RIGHT

#define VID_SCROLL_AREA_RIGHT   631

Definition at line 16 of file logo.h.

◆ VID_SCROLL_AREA_TOP

#define VID_SCROLL_AREA_TOP   80

Definition at line 15 of file logo.h.

◆ VID_SHUTDOWN_LOGO_LEFT

#define VID_SHUTDOWN_LOGO_LEFT   225

Definition at line 25 of file logo.h.

◆ VID_SHUTDOWN_LOGO_TOP

#define VID_SHUTDOWN_LOGO_TOP   114

Definition at line 26 of file logo.h.

◆ VID_SHUTDOWN_MSG_LEFT

#define VID_SHUTDOWN_MSG_LEFT   213

Definition at line 27 of file logo.h.

◆ VID_SHUTDOWN_MSG_TOP

#define VID_SHUTDOWN_MSG_TOP   354

Definition at line 28 of file logo.h.

◆ VID_SKU_AREA_BOTTOM

#define VID_SKU_AREA_BOTTOM   256

Definition at line 33 of file logo.h.

◆ VID_SKU_AREA_LEFT

#define VID_SKU_AREA_LEFT   418

Definition at line 30 of file logo.h.

◆ VID_SKU_AREA_RIGHT

#define VID_SKU_AREA_RIGHT   454

Definition at line 32 of file logo.h.

◆ VID_SKU_AREA_TOP

#define VID_SKU_AREA_TOP   230

Definition at line 31 of file logo.h.

◆ VID_SKU_SAVE_AREA_LEFT

#define VID_SKU_SAVE_AREA_LEFT   413

Definition at line 35 of file logo.h.

◆ VID_SKU_SAVE_AREA_TOP

#define VID_SKU_SAVE_AREA_TOP   237

Definition at line 36 of file logo.h.

◆ VID_SKU_TEXT_LEFT

#define VID_SKU_TEXT_LEFT   180

Definition at line 38 of file logo.h.

◆ VID_SKU_TEXT_TOP

#define VID_SKU_TEXT_TOP   121

Definition at line 39 of file logo.h.

Function Documentation

◆ BootAnimInitialize()

BOOLEAN NTAPI BootAnimInitialize ( _In_ PLOADER_PARAMETER_BLOCK  LoaderBlock,
_In_ ULONG  Count 
)

Definition at line 281 of file bootanim.c.

284{
285#if 0
286 ULONG i;
287
288 /* Quit if we're already installed */
289 if (InbvBootDriverInstalled) return TRUE;
290
291 /* Find bitmap resources in the kernel */
293 for (i = 1; i <= ResourceCount; i++)
294 {
295 /* Do the lookup */
296 ResourceList[i] = FindBitmapResource(LoaderBlock, i);
297 }
298
299 /* Set the progress bar ranges */
301#endif
302
303 /* Return install state */
304 return TRUE;
305}
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
#define TRUE
Definition: types.h:120
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
Definition: glfuncs.h:248
BOOLEAN InbvBootDriverInstalled
Definition: inbv.c:39
VOID NTAPI InbvSetProgressBarSubset(_In_ ULONG Floor, _In_ ULONG Ceiling)
Specifies a progress percentage sub-range. Further calls to InbvIndicateProgress() or InbvUpdateProgr...
Definition: inbv.c:664
static ULONG ResourceCount
Definition: inbv.c:50
static PVOID FindBitmapResource(_In_ PLOADER_PARAMETER_BLOCK LoaderBlock, _In_ ULONG ResourceId)
Definition: inbv.c:97
#define min(a, b)
Definition: monoChain.cc:55
int Count
Definition: noreturn.cpp:7
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
Definition: wdfresource.h:309

◆ BootAnimTickProgressBar()

VOID NTAPI BootAnimTickProgressBar ( _In_ ULONG  SubPercentTimes100)

Ticks the progress bar. Used by InbvUpdateProgressBar() and related.

Parameters
[in]SubPercentTimes100The progress percentage, scaled up by 100.
Returns
None.

Definition at line 318 of file bootanim.c.

320{
321 ULONG FillCount;
322
323 /* Make sure the progress bar is enabled, that we own and are installed */
327
328 /* Compute fill count */
329 FillCount = VID_PROGRESS_BAR_WIDTH * SubPercentTimes100 / (100 * 100);
330
331 /* Acquire the lock */
333
334 /* Fill the progress bar */
337 ProgressBarLeft + FillCount,
340
341 /* Release the lock */
343}
VOID NTAPI VidSolidColorFill(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ UCHAR Color)
Definition: bootvid.c:261
ULONG ProgressBarTop
Definition: bootanim.c:59
ULONG ProgressBarLeft
Definition: inbv.c:45
BOOLEAN ShowProgressBar
Definition: inbv.c:46
INBV_DISPLAY_STATE NTAPI InbvGetDisplayState(VOID)
Definition: inbv.c:324
VOID NTAPI InbvAcquireLock(VOID)
Definition: inbv.c:220
VOID NTAPI InbvReleaseLock(VOID)
Definition: inbv.c:242
@ INBV_DISPLAY_STATE_OWNED
Definition: inbvtypes.h:33
#define VID_PROGRESS_BAR_WIDTH
Definition: logo.h:21
#define VID_PROGRESS_BAR_HEIGHT
Definition: logo.h:22
#define ASSERT(a)
Definition: mode.c:44
#define BV_COLOR_WHITE
Definition: display.h:30

Referenced by InbvUpdateProgressBar().

◆ DisplayBootBitmap()

VOID NTAPI DisplayBootBitmap ( _In_ BOOLEAN  TextMode)

Definition at line 507 of file bootanim.c.

509{
510 PVOID BootCopy = NULL, BootProgress = NULL, BootLogo = NULL, Header = NULL, Footer = NULL;
511
512#ifdef INBV_ROTBAR_IMPLEMENTED
514 PVOID Bar = NULL, LineBmp = NULL;
515 ROT_BAR_TYPE TempRotBarSelection = RB_UNSPECIFIED;
517 HANDLE ThreadHandle = NULL;
518#endif
519
520#ifdef REACTOS_SKUS
521 PVOID Text = NULL;
522#endif
523
524#ifdef INBV_ROTBAR_IMPLEMENTED
525 /* Check if the animation thread has already been created */
527 {
528 /* Yes, just reset the progress bar but keep the thread alive */
532 }
533#endif
534
536
537 /* Check if this is text mode */
538 if (TextMode)
539 {
540 /*
541 * Make the kernel resource section temporarily writable,
542 * as we are going to change the bitmaps' palette in place.
543 */
545
546 /* Check the type of the OS: workstation or server */
547 if (SharedUserData->NtProductType == NtProductWinNt)
548 {
549 /* Workstation; set colors */
553
554 /* Get resources */
557 }
558 else
559 {
560 /* Server; set colors */
564
565 /* Get resources */
568 }
569
570 /* Set the scrolling region */
573
574 /* Make sure we have resources */
575 if (Header && Footer)
576 {
577 /* BitBlt them on the screen */
578 BitBltAligned(Footer,
579 TRUE,
582 0, 0, 0, 59);
584 FALSE,
587 0, 0, 0, 0);
588 }
589
590 /* Restore the kernel resource section protection to be read-only */
592 }
593 else
594 {
595#ifdef REACTOS_FANCY_BOOT
596 /* Decide whether this is a good time to change our logo ;^) */
597 BOOLEAN IsXmas = IsXmasTime();
598#endif
599
600 /* Is the boot driver installed? */
601 if (!InbvBootDriverInstalled) return;
602
603 /*
604 * Make the kernel resource section temporarily writable,
605 * as we are going to change the bitmaps' palette in place.
606 */
608
609 /* Load boot screen logo */
612
613#ifdef REACTOS_SKUS
614 Text = NULL;
615 if (SharedUserData->NtProductType == NtProductWinNt)
616 {
617#ifdef INBV_ROTBAR_IMPLEMENTED
618 /* Workstation product, use appropriate status bar color */
620#endif
621 }
622 else
623 {
624 /* Display correct branding based on server suite */
626 {
627 /* Storage Server Edition */
629 }
631 {
632 /* Compute Cluster Edition */
634 }
635 else
636 {
637 /* Normal edition */
640 }
641
642#ifdef INBV_ROTBAR_IMPLEMENTED
643 /* Server product, use appropriate status bar color */
645#endif
646 }
647#else // REACTOS_SKUS
648#ifdef INBV_ROTBAR_IMPLEMENTED
649 /* Use default status bar */
651#endif
652#endif // REACTOS_SKUS
653
654 /* Make sure we have a logo */
655 if (BootLogo)
656 {
657 /* Save the main image palette for implementing the fade-in effect */
658 PBITMAPINFOHEADER BitmapInfoHeader = BootLogo;
659 LPRGBQUAD Palette = (LPRGBQUAD)((PUCHAR)BootLogo + BitmapInfoHeader->biSize);
660 RtlCopyMemory(MainPalette, Palette, sizeof(MainPalette));
661
662 /* Draw the logo at the center of the screen */
664 TRUE,
667 0, 0, 0, 34);
668
669#ifdef INBV_ROTBAR_IMPLEMENTED
670 /* Choose progress bar */
671 TempRotBarSelection = ROT_BAR_DEFAULT_MODE;
672#endif
673
674 /* Set progress bar coordinates and display it */
677
678#ifdef REACTOS_SKUS
679 /* Check for non-workstation products */
680 if (SharedUserData->NtProductType != NtProductWinNt)
681 {
682 /* Overwrite part of the logo for a server product */
684 VID_SKU_SAVE_AREA_TOP, 7, 7, 8);
688 VID_SKU_SAVE_AREA_TOP, 7, 7, 8);
689
690 /* In setup mode, you haven't selected a SKU yet */
692 }
693#endif // REACTOS_SKUS
694 }
695
696 /* Load and draw progress bar bitmap */
698 BitBltAligned(BootProgress,
699 TRUE,
702 0, 118, 0, 0);
703
704 /* Load and draw copyright text bitmap */
706 BitBltAligned(BootCopy,
707 TRUE,
710 22, 0, 0, 20);
711
712#ifdef REACTOS_SKUS
713 /* Draw the SKU text if it exits */
714 if (Text)
716#endif
717
718#ifdef INBV_ROTBAR_IMPLEMENTED
719 if ((TempRotBarSelection == RB_SQUARE_CELLS) && Bar)
720 {
721 /* Save previous screen pixels to buffer */
722 InbvScreenToBufferBlt(Buffer, 0, 0, 22, 9, 24);
723 /* Draw the progress bar bit */
724 BitBltPalette(Bar, TRUE, 0, 0);
725 /* Store it in global buffer */
726 InbvScreenToBufferBlt(RotBarBuffer, 0, 0, 22, 9, 24);
727 /* Restore screen pixels */
728 InbvBufferToScreenBlt(Buffer, 0, 0, 22, 9, 24);
729 }
730
731 /*
732 * Add a rotating bottom horizontal bar when using a progress bar,
733 * to show that ReactOS can be still alive when the bar does not
734 * appear to progress.
735 */
736 if (TempRotBarSelection == RB_PROGRESS_BAR)
737 {
739 if (LineBmp)
740 {
741 /* Draw the line and store it in global buffer */
742 BitBltPalette(LineBmp, TRUE, 0, SCREEN_HEIGHT-6);
744 }
745 }
746 else
747 {
748 /* Hide the simple progress bar if not used */
750 }
751#endif // INBV_ROTBAR_IMPLEMENTED
752
753 /* Restore the kernel resource section protection to be read-only */
755
756 /* Display the boot logo and fade it in */
758
759#ifdef INBV_ROTBAR_IMPLEMENTED
760 if (!RotBarThreadActive && TempRotBarSelection != RB_UNSPECIFIED)
761 {
762 /* Start the animation thread */
763 Status = PsCreateSystemThread(&ThreadHandle,
764 0,
765 NULL,
766 NULL,
767 NULL,
769 NULL);
770 if (NT_SUCCESS(Status))
771 {
772 /* The thread has started, close the handle as we don't need it */
774 ObCloseHandle(ThreadHandle, KernelMode);
775 }
776 }
777#endif // INBV_ROTBAR_IMPLEMENTED
778
779 /* Set filter which will draw text display if needed */
781 }
782
783#ifdef INBV_ROTBAR_IMPLEMENTED
784 /* Do we have the animation thread? */
786 {
787 /* We do, initialize the progress bar */
789 RotBarSelection = TempRotBarSelection;
792 }
793#endif
794}
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
static VOID BitBltAligned(IN PVOID Image, IN BOOLEAN NoPalette, IN BBLT_HORZ_ALIGNMENT HorizontalAlignment, IN BBLT_VERT_ALIGNMENT VerticalAlignment, IN ULONG MarginLeft, IN ULONG MarginTop, IN ULONG MarginRight, IN ULONG MarginBottom)
Definition: bootanim.c:219
static RGBQUAD MainPalette[16]
Definition: bootanim.c:128
static UCHAR RotBarBuffer[24 *9]
Definition: bootanim.c:93
#define MM_READWRITE
Definition: bootanim.c:19
static VOID NTAPI InbvRotationThread(_In_ PVOID Context)
Definition: bootanim.c:349
#define MM_READONLY
Definition: bootanim.c:18
#define SELECT_LOGO_ID(LogoIdDefault, Cond, LogoIdAlt)
Definition: bootanim.c:500
static ROT_BAR_TYPE RotBarSelection
Definition: bootanim.c:91
enum _ROT_BAR_TYPE ROT_BAR_TYPE
@ AL_VERTICAL_TOP
Definition: bootanim.c:42
@ AL_VERTICAL_BOTTOM
Definition: bootanim.c:44
@ AL_VERTICAL_CENTER
Definition: bootanim.c:43
struct tagRGBQUAD * LPRGBQUAD
VOID NTAPI InbvRotBarInit(VOID)
Definition: bootanim.c:443
#define ROT_BAR_DEFAULT_MODE
Definition: bootanim.c:66
static UCHAR RotLineBuffer[SCREEN_WIDTH *6]
Definition: bootanim.c:94
static VOID BootLogoFadeIn(VOID)
Definition: bootanim.c:134
static VOID NTAPI DisplayFilter(_Inout_ PCHAR *String)
Definition: bootanim.c:454
@ AL_HORIZONTAL_LEFT
Definition: bootanim.c:49
@ AL_HORIZONTAL_CENTER
Definition: bootanim.c:50
static VOID BitBltPalette(IN PVOID Image, IN BOOLEAN NoPalette, IN ULONG X, IN ULONG Y)
Definition: bootanim.c:187
@ RB_PROGRESS_BAR
Definition: bootanim.c:87
@ RB_SQUARE_CELLS
Definition: bootanim.c:86
@ RB_UNSPECIFIED
Definition: bootanim.c:85
static BOOLEAN RotBarThreadActive
Definition: bootanim.c:90
Definition: bufpool.h:45
Definition: Header.h:9
char * Text
Definition: combotst.c:136
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
@ NtProductWinNt
Definition: shellpath.c:64
Status
Definition: gdiplustypes.h:25
VOID NTAPI InbvInstallDisplayStringFilter(_In_ INBV_DISPLAY_STRING_FILTER DisplayFilter)
Definition: inbv.c:387
VOID NTAPI InbvBufferToScreenBlt(_In_ PUCHAR Buffer, _In_ ULONG X, _In_ ULONG Y, _In_ ULONG Width, _In_ ULONG Height, _In_ ULONG Delta)
Definition: inbv.c:553
PUCHAR NTAPI InbvGetResourceAddress(_In_ ULONG ResourceNumber)
Definition: inbv.c:163
VOID NTAPI InbvSetTextColor(_In_ ULONG Color)
Definition: inbv.c:460
VOID NTAPI InbvSetProgressBarCoordinates(_In_ ULONG Left, _In_ ULONG Top)
Sets the screen coordinates of the loading progress bar and enable it.
Definition: inbv.c:601
VOID NTAPI InbvScreenToBufferBlt(_Out_ PUCHAR Buffer, _In_ ULONG X, _In_ ULONG Y, _In_ ULONG Width, _In_ ULONG Height, _In_ ULONG Delta)
Definition: inbv.c:572
VOID NTAPI InbvSetScrollRegion(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom)
Definition: inbv.c:448
VOID NTAPI InbvSolidColorFill(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Right, _In_ ULONG Bottom, _In_ ULONG Color)
Definition: inbv.c:485
#define VID_SKU_SAVE_AREA_LEFT
Definition: logo.h:35
#define VID_SKU_SAVE_AREA_TOP
Definition: logo.h:36
#define VID_SKU_TEXT_TOP
Definition: logo.h:39
#define VID_PROGRESS_BAR_LEFT
Definition: logo.h:19
#define VID_SKU_AREA_RIGHT
Definition: logo.h:32
#define VID_SCROLL_AREA_BOTTOM
Definition: logo.h:17
#define VID_SCROLL_AREA_RIGHT
Definition: logo.h:16
#define VID_SKU_AREA_BOTTOM
Definition: logo.h:33
#define VID_SKU_AREA_TOP
Definition: logo.h:31
#define VID_SCROLL_AREA_TOP
Definition: logo.h:15
#define VID_SKU_AREA_LEFT
Definition: logo.h:30
#define VID_SCROLL_AREA_LEFT
Definition: logo.h:14
#define VID_PROGRESS_BAR_TOP
Definition: logo.h:20
#define VID_SKU_TEXT_LEFT
Definition: logo.h:38
#define VID_FOOTER_BG_TOP
Definition: logo.h:41
void Bar(void)
Definition: terminate.cpp:70
#define KernelMode
Definition: asm.h:34
BOOLEAN ExpInTextModeSetup
Definition: init.c:69
BOOLEAN NTAPI ExVerifySuite(SUITE_TYPE SuiteType)
Definition: sysinfo.c:377
BOOLEAN NTAPI MmChangeKernelResourceSectionProtection(IN ULONG_PTR ProtectionMask)
Definition: sysldr.c:2331
#define IDB_BAR_DEFAULT
Definition: resource.h:22
#define IDB_WKSTA_FOOTER
Definition: resource.h:26
#define IDB_LOGO_XMAS
Definition: resource.h:50
#define IDB_SERVER_FOOTER
Definition: resource.h:33
#define IDB_SERVER_LOGO
Definition: resource.h:31
#define IDB_ROTATING_LINE
Definition: resource.h:51
#define IDB_LOGO_DEFAULT
Definition: resource.h:23
#define IDB_SERVER_HEADER
Definition: resource.h:32
#define IDB_WKSTA_HEADER
Definition: resource.h:25
#define IDB_BAR_WKSTA
Definition: resource.h:28
#define IDB_PROGRESS_BAR
Definition: resource.h:52
#define IDB_COPYRIGHT
Definition: resource.h:53
#define IDB_CLUSTER_SERVER
Definition: resource.h:46
#define IDB_STORAGE_SERVER
Definition: resource.h:45
NTSTATUS NTAPI PsCreateSystemThread(OUT PHANDLE ThreadHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, IN HANDLE ProcessHandle, IN PCLIENT_ID ClientId, IN PKSTART_ROUTINE StartRoutine, IN PVOID StartContext)
Definition: thread.c:602
NTSTATUS NTAPI ObCloseHandle(IN HANDLE Handle, IN KPROCESSOR_MODE AccessMode)
Definition: obhandle.c:3379
#define SCREEN_WIDTH
Definition: pc98video.c:27
#define SCREEN_HEIGHT
Definition: pc98video.c:28
#define BV_COLOR_LIGHT_CYAN
Definition: display.h:29
#define BV_COLOR_BLACK
Definition: display.h:15
#define BV_COLOR_RED
Definition: display.h:16
#define BV_COLOR_CYAN
Definition: display.h:21
#define BV_COLOR_DARK_GRAY
Definition: display.h:22
#define SharedUserData
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263
unsigned char * PUCHAR
Definition: typedefs.h:53
BOOLEAN BootLogo
Definition: winldr.c:35
@ ComputeServer
Definition: extypes.h:34
@ StorageServer
Definition: extypes.h:33
unsigned char UCHAR
Definition: xmlstorage.h:181

Referenced by DisplayFilter(), and Phase1InitializationDiscard().

◆ DisplayShutdownBitmap()

VOID NTAPI DisplayShutdownBitmap ( VOID  )

Definition at line 924 of file bootanim.c.

925{
926 PUCHAR Logo1, Logo2;
927#ifdef REACTOS_FANCY_BOOT
928 /* Decide whether this is a good time to change our logo ;^) */
929 BOOLEAN IsXmas = IsXmasTime();
930#endif
931
932#if 0
933 /* Is the boot driver installed? */
935 return;
936#endif
937
938 /* Yes we do, cleanup for shutdown screen */
939 // InbvResetDisplay();
944
945 /* Display shutdown logo and message */
949
950 if (Logo1 && Logo2)
951 {
953#ifndef REACTOS_FANCY_BOOT
955#else
956 /* Draw the logo at the center of the screen */
957 BitBltAligned(Logo2,
958 FALSE,
961 0, 0, 0, SCREEN_HEIGHT - VID_SHUTDOWN_MSG_TOP + 16);
962
963 /* We've got a logo shown, change the scroll region to get
964 * the rest of the text down below the shutdown message */
966 VID_SHUTDOWN_MSG_TOP + ((PBITMAPINFOHEADER)Logo1)->biHeight + 32,
967 SCREEN_WIDTH - 1,
968 SCREEN_HEIGHT - 1);
969#endif
970 }
971
972#ifdef REACTOS_FANCY_BOOT
973 InbvDisplayString("\r\"");
974 InbvDisplayString(GetFamousQuote());
975 InbvDisplayString("\"");
976#endif
977}
BOOLEAN NTAPI InbvEnableDisplayString(_In_ BOOLEAN Enable)
Definition: inbv.c:370
BOOLEAN NTAPI InbvDisplayString(_In_ PCHAR String)
Definition: inbv.c:332
VOID NTAPI InbvBitBlt(_In_ PUCHAR Buffer, _In_ ULONG X, _In_ ULONG Y)
Definition: inbv.c:531
#define VID_SHUTDOWN_MSG_TOP
Definition: logo.h:28
#define VID_SHUTDOWN_LOGO_TOP
Definition: logo.h:26
#define VID_SHUTDOWN_LOGO_LEFT
Definition: logo.h:25
#define VID_SHUTDOWN_MSG_LEFT
Definition: logo.h:27
#define IDB_SHUTDOWN_MSG
Definition: resource.h:21

Referenced by PopShutdownHandler().

◆ DisplayShutdownText()

VOID NTAPI DisplayShutdownText ( VOID  )

Definition at line 981 of file bootanim.c.

982{
983 ULONG i;
984
985 for (i = 0; i < 25; ++i) InbvDisplayString("\r\n");
987 InbvDisplayString("The system may be powered off now.\r\n");
988
989#ifdef REACTOS_FANCY_BOOT
990 for (i = 0; i < 3; ++i) InbvDisplayString("\r\n");
991 InbvDisplayString("\r\"");
992 InbvDisplayString(GetFamousQuote());
993 InbvDisplayString("\"");
994#endif
995}

Referenced by PopShutdownHandler().

◆ FinalizeBootLogo()

VOID NTAPI FinalizeBootLogo ( VOID  )

Definition at line 799 of file bootanim.c.

800{
801 /* Acquire lock and check the display state */
804 {
805 /* Clear the screen */
807 }
808
809 /* Reset progress bar and lock */
810#ifdef INBV_ROTBAR_IMPLEMENTED
813#endif
815}
static ROT_BAR_STATUS PltRotBarStatus
Definition: bootanim.c:92
@ RBS_STOP_ANIMATE
Definition: bootanim.c:79

Referenced by Phase1InitializationDiscard().

◆ InbvRotBarInit()

VOID NTAPI InbvRotBarInit ( VOID  )

Definition at line 443 of file bootanim.c.

444{
446 /* Perform other initialization if needed */
447}
@ RBS_FADEIN
Definition: bootanim.c:77

Referenced by DisplayBootBitmap().