mirror of
https://github.com/0mWindyBug/KernelInjector
synced 2026-06-21 13:40:44 +00:00
14 lines
195 B
C++
14 lines
195 B
C++
#pragma once
|
|
#include <main.h>
|
|
|
|
|
|
class AutoHandle
|
|
{
|
|
private:
|
|
HANDLE _handle;
|
|
public:
|
|
AutoHandle(HANDLE handle)
|
|
{ _handle = handle; };
|
|
~AutoHandle()
|
|
{ CloseHandle(_handle); };
|
|
}; |