1 /* 2 * PROJECT: ReactOS Kernel 3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later) 4 * PURPOSE: Boot Theme & Animation header 5 * COPYRIGHT: Copyright 2020 Dmitry Borisov (di.sean@protonmail.com) 6 */ 7 8 #pragma once 9 10 // 11 // Positions of areas and images 12 // 13 14 #define VID_SCROLL_AREA_LEFT 32 15 #define VID_SCROLL_AREA_TOP 80 16 #define VID_SCROLL_AREA_RIGHT 631 17 #define VID_SCROLL_AREA_BOTTOM 400 18 19 #define VID_PROGRESS_BAR_LEFT 259 20 #define VID_PROGRESS_BAR_TOP 352 21 #define VID_PROGRESS_BAR_WIDTH 121 22 #define VID_PROGRESS_BAR_HEIGHT 12 23 24 /* 16px space between shutdown logo and message */ 25 #define VID_SHUTDOWN_LOGO_LEFT 225 26 #define VID_SHUTDOWN_LOGO_TOP 114 27 #define VID_SHUTDOWN_MSG_LEFT 213 28 #define VID_SHUTDOWN_MSG_TOP 354 29 30 #define VID_SKU_AREA_LEFT 418 31 #define VID_SKU_AREA_TOP 230 32 #define VID_SKU_AREA_RIGHT 454 33 #define VID_SKU_AREA_BOTTOM 256 34 35 #define VID_SKU_SAVE_AREA_LEFT 413 36 #define VID_SKU_SAVE_AREA_TOP 237 37 38 #define VID_SKU_TEXT_LEFT 180 39 #define VID_SKU_TEXT_TOP 121 40 41 #define VID_FOOTER_BG_TOP (SCREEN_HEIGHT - 59) 42 43 44 // 45 // Boot Splash-Screen Functions 46 // 47 48 CODE_SEG("INIT") 49 BOOLEAN 50 NTAPI 51 BootAnimInitialize( 52 _In_ PLOADER_PARAMETER_BLOCK LoaderBlock, 53 _In_ ULONG Count); 54 55 VOID 56 NTAPI 57 BootAnimTickProgressBar( 58 _In_ ULONG SubPercentTimes100); 59 60 CODE_SEG("INIT") 61 VOID 62 NTAPI 63 InbvRotBarInit(VOID); 64 65 CODE_SEG("INIT") 66 VOID 67 NTAPI 68 DisplayBootBitmap( 69 _In_ BOOLEAN TextMode); 70 71 CODE_SEG("INIT") 72 VOID 73 NTAPI 74 FinalizeBootLogo(VOID); 75 76 VOID 77 NTAPI 78 DisplayShutdownBitmap(VOID); 79 80 VOID 81 NTAPI 82 DisplayShutdownText(VOID); 83