mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-26 02:19:24 +01:00
reorganize
This commit is contained in:
parent
6c53f51d7b
commit
4974b6c9bd
@ -71,14 +71,10 @@ HMODULE WINAPI util_enumerate_modules(_In_opt_ HMODULE hModuleLast)
|
|||||||
|
|
||||||
BOOL util_caller_is_ddraw_wrapper(void* returnAddress)
|
BOOL util_caller_is_ddraw_wrapper(void* returnAddress)
|
||||||
{
|
{
|
||||||
HMODULE windmode_dll = GetModuleHandleA("windmode.dll");
|
|
||||||
HMODULE wndmode_dll = GetModuleHandleA("wndmode.dll");
|
|
||||||
HMODULE dxwnd_dll = GetModuleHandleA("dxwnd.dll");
|
|
||||||
HMODULE age_dll = GetModuleHandleA("age.dll");
|
|
||||||
|
|
||||||
HMODULE mod = NULL;
|
HMODULE mod = NULL;
|
||||||
DWORD flags = GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT;
|
DWORD flags = GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT;
|
||||||
|
|
||||||
|
HMODULE wndmode_dll = GetModuleHandleA("wndmode.dll");
|
||||||
if (wndmode_dll && GetModuleHandleExA(flags, returnAddress, &mod) && mod == wndmode_dll)
|
if (wndmode_dll && GetModuleHandleExA(flags, returnAddress, &mod) && mod == wndmode_dll)
|
||||||
{
|
{
|
||||||
MessageBoxA(
|
MessageBoxA(
|
||||||
@ -91,6 +87,7 @@ BOOL util_caller_is_ddraw_wrapper(void* returnAddress)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HMODULE windmode_dll = GetModuleHandleA("windmode.dll");
|
||||||
if (windmode_dll && GetModuleHandleExA(flags, returnAddress, &mod) && mod == windmode_dll)
|
if (windmode_dll && GetModuleHandleExA(flags, returnAddress, &mod) && mod == windmode_dll)
|
||||||
{
|
{
|
||||||
MessageBoxA(
|
MessageBoxA(
|
||||||
@ -103,6 +100,7 @@ BOOL util_caller_is_ddraw_wrapper(void* returnAddress)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HMODULE dxwnd_dll = GetModuleHandleA("dxwnd.dll");
|
||||||
if (dxwnd_dll && GetModuleHandleExA(flags, returnAddress, &mod) && mod == dxwnd_dll)
|
if (dxwnd_dll && GetModuleHandleExA(flags, returnAddress, &mod) && mod == dxwnd_dll)
|
||||||
{
|
{
|
||||||
MessageBoxA(
|
MessageBoxA(
|
||||||
@ -115,6 +113,7 @@ BOOL util_caller_is_ddraw_wrapper(void* returnAddress)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HMODULE age_dll = GetModuleHandleA("age.dll");
|
||||||
if (age_dll && GetModuleHandleExA(flags, returnAddress, &mod) && mod == age_dll)
|
if (age_dll && GetModuleHandleExA(flags, returnAddress, &mod) && mod == age_dll)
|
||||||
{
|
{
|
||||||
MessageBoxA(
|
MessageBoxA(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user