A couple more fixes to prepare for the final patch
[reactos.git] / reactos / include / ndk / ldrfuncs.h
1 /*
2 * PROJECT: ReactOS Native Headers
3 * FILE: include/ndk/ldrfuncs.h
4 * PURPOSE: Defintions for Loader Functions not defined in DDK/IFS
5 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
6 * UPDATE HISTORY:
7 * Created 06/10/04
8 */
9 #ifndef _LDRFUNCS_H
10 #define _LDRFUNCS_H
11
12 /* DEPENDENCIES **************************************************************/
13 #include "ldrtypes.h"
14 /* FIXME: this needs be implemented in the w32api ddk */
15 #ifdef _MSC_VER
16 #include "ntimage.h"
17 #endif
18
19 /* FUNCTION TYPES ************************************************************/
20
21 /* PROTOTYPES ****************************************************************/
22
23 NTSTATUS
24 NTAPI
25 LdrAccessResource(
26 IN PVOID BaseAddress,
27 IN PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry,
28 OUT PVOID *Resource OPTIONAL,
29 OUT PULONG Size OPTIONAL
30 );
31
32 NTSTATUS
33 NTAPI
34 LdrFindResource_U(
35 IN PVOID BaseAddress,
36 IN PLDR_RESOURCE_INFO ResourceInfo,
37 IN ULONG Level,
38 OUT PIMAGE_RESOURCE_DATA_ENTRY *ResourceDataEntry
39 );
40
41 NTSTATUS
42 NTAPI
43 LdrFindResourceDirectory_U(
44 IN PVOID BaseAddress,
45 IN PLDR_RESOURCE_INFO ResourceInfo,
46 IN ULONG Level,
47 OUT PIMAGE_RESOURCE_DIRECTORY *ResourceDirectory
48 );
49
50 NTSTATUS
51 NTAPI
52 LdrGetProcedureAddress(
53 IN PVOID BaseAddress,
54 IN PANSI_STRING Name,
55 IN ULONG Ordinal,
56 OUT PVOID *ProcedureAddress
57 );
58
59 #endif