a26a42adcc651180a1898e7c0b8fbc9b90e68888
[reactos.git] / reactos / lib / rossym / initum.c
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 <stdarg.h>
11 #include <windef.h>
12 #include <winbase.h>
13 #include <reactos/rossym.h>
14 #include "rossympriv.h"
15
16 #define NDEBUG
17 #include <debug.h>
18
19 static PVOID
20 RosSymAllocMemUM(ULONG_PTR Size)
21 {
22 return HeapAlloc(GetProcessHeap(), 0, Size);
23 }
24
25 static VOID
26 RosSymFreeMemUM(PVOID Area)
27 {
28 HeapFree(GetProcessHeap(), 0, Area);
29 }
30
31 VOID
32 RosSymInitUserMode(VOID)
33 {
34 static ROSSYM_CALLBACKS KmCallbacks =
35 {
36 RosSymAllocMemUM,
37 RosSymFreeMemUM,
38 RosSymZwReadFile,
39 RosSymZwSeekFile
40 };
41
42 RosSymInit(&KmCallbacks);
43 }
44
45 /* EOF */