ReactOS 0.4.15-dev-7113-g9ea2222
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 <precomp.h>
11
12static PVOID
14{
15 return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
16}
17
18static VOID
20{
21 RtlFreeHeap(RtlGetProcessHeap(), 0, Area);
22}
23
24static BOOLEAN
26{
27 return FALSE;
28}
29
30VOID
32{
33 static ROSSYM_CALLBACKS KmCallbacks =
34 {
40 };
41
42 RosSymInit(&KmCallbacks);
43}
44
45/* EOF */
unsigned char BOOLEAN
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
Definition: heap.c:588
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
Definition: heap.c:606
_In_ PFCB _In_ PCD_NAME _In_ BOOLEAN _Inout_ PFILE_ENUM_CONTEXT FileContext
Definition: cdprocs.h:442
#define FALSE
Definition: types.h:117
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:16
BOOLEAN RosSymZwSeekFile(PVOID FileContext, ULONG_PTR Position)
Definition: zwfile.c:32
VOID RosSymInit(PROSSYM_CALLBACKS Callbacks)
Definition: init.c:17
static BOOLEAN RosSymGetMemUM(PVOID FileContext, ULONG_PTR *Target, PVOID SourceMem, ULONG Size)
Definition: initum.c:25
uint32_t ULONG_PTR
Definition: typedefs.h:65
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
_In_ WDFIOTARGET Target
Definition: wdfrequest.h:306