102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
hooks_private.h File Reference
#include <dttr_mods.h>
#include <dttr_pcdogs.h>
#include <windows.h>

Go to the source code of this file.

Typedefs

typedef BOOL(* DDraw_EnumCallbackExA) (GUID *lpGUID, LPSTR lpDriverDescription, LPSTR lpDriverName, LPVOID lpContext, HMONITOR hm)

Functions

bool dttr_graphics_hooks_init (const DTTR_Mods_Context *ctx)
void dttr_graphics_hooks_cleanup (const DTTR_Mods_Context *ctx)
HRESULT dttr_hook_directdraw_create_ex_callback (DTTR_PCDOGS_T_Win32_GUID *guid, void **ddraw_out, DTTR_PCDOGS_T_Win32_GUID *iid, DTTR_PCDOGS_T_COM_IUnknown *outer)
HRESULT dttr_hook_directdraw_enumerate_ex_a_callback (DDraw_EnumCallbackExA lpCallback, LPVOID lpContext, DWORD dwFlags)

Typedef Documentation

◆ DDraw_EnumCallbackExA

typedef BOOL(* DDraw_EnumCallbackExA) (GUID *lpGUID, LPSTR lpDriverDescription, LPSTR lpDriverName, LPVOID lpContext, HMONITOR hm)

Definition at line 18 of file hooks_private.h.

Function Documentation

◆ dttr_graphics_hooks_cleanup()

void dttr_graphics_hooks_cleanup ( const DTTR_Mods_Context * ctx)

◆ dttr_graphics_hooks_init()

◆ dttr_hook_directdraw_create_ex_callback()

◆ dttr_hook_directdraw_enumerate_ex_a_callback()

HRESULT dttr_hook_directdraw_enumerate_ex_a_callback ( DDraw_EnumCallbackExA lpCallback,
LPVOID lpContext,
DWORD dwFlags )

Definition at line 168 of file hooks.c.

References DTTR_LOG_DEBUG, DWORD, NULL, and S_OK.

Referenced by dttr_graphics_hooks_init().