ReactOS 0.4.15-dev-8227-g32d615f
initum.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: lib/rossym/initum.c
5 * PURPOSE: Initialize library for use in user mode
6 *
7 * PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
8 */
9
10#include <stdarg.h>
11#include <windef.h>
12#include <winbase.h>
13#include <reactos/rossym.h>
14#include "rossympriv.h"
15
16static PVOID
18{
19 return HeapAlloc(GetProcessHeap(), 0, Size);
20}
21
22static VOID
24{
25 HeapFree(GetProcessHeap(), 0, Area);
26}
27
28VOID
30{
31 static ROSSYM_CALLBACKS KmCallbacks =
32 {
37 };
38
39 RosSymInit(&KmCallbacks);
40}
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define HeapFree(x, y, z)
Definition: compat.h:735
static PVOID RosSymAllocMemUM(ULONG_PTR Size)
Definition: initum.c:17
VOID RosSymInitUserMode(VOID)
Definition: initum.c:29
static VOID RosSymFreeMemUM(PVOID Area)
Definition: initum.c:23
BOOLEAN RosSymZwReadFile(PVOID FileContext, PVOID Buffer, ULONG Size)
Definition: zwfile.c:15
BOOLEAN RosSymZwSeekFile(PVOID FileContext, ULONG_PTR Position)
Definition: zwfile.c:31
VOID RosSymInit(PROSSYM_CALLBACKS Callbacks)
Definition: init.c:17
uint32_t ULONG_PTR
Definition: typedefs.h:65
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533