DoWriteMetadata()

This procedure calls
VixDiskLib_WriteMetadata()
to serve the
-wmeta
command-line option. For example, you can change the tools version from 1 to 2 as follows:
vix-disklib-sample -wmeta toolsVersion 2 sample.vmdk