39 lines
846 B
C
Raw Normal View History

#pragma once
// vnrhook/defs.h
// 8/23/2013 jichi
2018-12-18 16:56:04 -05:00
#include "common.h"
// Pipes
2018-11-04 04:00:14 -05:00
constexpr auto HOOK_PIPE = L"\\\\.\\pipe\\TEXTRACTOR_HOOK";
constexpr auto HOST_PIPE = L"\\\\.\\pipe\\TEXTRACTOR_HOST";
// Sections
2018-11-04 04:00:14 -05:00
constexpr auto ITH_SECTION_ = L"VNR_SECTION_"; // _%d
// Mutex
2018-11-04 04:00:14 -05:00
constexpr auto ITH_HOOKMAN_MUTEX_ = L"VNR_HOOKMAN_"; // ITH_HOOKMAN_%d
// Files
2018-12-18 16:56:04 -05:00
constexpr auto ITH_DLL = L"vnrhook"; // .dll but LoadLibrary automatically adds that
2018-11-04 04:00:14 -05:00
constexpr auto CONFIG_FILE = u8"Textractor.ini";
constexpr auto HOOK_SAVE_FILE = u8"SavedHooks.txt";
constexpr auto EXTEN_SAVE_FILE = u8"Extensions.txt";
2018-12-18 16:56:04 -05:00
// Functions
template <typename... Ts>
inline void FORMAT_MESSAGE(const wchar_t* format, Ts ...args)
{
wchar_t buffer[250] = {};
swprintf_s<250>(buffer, format, args...);
MessageBoxW(NULL, buffer, L"Textractor Message", MB_OK);
}
// EOF