long DisplayCollector::CollectFallback(NVDataItem * TargetItem) { DISPLAY_DEVICEW CurrDevInfo; long CurrDevIndex; for (CurrDevIndex = 0, CurrDevInfo.cb = sizeof (DISPLAY_DEVICE); EnumDisplayDevicesW(NULL, CurrDevIndex, &CurrDevInfo, 0); CurrDevIndex ++, CurrDevInfo.cb = sizeof (DISPLAY_DEVICE)) { if ((CurrDevInfo.StateFlags & DISPLAY_DEVICE_MIRRORING_DRIVER) == DISPLAY_DEVICE_MIRRORING_DRIVER) continue; auto_ptr<NVDataItem> ReportItem (new NVDataItem(DISPCI_TAG)); ReportItem->AddNVItem(DISP_DESC, CurrDevInfo.DeviceString); ReportItem->AddNVItem(DISP_FID, CurrDevInfo.DeviceName); TargetItem->AddSubItem(ReportItem.release()); } #ifdef INSTRUMENTED MessageBox(NULL, "Display Complete!", "Report", MB_OK); #endif return ERROR_SUCCESS; }
void create() { m_lst_item.push_back(ReportItem(string("Locale"), 16)); m_lst_item.push_back(ReportItem(string("Descrizione"), 40)); m_lst_item.push_back(ReportItem(string("L"), 5)); m_lst_item.push_back(ReportItem(string("H"), 5)); m_lst_item.push_back(ReportItem(string("INT"), 7)); m_lst_item.push_back(ReportItem(string("Potenza"), 9)); m_lst_item.push_back(ReportItem(string("Cod. Ripart."), 16)); }