]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGluePeCoffGetEntryPointLib.h
3 Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 EdkIIGluePeCoffGetEntryPointLib.h
19 Public header file for PeCoff Get Entry Point Lib
23 #ifndef __EDKII_GLUE_PE_COFF_GET_ENTRY_POINT_LIB_H__
24 #define __EDKII_GLUE_PE_COFF_GET_ENTRY_POINT_LIB_H__
27 Retrieves and returns a pointer to the entry point to a PE/COFF image that has been loaded
28 into system memory with the PE/COFF Loader Library functions.
30 Retrieves the entry point to the PE/COFF image specified by Pe32Data and returns this entry
31 point in EntryPoint. If the entry point could not be retrieved from the PE/COFF image, then
32 return RETURN_INVALID_PARAMETER. Otherwise return RETURN_SUCCESS.
33 If Pe32Data is NULL, then ASSERT().
34 If EntryPoint is NULL, then ASSERT().
36 @param Pe32Data Pointer to the PE/COFF image that is loaded in system memory.
37 @param EntryPoint Pointer to entry point to the PE/COFF image to return.
39 @retval RETURN_SUCCESS EntryPoint was returned.
40 @retval RETURN_INVALID_PARAMETER The entry point could not be found in the PE/COFF image.
45 PeCoffLoaderGetEntryPoint (
51 Returns the machine type of a PE/COFF image.
53 Returns the machine type from the PE/COFF image specified by Pe32Data.
54 If Pe32Data is NULL, then ASSERT().
56 @param Pe32Data Pointer to the PE/COFF image that is loaded in system
59 @return Machine type or zero if not a valid iamge.
64 PeCoffLoaderGetMachineType (
69 Returns a pointer to the PDB file name for a PE/COFF image that has been
70 loaded into system memory with the PE/COFF Loader Library functions.
72 Returns the PDB file name for the PE/COFF image specified by Pe32Data. If
73 the PE/COFF image specified by Pe32Data is not a valid, then NULL is
74 returned. If the PE/COFF image specified by Pe32Data does not contain a
75 debug directory entry, then NULL is returned. If the debug directory entry
76 in the PE/COFF image specified by Pe32Data does not contain a PDB file name,
77 then NULL is returned.
78 If Pe32Data is NULL, then ASSERT().
80 @param Pe32Data Pointer to the PE/COFF image that is loaded in system
83 @return The PDB file name for the PE/COFF image specified by Pe32Data or NULL
84 if it cannot be retrieved.
89 PeCoffLoaderGetPdbPointer (