ReactOS 0.4.16-dev-297-gc569aee
bootcode.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Setup Library
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: BootCode support functions.
5 * COPYRIGHT: Copyright 2020 Hermes Belusca-Maito
6 */
7
8#pragma once
9
10#ifdef SECTORSIZE
11#undef SECTORSIZE
12#endif
13#define SECTORSIZE 512
14
15typedef struct _BOOTCODE
16{
20
23 IN OUT PBOOTCODE BootCodeInfo,
26
29 IN OUT PBOOTCODE BootCodeInfo,
32
33VOID
35 IN OUT PBOOTCODE BootCodeInfo);
36
37/* EOF */
PCWSTR FilePath
LONG NTSTATUS
Definition: precomp.h:26
VOID FreeBootCode(IN OUT PBOOTCODE BootCodeInfo)
Definition: bootcode.c:104
struct _BOOTCODE * PBOOTCODE
NTSTATUS ReadBootCodeByHandle(IN OUT PBOOTCODE BootCodeInfo, IN HANDLE FileHandle, IN ULONG Length OPTIONAL)
Definition: bootcode.c:21
struct _BOOTCODE BOOTCODE
NTSTATUS ReadBootCodeFromFile(IN OUT PBOOTCODE BootCodeInfo, IN PUNICODE_STRING FilePath, IN ULONG Length OPTIONAL)
Definition: bootcode.c:69
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
Definition: fltkernel.h:1231
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
ULONG Length
Definition: bootcode.h:18
PVOID BootCode
Definition: bootcode.h:17
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40