#include <CRecycleBinFolderViewCB.h>
Definition at line 10 of file CRecycleBinFolderViewCB.h.
◆ CRecycleBinFolderViewCB()
| CRecycleBinFolderViewCB::CRecycleBinFolderViewCB |
( |
| ) |
|
◆ ~CRecycleBinFolderViewCB()
| CRecycleBinFolderViewCB::~CRecycleBinFolderViewCB |
( |
| ) |
|
|
virtual |
◆ Initialize()
Definition at line 25 of file CRecycleBinFolderViewCB.cpp.
26{
30}
CComHeapPtr< ITEMIDLIST > m_pidlParent
LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl)
◆ MessageSFVCB()
Definition at line 132 of file CRecycleBinFolderViewCB.cpp.
133{
134 switch (uMsg)
135 {
137 {
138
146 }
148 {
151 }
152 }
154}
HRESULT RegisterChangeNotify(HWND hwndView)
void TranslateTwoPIDLs(PIDLIST_ABSOLUTE *pidls)
#define FAILED_UNEXPECTEDLY
HRESULT GetWindow([out] HWND *phwnd)
#define SFVM_QUERYFSNOTIFY
◆ RegisterChangeNotify()
| HRESULT CRecycleBinFolderViewCB::RegisterChangeNotify |
( |
HWND |
hwndView | ) |
|
|
private |
Definition at line 32 of file CRecycleBinFolderViewCB.cpp.
33{
34 if (!hwndView)
35 {
38 }
39
42
43
46 {
50 continue;
52 if (!pidl)
53 continue;
54 entries[iEntry].
pidl = pidls[iEntry] = pidl;
56 ++iEntry;
57 }
58
59
61 const DWORD dwEvents =
73 iEntry, entries);
75 WARN(
"SHChangeNotifyRegister failed\n");
76
77
78 while (iEntry > 0)
80
82}
#define SHV_CHANGE_NOTIFY
EXTERN_C ULONG WINAPI SHChangeNotifyRegister(HWND hwnd, INT fSources, LONG wEventMask, UINT uMsg, INT cItems, SHChangeNotifyEntry *lpItems)
EXTERN_C HRESULT GetRecycleBinPathFromDriveNumber(UINT Drive, LPWSTR Path)
_In_ LPWSTR _In_ DWORD _In_ DWORD _In_ DWORD dwFlags
void WINAPI ILFree(LPITEMIDLIST pidl)
LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR path)
#define RECYCLEBINMAXDRIVECOUNT
#define SHCNE_UPDATEIMAGE
#define SHCNE_RENAMEFOLDER
#define SHCNRF_NewDelivery
#define SHCNRF_ShellLevel
#define SHCNE_ASSOCCHANGED
#define SHCNRF_InterruptLevel
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Referenced by MessageSFVCB().
◆ TranslatePidl()
Definition at line 84 of file CRecycleBinFolderViewCB.cpp.
85{
88
91 {
92 ERR(
"!SHGetPathFromIDListW\n");
94 }
95
96 CComHeapPtr<ITEMIDLIST> pidlChild;
99 if (!pidlChild)
100 {
103 }
104
106
108}
HRESULT ParseRecycleBinPath(LPCWSTR lpszPath, LPBC pbc, PIDLIST_RELATIVE *ppidl, DWORD *pdwAttributes)
LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
Referenced by TranslateTwoPIDLs().
◆ TranslateTwoPIDLs()
Definition at line 110 of file CRecycleBinFolderViewCB.cpp.
111{
113
115 if (pidls[0])
116 {
121 }
122 if (pidls[1])
123 {
128 }
129}
CComHeapPtr< ITEMIDLIST > m_pidls[2]
HRESULT TranslatePidl(LPITEMIDLIST *ppidlNew, LPCITEMIDLIST pidl)
Referenced by MessageSFVCB().
◆ m_nChangeNotif
| ULONG CRecycleBinFolderViewCB::m_nChangeNotif |
|
private |
◆ m_pidlParent
| CComHeapPtr<ITEMIDLIST> CRecycleBinFolderViewCB::m_pidlParent |
|
private |
◆ m_pidls
| CComHeapPtr<ITEMIDLIST> CRecycleBinFolderViewCB::m_pidls[2] |
|
private |
◆ m_pRecycleBin
◆ m_pShellView
The documentation for this class was generated from the following files: