From 6845df16333e7504abd7cceb2b5cb4e7637c73fb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 4 May 2021 16:11:03 +0300 Subject: move away from variable-size ints --- include/winapi/error.hpp | 3 ++- include/winapi/process.hpp | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'include/winapi') diff --git a/include/winapi/error.hpp b/include/winapi/error.hpp index 89bcfed..a14d333 100644 --- a/include/winapi/error.hpp +++ b/include/winapi/error.hpp @@ -9,6 +9,7 @@ #include +#include #include #include #include @@ -23,7 +24,7 @@ public: const char* name() const BOOST_NOEXCEPT_OR_NOTHROW { return "Windows"; } - std::string message(int) const; + std::string message(int32_t) const; }; inline const CategoryWindows& category_windows() { diff --git a/include/winapi/process.hpp b/include/winapi/process.hpp index db5f5d1..2e1420f 100644 --- a/include/winapi/process.hpp +++ b/include/winapi/process.hpp @@ -15,6 +15,7 @@ #include +#include #include #include @@ -89,8 +90,8 @@ public: static std::string get_exe_path(); - static Resource get_resource(unsigned int id); - static std::string get_resource_string(unsigned int id); + static Resource get_resource(uint32_t id); + static std::string get_resource_string(uint32_t id); private: explicit Process(Handle&& handle) : m_handle(std::move(handle)) {} -- cgit v1.2.3