58{
62
63
66
67
71
72
73 CComPtr<IShellFolder> psf1, psf2;
78
79
80 DWORD attrs1 = SFGAO_FOLDER, attrs2 = SFGAO_FOLDER;
81 hr = (psf1 ? psf1->GetAttributesOf(1, &pidl1Last, &attrs1) :
E_UNEXPECTED);
83 hr = (psf2 ? psf2->GetAttributesOf(1, &pidl2Last, &attrs2) :
E_UNEXPECTED);
85
86
87
88 ok_long((attrs1 & SFGAO_FOLDER), 0);
89 ok_long((attrs2 & SFGAO_FOLDER), SFGAO_FOLDER);
90
91
92
97 {
99 }
101 {
103 }
104 else
105 {
110
115 }
116
120 {
122 }
124 {
126 }
127 else
128 {
132 }
133
136 {
138 }
139 else
140 {
145
150 }
151
157}
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)
#define IID_PPV_ARG(Itype, ppType)