1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: lib/rossym/initum.c
5 * PURPOSE: Initialize library for use in user mode
6 *
7 * PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
8 */
9
10 #include <precomp.h>
11
12 static PVOID
RosSymAllocMemUM(ULONG_PTR Size)13 RosSymAllocMemUM(ULONG_PTR Size)
14 {
15 return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
16 }
17
18 static VOID
RosSymFreeMemUM(PVOID Area)19 RosSymFreeMemUM(PVOID Area)
20 {
21 RtlFreeHeap(RtlGetProcessHeap(), 0, Area);
22 }
23
24 static BOOLEAN
RosSymGetMemUM(PVOID FileContext,ULONG_PTR * Target,PVOID SourceMem,ULONG Size)25 RosSymGetMemUM(PVOID FileContext, ULONG_PTR *Target, PVOID SourceMem, ULONG Size)
26 {
27 return FALSE;
28 }
29
30 VOID
RosSymInitUserMode(VOID)31 RosSymInitUserMode(VOID)
32 {
33 static ROSSYM_CALLBACKS KmCallbacks =
34 {
35 RosSymAllocMemUM,
36 RosSymFreeMemUM,
37 RosSymZwReadFile,
38 RosSymZwSeekFile,
39 RosSymGetMemUM
40 };
41
42 RosSymInit(&KmCallbacks);
43 }
44
45 /* EOF */
46