3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/ldr/userldr.c
6 * PURPOSE: Loaders for PE executables
8 * PROGRAMMERS: Jean Michault
9 * Rex Jolliff (rex@lvcablemodem.com)
12 /* INCLUDES *****************************************************************/
16 #include <internal/debug.h>
19 /* FUNCTIONS *****************************************************************/
21 NTSTATUS
LdrpMapImage(HANDLE ProcessHandle
,
23 PVOID
* ReturnedImageBase
)
25 * FUNCTION: LdrpMapImage maps a user-mode image into an address space
28 * Points to the process to map the image into
31 * Points to the section to map
43 Status
= ZwMapViewOfSection(SectionHandle
,
53 if (!NT_SUCCESS(Status
))
55 CPRINT("Image map view of section failed (Status %x)", Status
);
59 *ReturnedImageBase
= ImageBase
;
61 return(STATUS_SUCCESS
);