55{
59
60
63
64
68
69
70 CComPtr<IShellFolder> psf1, psf2;
75
76
77 DWORD attrs1 = SFGAO_FOLDER, attrs2 = SFGAO_FOLDER;
78 hr = (psf1 ? psf1->GetAttributesOf(1, &pidl1Last, &attrs1) :
E_UNEXPECTED);
80 hr = (psf2 ? psf2->GetAttributesOf(1, &pidl2Last, &attrs2) :
E_UNEXPECTED);
82
83
84
85 ok_long((attrs1 & SFGAO_FOLDER), 0);
86 ok_long((attrs2 & SFGAO_FOLDER), SFGAO_FOLDER);
87
88
89
94 {
96 }
98 {
100 }
101 else
102 {
107
112 }
113
117 {
119 }
121 {
123 }
124 else
125 {
129 }
130
133 {
135 }
136 else
137 {
142
147 }
148}
static int FileStruct_Att(LPCITEMIDLIST pidl)
#define ok_char(expression, result)
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
BOOL WINAPI ILRemoveLastID(LPITEMIDLIST pidl)
HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast)
BOOL WINAPI ILIsEqual(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
PIDLIST_ABSOLUTE WINAPI SHSimpleIDListFromPath(PCWSTR)
#define IID_PPV_ARG(Itype, ppType)