更新:2007 年 11 月
获取当前节点的名称,例如“我的设备仿真程序”、“所有设备仿真程序”或“其他”。
HRESULT get_Name([out, retval] BSTR* pbstrName);
参数
- [out] pbstrName
一个指针,它指向在方法调用后用当前节点的名称填充的 BSTR。
返回值
一个指示方法调用结果的 HRESULT 值。
示例
本示例演示如何使用此方法。有关完整的示例,请参见IDeviceEmulatorManager。
// Output the name of node
CComBSTR node;
hr = pDeviceEmulatorManager->get_Name(&node);
if (FAILED(hr)) {
wprintf_s(L"Error: Failed to get current SDK category name. ErrorCode=0x%08X\n", hr);
return false;
}
wprintf_s(L"- %s\n", node);
要求
DEMComInterface.tlb