This topic has not yet been rated - Rate this topic

SHARE_ROLE enumeration

Applies to: desktop apps only

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

Syntax

typedef enum SHARE_ROLE {
  SHARE_ROLE_INVALID       = -1,
  SHARE_ROLE_READER        = 0,
  SHARE_ROLE_CONTRIBUTOR   = 1,
  SHARE_ROLE_CO_OWNER      = 2,
  SHARE_ROLE_OWNER         = 3,
  SHARE_ROLE_CUSTOM        = 4,
  SHARE_ROLE_MIXED         = 5 
} SHARE_ROLE;

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

Minimum supported server

Windows Server 2008

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ