68{
72
73
76
77
81
82
83 CComPtr<IShellFolder> psf1, psf2;
88
89
90 DWORD attrs1 = SFGAO_FOLDER, attrs2 = SFGAO_FOLDER;
91 hr = (psf1 ? psf1->GetAttributesOf(1, &pidl1Last, &attrs1) :
E_UNEXPECTED);
93 hr = (psf2 ? psf2->GetAttributesOf(1, &pidl2Last, &attrs2) :
E_UNEXPECTED);
95
96
97
98 ok_long((attrs1 & SFGAO_FOLDER), 0);
99 ok_long((attrs2 & SFGAO_FOLDER), SFGAO_FOLDER);
100
101
102
107 {
109 }
111 {
113 }
114 else
115 {
120
125 }
126
130 {
132 }
134 {
136 }
137 else
138 {
142 }
143
146 {
148 }
149 else
150 {
155
160 }
161
167}
static int FileStruct_Att(LPCITEMIDLIST pidl)
#define ok_char(expression, result)
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast)