ReactOS 0.4.16-dev-822-gbcedb53
|
#include "precomp.h"
#include "bldrsup.h"
#include "filesup.h"
#include "inicache.h"
#include <debug.h>
Go to the source code of this file.
Classes | |
struct | _NTOS_BOOT_LOADER_FILES |
struct | _BOOT_STORE_CONTEXT |
struct | _BOOT_STORE_INI_CONTEXT |
struct | _BOOT_STORE_BCDREG_CONTEXT |
Macros | |
#define | NDEBUG |
Typedefs | |
typedef NTSTATUS(* | POPEN_BOOT_STORE) (_Out_ PVOID *Handle, _In_ HANDLE PartitionDirectoryHandle, _In_ BOOT_STORE_TYPE Type, _In_ BOOT_STORE_OPENMODE OpenMode, _In_ BOOT_STORE_ACCESS Access) |
typedef NTSTATUS(* | PCLOSE_BOOT_STORE) (_In_ PVOID Handle) |
typedef NTSTATUS(* | PENUM_BOOT_STORE_ENTRIES) (IN PVOID Handle, IN PENUM_BOOT_ENTRIES_ROUTINE EnumBootEntriesRoutine, IN PVOID Parameter OPTIONAL) |
typedef struct _NTOS_BOOT_LOADER_FILES | NTOS_BOOT_LOADER_FILES |
typedef struct _NTOS_BOOT_LOADER_FILES * | PNTOS_BOOT_LOADER_FILES |
typedef struct _BOOT_STORE_CONTEXT | BOOT_STORE_CONTEXT |
typedef struct _BOOT_STORE_CONTEXT * | PBOOT_STORE_CONTEXT |
typedef struct _BOOT_STORE_INI_CONTEXT | BOOT_STORE_INI_CONTEXT |
typedef struct _BOOT_STORE_INI_CONTEXT * | PBOOT_STORE_INI_CONTEXT |
typedef struct _BOOT_STORE_BCDREG_CONTEXT | BOOT_STORE_BCDREG_CONTEXT |
typedef struct _BOOT_STORE_BCDREG_CONTEXT * | PBOOT_STORE_BCDREG_CONTEXT |
Enumerations | |
enum | BOOT_OPTION { BO_TimeOut , BO_DefaultOS } |
Variables | |
NTOS_BOOT_LOADER_FILES | NtosBootLoaders [] |
static const PCWSTR | BootOptionNames [][2] |
typedef struct _BOOT_STORE_CONTEXT * PBOOT_STORE_CONTEXT |
typedef NTSTATUS(* POPEN_BOOT_STORE) (_Out_ PVOID *Handle, _In_ HANDLE PartitionDirectoryHandle, _In_ BOOT_STORE_TYPE Type, _In_ BOOT_STORE_OPENMODE OpenMode, _In_ BOOT_STORE_ACCESS Access) |
Enumerator | |
---|---|
BO_TimeOut | |
BO_DefaultOS |
NTSTATUS AddBootStoreEntry | ( | IN PVOID | Handle, |
IN PBOOT_STORE_ENTRY | BootEntry, | ||
IN ULONG_PTR | BootEntryKey | ||
) |
Definition at line 1094 of file bldrsup.c.
Referenced by CreateFreeLoaderIniForReactOSAndBootSector(), CreateFreeLoaderReactOSEntries(), UpdateBootIni(), and UpdateFreeLoaderIni().
C_ASSERT | ( | _countof(NtosBootLoaders) | = =BldrTypeMax | ) |
Definition at line 1014 of file bldrsup.c.
Referenced by CreateFreeLoaderIniForReactOS(), CreateFreeLoaderIniForReactOSAndBootSector(), FindNTOSInstallations(), UpdateBootIni(), and UpdateFreeLoaderIni().
Definition at line 830 of file bldrsup.c.
|
static |
Definition at line 372 of file bldrsup.c.
Referenced by OpenIniBootLoaderStore().
|
static |
Definition at line 1042 of file bldrsup.c.
Referenced by AddBootStoreEntry().
Definition at line 1192 of file bldrsup.c.
NTSTATUS EnumerateBootStoreEntries | ( | IN PVOID | Handle, |
IN PENUM_BOOT_ENTRIES_ROUTINE | EnumBootEntriesRoutine, | ||
IN PVOID Parameter | OPTIONAL | ||
) |
Definition at line 1703 of file bldrsup.c.
Referenced by FindNTOSInstallations(), UpdateBootIni(), and UpdateFreeLoaderIni().
NTSTATUS FindBootStore | ( | IN HANDLE | PartitionDirectoryHandle, |
IN BOOT_STORE_TYPE | Type, | ||
OUT PULONG VersionNumber | OPTIONAL | ||
) |
Definition at line 151 of file bldrsup.c.
Referenced by FindNTOSInstallations().
|
static |
Definition at line 1408 of file bldrsup.c.
|
static |
Definition at line 323 of file bldrsup.c.
Referenced by OpenIniBootLoaderStore().
|
static |
Definition at line 222 of file bldrsup.c.
Referenced by FreeLdrMigrateBootDrivePart().
NTSTATUS ModifyBootStoreEntry | ( | IN PVOID | Handle, |
IN PBOOT_STORE_ENTRY | BootEntry | ||
) |
Definition at line 1226 of file bldrsup.c.
|
static |
Definition at line 1569 of file bldrsup.c.
NTSTATUS OpenBootStore | ( | _Out_ PVOID * | Handle, |
_In_ PCWSTR | SystemPartition, | ||
_In_ BOOT_STORE_TYPE | Type, | ||
_In_ BOOT_STORE_OPENMODE | OpenMode, | ||
_In_ BOOT_STORE_ACCESS | Access | ||
) |
Definition at line 997 of file bldrsup.c.
Referenced by CreateFreeLoaderIniForReactOS(), CreateFreeLoaderIniForReactOSAndBootSector(), UpdateBootIni(), and UpdateFreeLoaderIni().
NTSTATUS OpenBootStore_UStr | ( | _Out_ PVOID * | Handle, |
_In_ PUNICODE_STRING | SystemPartitionPath, | ||
_In_ BOOT_STORE_TYPE | Type, | ||
_In_ BOOT_STORE_OPENMODE | OpenMode, | ||
_In_ BOOT_STORE_ACCESS | Access | ||
) |
Definition at line 940 of file bldrsup.c.
Referenced by OpenBootStore().
NTSTATUS OpenBootStoreByHandle | ( | _Out_ PVOID * | Handle, |
_In_ HANDLE | PartitionDirectoryHandle, | ||
_In_ BOOT_STORE_TYPE | Type, | ||
_In_ BOOT_STORE_OPENMODE | OpenMode, | ||
_In_ BOOT_STORE_ACCESS | Access | ||
) |
Definition at line 897 of file bldrsup.c.
Referenced by FindNTOSInstallations(), and OpenBootStore_UStr().
|
static |
Definition at line 411 of file bldrsup.c.
|
static |
Selectively changes the attributes of a file.
[in] | FileHandle | Handle to an opened file for which to change its attributes. |
[in] | MaskAttributes | A mask specifying which attributes to change; any other attributes will be maintained as they are. If this parameter is zero, all of the attributes in *Attributes will be changed. |
[in,out] | Attributes | In input, specifies the new attributes to set. Attributes that are not set, but are specified in MaskAttributes, are removed. In output, receives the original attributes of the file. |
Definition at line 786 of file bldrsup.c.
Referenced by CloseIniBootLoaderStore().
NTSTATUS QueryBootStoreEntry | ( | IN PVOID | Handle, |
IN ULONG_PTR | BootEntryKey, | ||
OUT PBOOT_STORE_ENTRY | BootEntry | ||
) |
Definition at line 1260 of file bldrsup.c.
Definition at line 1295 of file bldrsup.c.
NTSTATUS SetBootStoreOptions | ( | IN PVOID | Handle, |
IN PBOOT_STORE_OPTIONS | BootOptions, | ||
IN ULONG | FieldsToChange | ||
) |
Definition at line 1356 of file bldrsup.c.
Referenced by CreateFreeLoaderReactOSEntries().
Definition at line 141 of file bldrsup.c.
Referenced by QueryBootStoreOptions(), and SetBootStoreOptions().
NTOS_BOOT_LOADER_FILES NtosBootLoaders[] |
Definition at line 125 of file bldrsup.c.
Referenced by CloseBootStore(), DeleteBootStoreEntry(), EnumerateBootStoreEntries(), FindBootStore(), ModifyBootStoreEntry(), OpenBootStore_UStr(), OpenBootStoreByHandle(), OpenIniBootLoaderStore(), QueryBootStoreEntry(), and SetBootStoreOptions().