aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-04 16:11:03 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-04 16:12:37 +0300
commit6845df16333e7504abd7cceb2b5cb4e7637c73fb (patch)
tree2de6857a5bec4a45d9d9cb89622481f6c422b7a7 /include
parentfix compiler warnings (diff)
downloadwinapi-common-6845df16333e7504abd7cceb2b5cb4e7637c73fb.tar.gz
winapi-common-6845df16333e7504abd7cceb2b5cb4e7637c73fb.zip
move away from variable-size ints
Diffstat (limited to 'include')
-rw-r--r--include/winapi/error.hpp3
-rw-r--r--include/winapi/process.hpp5
2 files changed, 5 insertions, 3 deletions
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 <windows.h>
+#include <cstdint>
#include <sstream>
#include <stdexcept>
#include <string>
@@ -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 <windows.h>
+#include <cstdint>
#include <string>
#include <utility>
@@ -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)) {}