From b0850d02b7fba8f0e16092c7609e928907d2521d Mon Sep 17 00:00:00 2001 From: Amlal Date: Thu, 24 Oct 2024 20:11:21 +0200 Subject: IMP: Doing a cleanup and finishing the first version of ZKA. Signed-off-by: Amlal --- dev/base/RunXPCOM/build.json | 19 ------------------- dev/base/RunXPCOM/src/Main.cc | 32 -------------------------------- 2 files changed, 51 deletions(-) delete mode 100644 dev/base/RunXPCOM/build.json delete mode 100644 dev/base/RunXPCOM/src/Main.cc (limited to 'dev/base/RunXPCOM') diff --git a/dev/base/RunXPCOM/build.json b/dev/base/RunXPCOM/build.json deleted file mode 100644 index ec91d543..00000000 --- a/dev/base/RunXPCOM/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": "runxpcom.exe", - "compiler_flags": [ - "-ffreestanding", - "-fno-rtti", - "-fno-exceptions", - "-Wl,--subsystem=17" - ], - "cpp_macros": [ - "__SCM_AMD64__", - "cSCMVersion=0x0100", - "cSCMVersionHighest=0x0100", - "cSCMVersionLowest=0x0100" - ] -} diff --git a/dev/base/RunXPCOM/src/Main.cc b/dev/base/RunXPCOM/src/Main.cc deleted file mode 100644 index 3fcfc708..00000000 --- a/dev/base/RunXPCOM/src/Main.cc +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2024 ZKA Web Services Co - */ - -#include - -typedef SInt32 (*RPCProcKind)(IUnknown*); - -/** - * @brief Main procedure for DLL runner. - */ -int main(int argc, char* argv[]) -{ - if (argc < 4) - return -1; - - auto mainDll = LdrOpenDLL(argv[1], argv[2]); - - IUnknown* interface = (IUnknown*)LdrGetDLLProc(argv[3], mainDll); - RPCProcKind dllRpc = (RPCProcKind)LdrGetDLLProc(argv[4], mainDll); - - if (!dllRpc) - return -1; - if (!interface) - return -1; - - auto ret = dllRpc(interface); - - LdrCloseDLL(mainDll); - - return ret; -} -- cgit v1.2.3