[DLLHOST] Add dllhost to make the device driver extractor for my Lenovo T400 happy
authorEric Kohl <eric.kohl@reactos.org>
Sat, 11 Aug 2018 20:25:30 +0000 (22:25 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 11 Aug 2018 20:25:30 +0000 (22:25 +0200)
base/system/CMakeLists.txt
base/system/dllhost/CMakeLists.txt [new file with mode: 0644]
base/system/dllhost/dllhost.c [new file with mode: 0644]
base/system/dllhost/dllhost.rc [new file with mode: 0644]

index 2afca07..e837215 100644 (file)
@@ -3,6 +3,7 @@ add_subdirectory(autochk)
 add_subdirectory(bootok)
 add_subdirectory(chkdsk)
 add_subdirectory(diskpart)
+add_subdirectory(dllhost)
 add_subdirectory(expand)
 add_subdirectory(format)
 add_subdirectory(lsass)
diff --git a/base/system/dllhost/CMakeLists.txt b/base/system/dllhost/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0fcba16
--- /dev/null
@@ -0,0 +1,5 @@
+
+add_executable(dllhost dllhost.c dllhost.rc)
+set_module_type(dllhost win32gui UNICODE)
+add_importlibs(dllhost msvcrt kernel32 ntdll)
+add_cd_file(TARGET dllhost DESTINATION reactos/system32 FOR all)
diff --git a/base/system/dllhost/dllhost.c b/base/system/dllhost/dllhost.c
new file mode 100644 (file)
index 0000000..5275650
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * PROJECT:     ReactOS DllHost
+ * LICENSE:     GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
+ * PURPOSE:     COM surrogate.
+ * COPYRIGHT:   Copyright 2018 Eric Kohl
+ */
+
+/* INCLUDES *****************************************************************/
+
+#include <windows.h>
+
+#define NDEBUG
+#include <debug.h>
+
+/* FUNCTIONS ****************************************************************/
+
+INT
+WINAPI
+wWinMain(
+    HINSTANCE hInst,
+    HINSTANCE hPrevInst,
+    LPWSTR lpCmdLine,
+    INT nCmdShow)
+{
+    DPRINT1("dllhost: %S\n", lpCmdLine);
+
+    return 0;
+}
+
+/* EOF */
diff --git a/base/system/dllhost/dllhost.rc b/base/system/dllhost/dllhost.rc
new file mode 100644 (file)
index 0000000..b8ebd5a
--- /dev/null
@@ -0,0 +1,4 @@
+#define REACTOS_STR_FILE_DESCRIPTION  "COM Surrogate"
+#define REACTOS_STR_INTERNAL_NAME     "dllhost"
+#define REACTOS_STR_ORIGINAL_FILENAME "dllhost.exe"
+#include <reactos/version.rc>