mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
568b6d0558
Allocate heap instead of data segment to be used for callbacks on user side. Move and correct initial hook call out setup. Use it in more than one hook call. This fixes issues with strings out of alignment and use of kernel pointers. See CORE-13907 and CORE-16769. KsStudio still needs retested. Small wow update.
78 lines
2 KiB
C
78 lines
2 KiB
C
#pragma once
|
|
|
|
LRESULT APIENTRY
|
|
co_IntCallWindowProc(WNDPROC Proc,
|
|
BOOLEAN IsAnsiProc,
|
|
HWND Wnd,
|
|
UINT Message,
|
|
WPARAM wParam,
|
|
LPARAM lParam,
|
|
INT lParamBufferSize);
|
|
|
|
VOID APIENTRY
|
|
co_IntCallSentMessageCallback(SENDASYNCPROC CompletionCallback,
|
|
HWND hWnd,
|
|
UINT Msg,
|
|
ULONG_PTR CompletionCallbackContext,
|
|
LRESULT Result);
|
|
|
|
|
|
HMENU APIENTRY
|
|
co_IntLoadSysMenuTemplate(VOID);
|
|
|
|
BOOL APIENTRY
|
|
co_IntLoadDefaultCursors(VOID);
|
|
|
|
LRESULT APIENTRY
|
|
co_IntCallHookProc(INT HookId,
|
|
INT Code,
|
|
WPARAM wParam,
|
|
LPARAM lParam,
|
|
HOOKPROC Proc,
|
|
INT Mod,
|
|
ULONG_PTR offPfn,
|
|
BOOLEAN Ansi,
|
|
PUNICODE_STRING ModuleName);
|
|
|
|
LRESULT APIENTRY
|
|
co_IntCallEventProc(HWINEVENTHOOK hook,
|
|
DWORD event,
|
|
HWND hwnd,
|
|
LONG idObject,
|
|
LONG idChild,
|
|
DWORD dwEventThread,
|
|
DWORD dwmsEventTime,
|
|
WINEVENTPROC Proc,
|
|
INT Mod,
|
|
ULONG_PTR offPfn);
|
|
|
|
VOID FASTCALL
|
|
IntCleanupThreadCallbacks(PTHREADINFO W32Thread);
|
|
|
|
PVOID FASTCALL
|
|
IntCbAllocateMemory(ULONG Size);
|
|
|
|
VOID FASTCALL
|
|
IntCbFreeMemory(PVOID Data);
|
|
|
|
HMENU APIENTRY co_IntCallLoadMenu(HINSTANCE,PUNICODE_STRING);
|
|
|
|
NTSTATUS APIENTRY co_IntClientThreadSetup(VOID);
|
|
|
|
BOOL
|
|
NTAPI
|
|
co_IntClientLoadLibrary(PUNICODE_STRING strLibName,
|
|
PUNICODE_STRING strInitFunc,
|
|
BOOL Unload,
|
|
BOOL ApiHook);
|
|
|
|
BOOL
|
|
APIENTRY
|
|
co_IntGetCharsetInfo(LCID Locale, PCHARSETINFO pCs);
|
|
|
|
HANDLE FASTCALL co_IntCopyImage(HANDLE,UINT,INT,INT,UINT);
|
|
|
|
BOOL FASTCALL co_IntSetWndIcons(VOID);
|
|
VOID FASTCALL co_IntDeliverUserAPC(VOID);
|
|
VOID FASTCALL co_IntSetupOBM(VOID);
|
|
BOOL FASTCALL IntMsgCreateStructW(PWND,CREATESTRUCTW*,CREATESTRUCTW*,PVOID*,PVOID*);
|