diff options
Diffstat (limited to 'um/wrappers/special')
-rw-r--r-- | um/wrappers/special/CMakeLists.txt | 2 | ||||
-rw-r--r-- | um/wrappers/special/nt_namespace/CMakeLists.txt | 10 | ||||
-rw-r--r-- | um/wrappers/special/nt_namespace/README.md (renamed from um/wrappers/special/nt_path_converter/README.md) | 6 | ||||
-rw-r--r-- | um/wrappers/special/nt_namespace/include/libnt_namespace/all.hpp (renamed from um/wrappers/special/nt_path_converter/include/libnt_path_converter/all.hpp) | 0 | ||||
-rw-r--r-- | um/wrappers/special/nt_namespace/include/libnt_namespace/device.hpp (renamed from um/wrappers/special/nt_path_converter/include/libnt_path_converter/device.hpp) | 2 | ||||
-rw-r--r-- | um/wrappers/special/nt_namespace/src/device.cpp (renamed from um/wrappers/special/nt_path_converter/src/device.cpp) | 6 | ||||
-rw-r--r-- | um/wrappers/special/nt_namespace/utils/CMakeLists.txt (renamed from um/wrappers/special/nt_path_converter/utils/CMakeLists.txt) | 2 | ||||
-rw-r--r-- | um/wrappers/special/nt_namespace/utils/convert_nt_path.cpp (renamed from um/wrappers/special/nt_path_converter/utils/convert_nt_path.cpp) | 4 | ||||
-rw-r--r-- | um/wrappers/special/nt_path_converter/CMakeLists.txt | 10 |
9 files changed, 21 insertions, 21 deletions
diff --git a/um/wrappers/special/CMakeLists.txt b/um/wrappers/special/CMakeLists.txt index ed48e00..40b32f6 100644 --- a/um/wrappers/special/CMakeLists.txt +++ b/um/wrappers/special/CMakeLists.txt @@ -1 +1 @@ -add_subdirectory(nt_path_converter) +add_subdirectory(nt_namespace) diff --git a/um/wrappers/special/nt_namespace/CMakeLists.txt b/um/wrappers/special/nt_namespace/CMakeLists.txt new file mode 100644 index 0000000..ede2673 --- /dev/null +++ b/um/wrappers/special/nt_namespace/CMakeLists.txt @@ -0,0 +1,10 @@ +project(libnt_namespace) +file(GLOB libnt_namespace_sources "src/*.cpp") +file(GLOB_RECURSE libnt_namespace_headers "include/*.hpp") +add_library(libnt_namespace + ${libnt_namespace_sources} + ${libnt_namespace_headers}) +target_link_libraries(libnt_namespace libservice) +target_include_directories(libnt_namespace PUBLIC include/) + +add_subdirectory(utils) diff --git a/um/wrappers/special/nt_path_converter/README.md b/um/wrappers/special/nt_namespace/README.md index b295a80..22a74ee 100644 --- a/um/wrappers/special/nt_path_converter/README.md +++ b/um/wrappers/special/nt_namespace/README.md @@ -1,9 +1,9 @@ -nt_path_converter driver utilities +nt_namespace driver utilities ================================== -[nt_path_converter] driver usage examples. +[nt_namespace] driver usage examples. -[nt_path_converter]: ../../../../km/src/special/nt_path_converter +[nt_namespace]: ../../../../km/src/special/nt_namespace Usage ----- diff --git a/um/wrappers/special/nt_path_converter/include/libnt_path_converter/all.hpp b/um/wrappers/special/nt_namespace/include/libnt_namespace/all.hpp index 474b802..474b802 100644 --- a/um/wrappers/special/nt_path_converter/include/libnt_path_converter/all.hpp +++ b/um/wrappers/special/nt_namespace/include/libnt_namespace/all.hpp diff --git a/um/wrappers/special/nt_path_converter/include/libnt_path_converter/device.hpp b/um/wrappers/special/nt_namespace/include/libnt_namespace/device.hpp index e1d75fb..775b707 100644 --- a/um/wrappers/special/nt_path_converter/include/libnt_path_converter/device.hpp +++ b/um/wrappers/special/nt_namespace/include/libnt_namespace/device.hpp @@ -9,7 +9,7 @@ #include <string> -namespace libnt_path_converter +namespace libnt_namespace { class Device : libservice::Device { diff --git a/um/wrappers/special/nt_path_converter/src/device.cpp b/um/wrappers/special/nt_namespace/src/device.cpp index 2b5b89a..1187b1c 100644 --- a/um/wrappers/special/nt_path_converter/src/device.cpp +++ b/um/wrappers/special/nt_namespace/src/device.cpp @@ -3,7 +3,7 @@ // For details, see https://github.com/egor-tensin/windows7-drivers. // Distributed under the MIT License. -#include "libnt_path_converter/device.hpp" +#include "libnt_namespace/device.hpp" #include "libservice/all.hpp" @@ -12,11 +12,11 @@ #include <string> #include <vector> -namespace libnt_path_converter +namespace libnt_namespace { namespace { - const auto device_path = "\\\\.\\nt_path_converter"; + const auto device_path = "\\\\.\\nt_namespace"; const auto control_code = CTL_CODE(0x8000, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS); } diff --git a/um/wrappers/special/nt_path_converter/utils/CMakeLists.txt b/um/wrappers/special/nt_namespace/utils/CMakeLists.txt index 9c5254b..294a713 100644 --- a/um/wrappers/special/nt_path_converter/utils/CMakeLists.txt +++ b/um/wrappers/special/nt_namespace/utils/CMakeLists.txt @@ -1,5 +1,5 @@ add_executable(convert_nt_path convert_nt_path.cpp) -target_link_libraries(convert_nt_path PRIVATE libnt_path_converter) +target_link_libraries(convert_nt_path PRIVATE libnt_namespace) if(MINGW) target_compile_options(convert_nt_path PRIVATE -municode) target_link_libraries(convert_nt_path PRIVATE -municode) diff --git a/um/wrappers/special/nt_path_converter/utils/convert_nt_path.cpp b/um/wrappers/special/nt_namespace/utils/convert_nt_path.cpp index 9d25242..5a77fed 100644 --- a/um/wrappers/special/nt_path_converter/utils/convert_nt_path.cpp +++ b/um/wrappers/special/nt_namespace/utils/convert_nt_path.cpp @@ -3,7 +3,7 @@ // For details, see https://github.com/egor-tensin/windows7-drivers. // Distributed under the MIT License. -#include "libnt_path_converter/all.hpp" +#include "libnt_namespace/all.hpp" #include <exception> #include <iostream> @@ -12,7 +12,7 @@ int wmain(int argc, wchar_t* argv[]) { try { - libnt_path_converter::Device dev; + libnt_namespace::Device dev; for (int i = 1; i < argc; ++i) std::wcout << dev.convert_nt_path(argv[i]) << L"\n"; } diff --git a/um/wrappers/special/nt_path_converter/CMakeLists.txt b/um/wrappers/special/nt_path_converter/CMakeLists.txt deleted file mode 100644 index 69f85d0..0000000 --- a/um/wrappers/special/nt_path_converter/CMakeLists.txt +++ /dev/null @@ -1,10 +0,0 @@ -project(libnt_path_converter) -file(GLOB libnt_path_converter_sources "src/*.cpp") -file(GLOB_RECURSE libnt_path_converter_headers "include/*.hpp") -add_library(libnt_path_converter - ${libnt_path_converter_sources} - ${libnt_path_converter_headers}) -target_link_libraries(libnt_path_converter libservice) -target_include_directories(libnt_path_converter PUBLIC include/) - -add_subdirectory(utils) |