mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 22:26:39 +00:00
c2d0d784c7
- 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
45 lines
835 B
C
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 */
|