2002-01-27 01:11:24 +00:00
|
|
|
#ifndef __INCLUDE_USER32_CALLBACK_H
|
|
|
|
#define __INCLUDE_USER32_CALLBACK_H
|
|
|
|
|
2003-05-17 14:30:28 +00:00
|
|
|
#define USER32_CALLBACK_WINDOWPROC (0)
|
|
|
|
#define USER32_CALLBACK_SENDASYNCPROC (1)
|
2003-12-26 22:52:12 +00:00
|
|
|
#define USER32_CALLBACK_LOADSYSMENUTEMPLATE (2)
|
|
|
|
#define USER32_CALLBACK_LOADDEFAULTCURSORS (3)
|
|
|
|
#define USER32_CALLBACK_HOOKPROC (4)
|
2008-04-17 01:48:34 +00:00
|
|
|
#define USER32_CALLBACK_EVENTPROC (5)
|
2009-07-22 04:11:06 +00:00
|
|
|
#define USER32_CALLBACK_LOADMENU (6)
|
2009-08-17 00:30:25 +00:00
|
|
|
#define USER32_CALLBACK_CLIENTTHREADSTARTUP (7)
|
2011-09-18 13:12:44 +00:00
|
|
|
#define USER32_CALLBACK_CLIENTLOADLIBRARY (8)
|
2012-07-04 23:16:17 +00:00
|
|
|
#define USER32_CALLBACK_GETCHARSETINFO (9)
|
2013-10-09 01:11:44 +00:00
|
|
|
#define USER32_CALLBACK_COPYIMAGE (10)
|
2013-10-11 21:46:30 +00:00
|
|
|
#define USER32_CALLBACK_SETWNDICONS (11)
|
|
|
|
#define USER32_CALLBACK_MAXIMUM (11)
|
2002-01-27 01:11:24 +00:00
|
|
|
|
|
|
|
typedef struct _WINDOWPROC_CALLBACK_ARGUMENTS
|
|
|
|
{
|
|
|
|
WNDPROC Proc;
|
2003-12-26 22:52:12 +00:00
|
|
|
BOOL IsAnsiProc;
|
2002-01-27 01:11:24 +00:00
|
|
|
HWND Wnd;
|
|
|
|
UINT Msg;
|
|
|
|
WPARAM wParam;
|
|
|
|
LPARAM lParam;
|
2003-12-26 22:52:12 +00:00
|
|
|
INT lParamBufferSize;
|
|
|
|
LRESULT Result;
|
|
|
|
/* char Buffer[]; */
|
2002-01-27 01:11:24 +00:00
|
|
|
} WINDOWPROC_CALLBACK_ARGUMENTS, *PWINDOWPROC_CALLBACK_ARGUMENTS;
|
|
|
|
|
2002-05-06 22:20:32 +00:00
|
|
|
typedef struct _SENDASYNCPROC_CALLBACK_ARGUMENTS
|
|
|
|
{
|
2002-07-04 19:56:38 +00:00
|
|
|
SENDASYNCPROC Callback;
|
2002-05-06 22:20:32 +00:00
|
|
|
HWND Wnd;
|
|
|
|
UINT Msg;
|
2002-07-04 19:56:38 +00:00
|
|
|
ULONG_PTR Context;
|
2002-05-06 22:20:32 +00:00
|
|
|
LRESULT Result;
|
|
|
|
} SENDASYNCPROC_CALLBACK_ARGUMENTS, *PSENDASYNCPROC_CALLBACK_ARGUMENTS;
|
|
|
|
|
2010-05-30 06:23:41 +00:00
|
|
|
typedef struct _CALL_BACK_INFO
|
|
|
|
{
|
|
|
|
SENDASYNCPROC CallBack;
|
|
|
|
ULONG_PTR Context;
|
|
|
|
} CALL_BACK_INFO, * PCALL_BACK_INFO;
|
|
|
|
|
|
|
|
|
2003-12-12 14:22:37 +00:00
|
|
|
typedef struct _HOOKPROC_CALLBACK_ARGUMENTS
|
|
|
|
{
|
|
|
|
INT HookId;
|
|
|
|
INT Code;
|
|
|
|
WPARAM wParam;
|
|
|
|
LPARAM lParam;
|
|
|
|
HOOKPROC Proc;
|
2013-10-05 19:57:22 +00:00
|
|
|
INT Mod;
|
|
|
|
ULONG_PTR offPfn;
|
2003-12-12 14:22:37 +00:00
|
|
|
BOOLEAN Ansi;
|
2013-12-09 01:55:48 +00:00
|
|
|
LRESULT Result;
|
2013-10-05 19:57:22 +00:00
|
|
|
WCHAR ModuleName[512];
|
2003-12-12 14:22:37 +00:00
|
|
|
} HOOKPROC_CALLBACK_ARGUMENTS, *PHOOKPROC_CALLBACK_ARGUMENTS;
|
|
|
|
|
|
|
|
typedef struct _HOOKPROC_CBT_CREATEWND_EXTRA_ARGUMENTS
|
|
|
|
{
|
|
|
|
CREATESTRUCTW Cs; /* lpszName and lpszClass replaced by offsets */
|
|
|
|
HWND WndInsertAfter;
|
|
|
|
/* WCHAR szName[] */
|
|
|
|
/* WCHAR szClass[] */
|
|
|
|
} HOOKPROC_CBT_CREATEWND_EXTRA_ARGUMENTS, *PHOOKPROC_CBT_CREATEWND_EXTRA_ARGUMENTS;
|
|
|
|
|
2008-04-17 01:48:34 +00:00
|
|
|
typedef struct _EVENTPROC_CALLBACK_ARGUMENTS
|
|
|
|
{
|
|
|
|
HWINEVENTHOOK hook;
|
|
|
|
DWORD event;
|
|
|
|
HWND hwnd;
|
|
|
|
LONG idObject;
|
|
|
|
LONG idChild;
|
|
|
|
DWORD dwEventThread;
|
|
|
|
DWORD dwmsEventTime;
|
|
|
|
WINEVENTPROC Proc;
|
|
|
|
} EVENTPROC_CALLBACK_ARGUMENTS, *PEVENTPROC_CALLBACK_ARGUMENTS;
|
|
|
|
|
2009-07-22 04:11:06 +00:00
|
|
|
typedef struct _LOADMENU_CALLBACK_ARGUMENTS
|
|
|
|
{
|
|
|
|
HINSTANCE hModule;
|
|
|
|
WCHAR MenuName[1];
|
|
|
|
} LOADMENU_CALLBACK_ARGUMENTS, *PLOADMENU_CALLBACK_ARGUMENTS;
|
|
|
|
|
2013-10-09 01:11:44 +00:00
|
|
|
typedef struct _COPYIMAGE_CALLBACK_ARGUMENTS
|
|
|
|
{
|
|
|
|
HANDLE hImage;
|
|
|
|
UINT uType;
|
|
|
|
int cxDesired;
|
|
|
|
int cyDesired;
|
|
|
|
UINT fuFlags;
|
|
|
|
} COPYIMAGE_CALLBACK_ARGUMENTS, *PCOPYIMAGE_CALLBACK_ARGUMENTS;
|
|
|
|
|
2011-09-18 13:12:44 +00:00
|
|
|
typedef struct _CLIENT_LOAD_LIBRARY_ARGUMENTS
|
|
|
|
{
|
|
|
|
UNICODE_STRING strLibraryName;
|
|
|
|
UNICODE_STRING strInitFuncName;
|
|
|
|
BOOL Unload;
|
|
|
|
BOOL ApiHook;
|
|
|
|
} CLIENT_LOAD_LIBRARY_ARGUMENTS, *PCLIENT_LOAD_LIBRARY_ARGUMENTS;
|
|
|
|
|
2012-07-04 23:16:17 +00:00
|
|
|
typedef struct _GET_CHARSET_INFO
|
|
|
|
{
|
|
|
|
LCID Locale;
|
|
|
|
CHARSETINFO Cs;
|
|
|
|
} GET_CHARSET_INFO, *PGET_CHARSET_INFO;
|
|
|
|
|
2013-10-11 21:46:30 +00:00
|
|
|
typedef struct _SETWNDICONS_CALLBACK_ARGUMENTS
|
|
|
|
{
|
|
|
|
HICON hIconSmWindows;
|
|
|
|
HICON hIconWindows;
|
|
|
|
} SETWNDICONS_CALLBACK_ARGUMENTS, *PSETWNDICONS_CALLBACK_ARGUMENTS;
|
|
|
|
|
2013-10-09 01:11:44 +00:00
|
|
|
NTSTATUS WINAPI
|
|
|
|
User32CallCopyImageFromKernel(PVOID Arguments, ULONG ArgumentLength);
|
2008-11-30 11:42:05 +00:00
|
|
|
NTSTATUS WINAPI
|
2013-10-11 21:46:30 +00:00
|
|
|
User32CallSetWndIconsFromKernel(PVOID Arguments, ULONG ArgumentLength);
|
|
|
|
NTSTATUS WINAPI
|
2002-01-27 01:11:24 +00:00
|
|
|
User32CallWindowProcFromKernel(PVOID Arguments, ULONG ArgumentLength);
|
2008-11-30 11:42:05 +00:00
|
|
|
NTSTATUS WINAPI
|
2002-05-06 22:20:32 +00:00
|
|
|
User32CallSendAsyncProcForKernel(PVOID Arguments, ULONG ArgumentLength);
|
2008-11-30 11:42:05 +00:00
|
|
|
NTSTATUS WINAPI
|
2003-08-21 20:29:44 +00:00
|
|
|
User32LoadSysMenuTemplateForKernel(PVOID Arguments, ULONG ArgumentLength);
|
2008-11-30 11:42:05 +00:00
|
|
|
NTSTATUS WINAPI
|
2003-08-29 08:46:20 +00:00
|
|
|
User32SetupDefaultCursors(PVOID Arguments, ULONG ArgumentLength);
|
2008-11-30 11:42:05 +00:00
|
|
|
NTSTATUS WINAPI
|
2003-12-12 14:22:37 +00:00
|
|
|
User32CallHookProcFromKernel(PVOID Arguments, ULONG ArgumentLength);
|
2008-11-30 11:42:05 +00:00
|
|
|
NTSTATUS WINAPI
|
2008-04-17 01:48:34 +00:00
|
|
|
User32CallEventProcFromKernel(PVOID Arguments, ULONG ArgumentLength);
|
2009-07-22 04:11:06 +00:00
|
|
|
NTSTATUS WINAPI
|
|
|
|
User32CallLoadMenuFromKernel(PVOID Arguments, ULONG ArgumentLength);
|
2009-08-17 00:30:25 +00:00
|
|
|
NTSTATUS WINAPI
|
|
|
|
User32CallClientThreadSetupFromKernel(PVOID Arguments, ULONG ArgumentLength);
|
2011-09-18 13:12:44 +00:00
|
|
|
NTSTATUS WINAPI
|
|
|
|
User32CallClientLoadLibraryFromKernel(PVOID Arguments, ULONG ArgumentLength);
|
2012-07-04 23:16:17 +00:00
|
|
|
NTSTATUS WINAPI
|
|
|
|
User32CallGetCharsetInfo(PVOID Arguments, ULONG ArgumentLength);
|
2002-01-27 01:11:24 +00:00
|
|
|
#endif /* __INCLUDE_USER32_CALLBACK_H */
|