aboutsummaryrefslogtreecommitdiffstats
path: root/include/HandlerManager.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/HandlerManager.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/HandlerManager.h b/include/HandlerManager.h
new file mode 100644
index 0000000..d126680
--- /dev/null
+++ b/include/HandlerManager.h
@@ -0,0 +1,25 @@
+#pragma once
+
+#include "Api.h"
+#include "ObjectManager.h"
+
+#include <string>
+#include <vector>
+
+namespace nt
+{
+ class NT_API HandlerManager
+ {
+ public:
+ // This is supposed to represent an authorized access to a certain object in the registry
+ // This increases the handle count in the object manager
+ // We should consider adding on the object manager a vector of all the handles that refer to an object
+ struct handle {
+ ObjectManager::registry* object = nullptr;
+ void* connection_context = nullptr;
+ };
+ void DeallocateHandle(struct handle* handle);
+ struct handle Open(std::vector<std::string> object_path, void* connection_context);
+ bool Close(struct handle* handle);
+ };
+}