]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Platform/Nt32/Ppi/NtLoadAsDll/NtLoadAsDll.h
GCC Cleanup: GUID initializer.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Platform / Nt32 / Ppi / NtLoadAsDll / NtLoadAsDll.h
CommitLineData
95d675b5 1/*++\r
2\r
aeef1b2b 3Copyright (c) 2004 - 2008, Intel Corporation \r
95d675b5 4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 NtLoadAsDll.h\r
15\r
16Abstract:\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
32typedef\r
33EFI_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
42Routine 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
46Arguments:\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
51Returns:\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
58typedef\r
59EFI_STATUS\r
60(EFIAPI *EFI_NT_FREE_LIBRARY) (\r
61 IN VOID *ModHandle\r
62 );\r
63\r
64/*++\r
65\r
66Routine Description:\r
67 Free resources allocated by Entry (). ModHandle was returned by\r
68 Entry ().\r
69\r
70Arguments:\r
71 MohHandle - Handle of the resources to free to undo the work.\r
72\r
73Returns:\r
74 EFI_SUCCESS - \r
75\r
76--*/\r
77typedef 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
82extern EFI_GUID gEfiNtLoadAsDllPpiGuid;\r
83\r
84#endif\r