ReactOS  0.4.15-dev-1377-ga59cecd
initum.c
Go to the documentation of this file.
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
18 {
19  return HeapAlloc(GetProcessHeap(), 0, Size);
20 }
21 
22 static VOID
24 {
25  HeapFree(GetProcessHeap(), 0, Area);
26 }
27 
28 VOID
30 {
31  static ROSSYM_CALLBACKS KmCallbacks =
32  {
37  };
38 
39  RosSymInit(&KmCallbacks);
40 }
static VOID RosSymFreeMemUM(PVOID Area)
Definition: initum.c:23
BOOLEAN RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
Definition: zwfile.c:16
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
BOOLEAN RosSymZwSeekFile(PVOID FileContext, ULONG_PTR Position)
Definition: zwfile.c:32
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
VOID RosSymInit(PROSSYM_CALLBACKS Callbacks)
Definition: init.c:17
static PVOID RosSymAllocMemUM(ULONG_PTR Size)
Definition: initum.c:17
VOID RosSymInitUserMode(VOID)
Definition: initum.c:29
#define HeapFree(x, y, z)
Definition: compat.h:594