2008-11-30 13:49:18 +08:00
|
|
|
#ifndef __W32K_H
|
|
|
|
#define __W32K_H
|
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
2011-12-14 12:07:06 +08:00
|
|
|
* PROJECT: ReactOS Win32k subsystem
|
2012-07-05 07:16:17 +08:00
|
|
|
* FILE: win32ss/pch.h
|
2008-11-30 13:49:18 +08:00
|
|
|
* PURPOSE: Main Win32K Header
|
|
|
|
* PROGRAMMER: Alex Ionescu (alex@relsoft.net)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
#define _NO_COM
|
2012-05-03 03:29:33 +08:00
|
|
|
#define STRICT
|
2008-11-30 13:49:18 +08:00
|
|
|
|
2011-12-14 12:07:06 +08:00
|
|
|
/* DDK/NDK/SDK headers */
|
2011-07-25 05:02:50 +08:00
|
|
|
#undef NTDDI_VERSION
|
|
|
|
#define NTDDI_VERSION NTDDI_WS03SP1
|
2010-03-29 10:51:02 +08:00
|
|
|
#include <ntifs.h>
|
2014-02-06 00:30:19 +08:00
|
|
|
#include <ntddmou.h>
|
2011-08-17 22:04:33 +08:00
|
|
|
#include <ndk/exfuncs.h>
|
2015-10-16 23:33:19 +08:00
|
|
|
#include <ndk/iofuncs.h>
|
2011-08-17 22:04:33 +08:00
|
|
|
#include <ndk/kdfuncs.h>
|
|
|
|
#include <ndk/kefuncs.h>
|
|
|
|
#include <ndk/mmfuncs.h>
|
|
|
|
#include <ndk/obfuncs.h>
|
|
|
|
#include <ndk/psfuncs.h>
|
2022-03-17 04:03:56 +08:00
|
|
|
#include <ndk/sefuncs.h>
|
2011-08-17 22:04:33 +08:00
|
|
|
#include <ndk/rtlfuncs.h>
|
2011-03-26 06:45:59 +08:00
|
|
|
#include <ntstrsafe.h>
|
2015-03-09 01:25:44 +08:00
|
|
|
#include <ntintsafe.h>
|
2011-09-21 03:41:33 +08:00
|
|
|
#include <ntddkbd.h>
|
2008-11-30 13:49:18 +08:00
|
|
|
|
2011-12-14 12:07:06 +08:00
|
|
|
/* Win32 headers */
|
2008-11-30 13:49:18 +08:00
|
|
|
/* FIXME: Defines in winbase.h that we need... */
|
|
|
|
typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
|
2012-10-28 20:13:03 +08:00
|
|
|
#define MAKEINTATOM(i) (LPWSTR)((ULONG_PTR)((WORD)(i)))
|
2008-11-30 13:49:18 +08:00
|
|
|
#define WINBASEAPI
|
2015-01-26 23:00:24 +08:00
|
|
|
#define STARTF_USESHOWWINDOW 1
|
2008-11-30 13:49:18 +08:00
|
|
|
#define STARTF_USESIZE 2
|
|
|
|
#define STARTF_USEPOSITION 4
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
2011-09-21 03:41:33 +08:00
|
|
|
#define _USE_MATH_DEFINES
|
2011-08-27 20:38:23 +08:00
|
|
|
#include <math.h>
|
2011-09-21 03:41:33 +08:00
|
|
|
#include <intrin.h>
|
2009-03-19 09:42:34 +08:00
|
|
|
|
2015-09-15 21:15:28 +08:00
|
|
|
// Needed because windef.h messes up CDECL for whatever
|
|
|
|
#undef CDECL
|
|
|
|
#define CDECL __cdecl
|
|
|
|
|
2009-03-19 09:42:34 +08:00
|
|
|
/* Avoid type casting, by defining RECT to RECTL */
|
|
|
|
#define RECT RECTL
|
|
|
|
#define PRECT PRECTL
|
|
|
|
#define LPRECT LPRECTL
|
|
|
|
#define LPCRECT LPCRECTL
|
2010-11-23 07:20:50 +08:00
|
|
|
#define POINT POINTL
|
|
|
|
#define LPPOINT PPOINTL
|
|
|
|
#define PPOINT PPOINTL
|
2009-03-19 09:42:34 +08:00
|
|
|
|
2008-11-30 13:49:18 +08:00
|
|
|
#include <winerror.h>
|
|
|
|
#include <wingdi.h>
|
2009-08-03 04:35:19 +08:00
|
|
|
#define NT_BUILD_ENVIRONMENT
|
2013-03-02 23:43:23 +08:00
|
|
|
#define _ENGINE_EXPORT_
|
2008-11-30 13:49:18 +08:00
|
|
|
#include <winddi.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
#include <prntfont.h>
|
|
|
|
#define _NOCSECT_TYPE
|
|
|
|
#include <ddrawi.h>
|
2014-12-27 14:59:29 +08:00
|
|
|
#include <imm.h>
|
2020-04-20 07:49:46 +08:00
|
|
|
#include <dbt.h>
|
2022-04-16 08:27:50 +08:00
|
|
|
#include <ntddvdeo.h>
|
2008-11-30 13:49:18 +08:00
|
|
|
|
2011-12-14 12:07:06 +08:00
|
|
|
/* SEH support with PSEH */
|
2008-12-01 03:28:11 +08:00
|
|
|
#include <pseh/pseh2.h>
|
2008-11-30 13:49:18 +08:00
|
|
|
|
2022-12-03 21:00:28 +08:00
|
|
|
/* The native x64 definition of FLOATOBJ_GetFloat in winddi.h is retarded. Use this instead. */
|
|
|
|
#ifndef _M_IX86
|
|
|
|
#undef FLOATOBJ_GetFloat
|
|
|
|
#define FLOATOBJ_GetFloat(pf) (*(pf))
|
|
|
|
#endif
|
|
|
|
|
2015-03-26 06:38:20 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2011-12-14 12:07:06 +08:00
|
|
|
/* Public Win32K headers */
|
2012-04-02 18:52:36 +08:00
|
|
|
#include <include/ntgdityp.h>
|
2008-11-30 13:49:18 +08:00
|
|
|
#include <ntgdi.h>
|
2015-03-26 06:32:35 +08:00
|
|
|
#include <include/ntgdihdl.h>
|
|
|
|
#include <include/ntgdibad.h>
|
|
|
|
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#include <include/ntusrtyp.h>
|
|
|
|
#include <include/ntuser.h>
|
|
|
|
#include <include/callback.h>
|
|
|
|
#endif // __cplusplus
|
2008-11-30 13:49:18 +08:00
|
|
|
|
2011-01-12 02:47:16 +08:00
|
|
|
/* Undocumented user definitions */
|
|
|
|
#include <undocuser.h>
|
|
|
|
|
2011-12-14 12:07:06 +08:00
|
|
|
/* Freetype headers */
|
2011-08-27 20:38:23 +08:00
|
|
|
#include <ft2build.h>
|
2011-09-21 03:41:33 +08:00
|
|
|
#include FT_FREETYPE_H
|
2011-08-27 20:38:23 +08:00
|
|
|
|
2015-03-26 06:32:35 +08:00
|
|
|
#define InterlockedIncrementUL(Value) InterlockedIncrement((PLONG)Value)
|
|
|
|
#define InterlockedDecrementUL(Value) InterlockedDecrement((PLONG)Value)
|
|
|
|
|
2011-12-14 12:07:06 +08:00
|
|
|
/* Internal Win32K header */
|
2012-04-02 04:42:43 +08:00
|
|
|
#include "win32kp.h"
|
2008-11-30 13:49:18 +08:00
|
|
|
|
2015-03-26 06:38:20 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
2008-11-30 13:49:18 +08:00
|
|
|
#endif /* __W32K_H */
|