I want to iterate around a directory tree and for each folder/file I want to programatically find out the users and groups of the file/folder. I can get an owner of a file but I can't get all the groups and users (the ones that are listed when you click on the Security Tab of the files properties option)

I have tried MSDN etc but I can seem to see the wood for the trees!

Does anyone have any VB6 code showing what needs to be done?