TianoCore EDK2 master
Loading...
Searching...
No Matches
LoadPe32Image.h
Go to the documentation of this file.
1
11#ifndef __LOAD_PE32_IMAGE_H__
12#define __LOAD_PE32_IMAGE_H__
13
14#define PE32_IMAGE_PROTOCOL_GUID \
15 {0x5cb5c776,0x60d5,0x45ee,{0x88,0x3c,0x45,0x27,0x8,0xcd,0x74,0x3f }}
16
17#define EFI_LOAD_PE_IMAGE_ATTRIBUTE_NONE 0x00
18#define EFI_LOAD_PE_IMAGE_ATTRIBUTE_RUNTIME_REGISTRATION 0x01
19#define EFI_LOAD_PE_IMAGE_ATTRIBUTE_DEBUG_IMAGE_INFO_TABLE_REGISTRATION 0x02
20
22
55typedef
57(EFIAPI *LOAD_PE_IMAGE)(
59 IN EFI_HANDLE ParentImageHandle,
61 IN VOID *SourceBuffer OPTIONAL,
62 IN UINTN SourceSize,
64 IN OUT UINTN *NumberOfPages OPTIONAL,
65 OUT EFI_HANDLE *ImageHandle,
67 IN UINT32 Attribute
68 );
69
82typedef
84(EFIAPI *UNLOAD_PE_IMAGE)(
86 IN EFI_HANDLE ImageHandle
87 );
88
90 LOAD_PE_IMAGE LoadPeImage;
91 UNLOAD_PE_IMAGE UnLoadPeImage;
92};
93
94extern EFI_GUID gEfiLoadPeImageProtocolGuid;
95
96#endif
UINT64 UINTN
EFI_STATUS(EFIAPI * LOAD_PE_IMAGE)(IN EFI_PE32_IMAGE_PROTOCOL *This, IN EFI_HANDLE ParentImageHandle, IN EFI_DEVICE_PATH_PROTOCOL *FilePath, IN VOID *SourceBuffer OPTIONAL, IN UINTN SourceSize, IN EFI_PHYSICAL_ADDRESS DstBuffer OPTIONAL, IN OUT UINTN *NumberOfPages OPTIONAL, OUT EFI_HANDLE *ImageHandle, OUT EFI_PHYSICAL_ADDRESS *EntryPoint OPTIONAL, IN UINT32 Attribute)
Definition: LoadPe32Image.h:57
EFI_STATUS(EFIAPI * UNLOAD_PE_IMAGE)(IN EFI_PE32_IMAGE_PROTOCOL *This, IN EFI_HANDLE ImageHandle)
Definition: LoadPe32Image.h:84
#define OPTIONAL
Definition: Base.h:290
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
Definition: Base.h:213