ReactOS 0.4.15-dev-5865-g640e228
w32knapi.h
Go to the documentation of this file.
1#ifndef _W32KNAPI_H
2#define _W32KNAPI_H
3
4/* SDK/NDK Headers */
5#define NTOS_MODE_USER
6#define WIN32_NO_STATUS
7#define _INC_WINDOWS
8#define COM_NO_WINDOWS_H
9#include <stdarg.h>
10#include <windef.h>
11#include <winbase.h>
12#include <wingdi.h>
13#include <objbase.h>
14#include <windowsx.h>
15#include <ndk/ntndk.h>
16#include <winddi.h>
17#include <ddrawi.h>
18#include <prntfont.h>
19#include <imm.h>
20
21/* Public Win32K Headers */
22#include <ntusrtyp.h>
23#include <ntuser.h>
24#include <callback.h>
25#include <ntgdityp.h>
26#include <ntgdi.h>
27#include <ntgdihdl.h>
28
29#include "../apitest.h"
30#include "resource.h"
31
32typedef struct
33{
38
40extern HMODULE g_hModule;
42
45DWORD Syscall(LPWSTR lpszFunction, int cParams, void* pParams);
47extern UINT g_OsIdx;
48
49typedef UINT ASPI[5];
59
60#define _NOPARAM_ROUTINE_CREATEMENU gNOPARAM_ROUTINE_CREATEMENU[g_OsIdx]
61#define _NOPARAM_ROUTINE_CREATEMENUPOPUP gNOPARAM_ROUTINE_CREATEMENUPOPUP[g_OsIdx]
62#define _NOPARAM_ROUTINE_LOADUSERAPIHOOK gNOPARAM_ROUTINE_LOADUSERAPIHOOK[g_OsIdx]
63#define _ONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT[g_OsIdx]
64#define _ONEPARAM_ROUTINE_MAPDEKTOPOBJECT gONEPARAM_ROUTINE_MAPDEKTOPOBJECT[g_OsIdx]
65#define _ONEPARAM_ROUTINE_SWAPMOUSEBUTTON gONEPARAM_ROUTINE_SWAPMOUSEBUTTON[g_OsIdx]
66#define _HWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW[g_OsIdx]
67#define _HWND_ROUTINE_GETWNDCONTEXTHLPID gHWND_ROUTINE_GETWNDCONTEXTHLPID[g_OsIdx]
68#define _HWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID[g_OsIdx]
69
70
71
72#endif /* _W32KNAPI_H */
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned int UINT
Definition: ndis.h:50
BOOL InitOsVersion()
Definition: osver.c:17
Definition: w32knapi.h:33
LPWSTR lpszFunction
Definition: w32knapi.h:34
INT nSyscallNum
Definition: w32knapi.h:35
INT nParams
Definition: w32knapi.h:36
Definition: gdi.h:2
int32_t INT
Definition: typedefs.h:58
ASPI gNOPARAM_ROUTINE_CREATEMENU
Definition: osver.c:6
ASPI gONEPARAM_ROUTINE_MAPDEKTOPOBJECT
Definition: osver.c:10
PGDI_TABLE_ENTRY GdiHandleTable
Definition: gdihv.c:26
DWORD Syscall(LPWSTR lpszFunction, int cParams, void *pParams)
Definition: w32knapi.c:90
ASPI gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID
Definition: osver.c:15
ASPI gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT
Definition: osver.c:9
struct SYCALL_ENTRY * PSYSCALL_ENTRY
UINT ASPI[5]
Definition: w32knapi.h:49
ASPI gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW
Definition: osver.c:13
PVOID GetHandleUserData(HGDIOBJ hobj)
Definition: w32knapi.c:33
ASPI gNOPARAM_ROUTINE_LOADUSERAPIHOOK
Definition: osver.c:8
ASPI gNOPARAM_ROUTINE_CREATEMENUPOPUP
Definition: osver.c:7
ASPI gHWND_ROUTINE_GETWNDCONTEXTHLPID
Definition: osver.c:14
ASPI gONEPARAM_ROUTINE_SWAPMOUSEBUTTON
Definition: osver.c:11
BOOL IsHandleValid(HGDIOBJ hobj)
Definition: w32knapi.c:17
HMODULE g_hModule
Definition: ACPPage.cpp:12
HINSTANCE g_hInstance
Definition: MainWindow.cpp:18
UINT g_OsIdx
Definition: osver.c:4
WCHAR * LPWSTR
Definition: xmlstorage.h:184