Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 18 of file enumdevices.c.
Referenced by DeviceEnumThread(), and MainWndProc().
{ HTREEITEM hItem; hItem = TreeView_GetRoot(hTreeView); if (hItem) { hItem = TreeView_GetChild(hTreeView, hItem); /* loop the parent items */ while (hItem) { hItem = TreeView_GetChild(hTreeView, hItem); if (hItem == NULL) break; /* loop the child items and free the DeviceID */ while (TRUE) { HTREEITEM hOldItem; TV_ITEM tvItem; //TCHAR Buf[100]; tvItem.hItem = hItem; tvItem.mask = TVIF_PARAM;// | TVIF_TEXT; //tvItem.pszText = Buf; //tvItem.cchTextMax = 99; (void)TreeView_GetItem(hTreeView, &tvItem); //MessageBox(NULL, Buf, NULL, 0); HeapFree(GetProcessHeap(), 0, (LPTSTR)tvItem.lParam); hOldItem = hItem; hItem = TreeView_GetNextSibling(hTreeView, hItem); if (hItem == NULL) { hItem = hOldItem; break; } } hItem = TreeView_GetParent(hTreeView, hItem); hItem = TreeView_GetNextSibling(hTreeView, hItem); } } }