dmband: Rewrite band lbin list parsing.
[wine.git] / dlls / virtdisk / virtdisk_main.c
blobbad01a31f4658ae1641ef8eeeee1504bbc4bd549
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 DWORD WINAPI GetStorageDependencyInformation(HANDLE obj, GET_STORAGE_DEPENDENCY_FLAG flags, ULONG size, STORAGE_DEPENDENCY_INFO *info, ULONG *used)
31 ULONG temp_size = sizeof(STORAGE_DEPENDENCY_INFO);
33 FIXME("(%p, 0x%x, %lu, %p, %p): stub\n", obj, flags, size, info, used);
35 if (used) *used = temp_size;
37 if (!info || !size)
38 return ERROR_INVALID_PARAMETER;
40 if (size < temp_size)
41 return ERROR_INSUFFICIENT_BUFFER;
43 info->NumberEntries = 0;
45 return ERROR_SUCCESS;
48 DWORD WINAPI OpenVirtualDisk(VIRTUAL_STORAGE_TYPE *type, const WCHAR *path, VIRTUAL_DISK_ACCESS_MASK mask, OPEN_VIRTUAL_DISK_FLAG flags,
49 OPEN_VIRTUAL_DISK_PARAMETERS *param, HANDLE *handle)
51 FIXME("(%p, %s, %d, 0x%x, %p, %p): stub\n", type, wine_dbgstr_w(path), mask, flags, param, handle);
53 if (!type || !path || (mask & ~VIRTUAL_DISK_ACCESS_ALL) || (flags & ~(OPEN_VIRTUAL_DISK_FLAG_NO_PARENTS | OPEN_VIRTUAL_DISK_FLAG_BLANK_FILE)) || !param)
54 return ERROR_INVALID_PARAMETER;
56 if (param->Version != OPEN_VIRTUAL_DISK_VERSION_1)
57 return ERROR_INVALID_PARAMETER;
59 return ERROR_CALL_NOT_IMPLEMENTED;
62 DWORD WINAPI DetachVirtualDisk(HANDLE handle, DETACH_VIRTUAL_DISK_FLAG flags, ULONG specific_flags)
64 FIXME("(%p, 0x%x, %ld): stub\n", handle, flags, specific_flags);
65 return ERROR_INVALID_PARAMETER;