xmllite/writer: Implement WriteNodeShallow().
[wine.git] / dlls / kernelbase / kernelbase.h
blob6043fe49dd54659f2e157341a5cd8c9bf219498f
1 /*
2 * Kernelbase internal definitions
4 * Copyright 2019 Alexandre Julliard
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.
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.
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
21 #ifndef __WINE_KERNELBASE_H
22 #define __WINE_KERNELBASE_H
24 #include "windef.h"
25 #include "winbase.h"
27 struct pseudo_console
29 HANDLE signal;
30 HANDLE reference;
31 HANDLE process;
34 extern WCHAR *file_name_AtoW( LPCSTR name, BOOL alloc ) DECLSPEC_HIDDEN;
35 extern DWORD file_name_WtoA( LPCWSTR src, INT srclen, LPSTR dest, INT destlen ) DECLSPEC_HIDDEN;
36 extern void init_global_data(void) DECLSPEC_HIDDEN;
37 extern void init_startup_info( RTL_USER_PROCESS_PARAMETERS *params ) DECLSPEC_HIDDEN;
38 extern void init_locale( HMODULE module ) DECLSPEC_HIDDEN;
39 extern void init_console(void) DECLSPEC_HIDDEN;
41 extern const WCHAR windows_dir[] DECLSPEC_HIDDEN;
42 extern const WCHAR system_dir[] DECLSPEC_HIDDEN;
44 static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
45 extern BOOL is_wow64 DECLSPEC_HIDDEN;
47 static inline BOOL set_ntstatus( NTSTATUS status )
49 if (status) SetLastError( RtlNtStatusToDosError( status ));
50 return !status;
53 /* make the kernel32 names available */
54 #define HeapAlloc(heap, flags, size) RtlAllocateHeap(heap, flags, size)
55 #define HeapReAlloc(heap, flags, ptr, size) RtlReAllocateHeap(heap, flags, ptr, size)
56 #define HeapFree(heap, flags, ptr) RtlFreeHeap(heap, flags, ptr)
58 #endif /* __WINE_KERNELBASE_H */