mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
981283a50b
And call it from kernel32 to get access to kernelbase global data. Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
48 lines
1.6 KiB
C
48 lines
1.6 KiB
C
/*
|
|
* Kernel32 undocumented and private functions definition
|
|
*
|
|
* Copyright 2003 Eric Pouech
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
#ifndef __WINE_KERNEL_PRIVATE_H
|
|
#define __WINE_KERNEL_PRIVATE_H
|
|
|
|
/* not compatible with windows */
|
|
struct kernelbase_global_data
|
|
{
|
|
struct mem_entry *mem_entries;
|
|
struct mem_entry *mem_entries_end;
|
|
};
|
|
|
|
void *WINAPI KernelBaseGetGlobalData(void);
|
|
|
|
extern struct kernelbase_global_data *kernelbase_global_data;
|
|
|
|
NTSTATUS WINAPI BaseGetNamedObjectDirectory( HANDLE *dir );
|
|
|
|
static inline BOOL set_ntstatus( NTSTATUS status )
|
|
{
|
|
if (status) SetLastError( RtlNtStatusToDosError( status ));
|
|
return !status;
|
|
}
|
|
|
|
extern SYSTEM_BASIC_INFORMATION system_info DECLSPEC_HIDDEN;
|
|
|
|
extern WCHAR *FILE_name_AtoW( LPCSTR name, BOOL alloc ) DECLSPEC_HIDDEN;
|
|
extern DWORD FILE_name_WtoA( LPCWSTR src, INT srclen, LPSTR dest, INT destlen ) DECLSPEC_HIDDEN;
|
|
|
|
#endif
|