Platform SDK: Access Control |
Securable objects use an access mask format in which the four high-order bits specify generic access rights. Each type of securable object maps these bits to a set of its standard and object specific access rights. For example, a Win32 file object maps the GENERIC_READ bit to the READ_CONTROL and SYNCHRONIZE standard access rights and the FILE_READ_DATA, FILE_READ_EA, and FILE_READ_ATTRIBUTES object-specific access rights. Other types of objects map the GENERIC_READ bit to whatever set of access rights is appropriate for that type of object.
You can use generic access rights to specify the type of access you need when you are opening a handle to an object. This is typically simpler than specifying all the corresponding standard and specific rights.
The following table shows the constants defined for the generic access rights.
Constant | Generic Meaning |
---|---|
GENERIC_ALL | Read, write, and execute access |
GENERIC_EXECUTE | Execute access |
GENERIC_READ | Read access |
GENERIC_WRITE | Write access |
Applications that define private securable objects can also use the generic access rights.