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; };