Something went wrong. Try again.
Reactos
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738/* * PROJECT: ReactOS Setup Library * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+) * PURPOSE: BootCode support functions. * COPYRIGHT: Copyright 2020 Hermes Belusca-Maito */
#pragma once
#ifdef SECTORSIZE#undef SECTORSIZE#endif#define SECTORSIZE 512
typedef struct _BOOTCODE{ PVOID BootCode; ULONG Length;} BOOTCODE, *PBOOTCODE;
NTSTATUSReadBootCodeByHandle( IN OUT PBOOTCODE BootCodeInfo, IN HANDLE FileHandle, IN ULONG Length OPTIONAL);
NTSTATUSReadBootCodeFromFile( IN OUT PBOOTCODE BootCodeInfo, IN PUNICODE_STRING FilePath, IN ULONG Length OPTIONAL);
VOIDFreeBootCode( IN OUT PBOOTCODE BootCodeInfo);
/* EOF */