From dbad4b699e35442920baa60c13f76e95904fe317 Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Fri, 8 May 2026 21:20:01 -0300 Subject: restructure project and add readme --- include/HandlerManager.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/HandlerManager.h (limited to 'include/HandlerManager.h') 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 +#include + +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 object_path, void* connection_context); + bool Close(struct handle* handle); + }; +} -- cgit v1.2.3