From def5c50960eea4c112647f88361a3ae7155901a8 Mon Sep 17 00:00:00 2001 From: egor-tensin Date: Tue, 4 Jul 2023 00:48:00 +0000 Subject: =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20egor-tensin/wina?= =?UTF-8?q?pi-common@0c196cbe8b4927c78c02b2c7312fc69a507db845=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- error_8hpp.html | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 error_8hpp.html (limited to 'error_8hpp.html') diff --git a/error_8hpp.html b/error_8hpp.html new file mode 100644 index 0000000..bd24502 --- /dev/null +++ b/error_8hpp.html @@ -0,0 +1,146 @@ + + + + + + + +winapi_common: include/winapi/error.hpp File Reference + + + + + + + + + +
+
+ + + + + + +
+
winapi_common +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
error.hpp File Reference
+
+
+ +

Make std::system_error work with GetLastError(). +More...

+ +

Go to the source code of this file.

+ + + + +

+Classes

class  winapi::error::CategoryWindows
 
+ + + + + + + + +

+Functions

+const CategoryWindows & winapi::error::category_windows ()
 
std::system_error winapi::error::windows (DWORD code, const char *function)
 
+template<typename Ret >
std::runtime_error winapi::error::custom (Ret ret, const char *function)
 
+

Detailed Description

+

Make std::system_error work with GetLastError().

+ +

Definition in file error.hpp.

+

Function Documentation

+ +

◆ windows()

+ +
+
+ + + + + + + + + + + + + + + + + + +
std::system_error winapi::error::windows (DWORD code,
const char * function 
)
+
+

Build a std::system_error from the value of GetLastError().

Parameters
+ + + +
codeValue of GetLastError().
functionName of the function that failed, like "CreateFile".
+
+
+ +

Definition at line 61 of file error.cpp.

+ +
+
+
+ + + + -- cgit v1.2.3