#include <ACLCustomMRU.h>
|
| CACLCustomMRU () |
|
| ~CACLCustomMRU () |
|
STDMETHODIMP | Next (ULONG celt, LPWSTR *rgelt, ULONG *pceltFetched) override |
|
STDMETHODIMP | Skip (ULONG celt) override |
|
STDMETHODIMP | Reset () override |
|
STDMETHODIMP | Clone (IEnumString **ppenum) override |
|
STDMETHODIMP | Expand (LPCOLESTR pszExpand) override |
|
STDMETHODIMP | Initialize (LPCWSTR pwszMRURegKey, DWORD dwMax) override |
|
STDMETHODIMP | AddMRUString (LPCWSTR pwszEntry) override |
|
| ~CComObjectRootEx () |
|
ULONG | InternalAddRef () |
|
ULONG | InternalRelease () |
|
void | Lock () |
|
void | Unlock () |
|
HRESULT | _AtlInitialConstruct () |
|
| CComObjectRootBase () |
|
| ~CComObjectRootBase () |
|
void | SetVoid (void *) |
|
HRESULT | _AtlFinalConstruct () |
|
HRESULT | FinalConstruct () |
|
void | InternalFinalConstructAddRef () |
|
void | InternalFinalConstructRelease () |
|
void | FinalRelease () |
|
HRESULT | Next ([in] ULONG celt, [out, size_is(celt), length_is(*pceltFetched)] LPOLESTR *rgelt, [out] ULONG *pceltFetched) |
|
HRESULT | RemoteNext ([in] ULONG celt, [out, size_is(celt), length_is(*pceltFetched)] LPOLESTR *rgelt, [out] ULONG *pceltFetched) |
|
HRESULT | Skip ([in] ULONG celt) |
|
HRESULT | Reset () |
|
HRESULT | Clone ([out] IEnumString **ppenum) |
|
HRESULT | QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject) |
|
ULONG | AddRef () |
|
ULONG | Release () |
|
Definition at line 11 of file ACLCustomMRU.h.
◆ CACLCustomMRU()
CACLCustomMRU::CACLCustomMRU |
( |
| ) |
|
◆ ~CACLCustomMRU()
CACLCustomMRU::~CACLCustomMRU |
( |
| ) |
|
◆ AddMRUString()
Definition at line 215 of file ACLCustomMRU.cpp.
216{
219
222
227 {
228
233 }
234
237 {
238
242 }
243 else
244 {
245
247 {
249 break;
250 }
253 }
255
258}
int GetLength() const noexcept
int Replace(PCXSTR pszOld, PCXSTR pszNew)
CStringT Left(int nCount) const
CSimpleArray< CStringW > m_MRUData
_In_ WDFCOLLECTION _In_ ULONG Index
◆ Clone()
◆ Expand()
◆ Initialize()
Definition at line 149 of file ACLCustomMRU.cpp.
150{
152
156
159 {
162 }
163 else
164 {
167 }
168}
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
HRESULT LoadTypedURLs(DWORD dwMax)
HRESULT LoadMRUList(DWORD dwMax)
static LSTATUS(WINAPI *pRegDeleteTreeW)(HKEY
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
#define HRESULT_FROM_WIN32(x)
#define HKEY_CURRENT_USER
◆ LoadMRUList()
Definition at line 170 of file ACLCustomMRU.cpp.
171{
172 dwMax =
max(0, dwMax);
173 dwMax =
min(29, dwMax);
174 while (dwMax--)
176
179
183
184 if (nChars > 0 && MRUList[nChars-1] == '\0')
185 nChars--;
186
189
191 {
192 if (MRUList[
n] >=
'a' && MRUList[
n] <=
'}' &&
m_MRUList.
Find(MRUList[
n]) < 0)
193 {
197
199 int Index = MRUList[
n] -
'a';
200
202 {
205 {
207 }
208 }
209 }
210 }
211
213}
LONG QueryStringValue(LPCTSTR pszValueName, LPTSTR pszValue, ULONG *pnChars) noexcept
int Find(_In_ PCXSTR pszSub, _In_opt_ int iStart=0) const noexcept
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Referenced by Initialize().
◆ LoadTypedURLs()
Definition at line 124 of file ACLCustomMRU.cpp.
125{
126 dwMax =
max(0, dwMax);
127 dwMax =
min(29, dwMax);
128
133 {
134
136
137
140 break;
141
143 }
144
146}
static LSTATUS RegQueryCStringW(CRegKey &key, LPCWSTR pszValueName, CStringW &str)
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
static const WCHAR szName[]
STRSAFEAPI StringCbPrintfW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszFormat,...)
Referenced by Initialize().
◆ Next()
Definition at line 23 of file ACLCustomMRU.cpp.
24{
25 if (!pceltFetched || !rgelt)
27
28 *pceltFetched = 0;
29 if (celt == 0)
31
35
37
39 {
40
41 INT ich =
str.ReverseFind(
L'\\');
42 if (ich >= 0)
44 }
45
46 size_t cb = (
str.GetLength() + 1) *
sizeof(
WCHAR);
48 if (!psz)
50
52 *rgelt = psz;
53 *pceltFetched = 1;
56}
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
static HMODULE MODULEINFO DWORD cb
◆ PersistMRU()
void CACLCustomMRU::PersistMRU |
( |
| ) |
|
|
private |
◆ Reset()
◆ Skip()
◆ m_bDirty
bool CACLCustomMRU::m_bDirty |
|
private |
◆ m_bTypedURLs
BOOL CACLCustomMRU::m_bTypedURLs |
|
private |
◆ m_ielt
ULONG CACLCustomMRU::m_ielt |
|
private |
◆ m_Key
CRegKey CACLCustomMRU::m_Key |
|
private |
◆ m_MRUData
◆ m_MRUList
CStringW CACLCustomMRU::m_MRUList |
|
private |
The documentation for this class was generated from the following files: