ISharingConfigurationManager::GetSharePermissions method (shobjidl_core.h)
Gets the access permissions currently associated with the User or Public folder for the Everyone access control entry (ACE).
Syntax
HRESULT GetSharePermissions(
[in] DEF_SHARE_ID dsid,
[out] SHARE_ROLE *pRole
);
Parameters
[in] dsid
Type: DEF_SHARE_ID
One of the DEF_SHARE_ID values that specifies the folder.
[out] pRole
Type: SHARE_ROLE*
A pointer to a value that, when this method returns successfully, receives one of the SHARE_ROLE values that indicate the sharing permissions set for the folder specified in the dsid parameter.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |