Sets the boot device index.
PRL_RESULT PrlBootDev_SetIndex( PRL_HANDLE hVmBootDev, PRL_UINT32 nDevIndex );
PrlApiVm.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle or the device has been removed from the boot list.
PRL_ERR_SUCCESS - function completed successfully.
Device index is a property that, together with device type, is used to uniquely identify a device in the virtual machine boot priority list. The index must be the same index the device has in the main virtual machine configuration or it will not be recognized during the boot procedure. To obtain a virtual device index from the virtual machine configuration, use the PrlVmDev_GetIndex function.