17 return pidl && pidl->mkid.cb >= 3 ? (pidl->mkid.abID[0] & 0x7F) : 0;
32 return (
p &&
p->mkid.cb > 2) ? (
p->mkid.abID[0] & 0x70) == 0x30 :
FALSE;
45 return p ?
p->att : (
UINT(1) << 31);
48#define TEST_CLSID(pidl, type, offset, clsid) \
50 ok_long(GetPIDLType(pidl), (type)); \
51 ok_int(*(CLSID*)((&pidl->mkid.abID[(offset) - sizeof(WORD)])) == clsid, TRUE); \
70 CComPtr<IShellFolder> psf1, psf2;
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);
85 ok_long((attrs1 & SFGAO_FOLDER), 0);
86 ok_long((attrs2 & SFGAO_FOLDER), SFGAO_FOLDER);
static int FileStruct_Att(LPCITEMIDLIST pidl)
static BYTE GetPIDLType(LPCITEMIDLIST pidl)
#define TEST_CLSID(pidl, type, offset, clsid)
#define ok_long(expression, result)
#define ok_char(expression, result)
#define ok_int(expression, result)
#define ok_ptr(expression, result)
UINT WINAPI GetSystemDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
LPWSTR WINAPI PathFindFileNameW(LPCWSTR lpszPath)
LPITEMIDLIST WINAPI SHCloneSpecialIDList(HWND hwndOwner, int nFolder, BOOL fCreate)
void WINAPI ILFree(LPITEMIDLIST pidl)
LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST pidl)
BOOL WINAPI ILRemoveLastID(LPITEMIDLIST pidl)
HRESULT WINAPI SHBindToParent(LPCITEMIDLIST pidl, REFIID riid, LPVOID *ppv, LPCITEMIDLIST *ppidlLast)
LPITEMIDLIST WINAPI ILCreateFromPathW(LPCWSTR path)
BOOL WINAPI ILIsEqual(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
PIDLIST_ABSOLUTE WINAPI SHSimpleIDListFromPath(PCWSTR)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
static FS95 * Validate(LPCITEMIDLIST p)
static BOOL IsFS(LPCITEMIDLIST p)
#define FIELD_OFFSET(t, f)
#define IID_PPV_ARG(Itype, ppType)