virtdisk: Add GetStorageDependencyInformation stub.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3f53876cda
commit
4ecb8b7e99
|
@ -8,7 +8,7 @@
|
|||
@ stub EnumerateVirtualDiskMetadata
|
||||
@ stub ExpandVirtualDisk
|
||||
@ stub GetAllAttachedVirtualDiskPhysicalPaths
|
||||
@ stub GetStorageDependencyInformation
|
||||
@ stdcall GetStorageDependencyInformation(long long long ptr ptr)
|
||||
@ stub GetVirtualDiskInformation
|
||||
@ stub GetVirtualDiskMetadata
|
||||
@ stub GetVirtualDiskOperationProgress
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "virtdisk.h"
|
||||
|
||||
#include "wine/debug.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(virtdisk);
|
||||
|
@ -44,3 +46,22 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
DWORD WINAPI GetStorageDependencyInformation(HANDLE obj, GET_STORAGE_DEPENDENCY_FLAG flags, ULONG size, STORAGE_DEPENDENCY_INFO *info, ULONG *used)
|
||||
{
|
||||
ULONG temp_size = sizeof(STORAGE_DEPENDENCY_INFO);
|
||||
|
||||
FIXME("(%p, 0x%x, %u, %p, %p): stub\n", obj, flags, size, info, used);
|
||||
|
||||
if (used) *used = temp_size;
|
||||
|
||||
if (!info || !size)
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
if (size < temp_size)
|
||||
return ERROR_INSUFFICIENT_BUFFER;
|
||||
|
||||
info->NumberEntries = 0;
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
#ifndef __WINE_VIRTDISK_DLL_H
|
||||
#define __WINE_VIRTDISK_DLL_H
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue