[ROSSYM]
[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 static PVOID
17 RosSymAllocMemUM(ULONG_PTR Size)
18 {
19 return HeapAlloc(GetProcessHeap(), 0, Size);
20 }
21
22 static VOID
23 RosSymFreeMemUM(PVOID Area)
24 {
25 HeapFree(GetProcessHeap(), 0, Area);
26 }
27
28 VOID
29 RosSymInitUserMode(VOID)
30 {
31 static ROSSYM_CALLBACKS KmCallbacks =
32 {
33 RosSymAllocMemUM,
34 RosSymFreeMemUM,
35 RosSymZwReadFile,
36 RosSymZwSeekFile
37 };
38
39 RosSymInit(&KmCallbacks);
40 }