ReactOS 0.4.16-dev-1369-gd4d04c8
kernelbase.h
Go to the documentation of this file.
1/*
2 * Kernelbase internal definitions
3 *
4 * Copyright 2019 Alexandre Julliard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#ifndef __WINE_KERNELBASE_H
22#define __WINE_KERNELBASE_H
23
24#include "windef.h"
25#include "winbase.h"
26
27#ifdef __REACTOS__
28#include "synchacks.h"
29#endif
30
31
33{
37};
38
41extern void init_global_data(void);
43extern void init_locale( HMODULE module );
44extern void init_console(void);
45
46extern const WCHAR windows_dir[];
47extern const WCHAR system_dir[];
48
49static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
50extern BOOL is_wow64;
51
53{
55 return !status;
56}
57
58/* make the kernel32 names available */
59#define HeapAlloc(heap, flags, size) RtlAllocateHeap(heap, flags, size)
60#define HeapReAlloc(heap, flags, ptr, size) RtlReAllocateHeap(heap, flags, ptr, size)
61#define HeapFree(heap, flags, ptr) RtlFreeHeap(heap, flags, ptr)
62
63#endif /* __WINE_KERNELBASE_H */
LONG NTSTATUS
Definition: precomp.h:26
#define SetLastError(x)
Definition: compat.h:752
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLenum src
Definition: glext.h:6340
GLenum const GLfloat * params
Definition: glext.h:5645
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
WCHAR * file_name_AtoW(LPCSTR name, BOOL alloc)
Definition: file.c:411
const WCHAR system_dir[]
Definition: file.c:68
BOOL is_wow64
Definition: main.c:38
static BOOL set_ntstatus(NTSTATUS status)
Definition: kernelbase.h:52
static const BOOL is_win64
Definition: kernelbase.h:49
void init_console(void)
Definition: console.c:2339
void init_global_data(void)
Definition: memory.c:931
void init_locale(HMODULE module)
Definition: locale.c:1911
void init_startup_info(RTL_USER_PROCESS_PARAMETERS *params)
Definition: process.c:1306
const WCHAR windows_dir[]
Definition: file.c:67
DWORD file_name_WtoA(LPCWSTR src, INT srclen, LPSTR dest, INT destlen)
Definition: file.c:438
static DWORD LPDWORD LPCSTR DWORD srclen
Definition: directory.c:52
static char * dest
Definition: rtl.c:135
#define alloc
Definition: rosglue.h:13
Definition: name.c:39
HANDLE signal
Definition: kernelbase.h:34
HANDLE reference
Definition: kernelbase.h:35
HANDLE process
Definition: kernelbase.h:36
Definition: ps.c:97
int32_t INT
Definition: typedefs.h:58
const char * LPCSTR
Definition: xmlstorage.h:183
char * LPSTR
Definition: xmlstorage.h:182
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185