-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMemoryHelper.h
More file actions
30 lines (22 loc) · 820 Bytes
/
MemoryHelper.h
File metadata and controls
30 lines (22 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include <winternl.h>
NS_BEGIN
using PFNZWQUERYINFORMATIONPROCESS = NTSTATUS(NTAPI*)(HANDLE, PROCESSINFOCLASS, PVOID, ULONG, PULONG);
//#################################################################################################
class CMemoryHelper final
{
public:
CMemoryHelper(void);
// Copy and move constructors
CMemoryHelper(const CMemoryHelper &src) = delete;
CMemoryHelper(CMemoryHelper &&src) = delete;
~CMemoryHelper(void);
// Copy and move assignment operators
CMemoryHelper &operator=(const CMemoryHelper &src) = delete;
CMemoryHelper &operator=(CMemoryHelper &&src) = delete;
uint64_t GetProcessPrivateWorkingSet(const HANDLE hProcess) const;
private:
HMODULE m_hNtDll;
PFNZWQUERYINFORMATIONPROCESS m_pfnZwQueryInformationProcess;
};
NS_END