25 #define LISTVIEW_NUM_ICONS 2 51 #define MAX_LIST_COLUMNS (IDS_LIST_COLUMN_LAST - IDS_LIST_COLUMN_FIRST + 1) 81 return lineinfo->
name;
90 for(
i = 0;
i <
c;
i++)
94 if (pszValueName ==
NULL)
99 fi.
psz = pszValueName;
136 memcpy(&linfo[1], ValBuf, dwCount);
137 linfo->
val = &linfo[1];
148 if (
item.cchTextMax == 0)
165 #if (_WIN32_IE >= 0x0300) 218 if(dwCount ==
sizeof(
DWORD))
238 for (
i = 0;
i < dwCount;
i++)
242 strBinary[dwCount * 3] = 0;
271 lvC.iSubItem =
index;
316 plvdi->item.pszText =
NULL;
317 plvdi->item.cchTextMax = 0;
319 switch (plvdi->item.iSubItem)
323 plvdi->item.pszText =
buffer;
326 switch (((
LINE_INFO*)plvdi->item.lParam)->dwValType)
329 plvdi->item.pszText =
L"REG_NONE";
332 plvdi->item.pszText =
L"REG_SZ";
335 plvdi->item.pszText =
L"REG_EXPAND_SZ";
338 plvdi->item.pszText =
L"REG_BINARY";
341 plvdi->item.pszText =
L"REG_DWORD";
344 plvdi->item.pszText =
L"REG_DWORD_BIG_ENDIAN";
347 plvdi->item.pszText =
L"REG_LINK";
350 plvdi->item.pszText =
L"REG_MULTI_SZ";
353 plvdi->item.pszText =
L"REG_RESOURCE_LIST";
356 plvdi->item.pszText =
L"REG_FULL_RESOURCE_DESCRIPTOR";
359 plvdi->item.pszText =
L"REG_RESOURCE_REQUIREMENTS_LIST";
362 plvdi->item.pszText =
L"REG_QWORD";
369 plvdi->item.pszText =
buffer;
375 plvdi->item.pszText =
L"";
394 return ((
int)
l->dwValType - (
int)
r->dwValType);
396 return ((
int)
r->dwValType - (
int)
l->dwValType);
401 if (
l->dwValType !=
r->dwValType)
404 return ((
int)
l->dwValType - (
int)
r->dwValType);
406 return ((
int)
r->dwValType - (
int)
l->dwValType);
435 return ((
int)dw1 - (
int)dw2);
438 return ((
int)dw2 - (
int)dw1);
447 return ((
int)qw1 - (
int)qw2);
450 return ((
int)qw2 - (
int)qw1);
459 nCompare =
memcmp(
l->val,
r->val,
min(
l->val_len,
r->val_len));
461 nCompare =
l->val_len -
r->val_len;
465 nCompare =
memcmp(
r->val,
l->val,
min(
r->val_len,
l->val_len));
467 nCompare =
r->val_len -
l->val_len;
482 (iSortingColumn >= 0) )
641 if (!hwndLV)
return NULL;
672 DWORD max_sub_key_len;
673 DWORD max_val_name_len;
681 if (!hwndLV)
return FALSE;
697 &val_count, &max_val_name_len, &max_val_size,
NULL,
NULL);
702 DWORD dwValNameLen = max_val_name_len;
704 DWORD dwValSize = max_val_size;
714 ValBuf[dwValSize] = ValBuf[dwValSize + 1] = 0;
717 dwValNameLen = max_val_name_len;
718 dwValSize = max_val_size;
736 for(
i = 0;
i <
c;
i++)
INT WINAPI ImageList_GetImageCount(HIMAGELIST himl)
VOID SetValueName(HWND hwndLV, LPCWSTR pszValueName)
#define ListView_GetNextItem(hwnd, i, flags)
#define LVN_BEGINLABELEDIT
#define IDS_DEFAULT_VALUE_NAME
void DestroyListView(HWND hwndLV)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
struct tagLINE_INFO LINE_INFO
#define LVS_SHOWSELALWAYS
#define UNREFERENCED_PARAMETER(P)
GLdouble GLdouble GLdouble r
#define ListView_GetHeader(hwnd)
static BOOL CreateListColumns(HWND hWndListView, INT cxTotal)
GLuint GLuint GLsizei count
LONG RenameValue(HKEY hKey, LPCWSTR lpSubKey, LPCWSTR lpDestValue, LPCWSTR lpSrcValue)
static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
static void OnGetDispInfo(NMLVDISPINFO *plvdi)
static void AddEntryToList(HWND hwndLV, LPWSTR Name, DWORD dwValType, void *ValBuf, DWORD dwCount, int Position, BOOL ValExists)
#define ListView_InsertItem(hwnd, pitem)
#define IDS_LIST_COLUMN_FIRST
BOOL WINAPI DestroyWindow(_In_ HWND)
#define IDS_INVALID_DWORD
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define REG_RESOURCE_REQUIREMENTS_LIST
struct tagLINE_INFO * PLINE_INFO
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
struct tagSORT_INFO SORT_INFO
GLenum GLuint GLenum GLsizei const GLchar * buf
#define ListView_InsertColumn(hwnd, iCol, pcol)
LONG WINAPI RegCloseKey(HKEY hKey)
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
static const WCHAR szText[]
#define ListView_SetItemState(hwndLV, i, data, mask)
BOOL IsDefaultValue(HWND hwndLV, int i)
#define Header_GetItem(hwndHD, i, phdi)
LPCWSTR GetValueName(HWND hwndLV, int iStartAt)
LONG WINAPI RegEnumValueW(_In_ HKEY hKey, _In_ DWORD index, _Out_ LPWSTR value, _Inout_ PDWORD val_count, _Reserved_ PDWORD reserved, _Out_opt_ PDWORD type, _Out_opt_ LPBYTE data, _Inout_opt_ PDWORD count)
#define ListView_SetImageList(hwnd, himl, iImageList)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
#define ListView_GetItemCount(hwnd)
#define REG_RESOURCE_LIST
LPCWSTR GetItemPath(HWND hwndTV, HTREEITEM hItem, HKEY *phRootKey)
static BOOL bSortAscending
#define REG_FULL_RESOURCE_DESCRIPTOR
#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_)
BOOL ListWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Result)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
INT WINAPI ImageList_AddIcon(HIMAGELIST himl, HICON hIcon)
#define IDS_ERR_RENVAL_TOEMPTY
LONG WINAPI RegQueryInfoKeyW(HKEY hKey, LPWSTR lpClass, LPDWORD lpcClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcMaxSubKeyLen, LPDWORD lpcMaxClassLen, LPDWORD lpcValues, LPDWORD lpcMaxValueNameLen, LPDWORD lpcMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime)
INT WINAPI StrCmpLogicalW(LPCWSTR lpszStr, LPCWSTR lpszComp)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define IDS_ERR_RENVAL_CAPTION
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
BOOL RefreshListView(HWND hwndLV, HKEY hKey, LPCWSTR keyPath)
#define memcpy(s1, s2, n)
static const int default_column_widths[MAX_LIST_COLUMNS]
#define REG_DWORD_BIG_ENDIAN
static INT g_iSortedColumn
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
static BOOL ListView_Sort(HWND hListView, int iSortingColumn, int iSortedColumn)
static BOOL InitListViewImageLists(HWND hwndLV)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct tagNMLISTVIEW * LPNMLISTVIEW
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
static const int column_alignment[MAX_LIST_COLUMNS]
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
BOOL CreateListView(PMAIN_WND_INFO Info)
struct tagSORT_INFO * PSORT_INFO
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
unsigned long long DWORDLONG
#define ListView_FindItem(hwnd, iStart, plvfi)
#define ListView_GetItem(hwnd, pitem)
#define ListView_SortItems(hwndLV, _pfnCompare, _lPrm)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
#define MAKEINTRESOURCEW(i)
#define Header_SetItem(hwndHD, i, phdi)
#define LPSTR_TEXTCALLBACK
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
_Check_return_ _CRTIMP wchar_t *__cdecl _wcsdup(_In_z_ const wchar_t *_Str)
#define LISTVIEW_NUM_ICONS
#define IDS_VALUE_NOT_SET
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define HeapFree(x, y, z)
#define ListView_EditLabel(hwndLV, i)
#define ListView_DeleteAllItems(hwnd)