ReactOS 0.4.16-dev-747-gbc52d5f
bootmgr.c
Go to the documentation of this file.
1/*
2 * FreeLoader
3 * Copyright (C) 1998-2003 Brian Palmer <brianp@sginet.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20/* INCLUDES *******************************************************************/
21
22#include <freeldr.h>
23
24#include <debug.h>
26
27/* GLOBALS ********************************************************************/
28
29typedef VOID
31 _Inout_ OperatingSystemItem* OperatingSystem);
32
33static VOID
35 _Inout_ OperatingSystemItem* OperatingSystem)
36{
37 EditCustomBootReactOS(OperatingSystem, TRUE);
38}
39
40static VOID
42 _Inout_ OperatingSystemItem* OperatingSystem)
43{
44 EditCustomBootReactOS(OperatingSystem, FALSE);
45}
46
47typedef struct _OS_LOADING_METHOD
48{
53
54static const OS_LOADING_METHOD
56{
58
59#if defined(_M_IX86) || defined(_M_AMD64)
60#ifndef UEFIBOOT
61 {"BootSector", EditCustomBootSector, LoadAndBootSector},
62 {"Linux" , EditCustomBootLinux , LoadAndBootLinux },
63#endif
64#endif
65#ifdef _M_IX86
66 {"WindowsNT40" , EditCustomBootNTOS, LoadAndBootWindows},
67#endif
69 {"Windows2003" , EditCustomBootNTOS, LoadAndBootWindows},
70 {"WindowsVista", EditCustomBootNTOS, LoadAndBootWindows},
71};
72
73/* FUNCTIONS ******************************************************************/
74
75#ifdef HAS_DEPRECATED_OPTIONS
79VOID
81 _In_ PCSTR MsgFmt,
82 ...)
83{
84 va_list ap;
85 CHAR msgString[300];
86
87 /* If the user didn't cancel the timeout, don't display the warning */
88 if (GetBootMgrInfo()->TimeOut >= 0)
89 return;
90
91 va_start(ap, MsgFmt);
92 RtlStringCbVPrintfA(msgString, sizeof(msgString),
93 MsgFmt, ap);
94 va_end(ap);
95
97 " WARNING!\n"
98 "\n"
99 "%s\n"
100 "\n"
101 "Should you need assistance, please contact ReactOS developers\n"
102 "on the official ReactOS Mattermost server <chat.reactos.org>.",
103 msgString);
104}
105#endif // HAS_DEPRECATED_OPTIONS
106
107static const OS_LOADING_METHOD*
109 _In_ ULONG_PTR SectionId)
110{
111 ULONG i;
112 CHAR BootType[80];
113
114 /* The operating system section has been opened by InitOperatingSystemList() */
115 ASSERT(SectionId != 0);
116
117 /* Try to read the boot type. We must have the value (it
118 * has been possibly added by InitOperatingSystemList()) */
119 *BootType = ANSI_NULL;
120 IniReadSettingByName(SectionId, "BootType", BootType, sizeof(BootType));
121 ASSERT(*BootType);
122
124#ifdef HAS_DEPRECATED_OPTIONS
125 if ((_stricmp(BootType, "Drive") == 0) ||
126 (_stricmp(BootType, "Partition") == 0))
127 {
128 /* Display the deprecation warning message */
130 "The '%s' configuration you are booting into is no longer\n"
131 "supported and will be removed in future FreeLoader versions.\n"
132 "\n"
133 "Please edit FREELDR.INI to replace all occurrences of\n"
134 "\n"
135 " %*s to:\n"
136 " BootType=%s ------> BootType=BootSector",
137 BootType,
138 strlen(BootType), "", // Indentation
139 BootType);
140
141 /* Type fixup */
142 strcpy(BootType, "BootSector");
143 if (!IniModifySettingValue(SectionId, "BootType", BootType))
144 {
145 ERR("Could not fixup the BootType entry for OS '%s', ignoring.\n",
146 ((PINI_SECTION)SectionId)->SectionName);
147 }
148 }
149#endif // HAS_DEPRECATED_OPTIONS
151
152 /* Find the suitable OS loading method */
153 for (i = 0; ; ++i)
154 {
156 {
157 UiMessageBox("Unknown boot entry type '%s'", BootType);
158 return NULL;
159 }
160 if (_stricmp(BootType, OSLoadingMethods[i].BootType) == 0)
161 return &OSLoadingMethods[i];
162 }
164}
165
173static PCHAR*
175 _In_ PCSTR LoadIdentifier,
176 _In_ ULONG_PTR SectionId,
177 _Out_ PULONG pArgc)
178{
179 SIZE_T Size;
180 ULONG Count;
181 ULONG i;
182 ULONG Argc;
183 PCHAR* Argv;
184 PCHAR* Args;
185 PCHAR SettingName, SettingValue;
186 PCCHAR BootPath = FrLdrGetBootPath();
187
188 *pArgc = 0;
189
190 ASSERT(SectionId != 0);
191
192 /* Normalize LoadIdentifier to make subsequent tests simpler */
193 if (LoadIdentifier && !*LoadIdentifier)
194 LoadIdentifier = NULL;
195
196 /* Count the number of operating systems in the section */
197 Count = IniGetNumSectionItems(SectionId);
198
199 /*
200 * The argument vector contains the program name, the SystemPartition,
201 * the LoadIdentifier (optional), and the items in the OS section.
202 * For POSIX compliance, a terminating NULL pointer (not counted in Argc)
203 * is appended, such that Argv[Argc] == NULL.
204 */
205 Argc = 2 + (LoadIdentifier ? 1 : 0) + Count;
206
207 /* Calculate the total size needed for the string buffer of the argument vector */
208 Size = 0;
209 /* i == 0: Program name */
210 // TODO: Provide one in the future...
211 /* i == 1: SystemPartition : from where FreeLdr has been started */
212 Size += (strlen("SystemPartition=") + strlen(BootPath) + 1) * sizeof(CHAR);
213 /* i == 2: LoadIdentifier : ASCII string that may be used
214 * to associate an identifier with a set of load parameters */
215 if (LoadIdentifier)
216 {
217 Size += (strlen("LoadIdentifier=") + strlen(LoadIdentifier) + 1) * sizeof(CHAR);
218 }
219 /* The section items */
220 for (i = 0; i < Count; ++i)
221 {
222 Size += IniGetSectionSettingNameSize(SectionId, i); // Counts also the NULL-terminator, that we transform into the '=' sign separator.
223 Size += IniGetSectionSettingValueSize(SectionId, i); // Counts also the NULL-terminator.
224 }
225 Size += sizeof(ANSI_NULL); // Final NULL-terminator.
226
227 /* Allocate memory to hold the argument vector: pointers and string buffer */
228 Argv = FrLdrHeapAlloc((Argc + 1) * sizeof(PCHAR) + Size, TAG_STRING);
229 if (!Argv)
230 return NULL;
231
232 /* Initialize the argument vector: loop through the section and copy the Key=Value options */
233 SettingName = (PCHAR)((ULONG_PTR)Argv + ((Argc + 1) * sizeof(PCHAR)));
234 Args = Argv;
235 /* i == 0: Program name */
236 *Args++ = NULL; // TODO: Provide one in the future...
237 /* i == 1: SystemPartition */
238 {
239 strcpy(SettingName, "SystemPartition=");
240 strcat(SettingName, BootPath);
241
242 *Args++ = SettingName;
243 SettingName += (strlen(SettingName) + 1);
244 }
245 /* i == 2: LoadIdentifier */
246 if (LoadIdentifier)
247 {
248 strcpy(SettingName, "LoadIdentifier=");
249 strcat(SettingName, LoadIdentifier);
250
251 *Args++ = SettingName;
252 SettingName += (strlen(SettingName) + 1);
253 }
254 /* The section items */
255 for (i = 0; i < Count; ++i)
256 {
257 Size = IniGetSectionSettingNameSize(SectionId, i);
258 SettingValue = SettingName + Size;
259 IniReadSettingByNumber(SectionId, i,
260 SettingName, Size,
261 SettingValue, IniGetSectionSettingValueSize(SectionId, i));
262 SettingName[Size - 1] = '=';
263
264 *Args++ = SettingName;
265 SettingName += (strlen(SettingName) + 1);
266 }
267 /* Terminating NULL pointer */
268 *Args = NULL;
269
270#if DBG
271 /* Dump the argument vector for debugging */
272 for (i = 0; i < Argc; ++i)
273 {
274 TRACE("Argv[%lu]: '%s'\n", i, Argv[i]);
275 }
276#endif
277
278 *pArgc = Argc;
279 return Argv;
280}
281
282VOID
284 _In_ OperatingSystemItem* OperatingSystem)
285{
286 ULONG_PTR SectionId = OperatingSystem->SectionId;
287 const OS_LOADING_METHOD* OSLoadingMethod;
288 ULONG Argc;
289 PCHAR* Argv;
290
291 /* Find the suitable OS loader to start */
292 OSLoadingMethod = GetOSLoadingMethod(SectionId);
293 if (!OSLoadingMethod)
294 return;
295 ASSERT(OSLoadingMethod->OsLoader);
296
297 /* Build the ARC-compatible argument vector */
298 Argv = BuildArgvForOsLoader(OperatingSystem->LoadIdentifier, SectionId, &Argc);
299 if (!Argv)
300 return; // Unexpected failure.
301
302#ifdef _M_IX86
303#ifndef UEFIBOOT
304 /* Install the drive mapper according to this section drive mappings */
305 DriveMapMapDrivesInSection(SectionId);
306#endif
307#endif
308
309 /* Start the OS loader */
310 OSLoadingMethod->OsLoader(Argc, Argv, NULL);
312}
313
314#ifdef HAS_OPTION_MENU_EDIT_CMDLINE
315VOID
316EditOperatingSystemEntry(
317 _Inout_ OperatingSystemItem* OperatingSystem)
318{
319 /* Find the suitable OS entry editor and open it */
320 const OS_LOADING_METHOD* OSLoadingMethod =
321 GetOSLoadingMethod(OperatingSystem->SectionId);
322 if (OSLoadingMethod)
323 {
324 ASSERT(OSLoadingMethod->EditOsEntry);
325 OSLoadingMethod->EditOsEntry(OperatingSystem);
326 }
327}
328#endif // HAS_OPTION_MENU_EDIT_CMDLINE
329
332 IN ULONG KeyPress,
333 IN ULONG SelectedMenuItem,
335{
336 /* Any key-press cancels the global timeout */
337 GetBootMgrInfo()->TimeOut = -1;
338
339 switch (KeyPress)
340 {
341 case KEY_F8:
342 DoOptionsMenu(&((OperatingSystemItem*)Context)[SelectedMenuItem]);
344 return TRUE;
345
346#ifdef HAS_OPTION_MENU_EDIT_CMDLINE
347 case KEY_F10:
348 EditOperatingSystemEntry(&((OperatingSystemItem*)Context)[SelectedMenuItem]);
349 return TRUE;
350#endif
351
352 default:
353 /* We didn't handle the key */
354 return FALSE;
355 }
356}
357
359{
360 OperatingSystemItem* OperatingSystemList;
361 PCSTR* OperatingSystemDisplayNames;
362 ULONG OperatingSystemCount;
363 ULONG DefaultOperatingSystem;
364 ULONG SelectedOperatingSystem;
365 ULONG i;
366
367#ifdef _M_IX86
368#ifndef UEFIBOOT
369 /* Load additional SCSI driver (if any) */
371 {
372 UiMessageBoxCritical("Unable to load additional boot device drivers.");
373 }
374#endif
375#endif
376
377 /* Open FREELDR.INI and load the global FreeLoader settings */
378 if (!IniFileInitialize())
379 {
380 UiMessageBoxCritical("Error initializing .ini file.");
381 return;
382 }
384#if 0
385 if (FALSE)
386 {
387 UiMessageBoxCritical("Could not load global FreeLoader settings.");
388 return;
389 }
390#endif
391
392 /* Debugger main initialization */
394
395 /* UI main initialization */
396 if (!UiInitialize(TRUE))
397 {
398 UiMessageBoxCritical("Unable to initialize UI.");
399 return;
400 }
401
402 OperatingSystemList = InitOperatingSystemList(&OperatingSystemCount,
403 &DefaultOperatingSystem);
404 if (!OperatingSystemList)
405 {
406 UiMessageBox("Unable to read operating systems section in freeldr.ini.\nPress ENTER to reboot.");
407 goto Reboot;
408 }
409 if (OperatingSystemCount == 0)
410 {
411 UiMessageBox("There were no operating systems listed in freeldr.ini.\nPress ENTER to reboot.");
412 goto Reboot;
413 }
414
415 /* Create list of display names */
416 OperatingSystemDisplayNames = FrLdrTempAlloc(sizeof(PCSTR) * OperatingSystemCount, 'mNSO');
417 if (!OperatingSystemDisplayNames)
418 goto Reboot;
419
420 for (i = 0; i < OperatingSystemCount; i++)
421 {
422 OperatingSystemDisplayNames[i] = OperatingSystemList[i].LoadIdentifier;
423 }
424
425 /* Find all the message box settings and run them */
427
428 for (;;)
429 {
430 /* Redraw the backdrop */
432
433 /* Show the operating system list menu */
434 if (!UiDisplayMenu("Please select the operating system to start:",
435 "For troubleshooting and advanced startup options for "
436 "ReactOS, press F8.",
437 OperatingSystemDisplayNames,
438 OperatingSystemCount,
439 DefaultOperatingSystem,
440 GetBootMgrInfo()->TimeOut,
441 &SelectedOperatingSystem,
442 FALSE,
444 OperatingSystemList))
445 {
446 UiMessageBox("Press ENTER to reboot.");
447 goto Reboot;
448 }
449
450 /* Load the chosen operating system */
451 LoadOperatingSystem(&OperatingSystemList[SelectedOperatingSystem]);
452
453 GetBootMgrInfo()->TimeOut = -1;
454
455 /* If we get there, the OS loader failed. As it may have
456 * messed up the display, re-initialize the UI. */
457#ifndef _M_ARM
458 UiUnInitialize("");
459#endif
461 }
462
463Reboot:
464 UiUnInitialize("Rebooting...");
465 IniCleanup();
466 return;
467}
#define WARNING
Definition: BusLogic958.h:56
unsigned char BOOLEAN
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
char ** Args
Definition: acdebug.h:353
#define VOID
Definition: acefi.h:82
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
ARC_STATUS(__cdecl * ARC_ENTRY_POINT)(_In_ ULONG Argc, _In_ PCHAR Argv[], _In_ PCHAR Envp[])
Definition: arcsupp.h:12
void LoadSettings(void)
Definition: settings.c:53
#define ERR(fmt,...)
Definition: precomp.h:57
@ Reboot
Definition: bl.h:891
VOID EditCustomBootReactOS(IN OUT OperatingSystemItem *OperatingSystem, IN BOOLEAN IsSetup)
Definition: custom.c:485
ULONG LoadBootDeviceDriver(VOID)
Definition: scsiport.c:1635
#define DebugInit(DebugString)
Definition: debug.h:120
#define DBG_DEFAULT_CHANNEL(ch)
Definition: debug.h:106
VOID FrLdrHeapFree(PVOID MemoryPointer, ULONG Tag)
Definition: heap.c:539
PVOID FrLdrHeapAlloc(SIZE_T MemorySize, ULONG Tag)
Definition: heap.c:533
PVOID FrLdrTempAlloc(_In_ SIZE_T Size, _In_ ULONG Tag)
Definition: heap.c:545
VOID DoOptionsMenu(IN OperatingSystemItem *OperatingSystem)
Definition: options.c:92
VOID DisplayBootTimeOptions(VOID)
Definition: options.c:180
PBOOTMGRINFO GetBootMgrInfo(VOID)
Definition: settings.c:191
VOID UiShowMessageBoxesInSection(IN ULONG_PTR SectionId)
Definition: ui.c:524
VOID UiMessageBoxCritical(_In_ PCSTR MessageText)
Definition: ui.c:372
VOID UiUnInitialize(PCSTR BootText)
Definition: ui.c:224
VOID UiDrawBackdrop(VOID)
Definition: ui.c:233
BOOLEAN UiDisplayMenu(IN PCSTR MenuHeader, IN PCSTR MenuFooter OPTIONAL, 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: ui.c:605
BOOLEAN UiInitialize(BOOLEAN ShowUi)
Definition: ui.c:92
VOID UiMessageBox(_In_ PCSTR Format,...)
Definition: ui.c:359
static CCHAR DebugString[256]
Definition: settings.c:16
#define _stricmp
Definition: cat.c:22
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static VOID EditCustomBootNTOS(_Inout_ OperatingSystemItem *OperatingSystem)
Definition: bootmgr.c:41
VOID LoadOperatingSystem(_In_ OperatingSystemItem *OperatingSystem)
Definition: bootmgr.c:283
BOOLEAN MainBootMenuKeyPressFilter(IN ULONG KeyPress, IN ULONG SelectedMenuItem, IN PVOID Context OPTIONAL)
Definition: bootmgr.c:331
static PCHAR * BuildArgvForOsLoader(_In_ PCSTR LoadIdentifier, _In_ ULONG_PTR SectionId, _Out_ PULONG pArgc)
This function converts the list of Key=Value options in the given operating system section into an AR...
Definition: bootmgr.c:174
struct _OS_LOADING_METHOD * POS_LOADING_METHOD
static const OS_LOADING_METHOD * GetOSLoadingMethod(_In_ ULONG_PTR SectionId)
Definition: bootmgr.c:108
static const OS_LOADING_METHOD OSLoadingMethods[]
Definition: bootmgr.c:55
struct _OS_LOADING_METHOD OS_LOADING_METHOD
static VOID EditCustomBootReactOSSetup(_Inout_ OperatingSystemItem *OperatingSystem)
Definition: bootmgr.c:34
VOID(* EDIT_OS_ENTRY_PROC)(_Inout_ OperatingSystemItem *OperatingSystem)
Definition: bootmgr.c:30
VOID RunLoader(VOID)
Definition: bootmgr.c:358
PCCHAR FrLdrGetBootPath(VOID)
Definition: freeldr.c:196
VOID WarnDeprecated(_In_ PCSTR MsgFmt,...)
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
ARC_STATUS LoadReactOSSetup(IN ULONG Argc, IN PCHAR Argv[], IN PCHAR Envp[])
Definition: setupldr.c:475
ARC_STATUS LoadAndBootWindows(IN ULONG Argc, IN PCHAR Argv[], IN PCHAR Envp[])
Definition: winldr.c:979
ULONG IniGetSectionSettingValueSize(ULONG_PTR SectionId, ULONG SettingIndex)
Definition: inifile.c:108
ULONG IniGetNumSectionItems(ULONG_PTR SectionId)
Definition: inifile.c:60
BOOLEAN IniFileInitialize(VOID)
Definition: ini_init.c:25
BOOLEAN IniModifySettingValue(ULONG_PTR SectionId, PCSTR SettingName, PCSTR SettingValue)
Definition: inifile.c:301
ULONG IniGetSectionSettingNameSize(ULONG_PTR SectionId, ULONG SettingIndex)
Definition: inifile.c:95
BOOLEAN IniReadSettingByNumber(ULONG_PTR SectionId, ULONG SettingNumber, PCHAR SettingName, ULONG NameSize, PCHAR SettingValue, ULONG ValueSize)
Definition: inifile.c:121
BOOLEAN IniReadSettingByName(ULONG_PTR SectionId, PCSTR SettingName, PCHAR Buffer, ULONG BufferSize)
Definition: inifile.c:154
VOID IniCleanup(VOID)
Definition: inifile.c:243
#define KEY_F8
Definition: keycodes.h:58
#define KEY_F10
Definition: keycodes.h:60
#define PCHAR
Definition: match.c:90
#define ASSERT(a)
Definition: mode.c:44
#define _Inout_
Definition: no_sal2.h:162
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
int Count
Definition: noreturn.cpp:7
#define UNREACHABLE
#define ANSI_NULL
NTSTRSAFEAPI RtlStringCbVPrintfA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ _Printf_format_string_ NTSTRSAFE_PCSTR pszFormat, _In_ va_list argList)
Definition: ntstrsafe.h:1034
#define TAG_STRING
Definition: oslist.h:22
OperatingSystemItem * InitOperatingSystemList(_Out_ PULONG OperatingSystemCount, _Out_ PULONG DefaultOperatingSystem)
Definition: oslist.c:46
@ ESUCCESS
Definition: arc.h:32
strcat
Definition: string.h:92
strcpy
Definition: string.h:131
#define TRACE(s)
Definition: solgame.cpp:4
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
LONG TimeOut
Definition: settings.h:14
EDIT_OS_ENTRY_PROC EditOsEntry
Definition: bootmgr.c:50
ARC_ENTRY_POINT OsLoader
Definition: bootmgr.c:51
uint32_t * PULONG
Definition: typedefs.h:59
ULONG_PTR SIZE_T
Definition: typedefs.h:80
const char * PCSTR
Definition: typedefs.h:52
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
char * PCHAR
Definition: typedefs.h:51
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
void int int ULONGLONG int va_list * ap
Definition: winesup.h:36
char CHAR
Definition: xmlstorage.h:175