summaryrefslogtreecommitdiffhomepage
path: root/dev/base/RunDLL64
diff options
context:
space:
mode:
Diffstat (limited to 'dev/base/RunDLL64')
-rw-r--r--dev/base/RunDLL64/build.json19
-rw-r--r--dev/base/RunDLL64/src/Main.cc26
2 files changed, 0 insertions, 45 deletions
diff --git a/dev/base/RunDLL64/build.json b/dev/base/RunDLL64/build.json
deleted file mode 100644
index b129f8e4..00000000
--- a/dev/base/RunDLL64/build.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "compiler_path": "x86_64-w64-mingw32-g++",
- "compiler_std": "c++20",
- "headers_path": ["../", "./", "../../"],
- "sources_path": ["src/*.cc"],
- "output_name": "rundll64.exe",
- "compiler_flags": [
- "-ffreestanding",
- "-fno-rtti",
- "-fno-exceptions",
- "-Wl,--subsystem=17"
- ],
- "cpp_macros": [
- "__RUNDLL_AMD64__",
- "cRunDLLVersion=0x0100",
- "cRunDLLVersionHighest=0x0100",
- "cRunDLLVersionLowest=0x0100"
- ]
-}
diff --git a/dev/base/RunDLL64/src/Main.cc b/dev/base/RunDLL64/src/Main.cc
deleted file mode 100644
index ee3cdfa6..00000000
--- a/dev/base/RunDLL64/src/Main.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (c) 2024 ZKA Web Services Co
- */
-
-#include <sci/sci_base.h>
-
-typedef int (*MainKind)(int, char**);
-
-int main(int argc, char* argv[])
-{
- if (argc < 3)
- return -1;
-
- auto mainDll = LdrOpenDLL(argv[1], argv[2]);
-
- int (*entrypointOff)(int, char**) = (MainKind)LdrGetDLLProc(argv[3], mainDll);
-
- if (!entrypointOff)
- return -1;
-
- int ret = entrypointOff(argc, argv);
-
- LdrCloseDLL(mainDll);
-
- return ret;
-}