Windows file management

Taking Ownership and Setting Admin Rights on a System Object in C# – Mike O’Brien

Taking object ownership in C++

Modifying the ACLs of an object in C++

Full example of file permission changes

Order of ACEs in a DACL

Win32 Authorization Functions

How Security Descriptors and Access Control Lists Work

Path names

File name manipulation and long names

MSDN Library Reference FileCopy

Long filenames


Win32 error codes

Convert base64 to hex

The following is a bash script to convert a file of b64 strings to a file of hex strings:

while read fileline; do
    echo $fileline | base64 -d -i | hexdump -v -e '/1 "%02x" ' >> hex.txt;
    echo "" >> hex.txt;
done < b64.txt