Using Win32::FileSecurity
When I started to write the first edition of this book, the only real Win32 security extension available was Win32::FileSecurity. It focused solely on file-based permissions. Since then, Win32::Perms has matured into a very useful extension that covers much more than just NTFS file permissions. And Win32::FileSecurity seems to be used less and less. However, because many users still rely on the extension (after all, it is quite useful), this section is devoted to the use of the Win32::FileSecurity extension.
Considering how complicated file security can be, the Win32::FileSecurity extension is remarkably easy to learn and use. It provides a basic interface to retrieve, set, and decode permissions.
To use the extension, ...
Get Win32 Perl Programming: The Standard Extensions, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.