NewShare should automatically give full control to everyone.
Anyway, if you want to add a specific user, then the code you posted with SetFileAccess is correct. However, giving in a UNC path for the share name is not correct. Use "NewShare('c:\test', 'test$')" instead.
In some not too near future maybe... Right now I'm busy working on madExcept and madCodeHook, because that's what most of my customers are primarily using. That doesn't mean that I won't work on madSecurity anytime soon. But new features might have to wait a bit...