mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:22:58 +00:00
Create a branch for header work.
svn path=/branches/header-work/; revision=45691
This commit is contained in:
parent
14fe274b1c
commit
9ea495ba33
19538 changed files with 0 additions and 1063950 deletions
43
lib/rossym/initum.c
Normal file
43
lib/rossym/initum.c
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* 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 <windows.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
static PVOID
|
||||
RosSymAllocMemUM(ULONG_PTR Size)
|
||||
{
|
||||
return HeapAlloc(GetProcessHeap(), 0, Size);
|
||||
}
|
||||
|
||||
static VOID
|
||||
RosSymFreeMemUM(PVOID Area)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, Area);
|
||||
}
|
||||
|
||||
VOID
|
||||
RosSymInitUserMode(VOID)
|
||||
{
|
||||
static ROSSYM_CALLBACKS KmCallbacks =
|
||||
{
|
||||
RosSymAllocMemUM,
|
||||
RosSymFreeMemUM,
|
||||
RosSymZwReadFile,
|
||||
RosSymZwSeekFile
|
||||
};
|
||||
|
||||
RosSymInit(&KmCallbacks);
|
||||
}
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue