ReactOS  0.4.15-dev-980-ge160524
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 
32 typedef struct
33 {
38 
39 extern HINSTANCE g_hInstance;
40 extern HMODULE g_hModule;
42 
45 DWORD Syscall(LPWSTR lpszFunction, int cParams, void* pParams);
47 extern UINT g_OsIdx;
48 
49 typedef 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 */
HINSTANCE g_hInstance
Definition: MainWindow.cpp:18
PVOID GetHandleUserData(HGDIOBJ hobj)
Definition: w32knapi.c:33
ASPI gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW
Definition: osver.c:13
BOOL InitOsVersion(VOID)
ASPI gONEPARAM_ROUTINE_SWAPMOUSEBUTTON
Definition: osver.c:11
int32_t INT
Definition: typedefs.h:58
unsigned int BOOL
Definition: ntddk_ex.h:94
UINT ASPI[5]
Definition: w32knapi.h:49
ASPI gNOPARAM_ROUTINE_LOADUSERAPIHOOK
Definition: osver.c:8
struct SYCALL_ENTRY * PSYSCALL_ENTRY
unsigned long DWORD
Definition: ntddk_ex.h:95
ASPI gHWND_ROUTINE_GETWNDCONTEXTHLPID
Definition: osver.c:14
UINT g_OsIdx
Definition: osver.c:4
ASPI gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT
Definition: osver.c:9
Definition: gdi.h:1
Definition: w32knapi.h:32
PGDI_TABLE_ENTRY GdiHandleTable
Definition: gdihv.c:26
ASPI gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID
Definition: osver.c:15
INT nSyscallNum
Definition: w32knapi.h:35
BOOL IsHandleValid(HGDIOBJ hobj)
Definition: w32knapi.c:17
unsigned int UINT
Definition: ndis.h:50
HMODULE g_hModule
Definition: ACPPage.cpp:12
ASPI gNOPARAM_ROUTINE_CREATEMENU
Definition: osver.c:6
INT nParams
Definition: w32knapi.h:36
ASPI gNOPARAM_ROUTINE_CREATEMENUPOPUP
Definition: osver.c:7
WCHAR * LPWSTR
Definition: xmlstorage.h:184
ASPI gONEPARAM_ROUTINE_MAPDEKTOPOBJECT
Definition: osver.c:10
DWORD Syscall(LPWSTR lpszFunction, int cParams, void *pParams)
Definition: w32knapi.c:90
LPWSTR lpszFunction
Definition: w32knapi.h:34