hook SetForegroundWindow for profile links
This commit is contained in:
parent
f86ad29835
commit
766e4b434c
4 changed files with 16 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
#define SKIP_HOOK3 0x00000002l
|
||||
|
||||
typedef struct HOOKLISTDATA { char function_name[32]; PROC new_function; PROC* function; DWORD flags; } HOOKLISTDATA;
|
||||
typedef struct HOOKLIST { char module_name[32]; HOOKLISTDATA data[27]; } HOOKLIST;
|
||||
typedef struct HOOKLIST { char module_name[32]; HOOKLISTDATA data[28]; } HOOKLIST;
|
||||
|
||||
typedef BOOL(WINAPI* GETCURSORPOSPROC)(LPPOINT);
|
||||
typedef BOOL(WINAPI* CLIPCURSORPROC)(const RECT*);
|
||||
|
@ -44,6 +44,7 @@ typedef int (WINAPI* SETDIBITSTODEVICEPROC)(
|
|||
typedef int (WINAPI* STRETCHDIBITSPROC)(
|
||||
HDC, int, int, int, int, int, int, int, int, const VOID*, const BITMAPINFO*, UINT, DWORD);
|
||||
|
||||
typedef BOOL (WINAPI* SETFOREGROUNDWINDOWPROC)(HWND hWnd);
|
||||
typedef HHOOK(WINAPI* SETWINDOWSHOOKEXAPROC)(int, HOOKPROC, HINSTANCE, DWORD);
|
||||
typedef BOOL(WINAPI* PEEKMESSAGEAPROC)(LPMSG, HWND, UINT, UINT, UINT);
|
||||
|
||||
|
@ -85,6 +86,7 @@ extern GETFOREGROUNDWINDOWPROC real_GetForegroundWindow;
|
|||
extern STRETCHBLTPROC real_StretchBlt;
|
||||
extern SETDIBITSTODEVICEPROC real_SetDIBitsToDevice;
|
||||
extern STRETCHDIBITSPROC real_StretchDIBits;
|
||||
extern SETFOREGROUNDWINDOWPROC real_SetForegroundWindow;
|
||||
extern SETWINDOWSHOOKEXAPROC real_SetWindowsHookExA;
|
||||
extern PEEKMESSAGEAPROC real_PeekMessageA;
|
||||
extern GETDEVICECAPSPROC real_GetDeviceCaps;
|
||||
|
|
|
@ -29,6 +29,7 @@ int WINAPI fake_MapWindowPoints(HWND hWndFrom, HWND hWndTo, LPPOINT lpPoints, UI
|
|||
BOOL WINAPI fake_ShowWindow(HWND hWnd, int nCmdShow);
|
||||
HWND WINAPI fake_GetTopWindow(HWND hWnd);
|
||||
HWND WINAPI fake_GetForegroundWindow(void);
|
||||
BOOL WINAPI fake_SetForegroundWindow(HWND hWnd);
|
||||
HHOOK WINAPI fake_SetWindowsHookExA(int idHook, HOOKPROC lpfn, HINSTANCE hmod, DWORD dwThreadId);
|
||||
BOOL WINAPI fake_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg);
|
||||
int WINAPI fake_GetDeviceCaps(HDC hdc, int index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue