reactos/lib/rossym/initum.c
Amine Khaldi 4f505e46f5 [CMAKE]
- Arty: Add usermode addresses translation support. WIP.

svn path=/branches/cmake-bringup/; revision=50033
2010-12-15 23:37:54 +00:00

46 lines
855 B
C

/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: lib/rossym/initum.c
* PURPOSE: Initialize library for use in user mode
*
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
*/
#define WIN32_NO_STATUS
#include <windows.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#define NDEBUG
#include <debug.h>
static PVOID
RosSymAllocMemUM(ULONG_PTR Size)
{
return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
}
static VOID
RosSymFreeMemUM(PVOID Area)
{
RtlFreeHeap(RtlGetProcessHeap(), 0, Area);
}
VOID
RosSymInitUserMode(VOID)
{
static ROSSYM_CALLBACKS KmCallbacks =
{
RosSymAllocMemUM,
RosSymFreeMemUM,
RosSymZwReadFile,
RosSymZwSeekFile
};
RosSymInit(&KmCallbacks);
}
/* EOF */