Retrieves a layer state mask from a specific layer state.
eOk if operation succeeded; error code otherwise.
Layer state mask determines which layer attributes are stored in the layer state. Layer state mask is a combination of one or more of the following: