OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
ImageRunner.c File Reference
#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)
 

Detailed Description

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.

Function Documentation

◆ OcLoadAndRunImage()

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.

Parameters
[in]DevicePathImage device path, optional.
[in]BufferBuffer with image data, optional when DP is given.
[in]BufferSizeImage data size in the buffer.
[out]ImageHandleLoaded image handle for drivers, optional.
[out]OptionalDataData that is passed to the loaded image, optional.

Definition at line 25 of file ImageRunner.c.