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 31 typedef struct 32 { 33 LPWSTR lpszFunction; 34 INT nSyscallNum; 35 INT nParams; 36 } SYCALL_ENTRY, *PSYSCALL_ENTRY; 37 38 extern HINSTANCE g_hInstance; 39 extern HMODULE g_hModule; 40 extern PGDI_TABLE_ENTRY GdiHandleTable; 41 42 BOOL IsHandleValid(HGDIOBJ hobj); 43 PVOID GetHandleUserData(HGDIOBJ hobj); 44 DWORD Syscall(LPWSTR lpszFunction, int cParams, void* pParams); 45 BOOL InitOsVersion(VOID); 46 extern UINT g_OsIdx; 47 48 typedef UINT ASPI[5]; 49 extern ASPI gNOPARAM_ROUTINE_CREATEMENU; 50 extern ASPI gNOPARAM_ROUTINE_CREATEMENUPOPUP; 51 extern ASPI gNOPARAM_ROUTINE_LOADUSERAPIHOOK; 52 extern ASPI gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT; 53 extern ASPI gONEPARAM_ROUTINE_MAPDEKTOPOBJECT; 54 extern ASPI gONEPARAM_ROUTINE_SWAPMOUSEBUTTON; 55 extern ASPI gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW; 56 extern ASPI gHWND_ROUTINE_GETWNDCONTEXTHLPID; 57 extern ASPI gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID; 58 59 #define _NOPARAM_ROUTINE_CREATEMENU gNOPARAM_ROUTINE_CREATEMENU[g_OsIdx] 60 #define _NOPARAM_ROUTINE_CREATEMENUPOPUP gNOPARAM_ROUTINE_CREATEMENUPOPUP[g_OsIdx] 61 #define _NOPARAM_ROUTINE_LOADUSERAPIHOOK gNOPARAM_ROUTINE_LOADUSERAPIHOOK[g_OsIdx] 62 #define _ONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT[g_OsIdx] 63 #define _ONEPARAM_ROUTINE_MAPDEKTOPOBJECT gONEPARAM_ROUTINE_MAPDEKTOPOBJECT[g_OsIdx] 64 #define _ONEPARAM_ROUTINE_SWAPMOUSEBUTTON gONEPARAM_ROUTINE_SWAPMOUSEBUTTON[g_OsIdx] 65 #define _HWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW[g_OsIdx] 66 #define _HWND_ROUTINE_GETWNDCONTEXTHLPID gHWND_ROUTINE_GETWNDCONTEXTHLPID[g_OsIdx] 67 #define _HWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID[g_OsIdx] 68 69 70 71 #endif /* _W32KNAPI_H */ 72