Tag Archives | CodeProject

How to Map Generic Rights to Standard and Specific Rights

There are two equivalent ways trustees can be assigned a specific set of permissions on Windows: via generic rights and via a combination of standard and specific rights. Generic rights are identical for all object types. There are only four of them: GENERIC_READ (0x80000000) GENERIC_WRITE (0x40000000) GENERIC_EXECUTE (0x20000000) GENERIC_ALL (0x10000000) As the name implies, generic […]

Continue Reading · 1

What is the SYNCHRONIZE File Access Right?

When dealing with Windows NTFS file system permissions, one quickly encounters the SYNCHRONIZE access right, the purpose of which may not be obvious. SYNCHRONIZE belongs to the standard access rights, just like DELETE, READ_CONTROL, WRITE_DAC and WRITE_OWNER. Here is the definition of SYNCHRONIZE from MSDN: The SYNCHRONIZE access right is defined within the standard access […]

Continue Reading · 0

EFS Encryption and CopyFile(Ex): Why DIY is Better

Generally I am not the type to recommend re-implementing functionality present in some API. But with the Windows function CopyFile(Ex) there may be no alternative, because of the less than sub-optimal way Windows copies EFS-encrypted files: If the source encryption key can be used on the target (i.e. if the target computer can access the […]

Continue Reading · 0

How to Convert Quicktime MOV Video Files to MPEG-2

[Update 1: Fixed bugs in the batch file and made it available for download] [Update 2: Wildcards are now supported] [Update 3: Timestamps are now copied from source to destination files. For this, touch.exe is needed.] [Update 4: File names with spaces in them are now handled correctly] I recently bought a new compact digital […]

Continue Reading · 43