Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]
Sets the bus location to which this hard disk is attached.
Syntax
HRESULT SetBusLocation(
[in] long vmBusNumber,
[in] long vmDeviceNumber
);
Parameters
-
vmBusNumber [in]
-
The bus number to be used.
-
vmDeviceNumber [in]
-
The device number to be used.
Return value
This method can return one of these values.
| Return code/value | Description |
|---|---|
|
The operation was successful. |
|
The bus location specified is not valid. |
|
The bus location could not be set because the virtual machine is in a running or saved state. |
|
The bus location could not be set because another device is currently attached to this location. |
|
The current drive is not valid. |
|
The current virtual machine is not valid. |
|
An unexpected error has occurred. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client |
Windows 7 [desktop apps only] |
| Minimum supported server |
None supported |
| End of client support |
Windows 7 |
| Product |
Windows Virtual PC |
| Header |
|
| IID |
IID_IVMHardDiskconnection is defined as aefa36a5-463a-46ae-9e6c-a1fb4e12e671 |