我不明白如何使用菜单或列表来允许用户选择其适当的设备。有什么东西不见了。我不明白。你能启发我的思想吗?
void fillDevices(HWND list)
{
IPropertyBag *tmpBag=NULL;
tmpMonk->BindToStorage(0,0,IID_IPropertyBag,(void **)&tmpBag);
VariantInit(&varName);
//DevicePath-Description-FriendlyName
checkIt(tmpBag->Read(L"FriendlyName",&varName,0));
// i need to fill it with device names and be able to chose from the list
VariantClear(&varName);
tmpBag->Release();
}