417{
419 {
423 break;
424
427 continue;
428
432 tvi.lParam = (
LPARAM)hItemKey;
435 {
442 }
444
446 {
447 tvi.lParam = 0;
448 hCloseKey = hItemKey;
450 }
451 else if (Valid)
452 {
456 }
457
458 if (Valid)
459 {
461 tvi.pszText = Temp;
462 else
464#ifdef __REACTOS__
466 if (grayed)
467 {
469 hCloseKey = hItemKey;
470 tvi.iImage += 2;
471 if (grayed & 4)
472 tvi.iImage = (tvi.iImage & ~1) | ((grayed & 2) != 0);
473 }
474#endif
475 tvi.iSelectedImage = tvi.iImage;
476 tvis.hParent = hParent;
477 tvis.hInsertAfter = hInsertAfter;
479 }
480
482 {
485 }
486 if (!Valid)
488 if (hCloseKey && hItemKey != hCloseKey)
490 }
492}
LPCWSTR GetRegString(CRegKey &Key, LPCWSTR Name, CStringW &Value)
#define RegCloseKey(hKey)
void AddItemsFromRegistry(HKEY hKey, HTREEITEM hParent, HTREEITEM hInsertAfter)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegEnumKeyExW(_In_ HKEY hKey, _In_ DWORD dwIndex, _Out_ LPWSTR lpName, _Inout_ LPDWORD lpcbName, _Reserved_ LPDWORD lpReserved, _Out_opt_ LPWSTR lpClass, _Inout_opt_ LPDWORD lpcbClass, _Out_opt_ PFILETIME lpftLastWriteTime)
HRESULT WINAPI SHLoadRegUIStringW(HKEY hkey, LPCWSTR value, LPWSTR buf, DWORD size)
#define TreeView_Expand(hwnd, hitem, code)
#define TreeView_InsertItem(hwnd, lpis)
#define TVIF_SELECTEDIMAGE
static int AddIconFromRegistry(HIMAGELIST hIL, HKEY hKey, LPCWSTR Name)
static HRESULT GetCheckState(HKEY hKey, BOOL UseDefault=FALSE)
static DWORD GetRegDWORD(HKEY hKey, LPCWSTR Name, PDWORD Data)
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ PSID _Out_writes_to_opt_ cchName LPSTR _Inout_ LPDWORD cchName