VixDiskLib_Rename() changes the name of a virtual disk. Use this function only when the virtual machine is powered off.

vixError = VixDiskLib_Rename(oldGlobals.diskPath, newGlobals.diskPath);