The function GetAttributes is used in this connection. This function exists both for folders and for items. You can enable or disable certain features for this object (for instance, CTRL+C Copy) by setting or clearing additional attribute flags.