windows-nt/Source/XPSP1/NT/shell/inc/filelist.h

24 lines
832 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//----------------------------------------------------------------------------
//
//----------------------------------------------------------------------------
typedef struct
{
DWORD dwAttribs;
LPITEMIDLIST pidl;
PSTR pszName;
} FILELIST_ITEM;
typedef FILELIST_ITEM *PFILELIST_ITEM;
typedef BOOL (*PFN_FOLDER_ENUM_CALLBACK)(LPSHELLFOLDER psf, LPITEMIDLIST pidlFolder, LPITEMIDLIST pidlItem, LPVOID pv);
BOOL Folder_Enum(LPITEMIDLIST pidlFolder, PFN_FOLDER_ENUM_CALLBACK pfn, PVOID pv);
void FileList_Destroy(HDPA hdpa);
BOOL FileList_Create(LPITEMIDLIST pidlFolder, HDPA *phdpa, PINT pcItems);
BOOL FileList_Sort(HDPA hdpaFLI);
BOOL FileList_CreateItem(IShellFolder *psf, LPITEMIDLIST pidl, PFILELIST_ITEM *ppfli);
void FileList_DestroyItem(PFILELIST_ITEM pfli);
BOOL Sz_AllocCopy(LPCTSTR pszSrc, LPSTR *ppszDst);