win32utils-devel@rubyforge.org
2004-Mar-13 06:49 UTC
[Win32utils-devel] Win32-file update for FileSecurity
Hi, I''ve commited win32-file update for FileSecurity DACLs Added some constants, three singleton functions, and test code. Calling Syntax is like this: Win32::File.set_permission(''filename'',{''Everyone''=>Win32::File::FULL, ''NT AUTHORITY\\SYSTEM''=>Win32::File::CHANGE, ''BUILTIN\\Administrators''=>Win32::File::READ}) Win32::File.get_permission(''filename'').each { |account,perm| p account p Win32::File.securities(perm) } Enjoy with it. Regards, Park Heesob