2023-08-16 11:28:46 +02:00
|
|
|
#ifndef IMPORTS_H
|
|
|
|
#define IMPORTS_H
|
|
|
|
|
|
|
|
#include <winternl.h>
|
|
|
|
#include <Windows.h>
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
|
2023-12-25 16:54:35 +01:00
|
|
|
typedef NTSTATUS(WINAPI* pNtQueryInformationThread)(HANDLE, LONG, PVOID, ULONG, PULONG);
|
|
|
|
typedef BOOLEAN(NTAPI pRtlDosPathNameToNtPathName_U(PCWSTR, PVOID, PCWSTR*, PVOID));
|
2023-08-16 11:28:46 +02:00
|
|
|
|
2023-12-25 16:54:35 +01:00
|
|
|
namespace usermode {
|
|
|
|
class Imports
|
2023-08-16 11:28:46 +02:00
|
|
|
{
|
2023-12-25 16:54:35 +01:00
|
|
|
public:
|
|
|
|
std::map<std::string, void*> ImportMap;
|
2023-08-17 10:45:50 +02:00
|
|
|
|
2023-12-25 16:54:35 +01:00
|
|
|
void* NtQueryInformationThread;
|
|
|
|
void* NtQueryVirtualMemory;
|
|
|
|
void* RtlDosPathNameToNtPathName_U;
|
2023-08-17 10:45:50 +02:00
|
|
|
|
2023-12-25 16:54:35 +01:00
|
|
|
Imports();
|
|
|
|
};
|
2023-08-16 11:28:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|