2008-06-01 18:06:22 +00:00
|
|
|
#ifndef _W32KNAPI_H
|
|
|
|
#define _W32KNAPI_H
|
|
|
|
|
|
|
|
/* SDK/NDK Headers */
|
|
|
|
#define NTOS_MODE_USER
|
|
|
|
#define WIN32_NO_STATUS
|
2013-02-05 17:54:22 +00:00
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <objbase.h>
|
2008-06-01 18:06:22 +00:00
|
|
|
#include <windowsx.h>
|
|
|
|
#include <ndk/ntndk.h>
|
|
|
|
#include <winddi.h>
|
|
|
|
#include <ddrawi.h>
|
|
|
|
#include <prntfont.h>
|
|
|
|
|
|
|
|
/* Public Win32K Headers */
|
2012-04-02 18:43:35 +00:00
|
|
|
#include <ntusrtyp.h>
|
|
|
|
#include <ntuser.h>
|
|
|
|
#include <callback.h>
|
|
|
|
#include <ntgdityp.h>
|
2008-06-01 18:06:22 +00:00
|
|
|
#include <ntgdi.h>
|
2012-04-02 18:43:35 +00:00
|
|
|
#include <ntgdihdl.h>
|
2008-06-01 18:06:22 +00:00
|
|
|
|
|
|
|
#include "../apitest.h"
|
|
|
|
#include "resource.h"
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
LPWSTR lpszFunction;
|
|
|
|
INT nSyscallNum;
|
|
|
|
INT nParams;
|
|
|
|
} SYCALL_ENTRY, *PSYSCALL_ENTRY;
|
|
|
|
|
|
|
|
extern HINSTANCE g_hInstance;
|
|
|
|
extern HMODULE g_hModule;
|
|
|
|
extern PGDI_TABLE_ENTRY GdiHandleTable;
|
|
|
|
|
2009-03-24 01:25:03 +00:00
|
|
|
BOOL IsHandleValid(HGDIOBJ hobj);
|
2009-08-09 11:27:25 +00:00
|
|
|
PVOID GetHandleUserData(HGDIOBJ hobj);
|
2008-06-01 18:06:22 +00:00
|
|
|
DWORD Syscall(LPWSTR lpszFunction, int cParams, void* pParams);
|
2011-05-30 11:40:58 +00:00
|
|
|
BOOL InitOsVersion(VOID);
|
2008-06-01 18:06:22 +00:00
|
|
|
extern UINT g_OsIdx;
|
|
|
|
|
|
|
|
typedef UINT ASPI[5];
|
|
|
|
extern ASPI gNOPARAM_ROUTINE_CREATEMENU;
|
|
|
|
extern ASPI gNOPARAM_ROUTINE_CREATEMENUPOPUP;
|
|
|
|
extern ASPI gNOPARAM_ROUTINE_LOADUSERAPIHOOK;
|
2010-07-14 14:56:53 +00:00
|
|
|
extern ASPI gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT;
|
2008-06-01 18:06:22 +00:00
|
|
|
extern ASPI gONEPARAM_ROUTINE_MAPDEKTOPOBJECT;
|
|
|
|
extern ASPI gONEPARAM_ROUTINE_SWAPMOUSEBUTTON;
|
|
|
|
extern ASPI gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW;
|
|
|
|
extern ASPI gHWND_ROUTINE_GETWNDCONTEXTHLPID;
|
|
|
|
extern ASPI gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID;
|
|
|
|
|
|
|
|
#define _NOPARAM_ROUTINE_CREATEMENU gNOPARAM_ROUTINE_CREATEMENU[g_OsIdx]
|
|
|
|
#define _NOPARAM_ROUTINE_CREATEMENUPOPUP gNOPARAM_ROUTINE_CREATEMENUPOPUP[g_OsIdx]
|
|
|
|
#define _NOPARAM_ROUTINE_LOADUSERAPIHOOK gNOPARAM_ROUTINE_LOADUSERAPIHOOK[g_OsIdx]
|
2010-07-14 14:56:53 +00:00
|
|
|
#define _ONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT gONEPARAM_ROUTINE_CREATEEMPTYCUROBJECT[g_OsIdx]
|
2008-06-01 18:06:22 +00:00
|
|
|
#define _ONEPARAM_ROUTINE_MAPDEKTOPOBJECT gONEPARAM_ROUTINE_MAPDEKTOPOBJECT[g_OsIdx]
|
|
|
|
#define _ONEPARAM_ROUTINE_SWAPMOUSEBUTTON gONEPARAM_ROUTINE_SWAPMOUSEBUTTON[g_OsIdx]
|
|
|
|
#define _HWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW gHWND_ROUTINE_DEREGISTERSHELLHOOKWINDOW[g_OsIdx]
|
|
|
|
#define _HWND_ROUTINE_GETWNDCONTEXTHLPID gHWND_ROUTINE_GETWNDCONTEXTHLPID[g_OsIdx]
|
|
|
|
#define _HWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID gHWNDPARAM_ROUTINE_SETWNDCONTEXTHLPID[g_OsIdx]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _W32KNAPI_H */
|