2012-10-25 20:40:41 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
2013-04-07 23:39:39 +00:00
|
|
|
* PROJECT: ReactOS Base API Server DLL
|
2012-10-25 20:40:41 +00:00
|
|
|
* FILE: subsystems/win/basesrv/basesrv.h
|
|
|
|
* PURPOSE: Main header - Definitions
|
|
|
|
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
|
|
|
*/
|
2012-10-21 17:18:33 +00:00
|
|
|
|
|
|
|
#ifndef __BASESRV_H__
|
|
|
|
#define __BASESRV_H__
|
2012-10-20 21:03:32 +00:00
|
|
|
|
2005-08-12 12:22:02 +00:00
|
|
|
/* PSDK/NDK Headers */
|
2014-01-04 10:29:54 +00:00
|
|
|
#include <stdio.h>
|
2012-10-21 17:18:33 +00:00
|
|
|
#define WIN32_NO_STATUS
|
2013-09-10 20:45:53 +00:00
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
2005-08-12 12:22:02 +00:00
|
|
|
#define NTOS_MODE_USER
|
2014-01-04 10:29:54 +00:00
|
|
|
#include <ndk/rtlfuncs.h>
|
|
|
|
#include <ndk/obfuncs.h>
|
|
|
|
#include <ndk/psfuncs.h>
|
|
|
|
#include <ndk/exfuncs.h>
|
|
|
|
#include <ndk/umfuncs.h>
|
2014-02-27 22:44:56 +00:00
|
|
|
#include <ndk/cmfuncs.h>
|
2005-08-12 12:22:02 +00:00
|
|
|
|
2013-09-10 20:45:53 +00:00
|
|
|
/* PSEH for SEH Support */
|
|
|
|
#include <pseh/pseh2.h>
|
|
|
|
|
2012-10-20 21:03:32 +00:00
|
|
|
/* CSRSS Header */
|
2012-10-21 17:18:33 +00:00
|
|
|
#include <csr/csrsrv.h>
|
2012-10-20 21:03:32 +00:00
|
|
|
|
2012-10-21 17:18:33 +00:00
|
|
|
/* BASE Headers */
|
|
|
|
#include <win/basemsg.h>
|
2005-08-12 12:22:02 +00:00
|
|
|
#include <win/base.h>
|
2012-10-20 21:03:32 +00:00
|
|
|
|
2013-08-29 20:13:31 +00:00
|
|
|
typedef struct _BASESRV_KERNEL_IMPORTS
|
|
|
|
{
|
|
|
|
PCHAR FunctionName;
|
|
|
|
PVOID* FunctionPointer;
|
|
|
|
} BASESRV_KERNEL_IMPORTS, *PBASESRV_KERNEL_IMPORTS;
|
|
|
|
|
|
|
|
/* FIXME: BASENLS.H */
|
2013-11-17 19:14:24 +00:00
|
|
|
typedef NTSTATUS(WINAPI *POPEN_DATA_FILE)(HANDLE hFile,
|
2013-09-10 20:45:53 +00:00
|
|
|
PWCHAR FileName);
|
|
|
|
|
2013-11-17 19:14:24 +00:00
|
|
|
typedef BOOL(WINAPI *PGET_CP_FILE_NAME_FROM_REGISTRY)(UINT CodePage,
|
2013-09-10 20:45:53 +00:00
|
|
|
LPWSTR FileName,
|
|
|
|
ULONG FileNameSize);
|
|
|
|
|
2013-11-17 19:14:24 +00:00
|
|
|
typedef BOOL(WINAPI *PGET_NLS_SECTION_NAME)(UINT CodePage,
|
2013-09-10 20:45:53 +00:00
|
|
|
UINT Base,
|
|
|
|
ULONG Unknown,
|
|
|
|
LPWSTR BaseName,
|
|
|
|
LPWSTR Result,
|
|
|
|
ULONG ResultSize);
|
2013-08-29 20:13:31 +00:00
|
|
|
|
2013-11-17 19:14:24 +00:00
|
|
|
typedef BOOL(WINAPI *PVALIDATE_LOCALE)(IN ULONG LocaleId);
|
|
|
|
typedef NTSTATUS(WINAPI *PCREATE_NLS_SECURTY_DESCRIPTOR)(IN PVOID Buffer,
|
2013-09-10 20:45:53 +00:00
|
|
|
IN ULONG BufferSize,
|
|
|
|
IN ULONG AceType);
|
2012-10-20 21:03:32 +00:00
|
|
|
|
2013-04-07 23:39:39 +00:00
|
|
|
/* Globals */
|
2012-10-21 17:18:33 +00:00
|
|
|
extern HANDLE BaseSrvHeap;
|
|
|
|
extern HANDLE BaseSrvSharedHeap;
|
|
|
|
extern PBASE_STATIC_SERVER_DATA BaseStaticServerData;
|
2012-10-20 21:03:32 +00:00
|
|
|
|
2014-01-04 10:29:54 +00:00
|
|
|
#endif /* __BASESRV_H__ */
|