summaryrefslogtreecommitdiff
path: root/src/envfs.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-02-10 10:51:23 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-02-18 17:23:48 -0500
commit3a65665d36022c50637fc53d5c9c1ee022c5b3b5 (patch)
tree655dbb9d4c8d72b88b3fac94deceb350513aa780 /src/envfs.h
parent3db95eb4043b8da20e99dd7476bc82468a4609fb (diff)
wstring_view when possible
first implementation of NtQueryDirectoryFile
Diffstat (limited to 'src/envfs.h')
-rw-r--r--src/envfs.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/envfs.h b/src/envfs.h
new file mode 100644
index 00000000..aeaa6796
--- /dev/null
+++ b/src/envfs.h
@@ -0,0 +1,17 @@
+#ifndef ENV_ENVFS_H
+#define ENV_ENVFS_H
+
+namespace env
+{
+
+using DirStartF = void (void*, std::wstring_view);
+using DirEndF = void (void*, std::wstring_view);
+using FileF = void (void*, std::wstring_view, FILETIME);
+
+void forEachEntry(
+ const std::wstring& path, void* cx,
+ DirStartF* dirStartF, DirEndF* dirEndF, FileF* fileF);
+
+} // namespace
+
+#endif // ENV_ENVFS_H