Louis Lenders : virtdisk: Add stub dll.

Alexandre Julliard julliard at winehq.org
Wed Feb 8 15:52:12 CST 2017


Module: wine
Branch: master
Commit: e0d4b6896aa4158407826faf4775bed09de78913
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e0d4b6896aa4158407826faf4775bed09de78913

Author: Louis Lenders <xerox.xerox2000x at gmail.com>
Date:   Thu Feb  2 20:41:20 2017 +0100

virtdisk: Add stub dll.

Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure                     |  2 ++
 configure.ac                  |  1 +
 dlls/virtdisk/Makefile.in     |  4 ++++
 dlls/virtdisk/virtdisk.spec   | 21 ++++++++++++++++++++
 dlls/virtdisk/virtdisk_main.c | 46 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 74 insertions(+)

diff --git a/configure b/configure
index b2ec13a..1cac4e0 100755
--- a/configure
+++ b/configure
@@ -1439,6 +1439,7 @@ enable_vcomp90
 enable_vcruntime140
 enable_vdmdbg
 enable_version
+enable_virtdisk
 enable_vssapi
 enable_wbemdisp
 enable_wbemprox
@@ -18365,6 +18366,7 @@ wine_fn_config_dll vdmdbg enable_vdmdbg implib
 wine_fn_config_dll ver.dll16 enable_win16
 wine_fn_config_dll version enable_version implib
 wine_fn_config_test dlls/version/tests version_test
+wine_fn_config_dll virtdisk enable_virtdisk
 wine_fn_config_dll vmm.vxd enable_win16
 wine_fn_config_dll vnbt.vxd enable_win16
 wine_fn_config_dll vnetbios.vxd enable_win16
diff --git a/configure.ac b/configure.ac
index 43f19de..cae8d72 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3423,6 +3423,7 @@ WINE_CONFIG_DLL(vdmdbg,,[implib])
 WINE_CONFIG_DLL(ver.dll16,enable_win16)
 WINE_CONFIG_DLL(version,,[implib])
 WINE_CONFIG_TEST(dlls/version/tests)
+WINE_CONFIG_DLL(virtdisk)
 WINE_CONFIG_DLL(vmm.vxd,enable_win16)
 WINE_CONFIG_DLL(vnbt.vxd,enable_win16)
 WINE_CONFIG_DLL(vnetbios.vxd,enable_win16)
diff --git a/dlls/virtdisk/Makefile.in b/dlls/virtdisk/Makefile.in
new file mode 100644
index 0000000..b91f0e2
--- /dev/null
+++ b/dlls/virtdisk/Makefile.in
@@ -0,0 +1,4 @@
+MODULE    = virtdisk.dll
+
+C_SRCS = \
+	virtdisk_main.c
diff --git a/dlls/virtdisk/virtdisk.spec b/dlls/virtdisk/virtdisk.spec
new file mode 100644
index 0000000..2946b66
--- /dev/null
+++ b/dlls/virtdisk/virtdisk.spec
@@ -0,0 +1,21 @@
+@ stub AddVirtualDiskParent
+@ stub AttachVirtualDisk
+@ stub BreakMirrorVirtualDisk
+@ stub CompactVirtualDisk
+@ stub CreateVirtualDisk
+@ stub DeleteVirtualDiskMetadata
+@ stub DetachVirtualDisk
+@ stub EnumerateVirtualDiskMetadata
+@ stub ExpandVirtualDisk
+@ stub GetAllAttachedVirtualDiskPhysicalPaths
+@ stub GetStorageDependencyInformation
+@ stub GetVirtualDiskInformation
+@ stub GetVirtualDiskMetadata
+@ stub GetVirtualDiskOperationProgress
+@ stub GetVirtualDiskPhysicalPath
+@ stub MergeVirtualDisk
+@ stub MirrorVirtualDisk
+@ stub OpenVirtualDisk
+@ stub ResizeVirtualDisk
+@ stub SetVirtualDiskInformation
+@ stub SetVirtualDiskMetadata
diff --git a/dlls/virtdisk/virtdisk_main.c b/dlls/virtdisk/virtdisk_main.c
new file mode 100644
index 0000000..0da0dca
--- /dev/null
+++ b/dlls/virtdisk/virtdisk_main.c
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2017 Louis Lenders
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(virtdisk);
+
+/*****************************************************
+ *    DllMain (VIRTDISK.@)
+ */
+BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
+{
+    TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
+
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(hinst);
+            break;
+    }
+
+    return TRUE;
+}




More information about the wine-cvs mailing list