50 if (
Event > EVENT_OBJECT_STATECHANGE )
64 if (
Event <= EVENT_SYSTEM_MENUPOPUPEND )
123 ne.idObject = idObject;
124 ne.idChild = idChild;
207 PHOOK pHook, phkNext;
367 pusmodName = &USModuleName;
442 TRACE(
"ClientLoadLibrary: pid: %d, strLibraryName: %S, "
443 "strInitFuncName: %S, bUnload: %d, bApiHook:%d\n",
451 if (bUnload ==
FALSE)
490 if (bResult ==
FALSE)
584 TRACE(
"Reloading Hook Module.\n");
587 ERR(
"Failed to load Hook Module.\n");
618 pCbtCreatewndw->
lpcs = pCsw;
651 ERR(
"HCBT_ not supported = %d\n", Common->
Code);
669 ERR(
"Null Proc! Common = 0x%x, Proc = 0x%x\n",Common,Proc);
675 CbtCreatewndExtra->
Cs.
x = pCbtCreatewndw->
lpcs->
x;
676 CbtCreatewndExtra->
Cs.
y = pCbtCreatewndw->
lpcs->
y;
677 CbtCreatewndExtra->
Cs.
cx = pCbtCreatewndw->
lpcs->
cx;
678 CbtCreatewndExtra->
Cs.
cy = pCbtCreatewndw->
lpcs->
cy;
782 ERR(
"WH_ not supported = %d\n", Common->
HookId);
787 ERR(
"Hook Exception! Id: %d, Code %d, Proc 0x%x\n",Common->
HookId,Common->
Code,Proc);
813 ERR(
"Error check for module!\n");
819 TRACE(
"Reloading Event Module.\n");
822 ERR(
"Failed to load Event Module.\n");
std::map< E_MODULE, HMODULE > mod
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char * ModuleName
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
#define GetProcAddress(x, y)
#define HeapFree(x, y, z)
static PVOID FASTCALL DesktopPtrToUser(PVOID ptr)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
#define ISITHOOKED(HookId)
#define EXCEPTION_EXECUTE_HANDLER
VOID NTAPI NtUserNotifyWinEvent(DWORD Event, HWND hWnd, LONG idObject, LONG idChild)
BOOL NTAPI NtUserMessageCall(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, ULONG_PTR ResultInfo, DWORD dwType, BOOL Ansi)
BOOL NTAPI NtUserCallMsgFilter(LPMSG msg, INT code)
#define SRV_EVENT_VALUECHANGE
#define SRV_EVENT_NAMECHANGE
#define FNID_CALLWNDPROCRET
#define SRV_EVENT_END_APPLICATION
#define SRV_EVENT_LOCATIONCHANGE
HWINEVENTHOOK NTAPI NtUserSetWinEventHook(UINT eventMin, UINT eventMax, HMODULE hmodWinEventProc, PUNICODE_STRING puString, WINEVENTPROC lpfnWinEventProc, DWORD idProcess, DWORD idThread, UINT dwflags)
#define SRV_EVENT_STATECHANGE
#define GetWin32ClientInfo()
#define SRV_EVENT_RUNNING
static HWINEVENTHOOK(WINAPI *pSetWinEventHook)(DWORD
NTSYSAPI NTSTATUS NTAPI ZwCallbackReturn(_In_ PVOID Result, _In_ ULONG ResultLength, _In_ NTSTATUS Status)
NTSYSAPI NTSTATUS NTAPI RtlUnicodeStringToAnsiString(PANSI_STRING DestinationString, PUNICODE_STRING SourceString, BOOLEAN AllocateDestinationString)
NTSYSAPI VOID NTAPI RtlFreeAnsiString(PANSI_STRING AnsiString)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define STATUS_NOT_SUPPORTED
LRESULT APIENTRY NtUserCallNextHookEx(int Code, WPARAM wParam, LPARAM lParam, BOOL Ansi)
HHOOK APIENTRY NtUserSetWindowsHookEx(HINSTANCE Mod, PUNICODE_STRING UnsafeModuleName, DWORD ThreadId, int HookId, HOOKPROC HookProc, BOOL Ansi)
EXTINLINE VOID NtUserxNotifyWinEvent(HWND hWnd, PVOID ne)
EXTINLINE BOOL NtUserxUnhookWindowsHook(int nCode, HOOKPROC pfnFilterProc)
EXTINLINE BOOL NtUserxRegisterShellHookWindow(HWND hWnd)
EXTINLINE BOOL NtUserxDeregisterShellHookWindow(HWND hWnd)
#define _SEH2_EXCEPT(...)
UNICODE_STRING strLibraryName
UNICODE_STRING strInitFuncName
TW_UINT32 TW_UINT16 TW_UINT16 MSG
#define RtlCopyMemory(Destination, Source, Length)
#define STATUS_UNSUCCESSFUL
BOOL(CALLBACK * USERAPIHOOKPROC)(UAPIHK State, PUSERAPIHOOK puah)
BOOL WINAPI RegisterShellHookWindow(HWND hWnd)
HHOOK WINAPI SetWindowsHookW(int idHook, HOOKPROC lpfn)
static DWORD FASTCALL GetMaskFromEvent(DWORD Event)
NTSTATUS WINAPI User32CallClientLoadLibraryFromKernel(PVOID Arguments, ULONG ArgumentLength)
HHOOK WINAPI SetWindowsHookExW(int idHook, HOOKPROC lpfn, HINSTANCE hMod, DWORD dwThreadId)
static HHOOK FASTCALL IntSetWindowsHook(int idHook, HOOKPROC lpfn, HINSTANCE hMod, DWORD dwThreadId, BOOL bAnsi)
LRESULT WINAPI CallNextHookEx(HHOOK Hook, int Code, WPARAM wParam, LPARAM lParam)
struct _NOTIFYEVENT NOTIFYEVENT
BOOL WINAPI IsWinEventHookInstalled(DWORD event)
BOOL WINAPI CallMsgFilterA(LPMSG lpMsg, int nCode)
static BOOL ClientLoadLibrary(PUNICODE_STRING pstrLibName, PUNICODE_STRING pstrInitFunc, BOOL bUnload, BOOL bApiHook)
BOOL WINAPI DeregisterShellHookWindow(HWND hWnd)
VOID WINAPI NotifyWinEvent(DWORD event, HWND hwnd, LONG idObject, LONG idChild)
NTSTATUS WINAPI User32CallHookProcFromKernel(PVOID Arguments, ULONG ArgumentLength)
HHOOK WINAPI SetWindowsHookExA(int idHook, HOOKPROC lpfn, HINSTANCE hMod, DWORD dwThreadId)
NTSTATUS WINAPI User32CallEventProcFromKernel(PVOID Arguments, ULONG ArgumentLength)
BOOL WINAPI UnhookWindowsHook(int nCode, HOOKPROC pfnFilterProc)
HWINEVENTHOOK WINAPI SetWinEventHook(UINT eventMin, UINT eventMax, HMODULE hmodWinEventProc, WINEVENTPROC pfnWinEventProc, DWORD idProcess, DWORD idThread, UINT dwFlags)
BOOL WINAPI CallMsgFilterW(LPMSG lpMsg, int nCode)
struct _NOTIFYEVENT * PNOTIFYEVENT
HHOOK WINAPI SetWindowsHookA(int idHook, HOOKPROC lpfn)
VOID FASTCALL IntNotifyWinEvent(DWORD event, HWND hwnd, LONG idObject, LONG idChild, DWORD flags)
HINSTANCE ghmodUserApiHook
BOOL WINAPI InitUserApiHook(HINSTANCE hInstance, USERAPIHOOKPROC pfn)
BOOL WINAPI ClearUserApiHook(HINSTANCE hInstance)
static int Save(const char **args)
_In_ UCHAR _In_ UCHAR _In_ ULONG Code
struct tagCWPR_Struct * PCWPR_Struct
struct _HOOKPROC_CALLBACK_ARGUMENTS * PHOOKPROC_CALLBACK_ARGUMENTS
struct _HOOKPROC_CBT_CREATEWND_EXTRA_ARGUMENTS * PHOOKPROC_CBT_CREATEWND_EXTRA_ARGUMENTS
struct tagCWP_Struct * PCWP_Struct
struct _EVENTPROC_CALLBACK_ARGUMENTS * PEVENTPROC_CALLBACK_ARGUMENTS
struct _CLIENT_LOAD_LIBRARY_ARGUMENTS * PCLIENT_LOAD_LIBRARY_ARGUMENTS
VOID(CALLBACK * WINEVENTPROC)(HWINEVENTHOOK, DWORD, HWND, LONG, LONG, DWORD, DWORD)
#define WINEVENT_INCONTEXT
DWORD WINAPI GetCurrentProcessId(void)
#define LOAD_WITH_ALTERED_SEARCH_PATH
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
LRESULT(CALLBACK * HOOKPROC)(int, WPARAM, LPARAM)
#define WH_CALLWNDPROCRET
struct tagCREATESTRUCTW CREATESTRUCTW
struct tagCWPSTRUCT * PCWPSTRUCT
struct tagCBTACTIVATESTRUCT * LPCBTACTIVATESTRUCT
struct tagKBDLLHOOKSTRUCT * PKBDLLHOOKSTRUCT
struct tagCWPRETSTRUCT CWPRETSTRUCT
#define HCBT_CLICKSKIPPED
struct tagMOUSEHOOKSTRUCT * PMOUSEHOOKSTRUCT
struct tagCWPRETSTRUCT * PCWPRETSTRUCT
struct tagCBT_CREATEWNDW CBT_CREATEWNDW
#define WH_FOREGROUNDIDLE
struct tagMSLLHOOKSTRUCT * PMSLLHOOKSTRUCT
struct tagCWPSTRUCT CWPSTRUCT
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
_Must_inspect_result_ _In_ ULONG Flags
_Out_ PCLIENT_ID ClientId