2020-10-13 09:20:52 +02:00
|
|
|
#ifndef UTILS_H
|
|
|
|
#define UTILS_H
|
|
|
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
|
2023-10-23 08:20:25 +02:00
|
|
|
HMODULE WINAPI util_enumerate_modules(_In_opt_ HMODULE hModuleLast);
|
2024-09-11 18:01:21 +02:00
|
|
|
void util_pull_messages();
|
2024-07-13 22:47:40 +02:00
|
|
|
FARPROC util_get_iat_proc(HMODULE mod, char* module_name, char* function_name);
|
|
|
|
BOOL util_caller_is_ddraw_wrapper(void* return_address);
|
2023-10-20 10:19:46 +02:00
|
|
|
BOOL util_is_bad_read_ptr(void* p);
|
2023-08-20 23:12:00 +02:00
|
|
|
BOOL util_is_minimized(HWND hwnd);
|
2024-03-20 21:31:05 +01:00
|
|
|
BOOL util_in_foreground();
|
2022-09-19 13:13:34 +02:00
|
|
|
BOOL util_is_avx_supported();
|
2020-10-13 09:20:52 +02:00
|
|
|
void util_limit_game_ticks();
|
|
|
|
void util_update_bnet_pos(int newX, int newY);
|
|
|
|
BOOL util_get_lowest_resolution(float ratio, SIZE* outRes, DWORD minWidth, DWORD minHeight, DWORD maxWidth, DWORD maxHeight);
|
2021-02-18 07:10:15 +01:00
|
|
|
void util_toggle_maximize();
|
2020-10-13 09:20:52 +02:00
|
|
|
void util_toggle_fullscreen();
|
|
|
|
BOOL util_unadjust_window_rect(LPRECT prc, DWORD dwStyle, BOOL fMenu, DWORD dwExStyle);
|
|
|
|
void util_set_window_rect(int x, int y, int width, int height, UINT flags);
|
2024-05-22 23:51:48 +02:00
|
|
|
BOOL CALLBACK util_enum_thread_wnd_proc(HWND hwnd, LPARAM lParam);
|
2020-10-13 09:20:52 +02:00
|
|
|
BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lParam);
|
2021-05-15 02:58:07 +02:00
|
|
|
BOOL util_detect_low_res_screen();
|
2020-10-13 09:20:52 +02:00
|
|
|
|
|
|
|
#endif
|