2024-11-06 06:46:35 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// texthook/defs.h
|
|
|
|
// 8/23/2013 jichi
|
|
|
|
|
|
|
|
// Pipes
|
|
|
|
|
|
|
|
constexpr auto HOOK_PIPE = L"\\\\.\\pipe\\LUNA_HOOK";
|
|
|
|
constexpr auto HOST_PIPE = L"\\\\.\\pipe\\LUNA_HOST";
|
|
|
|
|
|
|
|
// Sections
|
|
|
|
|
|
|
|
constexpr auto EMBED_SHARED_MEM = L"EMBED_SHARED_MEM"; // _%d
|
|
|
|
|
|
|
|
// Mutexes
|
|
|
|
|
|
|
|
constexpr auto ITH_HOOKMAN_MUTEX_ = L"LUNA_VNR_HOOKMAN_"; // ITH_HOOKMAN_%d
|
|
|
|
constexpr auto CONNECTING_MUTEX = L"LUNA_CONNECTING_PIPES";
|
|
|
|
|
|
|
|
// Events
|
|
|
|
constexpr auto LUNA_EMBED_notify_event = "LUNA_NOTIFY.%d.%llu";
|
|
|
|
|
|
|
|
constexpr auto PIPE_AVAILABLE_EVENT = L"LUNA_PIPE_AVAILABLE";
|
|
|
|
|
|
|
|
// Files
|
|
|
|
constexpr auto LUNA_HOOK_DLL_64 = L"LunaHook64";
|
|
|
|
constexpr auto LUNA_HOOK_DLL_32 = L"LunaHook32";
|
|
|
|
|
|
|
|
#ifdef _WIN64
|
|
|
|
constexpr auto LUNA_HOOK_DLL = LUNA_HOOK_DLL_64; // .dll but LoadLibrary automatically adds that
|
|
|
|
#else
|
|
|
|
constexpr auto LUNA_HOOK_DLL = LUNA_HOOK_DLL_32; // .dll but LoadLibrary automatically adds that
|
|
|
|
#endif
|
|
|
|
|
2024-11-27 17:27:29 +08:00
|
|
|
extern WORD LUNA_VERSION[4];
|
2024-11-06 06:46:35 +08:00
|
|
|
// EOF
|