diff --git a/configure b/configure index b2ec13ac38f..1cac4e0484a 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 43f19de35e2..cae8d72af12 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 00000000000..b91f0e2953e --- /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 00000000000..2946b66d501 --- /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 00000000000..0da0dca4611 --- /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 + +#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; +}