Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

SetVirtualDiskMetadata function in C# with example

$
0
0
C++
DWORD WINAPI SetVirtualDiskMetadata(
  _In_ HANDLE VirtualDiskHandle,
  _In_ LPGUID Item,
  _In_ ULONG  MetaDataSize,
  _In_ PVOID  MetaData
);

https://msdn.microsoft.com/en-us/library/windows/desktop/hh832162%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 

I converted the above to c#

public static extern int SetVirtualDiskMetadata(IntPtr VirtualDiskHandle, IntPtr Item,uint MetaDataSize,IntPtr MetaData); 

I am not sure if  I converted correctly due to my bad understand on c++

I need to know  how i can set virtual disk metadata using windows VirtDisk.dll

I want to know how will I pass parameters with an example to set metadata on a vhdx.

Thanks and Regards,

Benjamin Joseph


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>