2020-10-13 09:20:52 +02:00
|
|
|
#ifndef WINAPI_HOOKS_H
|
|
|
|
#define WINAPI_HOOKS_H
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
|
|
|
|
BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint);
|
2021-06-11 20:30:43 +02:00
|
|
|
BOOL WINAPI fake_ClipCursor(const RECT* lpRect);
|
2020-10-13 09:20:52 +02:00
|
|
|
int WINAPI fake_ShowCursor(BOOL bShow);
|
|
|
|
HCURSOR WINAPI fake_SetCursor(HCURSOR hCursor);
|
|
|
|
BOOL WINAPI fake_GetWindowRect(HWND hWnd, LPRECT lpRect);
|
|
|
|
BOOL WINAPI fake_GetClientRect(HWND hWnd, LPRECT lpRect);
|
|
|
|
BOOL WINAPI fake_ClientToScreen(HWND hWnd, LPPOINT lpPoint);
|
|
|
|
BOOL WINAPI fake_ScreenToClient(HWND hWnd, LPPOINT lpPoint);
|
|
|
|
BOOL WINAPI fake_SetCursorPos(int X, int Y);
|
|
|
|
HWND WINAPI fake_WindowFromPoint(POINT Point);
|
|
|
|
BOOL WINAPI fake_GetClipCursor(LPRECT lpRect);
|
|
|
|
BOOL WINAPI fake_GetCursorInfo(PCURSORINFO pci);
|
|
|
|
int WINAPI fake_GetSystemMetrics(int nIndex);
|
|
|
|
BOOL WINAPI fake_SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags);
|
|
|
|
BOOL WINAPI fake_MoveWindow(HWND hWnd, int X, int Y, int nWidth, int nHeight, BOOL bRepaint);
|
|
|
|
LRESULT WINAPI fake_SendMessageA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
|
|
|
|
LONG WINAPI fake_SetWindowLongA(HWND hWnd, int nIndex, LONG dwNewLong);
|
2021-06-04 22:46:15 +02:00
|
|
|
LONG WINAPI fake_GetWindowLongA(HWND hWnd, int nIndex);
|
2020-10-13 09:20:52 +02:00
|
|
|
BOOL WINAPI fake_EnableWindow(HWND hWnd, BOOL bEnable);
|
|
|
|
BOOL WINAPI fake_DestroyWindow(HWND hWnd);
|
2021-05-29 21:40:21 +02:00
|
|
|
int WINAPI fake_MapWindowPoints(HWND hWndFrom, HWND hWndTo, LPPOINT lpPoints, UINT cPoints);
|
2021-08-04 15:24:16 +02:00
|
|
|
BOOL WINAPI fake_ShowWindow(HWND hWnd, int nCmdShow);
|
2022-10-18 22:21:42 +02:00
|
|
|
HWND WINAPI fake_GetTopWindow(HWND hWnd);
|
2022-10-19 05:08:22 +02:00
|
|
|
HWND WINAPI fake_GetForegroundWindow(void);
|
2023-04-09 20:06:51 +02:00
|
|
|
BOOL WINAPI fake_SetForegroundWindow(HWND hWnd);
|
2021-06-06 19:03:38 +02:00
|
|
|
HHOOK WINAPI fake_SetWindowsHookExA(int idHook, HOOKPROC lpfn, HINSTANCE hmod, DWORD dwThreadId);
|
2023-02-27 18:25:28 +01:00
|
|
|
BOOL WINAPI fake_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg);
|
2023-10-07 09:03:11 +02:00
|
|
|
BOOL WINAPI fake_GetMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax);
|
2024-05-30 03:00:23 +02:00
|
|
|
BOOL WINAPI fake_GetWindowPlacement(HWND hWnd, WINDOWPLACEMENT* lpwndpl);
|
2024-06-10 00:02:39 +02:00
|
|
|
BOOL WINAPI fake_EnumDisplaySettingsA(LPCSTR lpszDeviceName, DWORD iModeNum, DEVMODEA* lpDevMode);
|
2024-07-27 09:42:18 +02:00
|
|
|
BOOL WINAPI fake_ValidateRect(HWND hWnd, const RECT* lpRect);
|
|
|
|
BOOL WINAPI fake_InvalidateRect(HWND hWnd, const RECT* lpRect, BOOL bErase);
|
2024-03-20 05:35:36 +01:00
|
|
|
SHORT WINAPI fake_GetKeyState(int nVirtKey);
|
|
|
|
SHORT WINAPI fake_GetAsyncKeyState(int vKey);
|
2020-10-13 09:20:52 +02:00
|
|
|
int WINAPI fake_GetDeviceCaps(HDC hdc, int index);
|
2022-10-15 18:28:23 +02:00
|
|
|
|
2022-10-02 18:41:06 +02:00
|
|
|
BOOL WINAPI fake_StretchBlt(
|
2022-10-03 12:19:15 +02:00
|
|
|
HDC hdcDest, int xDest, int yDest, int wDest, int hDest, HDC hdcSrc, int xSrc, int ySrc, int wSrc, int hSrc, DWORD rop);
|
2022-10-15 18:28:23 +02:00
|
|
|
|
2024-05-27 01:15:30 +02:00
|
|
|
BOOL WINAPI fake_WinGStretchBlt(
|
|
|
|
HDC hdcDest, int xDest, int yDest, int wDest, int hDest, HDC hdcSrc, int xSrc, int ySrc, int wSrc, int hSrc);
|
|
|
|
|
|
|
|
BOOL WINAPI fake_WinGBitBlt(
|
|
|
|
HDC hdc, int x, int y, int cx, int cy, HDC hdcSrc, int x1, int y1);
|
|
|
|
|
2024-05-25 07:29:30 +02:00
|
|
|
BOOL WINAPI fake_BitBlt(
|
|
|
|
HDC hdc, int x, int y, int cx, int cy, HDC hdcSrc, int x1, int y1, DWORD rop);
|
|
|
|
|
2022-10-03 12:19:15 +02:00
|
|
|
int WINAPI fake_SetDIBitsToDevice(
|
|
|
|
HDC, int, int, DWORD, DWORD, int, int, UINT, UINT, const VOID*, const BITMAPINFO*, UINT);
|
2022-10-15 18:28:23 +02:00
|
|
|
|
2022-10-05 22:33:53 +02:00
|
|
|
int WINAPI fake_StretchDIBits(
|
|
|
|
HDC, int, int, int, int, int, int, int, int, const VOID*, const BITMAPINFO*, UINT, DWORD);
|
2022-10-15 18:28:23 +02:00
|
|
|
|
2023-08-16 14:21:26 +02:00
|
|
|
HFONT WINAPI fake_CreateFontIndirectA(CONST LOGFONTA*);
|
|
|
|
HFONT WINAPI fake_CreateFontA(int, int, int, int, int, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPCTSTR);
|
|
|
|
|
2020-10-13 09:20:52 +02:00
|
|
|
HMODULE WINAPI fake_LoadLibraryA(LPCSTR lpLibFileName);
|
|
|
|
HMODULE WINAPI fake_LoadLibraryW(LPCWSTR lpLibFileName);
|
|
|
|
HMODULE WINAPI fake_LoadLibraryExA(LPCSTR lpLibFileName, HANDLE hFile, DWORD dwFlags);
|
|
|
|
HMODULE WINAPI fake_LoadLibraryExW(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags);
|
2023-08-06 09:09:38 +02:00
|
|
|
FARPROC WINAPI fake_GetProcAddress(HMODULE hModule, LPCSTR lpProcName);
|
2022-10-15 18:28:23 +02:00
|
|
|
|
|
|
|
BOOL WINAPI fake_GetDiskFreeSpaceA(
|
|
|
|
LPCSTR lpRootPathName,
|
|
|
|
LPDWORD lpSectorsPerCluster,
|
|
|
|
LPDWORD lpBytesPerSector,
|
|
|
|
LPDWORD lpNumberOfFreeClusters,
|
|
|
|
LPDWORD lpTotalNumberOfClusters);
|
|
|
|
|
2020-10-13 09:20:52 +02:00
|
|
|
HWND WINAPI fake_CreateWindowExA(
|
|
|
|
DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int X, int Y,
|
|
|
|
int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam);
|
2022-10-15 18:28:23 +02:00
|
|
|
|
2021-08-02 17:27:19 +02:00
|
|
|
HRESULT WINAPI fake_CoCreateInstance(
|
|
|
|
REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID riid, LPVOID* ppv);
|
2020-10-13 09:20:52 +02:00
|
|
|
|
2024-06-01 23:04:06 +02:00
|
|
|
MCIERROR WINAPI fake_mciSendCommandA(MCIDEVICEID IDDevice, UINT uMsg, DWORD_PTR fdwCommand, DWORD_PTR dwParam);
|
|
|
|
|
2023-06-29 21:13:04 +02:00
|
|
|
LPTOP_LEVEL_EXCEPTION_FILTER WINAPI fake_SetUnhandledExceptionFilter(
|
|
|
|
LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter);
|
|
|
|
|
2020-10-13 09:20:52 +02:00
|
|
|
#endif
|