OpenCore
1.0.4
OpenCore Bootloader
|
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/SimpleFileSystem.h>
Go to the source code of this file.
Functions | |
EFI_STATUS | OcLoadAndRunImage (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL, IN VOID *Buffer OPTIONAL, IN UINTN BufferSize, OUT EFI_HANDLE *ImageHandle OPTIONAL, IN CHAR16 *OptionalData OPTIONAL) |
Copyright (C) 2021, vit9696. All rights reserved.
All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file ImageRunner.c.
EFI_STATUS OcLoadAndRunImage | ( | IN EFI_DEVICE_PATH_PROTOCOL *DevicePath | OPTIONAL, |
IN VOID *Buffer | OPTIONAL, | ||
IN UINTN | BufferSize, | ||
OUT EFI_HANDLE *ImageHandle | OPTIONAL, | ||
IN CHAR16 *OptionalData | OPTIONAL ) |
Run and execute image file from buffer.
[in] | DevicePath | Image device path, optional. |
[in] | Buffer | Buffer with image data, optional when DP is given. |
[in] | BufferSize | Image data size in the buffer. |
[out] | ImageHandle | Loaded image handle for drivers, optional. |
[out] | OptionalData | Data that is passed to the loaded image, optional. |
Definition at line 25 of file ImageRunner.c.