reactos/lib/rossym_new/initum.c
Cameron Gutman c2d0d784c7 [USB-BRINGUP-TRUNK]
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup
- In the future, DO NOT under any circumstances branch another branch. This leads to merge problems!

svn path=/branches/usb-bringup-trunk/; revision=55018
2012-01-20 20:58:46 +00:00

45 lines
835 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)
*/
#include <precomp.h>
static PVOID
RosSymAllocMemUM(ULONG_PTR Size)
{
return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
}
static VOID
RosSymFreeMemUM(PVOID Area)
{
RtlFreeHeap(RtlGetProcessHeap(), 0, Area);
}
static BOOLEAN
RosSymGetMemUM(PVOID FileContext, ULONG_PTR *Target, PVOID SourceMem, ULONG Size)
{
return FALSE;
}
VOID
RosSymInitUserMode(VOID)
{
static ROSSYM_CALLBACKS KmCallbacks =
{
RosSymAllocMemUM,
RosSymFreeMemUM,
RosSymZwReadFile,
RosSymZwSeekFile,
RosSymGetMemUM
};
RosSymInit(&KmCallbacks);
}
/* EOF */