36 lines
872 B
C
Raw Normal View History

2024-02-07 20:59:24 +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
2024-07-21 21:07:05 +08:00
constexpr auto LUNA_EMBED_notify_event = "LUNA_NOTIFY.%d.%llu";
2024-02-07 20:59:24 +08:00
constexpr auto PIPE_AVAILABLE_EVENT = L"LUNA_PIPE_AVAILABLE";
// Files
2024-07-21 21:07:05 +08:00
constexpr auto LUNA_HOOK_DLL_64 = L"LunaHook64";
constexpr auto LUNA_HOOK_DLL_32 = L"LunaHook32";
2024-02-07 20:59:24 +08:00
#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
// EOF