aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi/file.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-16 18:13:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-16 21:20:11 +0300
commit182bff76382d59f44f0ac3c69beb55dacde75eb5 (patch)
treea1a90b748831594eeb14def8eef1c13c98ca5aa6 /include/winapi/file.hpp
parentProcess: add get_exit_code() (diff)
downloadwinapi-common-182bff76382d59f44f0ac3c69beb55dacde75eb5.tar.gz
winapi-common-182bff76382d59f44f0ac3c69beb55dacde75eb5.zip
add path.hpp: CanonicalPath class, etc.
Apparently, relative paths in the Win32 namespace (e.g. \\?\test.txt) are not a thing.
Diffstat (limited to 'include/winapi/file.hpp')
-rw-r--r--include/winapi/file.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/winapi/file.hpp b/include/winapi/file.hpp
index 60a8f1d..221047b 100644
--- a/include/winapi/file.hpp
+++ b/include/winapi/file.hpp
@@ -6,6 +6,7 @@
#pragma once
#include "handle.hpp"
+#include "path.hpp"
#include <string>
#include <utility>
@@ -17,7 +18,9 @@ public:
explicit File(Handle&& handle) : Handle{std::move(handle)} {}
static Handle open_for_reading(const std::string&);
+ static Handle open_for_reading(const CanonicalPath&);
static Handle open_for_writing(const std::string&);
+ static Handle open_for_writing(const CanonicalPath&);
using Handle::close;