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