2008-11-30 05:49:18 +00:00
|
|
|
/*
|
|
|
|
* 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)
|
|
|
|
*/
|
|
|
|
|
2023-11-13 19:55:48 +00:00
|
|
|
#ifndef __W32K_H
|
|
|
|
#define __W32K_H
|
|
|
|
|
2008-11-30 05:49:18 +00:00
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
#define _NO_COM
|
2012-05-02 19:29:33 +00:00
|
|
|
#define STRICT
|
2008-11-30 05:49:18 +00:00
|
|
|
|
2023-11-22 14:23:37 +00:00
|
|
|
/* C headers */
|
|
|
|
#include <stdarg.h>
|
|
|
|
#define _USE_MATH_DEFINES
|
|
|
|
#include <math.h>
|
|
|
|
#include <intrin.h>
|
|
|
|
|
|
|
|
/* DDK 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>
|
2023-11-22 14:23:37 +00:00
|
|
|
#include <ntddkbd.h>
|
2014-02-05 16:30:19 +00:00
|
|
|
#include <ntddmou.h>
|
2023-11-22 14:23:37 +00:00
|
|
|
#include <ntddvdeo.h>
|
2011-03-25 22:45:59 +00:00
|
|
|
#include <ntstrsafe.h>
|
2015-03-08 17:25:44 +00:00
|
|
|
#include <ntintsafe.h>
|
2008-11-30 05:49:18 +00:00
|
|
|
|
2023-11-22 14:23:37 +00:00
|
|
|
/* Win32 PSDK 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 <windef.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>
|
2013-03-02 15:43:23 +00:00
|
|
|
#define _ENGINE_EXPORT_
|
2008-11-30 05:49:18 +00:00
|
|
|
#include <winddi.h>
|
2023-11-22 14:23:37 +00:00
|
|
|
#define OEMRESOURCE
|
2008-11-30 05:49:18 +00:00
|
|
|
#include <winuser.h>
|
2024-02-13 11:33:14 +00:00
|
|
|
#include <ndk/rtltypes.h>
|
2008-11-30 05:49:18 +00:00
|
|
|
#include <prntfont.h>
|
|
|
|
#define _NOCSECT_TYPE
|
|
|
|
#include <ddrawi.h>
|
2014-12-27 06:59:29 +00:00
|
|
|
#include <imm.h>
|
2024-02-13 11:33:14 +00:00
|
|
|
#include <immdev.h>
|
|
|
|
#include <imm32_undoc.h>
|
2020-04-19 23:49:46 +00:00
|
|
|
#include <dbt.h>
|
2023-11-22 14:23:37 +00:00
|
|
|
|
|
|
|
/* NDK headers */
|
|
|
|
#include <ndk/exfuncs.h>
|
|
|
|
#include <ndk/iofuncs.h>
|
|
|
|
#include <ndk/kdfuncs.h>
|
|
|
|
#include <ndk/kefuncs.h>
|
|
|
|
#include <ndk/mmfuncs.h>
|
|
|
|
#include <ndk/obfuncs.h>
|
|
|
|
#include <ndk/psfuncs.h>
|
|
|
|
#include <ndk/sefuncs.h>
|
|
|
|
#include <ndk/rtlfuncs.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
|
|
|
|
2023-11-13 19:55:48 +00:00
|
|
|
#define InterlockedIncrementUL(Value) (ULONG)InterlockedIncrement((PLONG)(Value))
|
|
|
|
#define InterlockedDecrementUL(Value) (ULONG)InterlockedDecrement((PLONG)(Value))
|
2015-03-25 22:32:35 +00:00
|
|
|
|
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 */
|