Name

VixDiskLib_GetInfo

Description

VixError
VixDiskLib_GetInfo(VixDiskLibHandle diskHandle,
                   VixDiskLibInfo **info);

Retrieves information for a Virtual Disk.

Parameters

diskHandle
Handle to an open virtual disk.
info
Pointer to a Pointer to VixDiskLibInfo structure. VixDiskLib will allocate and fill this structure with the details of the disk.

Return Value

VIX_OK if the function succeeded, otherwise an appropriate VIX error code.

Remarks

Example

   VixDiskLibInfo *info = NULL;

   vixError = VixDiskLib_GetInfo(disk.Handle(), &info);
   cout << "capacity = " << info->capacity << " sectors" << endl;
   VixDiskLib_FreeInfo(info);

Copyright (C) 2007-2018 VMware, Inc. All rights reserved.