ReShade
A generic post-processing injector for games and video software.
Namespaces | Macros | Functions
reshade.hpp File Reference
#include "reshade_events.hpp"
#include "reshade_overlay.hpp"
#include <charconv>
#include <Windows.h>

Go to the source code of this file.

Namespaces

 reshade
 
 reshade::internal
 

Macros

#define RESHADE_API_VERSION
 

Functions

BOOL WINAPI K32EnumProcessModules (HANDLE hProcess, HMODULE *lphModule, DWORD cb, LPDWORD lpcbNeeded)
 
HMODULE & reshade::internal::get_reshade_module_handle ()
 Gets the handle to the ReShade module. More...
 
HMODULE & reshade::internal::get_current_module_handle ()
 Gets the handle to the current add-on module. More...
 
void reshade::log_message (int level, const char *message)
 Writes a message to ReShade's log. More...
 
bool reshade::config_get_value (api::effect_runtime *runtime, const char *section, const char *key, char *value, size_t *length)
 Gets a value from one of ReShade's config files. More...
 
template<typename T >
bool reshade::config_get_value (api::effect_runtime *runtime, const char *section, const char *key, T &value)
 
template<>
bool reshade::config_get_value< bool > (api::effect_runtime *runtime, const char *section, const char *key, bool &value)
 
void reshade::config_set_value (api::effect_runtime *runtime, const char *section, const char *key, const char *value)
 Sets and saves a value in one of ReShade's config files. More...
 
template<typename T >
void reshade::config_set_value (api::effect_runtime *runtime, const char *section, const char *key, const T &value)
 
template<>
void reshade::config_set_value< bool > (api::effect_runtime *runtime, const char *section, const char *key, const bool &value)
 
bool reshade::register_addon (HMODULE module)
 Registers this module as an add-on with ReShade. Call this in 'DllMain' during process attach, before any of the other API functions! More...
 
void reshade::unregister_addon (HMODULE module)
 Unregisters this module. Call this in 'DllMain' during process detach, after any of the other API functions. More...
 
template<reshade::addon_event ev>
void reshade::register_event (typename reshade::addon_event_traits< ev >::decl callback)
 Registers a callback for the specified event (via template) with ReShade. More...
 
template<reshade::addon_event ev>
void reshade::unregister_event (typename reshade::addon_event_traits< ev >::decl callback)
 Unregisters a callback for the specified event (via template) that was previously registered via register_event. More...
 
void reshade::register_overlay (const char *title, void(*callback)(reshade::api::effect_runtime *runtime))
 Registers an overlay with ReShade. More...
 
void reshade::unregister_overlay (const char *title, void(*callback)(reshade::api::effect_runtime *runtime))
 Unregisters an overlay that was previously registered via register_overlay. More...
 

Macro Definition Documentation

◆ RESHADE_API_VERSION

#define RESHADE_API_VERSION

Function Documentation

◆ K32EnumProcessModules()

BOOL WINAPI K32EnumProcessModules ( HANDLE  hProcess,
HMODULE *  lphModule,
DWORD  cb,
LPDWORD  lpcbNeeded 
)