2011-05-16 13:12:07 +00:00
|
|
|
/*
|
|
|
|
* 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)
|
|
|
|
*/
|
|
|
|
|
2011-08-14 18:12:05 +00:00
|
|
|
#include <precomp.h>
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
static PVOID
|
|
|
|
RosSymAllocMemUM(ULONG_PTR Size)
|
|
|
|
{
|
|
|
|
return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
|
|
|
|
}
|
|
|
|
|
|
|
|
static VOID
|
|
|
|
RosSymFreeMemUM(PVOID Area)
|
|
|
|
{
|
|
|
|
RtlFreeHeap(RtlGetProcessHeap(), 0, Area);
|
|
|
|
}
|
|
|
|
|
2011-06-01 20:36:40 +00:00
|
|
|
static BOOLEAN
|
2011-09-03 23:56:04 +00:00
|
|
|
RosSymGetMemUM(PVOID FileContext, ULONG_PTR *Target, PVOID SourceMem, ULONG Size)
|
2011-06-01 20:36:40 +00:00
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
VOID
|
|
|
|
RosSymInitUserMode(VOID)
|
|
|
|
{
|
|
|
|
static ROSSYM_CALLBACKS KmCallbacks =
|
|
|
|
{
|
|
|
|
RosSymAllocMemUM,
|
|
|
|
RosSymFreeMemUM,
|
|
|
|
RosSymZwReadFile,
|
2011-06-01 20:36:40 +00:00
|
|
|
RosSymZwSeekFile,
|
|
|
|
RosSymGetMemUM
|
2011-05-16 13:12:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
RosSymInit(&KmCallbacks);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|