po: Update Lithuanian translation.
[wine.git] / dlls / virtdisk / virtdisk_main.c
blob630a97b59bd9663ad70579a839efcb4b148125dc
1 /*
2 * Copyright 2017 Louis Lenders
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include <stdarg.h>
21 #include "windef.h"
22 #include "winbase.h"
23 #include "virtdisk.h"
25 #include "wine/debug.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(virtdisk);
29 /*****************************************************
30 * DllMain (VIRTDISK.@)
32 BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
34 TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
36 switch (reason)
38 case DLL_WINE_PREATTACH:
39 return FALSE; /* prefer native version */
40 case DLL_PROCESS_ATTACH:
41 DisableThreadLibraryCalls(hinst);
42 break;
45 return TRUE;
48 DWORD WINAPI GetStorageDependencyInformation(HANDLE obj, GET_STORAGE_DEPENDENCY_FLAG flags, ULONG size, STORAGE_DEPENDENCY_INFO *info, ULONG *used)
50 ULONG temp_size = sizeof(STORAGE_DEPENDENCY_INFO);
52 FIXME("(%p, 0x%x, %u, %p, %p): stub\n", obj, flags, size, info, used);
54 if (used) *used = temp_size;
56 if (!info || !size)
57 return ERROR_INVALID_PARAMETER;
59 if (size < temp_size)
60 return ERROR_INSUFFICIENT_BUFFER;
62 info->NumberEntries = 0;
64 return ERROR_SUCCESS;
67 DWORD WINAPI OpenVirtualDisk(VIRTUAL_STORAGE_TYPE *type, const WCHAR *path, VIRTUAL_DISK_ACCESS_MASK mask, OPEN_VIRTUAL_DISK_FLAG flags,
68 OPEN_VIRTUAL_DISK_PARAMETERS *param, HANDLE *handle)
70 FIXME("(%p, %s, %d, 0x%x, %p, %p): stub\n", type, wine_dbgstr_w(path), mask, flags, param, handle);
72 if (!type || !path || (mask & ~VIRTUAL_DISK_ACCESS_ALL) || (flags & ~(OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS | OPEN_VIRTUAL_DISK_FLAG_BLANK_FILE)) || !param)
73 return ERROR_INVALID_PARAMETER;
75 if (param->Version != OPEN_VIRTUAL_DISK_VERSION_1)
76 return ERROR_INVALID_PARAMETER;
78 return ERROR_CALL_NOT_IMPLEMENTED;