IVMHostInfo::IsHostDriveMounted method

The IsHostDriveMounted method indicates whether the specified host drive is mounted.

Syntax

HRESULT IsHostDriveMounted(
  [in]  BSTR         hostDriveIdentifier,
  [out] VARIANT_BOOL *hostDriveMounted
);

Parameters

hostDriveIdentifier [in]

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

hostDriveMounted [out]

VARIANT_TRUE if the host drive specified by hostDriveIdentifier is mounted, VARIANT_FALSE if otherwise.

Return value

This method can return one of these values.

Return code Description
S_OK
The operation was successful.
E_POINTER
The hostDriveIdentifier or hostDriveMounted parameter is NULL.
E_INVALIDARG
The hostDriveIdentifier parameter is empty or does not reference a usable drive.
DISP_E_EXCEPTION
An unexpected error has 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