ReactOS 0.4.15-dev-8109-gd7be748
winldr.h
Go to the documentation of this file.
1/*
2 * PROJECT: FreeLoader
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Windows-compatible NT OS Loader.
5 * COPYRIGHT: Copyright 2006-2019 Aleksey Bragin <aleksey@reactos.org>
6 */
7
8#pragma once
9
10#include <arc/setupblk.h>
11
12// See freeldr/ntldr/winldr.h
13#define TAG_WLDR_DTE 'eDlW'
14#define TAG_WLDR_BDE 'dBlW'
15#define TAG_WLDR_NAME 'mNlW'
16
17// Some definitions
18
19#include <pshpack1.h>
20typedef struct /* Root System Descriptor Pointer */
21{
22 CHAR signature [8]; /* contains "RSD PTR " */
23 UCHAR checksum; /* to make sum of struct == 0 */
24 CHAR oem_id [6]; /* OEM identification */
25 UCHAR revision; /* Must be 0 for 1.0, 2 for 2.0 */
26 ULONG rsdt_physical_address; /* 32-bit physical address of RSDT */
27 ULONG length; /* XSDT Length in bytes including hdr */
28 ULONGLONG xsdt_physical_address; /* 64-bit physical address of XSDT */
29 UCHAR extended_checksum; /* Checksum of entire table */
30 CHAR reserved [3]; /* reserved field must be 0 */
32#include <poppack.h>
33
35{
39
41//
42// ReactOS Loading Functions
43//
45
48 IN ULONG Argc,
49 IN PCHAR Argv[],
50 IN PCHAR Envp[]);
51
54 IN ULONG Argc,
55 IN PCHAR Argv[],
56 IN PCHAR Envp[]);
57
58
59// conversion.c and conversion.h
#define MAX_PATH
Definition: compat.h:34
r reserved
Definition: btrfs.c:3006
VOID List_PaToVa(_In_ LIST_ENTRY *ListEntry)
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:976
struct _ARC_DISK_SIGNATURE_EX ARC_DISK_SIGNATURE_EX
struct RSDP_DESCRIPTOR * PRSDP_DESCRIPTOR
struct _ARC_DISK_SIGNATURE_EX * PARC_DISK_SIGNATURE_EX
PVOID VaToPa(PVOID Va)
Definition: conversion.h:15
PVOID PaToVa(PVOID Pa)
Definition: conversion.h:22
#define _In_
Definition: ms_sal.h:308
ULONG ARC_STATUS
Definition: arc.h:4
ULONG length
Definition: winldr.h:27
UCHAR extended_checksum
Definition: winldr.h:29
UCHAR checksum
Definition: winldr.h:23
ULONG rsdt_physical_address
Definition: winldr.h:26
UCHAR revision
Definition: winldr.h:25
ULONGLONG xsdt_physical_address
Definition: winldr.h:28
CHAR ArcName[MAX_PATH]
Definition: winldr.h:37
ARC_DISK_SIGNATURE DiskSignature
Definition: winldr.h:36
Definition: typedefs.h:120
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
char * PCHAR
Definition: typedefs.h:51
unsigned char UCHAR
Definition: xmlstorage.h:181
char CHAR
Definition: xmlstorage.h:175