11#define TYPED_URLS_KEY L"Software\\Microsoft\\Internet Explorer\\TypedURLs"
14 : m_bDirty(
false), m_bTypedURLs(
FALSE), m_ielt(0)
25 if (!pceltFetched || !rgelt)
41 INT ich =
str.ReverseFind(
L'\\');
46 size_t cb = (
str.GetLength() + 1) *
sizeof(
WCHAR);
104 DWORD dwType, cbData;
113 if (pszBuffer ==
NULL)
117 ret =
key.QueryValue(pszValueName,
NULL, pszBuffer, &cbData);
126 dwMax =
max(0, dwMax);
127 dwMax =
min(29, dwMax);
172 dwMax =
max(0, dwMax);
173 dwMax =
min(29, dwMax);
184 if (nChars > 0 && MRUList[nChars-1] ==
'\0')
192 if (MRUList[
n] >=
'a' && MRUList[
n] <=
'}' &&
m_MRUList.
Find(MRUList[
n]) < 0)
199 int Index = MRUList[
n] -
'a';
static LSTATUS RegQueryCStringW(CRegKey &key, LPCWSTR pszValueName, CStringW &str)
#define STDMETHODCALLTYPE
LONG SetStringValue(LPCTSTR pszValueName, LPCTSTR pszValue, DWORD dwType=REG_SZ) noexcept
LONG QueryStringValue(LPCTSTR pszValueName, LPTSTR pszValue, ULONG *pnChars) noexcept
LONG Create(HKEY hKeyParent, LPCTSTR lpszKeyName, LPTSTR lpszClass=REG_NONE, DWORD dwOptions=REG_OPTION_NON_VOLATILE, REGSAM samDesired=KEY_READ|KEY_WRITE, LPSECURITY_ATTRIBUTES lpSecAttr=NULL, LPDWORD lpdwDisposition=NULL) noexcept
int GetLength() const noexcept
int Replace(PCXSTR pszOld, PCXSTR pszNew)
CStringT Left(int nCount) const
int Find(_In_ PCXSTR pszSub, _In_opt_ int iStart=0) const noexcept
STDMETHODIMP Initialize(LPCWSTR pwszMRURegKey, DWORD dwMax) override
STDMETHODIMP Next(ULONG celt, LPWSTR *rgelt, ULONG *pceltFetched) override
STDMETHODIMP Expand(LPCOLESTR pszExpand) override
STDMETHODIMP AddMRUString(LPCWSTR pwszEntry) override
STDMETHODIMP Skip(ULONG celt) override
STDMETHODIMP Clone(IEnumString **ppenum) override
STDMETHODIMP Reset() override
HRESULT LoadTypedURLs(DWORD dwMax)
CSimpleArray< CStringW > m_MRUData
HRESULT LoadMRUList(DWORD dwMax)
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
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
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
static HMODULE MODULEINFO DWORD cb
static const WCHAR szName[]
STRSAFEAPI StringCbPrintfW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszFormat,...)
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
#define HRESULT_FROM_WIN32(x)
#define ERROR_INVALID_DATA
#define HKEY_CURRENT_USER