Hooking explorer.exe (main.h)





//Filename main.h
#pragma once

#include <windows.h>
#include <iostream>
#include <tlhelp32.h>
#include <string>
#include <stdio.h>
#include <shlwapi.h>
#include <fstream>

struct ReturnerData{
char* CodeBuffer;
long Size;
};

BOOL LoadDll(char *dllName, DWORD dwProcID);
BOOL RaisePrivleges( HANDLE hToken, char *pPriv );
int Unpack();
int Compile(char* SourceFile);
int Pack();
int InjectRawCode(ReturnerData RawCodeStruct, DWORD dwProcessID);
ReturnerData ExtractCode();