]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
2c7e5c2f HT |
3 | Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | EdkIIGluePeCoffGetEntryPointLib.h\r | |
16 | \r | |
17 | Abstract: \r | |
18 | \r | |
19 | Public header file for PeCoff Get Entry Point Lib\r | |
20 | \r | |
21 | --*/\r | |
22 | \r | |
23 | #ifndef __EDKII_GLUE_PE_COFF_GET_ENTRY_POINT_LIB_H__\r | |
24 | #define __EDKII_GLUE_PE_COFF_GET_ENTRY_POINT_LIB_H__\r | |
25 | \r | |
26 | /**\r | |
27 | Retrieves and returns a pointer to the entry point to a PE/COFF image that has been loaded\r | |
28 | into system memory with the PE/COFF Loader Library functions.\r | |
29 | \r | |
30 | Retrieves the entry point to the PE/COFF image specified by Pe32Data and returns this entry\r | |
31 | point in EntryPoint. If the entry point could not be retrieved from the PE/COFF image, then\r | |
32 | return RETURN_INVALID_PARAMETER. Otherwise return RETURN_SUCCESS.\r | |
33 | If Pe32Data is NULL, then ASSERT().\r | |
34 | If EntryPoint is NULL, then ASSERT().\r | |
35 | \r | |
36 | @param Pe32Data Pointer to the PE/COFF image that is loaded in system memory.\r | |
37 | @param EntryPoint Pointer to entry point to the PE/COFF image to return.\r | |
38 | \r | |
39 | @retval RETURN_SUCCESS EntryPoint was returned.\r | |
40 | @retval RETURN_INVALID_PARAMETER The entry point could not be found in the PE/COFF image.\r | |
41 | \r | |
42 | **/\r | |
43 | RETURN_STATUS\r | |
44 | EFIAPI\r | |
45 | PeCoffLoaderGetEntryPoint (\r | |
46 | IN VOID *Pe32Data,\r | |
47 | OUT VOID **EntryPoint\r | |
48 | );\r | |
49 | \r | |
50 | /**\r | |
51 | Returns the machine type of a PE/COFF image.\r | |
52 | \r | |
53 | Returns the machine type from the PE/COFF image specified by Pe32Data.\r | |
54 | If Pe32Data is NULL, then ASSERT().\r | |
55 | \r | |
56 | @param Pe32Data Pointer to the PE/COFF image that is loaded in system\r | |
57 | memory.\r | |
58 | \r | |
59 | @return Machine type or zero if not a valid iamge.\r | |
60 | \r | |
61 | **/\r | |
62 | UINT16\r | |
63 | EFIAPI\r | |
64 | PeCoffLoaderGetMachineType (\r | |
65 | IN VOID *Pe32Data\r | |
66 | );\r | |
67 | \r | |
68 | /**\r | |
69 | Returns a pointer to the PDB file name for a PE/COFF image that has been\r | |
70 | loaded into system memory with the PE/COFF Loader Library functions. \r | |
71 | \r | |
72 | Returns the PDB file name for the PE/COFF image specified by Pe32Data. If\r | |
73 | the PE/COFF image specified by Pe32Data is not a valid, then NULL is\r | |
74 | returned. If the PE/COFF image specified by Pe32Data does not contain a\r | |
75 | debug directory entry, then NULL is returned. If the debug directory entry\r | |
76 | in the PE/COFF image specified by Pe32Data does not contain a PDB file name,\r | |
77 | then NULL is returned.\r | |
78 | If Pe32Data is NULL, then ASSERT().\r | |
79 | \r | |
80 | @param Pe32Data Pointer to the PE/COFF image that is loaded in system\r | |
81 | memory.\r | |
82 | \r | |
83 | @return The PDB file name for the PE/COFF image specified by Pe32Data or NULL\r | |
84 | if it cannot be retrieved.\r | |
85 | \r | |
86 | **/\r | |
87 | VOID *\r | |
88 | EFIAPI\r | |
89 | PeCoffLoaderGetPdbPointer (\r | |
90 | IN VOID *Pe32Data\r | |
91 | );\r | |
92 | \r | |
93 | #endif\r |