ReactOS  0.4.15-dev-2947-g59e1b78
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 
15 typedef struct _BOOTCODE
16 {
20 
23  IN OUT PBOOTCODE BootCodeInfo,
26 
29  IN OUT PBOOTCODE BootCodeInfo,
32 
33 VOID
35  IN OUT PBOOTCODE BootCodeInfo);
36 
37 /* EOF */
#define IN
Definition: typedefs.h:39
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
NTSTATUS ReadBootCodeFromFile(IN OUT PBOOTCODE BootCodeInfo, IN PUNICODE_STRING FilePath, IN ULONG Length OPTIONAL)
Definition: bootcode.c:69
LONG NTSTATUS
Definition: precomp.h:26
ULONG Length
Definition: bootcode.h:18
NTSTATUS ReadBootCodeByHandle(IN OUT PBOOTCODE BootCodeInfo, IN HANDLE FileHandle, IN ULONG Length OPTIONAL)
Definition: bootcode.c:21
PCWSTR FilePath
struct _BOOTCODE * PBOOTCODE
HANDLE FileHandle
Definition: stats.c:38
struct _BOOTCODE BOOTCODE
PVOID BootCode
Definition: bootcode.h:17
VOID FreeBootCode(IN OUT PBOOTCODE BootCodeInfo)
Definition: bootcode.c:104
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68