Commit | Line | Data |
---|---|---|
95d675b5 | 1 | /*++\r |
2 | \r | |
4b1e1121 HT |
3 | Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
95d675b5 | 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 | Module Name:\r | |
13 | \r | |
14 | NtLoadAsDll.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Nt service Ppi that is used to load PE32s in the NT emulation environment.\r | |
19 | \r | |
20 | --*/\r | |
21 | \r | |
22 | #ifndef _NT_LOAD_AS_DLL_H_\r | |
23 | #define _NT_LOAD_AS_DLL_H_\r | |
24 | \r | |
25 | #include "Tiano.h"\r | |
26 | \r | |
27 | #define EFI_NT_LOAD_AS_DLL_PPI_GUID \\r | |
28 | { \\r | |
aeef1b2b | 29 | 0xccc53f6b, 0xa03a, 0x4ed8, {0x83, 0x9a, 0x3, 0xd9, 0x9c, 0x2, 0xb4, 0xe3} \\r |
95d675b5 | 30 | }\r |
31 | \r | |
32 | typedef\r | |
33 | EFI_STATUS\r | |
34 | (EFIAPI *EFI_NT_LOAD_AS_DLL) (\r | |
35 | IN CHAR8 *PdbFileName,\r | |
36 | IN VOID **ImageEntryPoint,\r | |
37 | OUT VOID **ModHandle\r | |
38 | );\r | |
39 | \r | |
40 | /*++\r | |
41 | \r | |
42 | Routine Description:\r | |
43 | Loads the .DLL file is present when a PE/COFF file is loaded. This provides source level\r | |
44 | debugging for drivers that have cooresponding .DLL files on the local system.\r | |
45 | \r | |
46 | Arguments:\r | |
47 | PdbFileName - The name of the .PDB file. This was found from the PE/COFF\r | |
48 | file's debug directory entry.\r | |
49 | ImageEntryPoint - A pointer to the DLL entry point of the .DLL file was loaded.\r | |
50 | \r | |
51 | Returns:\r | |
52 | EFI_SUCCESS - The .DLL file was loaded, and the DLL entry point is returned in ImageEntryPoint\r | |
53 | EFI_NOT_FOUND - The .DLL file could not be found\r | |
54 | EFI_UNSUPPORTED - The .DLL file was loaded, but the entry point to the .DLL file could not\r | |
55 | determined.\r | |
56 | \r | |
57 | --*/\r | |
58 | typedef\r | |
59 | EFI_STATUS\r | |
60 | (EFIAPI *EFI_NT_FREE_LIBRARY) (\r | |
61 | IN VOID *ModHandle\r | |
62 | );\r | |
63 | \r | |
64 | /*++\r | |
65 | \r | |
66 | Routine Description:\r | |
67 | Free resources allocated by Entry (). ModHandle was returned by\r | |
68 | Entry ().\r | |
69 | \r | |
70 | Arguments:\r | |
71 | MohHandle - Handle of the resources to free to undo the work.\r | |
72 | \r | |
73 | Returns:\r | |
74 | EFI_SUCCESS - \r | |
75 | \r | |
76 | --*/\r | |
77 | typedef struct {\r | |
78 | EFI_NT_LOAD_AS_DLL Entry;\r | |
79 | EFI_NT_FREE_LIBRARY FreeLibrary;\r | |
80 | } EFI_NT_LOAD_AS_DLL_PPI;\r | |
81 | \r | |
82 | extern EFI_GUID gEfiNtLoadAsDllPpiGuid;\r | |
83 | \r | |
84 | #endif\r |