diff options
Diffstat (limited to 'dev/base/RunXPCOM/src')
| -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; -} |
