11void*
OpenModule(
const std::filesystem::path& path)
23 return std::system_category().message(
static_cast<int>(
GetLastError()));
40 return std::filesystem::path(path, path +
length);
45 HMODULE module = ModuleAt(address);
46 return module != nullptr ? reinterpret_cast<InterfaceFactory>(GetProcAddress(module, "CreateInterface")) : nullptr;
static std::string LastError()
static std::string ReadFile(const std::filesystem::path &path)
void *(*)(const char *name, int *returnCode) InterfaceFactory
std::filesystem::path OwnPath()
InterfaceFactory FactoryAt(const void *address)
void * OpenModule(const std::filesystem::path &path)
static HMODULE ModuleAt(const void *address)
static void * FindExport(void *handle, const char *name)