|
| CControlPanelEnum () |
|
| ~CControlPanelEnum () |
|
HRESULT WINAPI | Initialize (DWORD dwFlags, IEnumIDList *pRegEnumerator) |
|
BOOL | RegisterCPanelApp (LPCWSTR path) |
|
int | RegisterRegistryCPanelApps (HKEY hkey_root, LPCWSTR szRepPath) |
|
BOOL | CreateCPanelEnumList (DWORD dwFlags) |
|
| CEnumIDListBase () |
|
virtual | ~CEnumIDListBase () |
|
BOOL | AddToEnumList (LPITEMIDLIST pidl) |
|
BOOL | DeleteList () |
|
BOOL | HasItemWithCLSID (LPITEMIDLIST pidl) |
|
HRESULT | AppendItemsFromEnumerator (IEnumIDList *pEnum) |
|
template<class T > |
BOOL | HasItemWithCLSIDImpl (LPCITEMIDLIST pidl) |
|
STDMETHOD() | Next (ULONG celt, LPITEMIDLIST *rgelt, ULONG *pceltFetched) override |
|
STDMETHOD() | Skip (ULONG celt) override |
|
STDMETHOD() | Reset () override |
|
STDMETHOD() | Clone (IEnumIDList **ppenum) 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)] PITEMID_CHILD *rgelt, [out] ULONG *pceltFetched) |
|
HRESULT | Skip ([in] ULONG celt) |
|
HRESULT | Reset () |
|
HRESULT | Clone ([out] IEnumIDList **ppenum) |
|
HRESULT | QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject) |
|
ULONG | AddRef () |
|
ULONG | Release () |
|
Definition at line 39 of file CControlPanelFolder.cpp.
◆ CControlPanelEnum()
CControlPanelEnum::CControlPanelEnum |
( |
| ) |
|
◆ ~CControlPanelEnum()
CControlPanelEnum::~CControlPanelEnum |
( |
| ) |
|
◆ CreateCPanelEnumList()
BOOL CControlPanelEnum::CreateCPanelEnumList |
( |
DWORD |
dwFlags | ) |
|
Definition at line 223 of file CControlPanelFolder.cpp.
224{
228
230
231
232 if (
dwFlags & SHCONTF_NONFOLDERS)
233 {
235
239
241
243 {
244 do
245 {
247 continue;
248
251 if (
wcscmp(wfd.cFileName,
L"ncpa.cpl"))
253 }
256 }
257
260 }
262}
BOOL RegisterCPanelApp(LPCWSTR path)
int RegisterRegistryCPanelApps(HKEY hkey_root, LPCWSTR szRepPath)
#define INVALID_HANDLE_VALUE
HANDLE WINAPI FindFirstFileW(IN LPCWSTR lpFileName, OUT LPWIN32_FIND_DATAW lpFindFileData)
BOOL WINAPI FindClose(HANDLE hFindFile)
BOOL WINAPI FindNextFileW(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAW lpFindFileData)
UINT WINAPI GetSystemDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
#define FILE_ATTRIBUTE_HIDDEN
#define FILE_ATTRIBUTE_DIRECTORY
#define PathAddBackslashW
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER
Referenced by Initialize().
◆ Initialize()
Definition at line 79 of file CControlPanelFolder.cpp.
80{
85}
BOOL CreateCPanelEnumList(DWORD dwFlags)
HRESULT AppendItemsFromEnumerator(IEnumIDList *pEnum)
◆ RegisterCPanelApp()
BOOL CControlPanelEnum::RegisterCPanelApp |
( |
LPCWSTR |
path | ) |
|
Definition at line 158 of file CControlPanelFolder.cpp.
159{
161 int iconIdx;
162
163 if (applet)
164 {
166 {
167 if (applet->
info[
i].idIcon > 0)
168 iconIdx = -applet->
info[
i].idIcon;
169 else
170 iconIdx = 0;
171
173 applet->
info[
i].name,
174 applet->
info[
i].info,
175 iconIdx);
176
177 if (pidl)
179 }
181 }
183}
static LPITEMIDLIST _ILCreateCPanelApplet(LPCWSTR pszName, LPCWSTR pszDisplayName, LPCWSTR pszComment, int iIconIdx)
BOOL AddToEnumList(LPITEMIDLIST pidl)
CPlApplet * Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel *panel)
void Control_UnloadApplet(CPlApplet *applet)
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
ITEMIDLIST UNALIGNED * LPITEMIDLIST
struct applet_info info[1]
Referenced by CreateCPanelEnumList(), and RegisterRegistryCPanelApps().
◆ RegisterRegistryCPanelApps()
int CControlPanelEnum::RegisterRegistryCPanelApps |
( |
HKEY |
hkey_root, |
|
|
LPCWSTR |
szRepPath |
|
) |
| |
Definition at line 185 of file CControlPanelFolder.cpp.
186{
190
191 int cnt = 0;
192
194 {
196
198 {
202
204 break;
205
207 {
209 }
210
212 ++cnt;
213 }
215 }
216
217 return cnt;
218}
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
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)
DWORD WINAPI ExpandEnvironmentStringsW(IN LPCWSTR lpSrc, IN LPWSTR lpDst, IN DWORD nSize)
Referenced by CreateCPanelEnumList().
The documentation for this class was generated from the following file: