0
我無法理解如何使用菜單或列表來允許用戶選擇適當的設備。 有什麼缺失。我不明白。你能介意我的想法嗎?列表或菜單中的列表捕獲設備
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();
}