85 return L"UNKNOWN HKEY, PLEASE REPORT";
99 const int nButtonWidth = 44;
100 const int nButtonHeight = 22;
118 rt.
right - rt.
left - nButtonWidth, nButtonHeight,
123 nButtonWidth, nButtonHeight,
128 rt.
top + nButtonHeight + cyEdge,
135 rt.
top + nButtonHeight + cyEdge,
155 const DWORD Pattern[4] = {0x5555AAAA, 0x5555AAAA, 0x5555AAAA, 0x5555AAAA};
192#define MIN(a,b) ((a < b) ? (a) : (b))
195 size_t iSuggestionsLength)
198 WCHAR szLastFound[256];
200 HKEY hOtherKey, hSubKey;
204 memset(pszSuggestions, 0, iSuggestionsLength *
sizeof(*pszSuggestions));
205 iSuggestionsLength--;
220 if ((szBuffer[0] !=
L'\0') &&
_wcsicmp(szBuffer, pszKeyPath))
224 lstrcpynW(pszSuggestions,
L"HKCR\\", (
int) iSuggestionsLength);
227 iSuggestionsLength -=
i;
229 lstrcpynW(pszSuggestions, szBuffer, (
int) iSuggestionsLength);
230 i =
MIN(
wcslen(pszSuggestions) + 1, iSuggestionsLength);
232 iSuggestionsLength -=
i;
237 pszKeyPath = szLastFound;
242 while(bFound && (iSuggestionsLength > 0));
250 lstrcpynW(pszSuggestions,
L"HKCR\\CLSID\\", (
int)iSuggestionsLength);
253 iSuggestionsLength -=
i;
255 lstrcpynW(pszSuggestions, szBuffer, (
int)iSuggestionsLength);
256 i =
MIN(
wcslen(pszSuggestions) + 1, iSuggestionsLength);
258 iSuggestionsLength -=
i;
271 cch =
_snwprintf(pszSuggestions, iSuggestionsLength,
L"%s\\%s", rootstr, pszKeyPath);
272 if (cch <= 0 || cch > iSuggestionsLength)
281 static WCHAR s_szNode[256];
325 fullPath =
malloc(cbFullPath);
331 ((keyPath[0] ==
L'\\') ?
L"" :
L"\\"), keyPath);
343 if (
_wcsicmp(rootName,
L"HKEY_LOCAL_MACHINE") == 0 ||
353 else if (!
wcschr(keyPath,
L'\\'))
408 IAutoComplete_Release(pAutoComplete);
570 if (
pt.x == -1 &&
pt.y == -1)
621 if (
pt.x == -1 &&
pt.y == -1)
658 memset(&mii, 0,
sizeof(mii));
669 memset(&mii, 0,
sizeof(mii));
707 memset(&mii, 0,
sizeof(mii));
LONG QueryStringValue(HKEY hKey, LPCTSTR lpSubKey, LPCTSTR lpValueName, LPTSTR pszBuffer, DWORD dwBufferLen)
BOOL CreateListView(PMAIN_WND_INFO Info)
static void finish_splitbar(HWND hWnd, int x)
static void draw_splitbar(HWND hWnd, int x)
LRESULT CALLBACK AddressBarProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
static ULONG WINAPI DummyEnumStringsAddRefRelease(LPVOID This)
struct DummyEnumStrings g_DummyEnumStrings
static HRESULT WINAPI DummyEnumStringsQI(LPVOID This, REFIID riid, void **ppv)
static INT ClampSplitBarX(HWND hWnd, INT x)
static HRESULT WINAPI DummyEnumStringsNext(LPVOID This, ULONG celt, LPWSTR *parr, ULONG *pceltFetched)
LPCWSTR get_root_key_name(HKEY hRootKey)
static HRESULT WINAPI DummyEnumStringsReset(LPVOID This)
static HRESULT WINAPI DummyEnumStringsClone(LPVOID This, void **ppv)
struct DummyEnumStringsVtbl g_DummyEnumStringsVtbl
VOID UpdateAddress(HTREEITEM hItem, HKEY hRootKey, LPCWSTR pszPath, BOOL bSelectNone)
static void SuggestKeys(HKEY hRootKey, LPCWSTR pszKeyPath, LPWSTR pszSuggestions, size_t iSuggestionsLength)
static HRESULT WINAPI DummyEnumStringsSkip(LPVOID This, ULONG celt)
void ResizeWnd(int cx, int cy)
BOOL IsDefaultValue(HWND hwndLV, int i)
BOOL RefreshListView(HWND hwndLV, HKEY hKey, LPCWSTR keyPath, BOOL bSelectNone)
BOOL ListWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Result)
void DestroyListView(HWND hwndLV)
HWND CreateTreeView(HWND hwndParent, LPWSTR pHostName, HMENU id)
BOOL SelectNode(HWND hwndTV, LPCWSTR keyPath)
BOOL TreeWndNotifyProc(HWND hWnd, WPARAM wParam, LPARAM lParam, BOOL *Result)
LPCWSTR GetItemPath(HWND hwndTV, HTREEITEM hItem, HKEY *phRootKey)
#define ID_TREE_SUGGESTION_MIN
#define ID_REGISTRY_UNLOADHIVE
#define ID_TREE_EXPANDBRANCH
#define ID_TREE_COLLAPSEBRANCH
#define IDS_GOTO_SUGGESTED_KEY
#define ID_EDIT_MODIFY_BIN
#define ID_TREE_SUGGESTION_MAX
#define ID_REGISTRY_LOADHIVE
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
#define HeapFree(x, y, z)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
LPWSTR WINAPI PathFindNextComponentW(LPCWSTR lpszPath)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
GLint GLint GLint GLint GLint x
GLenum GLuint GLenum GLsizei const GLchar * buf
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
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
int _snwprintf(wchar_t *buffer, size_t count, const wchar_t *format,...)
static DWORD DWORD void LPSTR DWORD cch
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define KEY_ENUMERATE_SUB_KEYS
const GUID IID_IEnumString
static VOID DestroyTreeView(HWND hTreeView)
_Out_opt_ int _Out_opt_ int * cy
#define TreeView_SelectItem(hwnd, hitem)
#define TreeView_GetParent(hwnd, hitem)
#define ListView_GetNextItem(hwnd, i, flags)
#define TreeView_GetSelection(hwnd)
#define TreeView_GetItem(hwnd, pitem)
#define TreeView_GetItemRect(hwnd, hitem, prc, code)
#define ListView_GetSelectedCount(hwndLV)
#define ListView_DeleteAllItems(hwnd)
#define TreeView_HitTest(hwnd, lpht)
#define IsEqualIID(riid1, riid2)
static unsigned __int64 next
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCbPrintfW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszFormat,...)
struct DummyEnumStringsVtbl * lpVtbl
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
HGDIOBJ WINAPI GetStockObject(_In_ int)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
HBRUSH WINAPI CreatePatternBrush(_In_ HBITMAP)
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_CONFIG
#define HKEY_CURRENT_USER
#define HKEY_CLASSES_ROOT
HWND WINAPI SetCapture(_In_ HWND hWnd)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI ReleaseCapture(void)
BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
int WINAPI GetMenuItemCount(_In_opt_ HMENU)
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WM_CAPTURECHANGED
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
HWND WINAPI GetCapture(void)
BOOL WINAPI EndDeferWindowPos(_In_ HDWP)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
HWND WINAPI SetFocus(_In_opt_ HWND)
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 WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
HDC WINAPI GetDC(_In_opt_ HWND)
HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
#define MAKEINTRESOURCEW(i)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
int WINAPI GetSystemMetrics(_In_ int)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)
HDWP WINAPI BeginDeferWindowPos(_In_ int)
BOOL WINAPI DestroyIcon(_In_ HICON)
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)
_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