Compartir a través de


IVMHostInfo::GetHostDriveSize method

The GetHostDriveSize method returns the size of a host drive in Megabytes.

Syntax

HRESULT GetHostDriveSize(
  [in]  BSTR hostDriveIdentifier,
  [out] long *hostDriveSizeInMB
);

Parameters

hostDriveIdentifier [in]

Specifies the desired host drive to check. The HostDrives property is used to retrieve a list of valid drive identifier strings.

hostDriveSizeInMB [out]

Retrieves the size in megabytes of the host drive specified by the hostDriveIdentifier parameter.

Return value

This method can return one of these values.

Return code Description
S_OK
The operation was successful.
E_POINTER
The hostDriveIdentifier or hostDriveSizeInMB parameter is NULL.
E_POINTER
The hostDriveIdentifier parameter is not valid or does not reference a usable drive.
DISP_E_EXCEPTION
An unexpected error occurred.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMHostInfo