From 3eec1310829f6ec7f3c40a35d5991b0ebbf273b5 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 18 Oct 2020 00:11:25 +0300 Subject: Process: add methods to load resource strings --- include/winapi/process.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/winapi/process.hpp') diff --git a/include/winapi/process.hpp b/include/winapi/process.hpp index f404b33..469653c 100644 --- a/include/winapi/process.hpp +++ b/include/winapi/process.hpp @@ -7,10 +7,14 @@ #include "cmd_line.hpp" #include "handle.hpp" +#include "resource.hpp" #include "stream.hpp" #include +#include + +#include #include namespace winapi { @@ -52,9 +56,14 @@ public: int get_exit_code() const; + static Resource get_resource(unsigned int id); + static std::string get_resource_string(unsigned int id); + private: explicit Process(Handle&& handle) : m_handle{std::move(handle)} {} + static HMODULE get_exe_module(); + Handle m_handle; }; -- cgit v1.2.3