If I have the following 3 permission values for 3 separate folders in Windows:
Decimal: 268435456 - Binary: 10000000000000000000000000000 - 29 bits
Decimal: 134217728 - Binary: 1000000000000000000000000000 - 28 bits
Decimal: 67108864 - Binary: 100000000000000000000000000 - 27 bits
How do I interpret these 3 permission values?
Here is the MSDN Access Mask Format guide:
Should I be padding my generic permissions with 0's in front of the most significant bit (the left side) to make the binary word 32 bits long?
My understanding is that generic permissions are 32 bit unsigned integer values, yet I see permissions like -1610612736 all the time. Are they unsigned and simply being represented as signed?
I'm using PowerShell to create a permissions checking script and running into this issue... This stackoverflow post is relevant. Also a TechNet post I have going about this issue.

