Getting _recursive_ panel filelist
Posted: Tue 19 Aug, 2008 13:51
I need to read all files and directories in a panel and all of its subdirectories. Which is quite easy to do with regular panels (it's just a matter of reading CurDir from the Panel and then using that to recursively call GetDirList). I am not so sure how to do it with plugin-based panels. I expect the code will be pretty much the same, except that I need to use GetPluginDirList instead of GetDirList. But I just can't figure out what parameters to use:
Dir, pPanelItem and pItemsNumber are the same as GetDirList and pretty obvious. I need to know how to get PluginNumber and hPlugin from PanelInfo. There just doesn't seem to be any way to find these values. PanelInfo does have a Plugin member, but that's just a boolean value according to the docs - and in any case, even if it did contain a handle, I would need the PluginNumber, too. What am I overlooking?
Code: Select all
int WINAPI GetPluginDirList(
int PluginNumber,
HANDLE hPlugin,
const char *Dir,
struct PluginPanelItem **pPanelItem,
int *pItemsNumber
);