IEnumManagerSDKs::EnumerateVMIDs

更新:2007 年 11 月

枚举属于当前平台的仿真程序。

HRESULT EnumerateVMIDs([out,retval] IEnumVMIDs** ppEnumVMIDs);

参数

  • [out,retval] ppEnumVMIDs
    一个指针,它指向实现 IEnumVMIDs 的对象。该对象是当前平台中的仿真程序的列表。

返回值

一个指示方法调用结果的 HRESULT 值。

示例

本示例演示如何使用此方法。有关完整的示例,请参见IEnumManagerSDKs

// Get the list of emulators in the SDK/platform
CComPtr<IEnumVMIDs> pDeviceEnumerator;
hr = pSDKEnumerator->EnumerateVMIDs(&pDeviceEnumerator);
if (FAILED(hr)) {
    wprintf_s(L"Error: Failed to get enumerator for VM devices. ErrorCode=0x%08X\n", hr);
    return false;
}

要求

DEMComInterface.tlb