2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: ntoskrnl/ldr/sysdll.c
5 * PURPOSE: Loaders for PE executables
6 * PROGRAMMERS: Jean Michault
7 * Rex Jolliff (rex@lvcablemodem.com)
12 /* INCLUDES *****************************************************************/
14 #include <ddk/ntddk.h>
15 #include <internal/module.h>
16 #include <internal/ntoskrnl.h>
17 #include <internal/ob.h>
18 #include <internal/ps.h>
20 #include <internal/ldr.h>
23 #include <internal/debug.h>
26 /* FUNCTIONS *****************************************************************/
28 NTSTATUS LdrpMapImage(HANDLE ProcessHandle,
30 PVOID* ReturnedImageBase)
32 * FUNCTION: LdrpMapImage maps a user-mode image into an address space
35 * Points to the process to map the image into
38 * Points to the section to map
50 Status = ZwMapViewOfSection(SectionHandle,
60 if (!NT_SUCCESS(Status))
62 CPRINT("Image map view of section failed (Status %x)", Status);
66 *ReturnedImageBase = ImageBase;
68 return(STATUS_SUCCESS);