SHARE_ROLE enumeration (shobjidl_core.h)

Specifies the access permissions assigned to the Users or Public folder. Used in CreateShare and GetSharePermissions.

Syntax

typedef enum SHARE_ROLE {
  SHARE_ROLE_INVALID,
  SHARE_ROLE_READER,
  SHARE_ROLE_CONTRIBUTOR,
  SHARE_ROLE_CO_OWNER,
  SHARE_ROLE_OWNER,
  SHARE_ROLE_CUSTOM,
  SHARE_ROLE_MIXED
} ;

Constants

 
SHARE_ROLE_INVALID
The folder is not shared.
SHARE_ROLE_READER
The contents of the folder can be read, but not altered or added to.
SHARE_ROLE_CONTRIBUTOR
The contents of the folder can be read and altered. New items can be added, however items can be deleted only by the user that contributed them.
SHARE_ROLE_CO_OWNER
The contents of the folder can be read, changed, or added to.
SHARE_ROLE_OWNER
Not normally used in the context of this interface.
SHARE_ROLE_CUSTOM
The folder is shared, but the share role is neither SHARE_ROLE_READER, SHARE_ROLE_CONTRIBUTOR, or SHARE_ROLE_CO_OWNER.
SHARE_ROLE_MIXED
Not used in the context of this interface.

Remarks

ISharingConfigurationManager::CreateShare accepts only SHARE_ROLE_READER and SHARE_ROLE_CO_OWNER. All other values are seen only in the results of ISharingConfigurationManager::GetSharePermissions.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header shobjidl_core.h (include Shobjidl.h)