LEGOIslandRebuilder/lib/hooks.h

46 lines
1.1 KiB
C
Raw Normal View History

2021-09-18 17:28:15 -04:00
#ifndef HOOKS_H
#define HOOKS_H
#include <DDRAW.H>
#include <WINDOWS.H>
void InterceptOutputDebugStringA(LPCSTR s);
HWND WINAPI InterceptCreateWindowExA(
DWORD dwExStyle,
LPCSTR lpClassName,
LPCSTR lpWindowName,
DWORD dwStyle,
int X,
int Y,
int nWidth,
int nHeight,
HWND hWndParent,
HMENU hMenu,
HINSTANCE hInstance,
LPVOID lpParam
);
2021-09-22 15:16:20 -04:00
LONG
APIENTRY
InterceptRegQueryValueExA (
HKEY hKey,
LPCSTR lpValueName,
LPDWORD lpReserved,
LPDWORD lpType,
LPBYTE lpData,
LPDWORD lpcbData
);
2021-09-18 17:28:15 -04:00
HWND WINAPI InterceptFindWindowA(LPCSTR lpClassName, LPCSTR lpWindowName);
typedef HRESULT (WINAPI *ddCreateFunction)(GUID *lpGUID, LPDIRECTDRAW *lplpDD, IUnknown *pUnkOuterS);
extern ddCreateFunction ddCreateOriginal;
HRESULT WINAPI InterceptDirectDrawCreate(GUID *lpGUID, LPDIRECTDRAW *lplpDD, IUnknown *pUnkOuter);
HRESULT WINAPI InterceptSurfaceGetDesc(LPDIRECTDRAWSURFACE lpDDSurface, LPDDSURFACEDESC lpDDSurfaceDesc);
2021-10-18 13:15:56 -04:00
VOID WINAPI InterceptSleep(DWORD dwMilliseconds);
2021-09-18 17:28:15 -04:00
#endif // HOOKS_H