diff options
| author | Amlal <amlal@el-mahrouss-logic.com> | 2024-10-24 20:11:21 +0200 |
|---|---|---|
| committer | Amlal <amlal@el-mahrouss-logic.com> | 2024-10-24 20:11:21 +0200 |
| commit | b0850d02b7fba8f0e16092c7609e928907d2521d (patch) | |
| tree | 81ba785ba42607dff1df3538f305a23b8c2b1ce5 /dev/base/RunXPCOM/src/Main.cc | |
| parent | 52b4044ab4956597aee4c629ba5fe5ec8966beac (diff) | |
IMP: Doing a cleanup and finishing the first version of ZKA.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/base/RunXPCOM/src/Main.cc')
| -rw-r--r-- | dev/base/RunXPCOM/src/Main.cc | 32 |
1 files changed, 0 insertions, 32 deletions
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 <sci/sci_base.h> - -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; -} |
