From 2e836088118afea34a389ba7d936964e7ae5e019 Mon Sep 17 00:00:00 2001 From: _xeroxz Date: Tue, 9 Mar 2021 21:10:43 -0800 Subject: [PATCH] added example on how to use windows headers :) --- Examples/DemoDll/Theodosius.h | 10 +++------- Examples/Theodosius-Usermode/main.cpp | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Examples/DemoDll/Theodosius.h b/Examples/DemoDll/Theodosius.h index da51ea5..9a91c72 100644 --- a/Examples/DemoDll/Theodosius.h +++ b/Examples/DemoDll/Theodosius.h @@ -1,13 +1,9 @@ #pragma once +#define WINUSERAPI +#include + #define ObfuscateRoutine __declspec(code_seg(".theo"), noinline) #define MutateRoutine __declspec(code_seg(".theo1"), noinline) -extern "C" int MessageBoxA( - unsigned hWnd, - char* lpText, - char* lpCaption, - unsigned uType -); - void UsermodeNoObfuscation(); void UsermodeMutateDemo(); \ No newline at end of file diff --git a/Examples/Theodosius-Usermode/main.cpp b/Examples/Theodosius-Usermode/main.cpp index 38acf94..84eabdf 100644 --- a/Examples/Theodosius-Usermode/main.cpp +++ b/Examples/Theodosius-Usermode/main.cpp @@ -141,6 +141,7 @@ int main(int argc, char** argv) GetProcAddress(LoadLibrary(file_name), symbol_name)))) break; } + return result; };